/* Auberge du Vieux Chêne — feuille de style unique. */

:root {
    --creme: #f6f1e7;
    --creme-fonce: #ebe3d4;
    --encre: #1f2a24;
    --encre-douce: #4a5750;
    --foret: #2f4438;
    --laiton: #a8803c;
    --laiton-clair: #c9a35e;
    --blanc: #fffdf8;
    --ligne: rgba(31, 42, 36, .16);
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    --large: min(1120px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--creme);
    color: var(--encre);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }

a { color: var(--foret); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--laiton); }

img { max-width: 100%; display: block; }

.visuellement-cache {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.saut {
    position: absolute; left: -999px; top: 0; z-index: 10;
    background: var(--foret); color: var(--blanc); padding: .6rem 1rem;
}
.saut:focus { left: .5rem; top: .5rem; }

/* ---------- En-tête ---------- */

.entete {
    position: sticky; top: 0; z-index: 5;
    background: rgba(246, 241, 231, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ligne);
}

.entete__barre {
    width: var(--large); margin: 0 auto;
    display: flex; align-items: center; gap: 1.5rem;
    padding: .9rem 0;
    flex-wrap: wrap;
}

.marque { text-decoration: none; color: inherit; margin-right: auto; }
.marque__nom {
    display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
    letter-spacing: .01em;
}
.marque__baseline {
    display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--encre-douce);
}

.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
    text-decoration: none; color: var(--encre-douce);
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--encre); border-bottom-color: var(--laiton); }
.nav a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--laiton); }

.entete__etat { display: flex; align-items: center; gap: .8rem; }
.pastille {
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
    padding: .2rem .6rem; border-radius: 999px; border: 1px solid;
}
.pastille--ouvert { color: var(--foret); border-color: rgba(47, 68, 56, .4); background: rgba(47, 68, 56, .08); }
.pastille--ferme { color: #8a4b32; border-color: rgba(138, 75, 50, .35); background: rgba(138, 75, 50, .07); }
.tel { font-size: .85rem; text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */

.hero { position: relative; }
.hero__radio { position: absolute; opacity: 0; pointer-events: none; }

.hero__scene {
    position: relative;
    height: clamp(420px, 68vh, 660px);
    overflow: hidden;
}

.hero__vue {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; transition: opacity .7s ease;
}
.hero__vue img { width: 100%; height: 100%; object-fit: cover; }
.hero__vue figcaption {
    position: absolute; right: 1.5rem; bottom: 1.2rem;
    color: rgba(255, 253, 248, .9); font-size: .78rem; letter-spacing: .06em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

#hero-0:checked ~ .hero__scene .hero__vue:nth-of-type(1),
#hero-1:checked ~ .hero__scene .hero__vue:nth-of-type(2),
#hero-2:checked ~ .hero__scene .hero__vue:nth-of-type(3),
#hero-3:checked ~ .hero__scene .hero__vue:nth-of-type(4) { opacity: 1; }

.hero__texte {
    position: relative; z-index: 2;
    width: var(--large); margin: 0 auto;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
    color: var(--blanc);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero__scene::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(20, 28, 23, .78) 0%, rgba(20, 28, 23, .35) 55%, rgba(20, 28, 23, .15) 100%);
}
.hero__sur-titre {
    font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--laiton-clair); margin-bottom: .8rem;
}
.hero__texte h1 { max-width: 12ch; }
.hero__baseline { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: italic; max-width: 32ch; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

.hero__choix {
    width: var(--large); margin: -3.2rem auto 0;
    position: relative; z-index: 3;
    display: flex; gap: .8rem; flex-wrap: wrap;
}
.hero__choix label { cursor: pointer; width: 132px; }
.hero__vignette {
    display: block; height: 76px; border-radius: 2px;
    background-size: cover; background-position: center;
    border: 2px solid rgba(255, 253, 248, .55);
    transition: border-color .25s ease, transform .25s ease;
}
.hero__choix label:hover .hero__vignette { transform: translateY(-3px); }
.hero__libelle {
    display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--encre-douce); margin-top: .4rem;
}
#hero-0:checked ~ .hero__choix label:nth-child(1) .hero__vignette,
#hero-1:checked ~ .hero__choix label:nth-child(2) .hero__vignette,
#hero-2:checked ~ .hero__choix label:nth-child(3) .hero__vignette,
#hero-3:checked ~ .hero__choix label:nth-child(4) .hero__vignette { border-color: var(--laiton); }

/* ---------- Boutons ---------- */

.bouton {
    display: inline-block; text-decoration: none;
    background: var(--laiton); color: #fff;
    padding: .72rem 1.5rem; border-radius: 2px; border: 1px solid var(--laiton);
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    font-weight: 500; cursor: pointer; font-family: var(--sans);
    transition: background .2s ease, color .2s ease;
}
.bouton:hover { background: #8d6a2f; color: #fff; }
.bouton--clair { background: transparent; border-color: rgba(255, 253, 248, .7); color: var(--blanc); }
.bouton--clair:hover { background: rgba(255, 253, 248, .15); color: var(--blanc); }
.bouton--sobre { background: transparent; border-color: var(--ligne); color: var(--encre); }
.bouton--sobre:hover { background: var(--creme-fonce); color: var(--encre); }

/* ---------- Bande horaires ---------- */

.bande { background: var(--foret); color: var(--creme); margin-top: 3rem; }
.bande__contenu {
    width: var(--large); margin: 0 auto; padding: 1.1rem 0;
    display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap;
}
.bande__jour {
    margin: 0; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--laiton-clair);
}
.bande__horaire { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.bande__lien { margin-left: auto; color: var(--creme); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.bande__lien:hover { color: var(--laiton-clair); }

/* ---------- Sections ---------- */

.section { width: var(--large); margin: 4.5rem auto; }
.section__entete { margin-bottom: 2rem; max-width: 46ch; }
.section__note, .titre-page__note { color: var(--encre-douce); }
.sur-titre {
    font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--laiton); margin-bottom: .6rem;
}
.section__suite { margin-top: 2rem; }

.titre-page {
    width: var(--large); margin: 4rem auto 3rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--ligne);
    max-width: min(760px, 92vw);
}
.titre-page__note { max-width: 56ch; }
.titre-page--404 { border: 0; text-align: left; }

.mot { columns: 2; column-gap: 3rem; max-width: 70ch; font-size: 1.02rem; }
.mot__signature { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--foret); }

/* ---------- Menus ---------- */

.menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.menu {
    background: var(--blanc); border: 1px solid var(--ligne);
    padding: 2rem 1.8rem; border-radius: 2px;
    box-shadow: 0 1px 0 rgba(31, 42, 36, .04);
}
.menu h2, .menu h3 { margin-bottom: .2rem; }
.menu__prix {
    font-family: var(--serif); font-size: 1.5rem; color: var(--laiton); margin-bottom: .8rem;
}

/* ---------- Plats ---------- */

.plats { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.plat { padding: 1rem 0; border-bottom: 1px dotted var(--ligne); }
.plat:last-child { border-bottom: 0; }
.plat__ligne { display: flex; align-items: baseline; gap: .6rem; }
.plat__nom { font-family: var(--serif); font-size: 1.3rem; }
.plat__points { flex: 1; border-bottom: 1px dotted var(--ligne); transform: translateY(-4px); }
.plat__prix { font-family: var(--serif); font-size: 1.1rem; color: var(--laiton); white-space: nowrap; }
.plat__desc { margin: .15rem 0 0; color: var(--encre-douce); font-size: .95rem; }

.section--rappel {
    background: var(--creme-fonce); padding: 2rem; border-radius: 2px;
    width: var(--large); text-align: center;
}
.section--rappel p { margin: 0; font-family: var(--serif); font-size: 1.25rem; }

/* ---------- Horaires ---------- */

.etat-grand {
    font-family: var(--serif); font-size: 1.6rem; margin-bottom: 2rem;
    padding-left: 1rem; border-left: 3px solid var(--laiton);
}
.etat-grand span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--encre-douce); }
.etat-grand--ouvert { border-left-color: var(--foret); }

.horaires { width: 100%; max-width: 680px; border-collapse: collapse; }
.horaires th, .horaires td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--ligne); }
.horaires thead th {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--encre-douce); font-weight: 500;
}
.horaires tbody th { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.horaires__aujourdhui { background: var(--blanc); }
.horaires__marque {
    display: inline-block; margin-left: .5rem; vertical-align: middle;
    font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--laiton); border: 1px solid var(--laiton); border-radius: 999px; padding: 0 .5rem;
}
.ferme { color: var(--encre-douce); font-style: italic; }
.notes { margin-top: 2rem; padding-left: 1.1rem; color: var(--encre-douce); max-width: 60ch; }

/* ---------- Galerie ---------- */

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.galerie__vue { margin: 0; }
.galerie__vue img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px;
    transition: transform .4s ease;
}
.galerie__vue:hover img { transform: scale(1.02); }
.galerie__vue figcaption { font-size: .85rem; color: var(--encre-douce); margin-top: .5rem; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.4fr); gap: 3rem; }
.contact h2 { font-size: 1.35rem; margin-top: 1.6rem; }
.contact h2:first-child { margin-top: 0; }
.contact__formulaire { background: var(--blanc); border: 1px solid var(--ligne); padding: 2rem; border-radius: 2px; }

.formulaire { margin-top: 1rem; }
.champ { margin-bottom: 1rem; }
.champ label {
    display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--encre-douce); margin-bottom: .35rem;
}
.champ input, .champ textarea {
    width: 100%; padding: .65rem .8rem; font: inherit; color: inherit;
    background: var(--creme); border: 1px solid var(--ligne); border-radius: 2px;
}
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--laiton); outline-offset: 1px; }
.champ-groupe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.formulaire__note { font-size: .82rem; color: var(--encre-douce); margin-top: 1rem; }

.message { padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.2rem; border-left: 3px solid; }
.message p:last-child { margin-bottom: 0; }
.message--ok { background: rgba(47, 68, 56, .07); border-color: var(--foret); }
.message--erreur { background: rgba(138, 75, 50, .07); border-color: #8a4b32; }
.message--erreur ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.message__petit { font-size: .85rem; color: var(--encre-douce); }

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

.pied { background: var(--foret); color: rgba(246, 241, 231, .86); margin-top: 5rem; padding: 3.5rem 0 1.5rem; }
.pied a { color: var(--creme); }
.pied a:hover { color: var(--laiton-clair); }
.pied__grille {
    width: var(--large); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem;
}
.pied__titre {
    font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
    font-family: var(--sans); font-weight: 500; color: var(--laiton-clair); margin-bottom: .8rem;
}
.pied__liens { list-style: none; margin: 0; padding: 0; }
.pied__liens li { margin-bottom: .3rem; }
.pied__signature {
    width: var(--large); margin: 3rem auto 0; padding-top: 1.2rem;
    border-top: 1px solid rgba(246, 241, 231, .18);
    font-size: .78rem; color: rgba(246, 241, 231, .6);
}

@media (max-width: 720px) {
    .mot { columns: 1; }
    .contact { grid-template-columns: 1fr; }
    .entete__barre { gap: .8rem; }
    .entete__etat { width: 100%; }
    .hero__choix { margin-top: 1rem; }
    .hero__choix label { width: calc(33.333% - .6rem); }
}
