/* PAGE D'ACCUEIL PUBLIQUE (index.php) : theme sombre chaud, meme identite que le
   site (or #CCAE1D, Finger Paint pour les titres, Arimo pour le texte). */

:root{
    --fond: #0c0906;
    --fond-carte: #16100b;
    --trait: rgba(255,255,255,0.12);
    --texte: #f4ece2;
    --texte-doux: #baad9c;
    --or: #CCAE1D;
    --or-fonce: #b89818;
    --titres: 'Finger Paint', cursive;
    --largeur: 1080px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: 'Arimo', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--or); }
h1, h2, h3{ font-family: var(--titres); font-weight: normal; line-height: 1.2; text-wrap: balance; margin: 0; }
:focus-visible{ outline: 2px solid var(--or); outline-offset: 3px; }

/* --------------------------------- ENTETE --------------------------------- */
.entete{
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    max-width: var(--largeur);
    margin: 0 auto;
}
.marque{
    font-family: var(--titres);
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.marque-court{ display: none; }
.entete-liens{ display: flex; align-items: center; gap: 22px; }
.entete-liens a:not(.bouton){
    color: var(--texte);
    text-decoration: none;
    font-size: 15px;
}
.entete-liens a:not(.bouton):hover{ color: var(--or); }

/* -------------------------------- BOUTONS --------------------------------- */
.bouton{
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid var(--or);
    border-radius: 999px;
    background: var(--or);
    color: #17120a;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.bouton:hover{ background: var(--or-fonce); border-color: var(--or-fonce); color: #17120a; }
.bouton--contour{
    background: transparent;
    color: var(--or);
    padding: 8px 18px;
    font-size: 14px;
}
.bouton--contour:hover{ background: var(--or); color: #17120a; }

/* ---------------------------------- HERO ---------------------------------- */
.hero{
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(82vh, 760px);
    padding: 110px 20px 70px;
    background-image:
        linear-gradient(to right, rgba(12,9,6,0.82) 0%, rgba(12,9,6,0.55) 45%, rgba(12,9,6,0.1) 100%),
        linear-gradient(to bottom, rgba(12,9,6,0) 50%, var(--fond) 100%),
        url("img/hero.jpg");
    background-size: cover;
    background-position: center 55%;
}
.hero-texte{ max-width: var(--largeur); width: 100%; margin: 0 auto; }
.hero-texte > *{ max-width: 620px; }
.sur-titre{
    margin: 0 0 14px;
    color: var(--or);
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 700;
}
.hero h1{ font-size: clamp(34px, 6vw, 56px); margin-bottom: 20px; }
.chapeau{ margin: 0 0 30px; font-size: 18px; color: var(--texte); }
.hero-actions{ display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.lien-discret{ color: var(--texte); font-size: 15px; }
.lien-discret:hover{ color: var(--or); }
.hero-note{
    margin: 22px 0 0;
    color: var(--texte-doux);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pastille{ width: 7px; height: 7px; border-radius: 50%; background: var(--or); display: inline-block; }

/* --------------------------------- BLOCS ---------------------------------- */
.bloc{
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 72px 20px;
}
.bloc h2{ font-size: clamp(26px, 4vw, 36px); margin-bottom: 36px; }
.bloc-intro{ margin: -20px 0 30px; color: var(--texte-doux); }

/* FONCTIONS : deux colonnes, separees par de fins traits (pas de cartes) */
.fonctions{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 56px;
}
.fonction{
    padding: 26px 0;
    border-top: 1px solid var(--trait);
}
.fonction h3{ font-size: 20px; margin-bottom: 10px; color: var(--or); }
.fonction p{ margin: 0; color: var(--texte); max-width: 46ch; }

/* VITRINE : memes cartes que sur le site (portrait 3:4) */
.vitrine{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.carte{
    background: var(--fond-carte);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--trait);
}
.carte-photo{ aspect-ratio: 3/4; overflow: hidden; }
.carte-photo img{ width: 100%; height: 100%; object-fit: cover; }
.carte-infos{ padding: 10px 11px 11px; }
.carte-haut{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    min-height: 2.6em;
    font-size: 13px;
    line-height: 1.3;
}
.carte-nom{ min-width: 0; }
.carte-temps{ color: var(--texte-doux); font-size: 11px; white-space: nowrap; padding-top: 1px; }
.carte-bas{ margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--trait); }
.etiquette{
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.etiquette--entree{ background: #1d3a1f; color: #8fd694; }
.etiquette--plat{ background: #3a2a14; color: #e8b167; }
.etiquette--dessert{ background: #3a1a2a; color: #e88fb1; }

/* ETAPES : ici l'ordre compte, d'ou les numeros */
.etapes{
    list-style: none;
    counter-reset: etape;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.etapes li{ counter-increment: etape; padding-top: 18px; border-top: 1px solid var(--trait); color: var(--texte-doux); }
.etapes li::before{
    content: counter(etape);
    display: block;
    margin-bottom: 8px;
    font-family: var(--titres);
    font-size: 30px;
    color: var(--or);
}
.etapes strong{ color: var(--texte); }

/* FAQ */
.faq{ max-width: 760px; border-bottom: 1px solid var(--trait); }
.faq details{ border-top: 1px solid var(--trait); }
.faq summary{
    cursor: pointer;
    padding: 18px 34px 18px 0;
    position: relative;
    font-weight: 700;
    list-style: none;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--or);
    font-size: 24px;
    font-weight: 400;
}
.faq details[open] summary::after{ content: '\2212'; }
.faq details p{ margin: 0 0 20px; color: var(--texte-doux); max-width: 62ch; }

/* APPEL FINAL */
.appel{
    text-align: center;
    padding: 80px 20px 90px;
    background: radial-gradient(ellipse at 50% 0%, rgba(204,174,29,0.14), rgba(204,174,29,0) 65%);
}
.appel h2{ font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.appel p{ margin: 0 0 28px; color: var(--texte-doux); }

/* ---------------------------------- PIED ---------------------------------- */
.pied{
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 26px 20px 40px;
    border-top: 1px solid var(--trait);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    color: var(--texte-doux);
    font-size: 14px;
}
.pied-liens{ display: flex; gap: 20px; }
.pied a{ color: var(--texte-doux); }
.pied a:hover{ color: var(--or); }

/* -------------------------------- RESPONSIVE ------------------------------ */
@media (max-width: 1023px){
    .vitrine{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px){
    body{ font-size: 16px; }
    .entete-liens a:not(.bouton){ display: none; }
    .marque-long{ display: none; }
    .marque-court{ display: inline; }
    .hero{
        min-height: 0;
        padding: 96px 20px 56px;
        background-image:
            linear-gradient(to bottom, rgba(12,9,6,0.6) 0%, rgba(12,9,6,0.68) 60%, var(--fond) 100%),
            url("img/hero-mobile.jpg");
        background-position: center top;
    }
    .chapeau{ font-size: 17px; }
    .bloc{ padding: 52px 20px; }
    .fonctions{ grid-template-columns: 1fr; }
    .vitrine{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .etapes{ grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .bouton{ transition: none; }
}
