/* styles de base: font, couleurs, menu, etc."/

/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* base couleurs et arrrondis*/
:root {
    --bg-color: #FFFFFF;
    /*blanc*/
    --text-color: #000000;
    /*noir*/
    --primary-color: #fc00ef;
    /*magenta*/
    --noir-color: #000000;
    /* noir*/
    --muted-color: #9ca3af;
    /*gris textes secondaire, bordure discrêtes*/
    --fonce-color: #4a4a4a;
    /* gris foncé arrières plan cartes*/
    --liens-color: #111827;
    /* liens*/
    --bg-grisclair: #F5F5F5;
    /*background pour menu déroulant*/
    --radius: 8px;
    /*coins arrondis*/
}

/* Page */
body {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* titres hiérarchie*/
h1 {
    font-size: 2rem;
    color: var(--text-color);
}

h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* hero / lead */

.hero {
    position: relative;
    margin: 0rem 0;
    /*border-radius: 0.5rem;
    border-left: 6px solid var(--muted-color);*/
}

.hero p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 300;
    /* Texte plus léger */
    line-height: 1.5;
    /* Meilleur espacement */
    color: var(--fonce-color);
    margin-bottom: 1.5rem;
    /* 24px si font-size=16px */
}

/* forcer bold même dans une class*/
.force-bold {
    font-weight: bold !important;
}

/* espacement */
/*---*/
/* Paragraphes */
p {
    margin-bottom: 1.5rem;
    /* 24px si font-size=16px */
    line-height: 1.6;
    /* Interlignes confortable */
}

/* Titres */
h1,
h2,
h3 {
    margin-bottom: 1em;
    margin-top: 2em;
    /* Espace avant titre */
}

/* Premier paragraphe après titre = 0 */
h1+p,
h2+p,
h3+p {
    margin-top: 0;
}

/* lien */
a {
    color: var(--liens-color);
    /* couleur lien*/
    text-decoration: underline;
    /* souligné */
    font-weight: 500;
    /* Semi-gras */
    border-radius: 3px;
    /* Coins arrondis subtils */
    /* transition: all 0.2s ease;*/
    /* Animation fluide */
    /*padding: 4px 0;*/
}

/*----*/
/* header */
/*----*/

header {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 10;
    position: relative;
    border: none;
}

header::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: var(--muted-color);
    /* gris clair */
    opacity: 0.5;
    margin-top: 0rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--bg-color)
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    /* vertical */
    align-items: flex-start;
    /* aligne le contenu à gauche dans le flex */
    text-align: left;
    /* texte aligné à gauche */
}

#logo-head {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.h1-head {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: bold;
}

.h2-head {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
}

/*navigation*/
/*----*/

/*  BOUTON BURGER*/

.burger {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 1000;
}

.line {
    width: 32px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.burger::after {
    content: "Menu";
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 4px;
}

/* menu déroulant */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Menu caché par défaut (hors écran, à droite) */
    width: 150px;
    height: 100vh;
    background: var(--bg-grisclair);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 2px solid var(--muted-color);
    padding: 1rem 0;
    transition: right 0.3s ease;
    z-index: 999;
}

/* Liens à l'intérieur du menu */
.nav a {
    color: var(--liens-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Activation du menu via input checkbox */
#nav-toggle:checked~.nav {
    right: 0;
}

/*  TOGGLE INVISIBLE */
.nav-toggle {
    display: none;
}

/*----*/
/* main */
/*----*/

/* bloc au début page index*/
/*---*/

/* tout simple*/
.blocindex {
    display: flex;
    flex: 1 1 280px;
    background: white;
    border: 0px solid #e0e0e0;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0px 0px var(--muted-color);
    margin-bottom: 2rem;
}

.blocindex-img {
    flex: 0 0 200px;
    /* Largeur fixe image */
    width: 200px;
}

.blocindex-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Image bien cadrée */
}

.blocindex-text {
    flex: 1;
    /* Prend tout l'espace restant */
    padding: 1rem;
}

.blocindex img.img_tampon {
    height: 200px;
    object-fit: contain;
}

/* blocs/catelles index bien séparés */
/* ---*/
.multi-blocs {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    /* Grand espace entre les blocs */
    justify-content: center;
}

.bloc {
    flex: 1 1 280px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--muted-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bloc:hover {
    transform: translateY(-0px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bloc img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #e0e0e0;
}

.bloc img.img_tampon {
    height: 200px;
    /* conserve les proportions */
    object-fit: contain;
    /* pas de recadrage */
}

.bloc-text {
    padding: 1rem;
}

/* titres avec logo*/
/*---*/
.logo-titre {
    display: flex;
    align-items: center;
    /* Vertical aligne */
    gap: 1rem;
    /* Espace entre image/titre */
    margin-bottom: 1rem;
    /*marge dessous*/
}

#logo-titre-large {
    width: 180px;
    height: auto;
}

/* sections*/
/*----*/

/* pour tous les main, pas de style contrôlé avec .main*/
main {
    padding: 2rem 5vw 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Sections génériques */
.section {
    margin-top: 3rem;
}

/* tableau simple (avec border haut et bas*/
/* histoire dans contact*/
/*---*/
.tab_simple {
    border-top: 1px solid var(--noir-color);
    border-bottom: 1px solid var(--noir-color);
    border-left: none;
    border-right: none;
    border-collapse: collapse;
}

/* td (data) et th (header)*/
.tab_simple td,
.tab_simple th {
    border-top: 1px solid var(--noir-color);
    border-bottom: 1px solid var(--text-noir);
    border-left: none;
    border-right: none;
    padding: 12px 16px;
}

/*----*/
/* Pied de page */
/*----*/

.footer_sty {
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #ccc;
    /* gris clair */
    opacity: 0.5;
    margin-bottom: 0rem;
}

/*----*/
/* flèche pour remonter*/
/*----*/

#bouton-haut {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--fonce-color);
    color: white;
    border: none;
    border-radius: 0%;
    width: 50px;
    height: 50px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#bouton-haut.show {
    opacity: 1;
    visibility: visible;
}

#bouton-haut:hover {
    background: var(--fonce-color);
    transform: scale(1.1);
}

/*------------*/
/* Responsive mobile - à revoir*/
/*------------*/
@media (max-width: 640px) {

    /*gestion titres header*/
    .h1-head {
        font-size: 1.8rem;
        color: var(--text-color);
        font-weight: bold;
    }

    .h2-head {
        font-size: 1.2rem;
        color: var(--text-color);
        font-weight: bold;
    }

    /*taille vignette ronde index*/
    .blocindex-img {
        flex: 0 0 130px;
        /* Largeur fixe image */
        width: 150px;
    }

    /* titres hiérarchie*/
    h1 {
        font-size: 1.8rem;
        color: var(--text-color);
    }

    h2 {
        font-size: 1.3rem;
        color: var(--text-color);
    }

    #logo-head {
        width: 70px;
        height: auto;
        border-radius: 4px;
    }

    #logo-titre-large {
        width: 150px;
        height: auto;
    }

}