/* Ambretau — feuille de style du site
   Inspiration : champagne-pouillon.com (#20). Fond craie, taupe et brun sombre,
   grands titres en serif, petits surtitres en capitales espacées, beaucoup d'air. */

/* Polices hébergées sur le site (licence OFL, fichiers dans /fonts) */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
    --fond: #f4ebdf;      /* crème, le fond du logo */
    --taupe: #b8a999;     /* bandeaux */
    --taupe-clair: #e4dacd;
    --encre: #2e2321;     /* texte */
    --marque: #50221c;    /* brun du logo */
    --vert: #4a5d36;
    --serif: "Cormorant Garamond", Garamond, Georgia, serif;
    --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
    --large: 72rem;
    --etroit: 40rem;
}
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
    background: var(--fond); color: var(--encre);
    font-family: var(--serif); font-size: 1.25rem; line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }

/* Petites capitales espacées : menu, surtitres, boutons, fil d'Ariane */
.entete nav, .surtitre, .bouton, .fil, .dispo, .compte, footer, .cookie-actions button {
    font-family: var(--sans); font-size: .75rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase;
}

/* En-tête et menu */
.entete { width: 100%; padding: 1.75rem 1.5rem 0; text-align: center; border-bottom: 1px solid rgba(46, 35, 33, .15); }
.marque img { width: 100%; max-width: 13rem; }
.entete ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; gap: .25rem 2.5rem; justify-content: center; flex-wrap: wrap; }
.entete nav a { display: inline-block; text-decoration: none; padding: .5rem 0 1rem; border-bottom: 1px solid transparent; }
.entete nav a:hover, .entete nav a[aria-current] { border-bottom-color: var(--encre); }

main { flex: 1; max-width: var(--large); width: 100%; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); margin: .25rem 0 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin: 3.5rem 0 1.25rem; }
h3 { font-size: 1.5rem; }
.surtitre { margin: 0 0 .75rem; color: var(--marque); }
.chapo { font-size: 1.45rem; line-height: 1.45; max-width: var(--etroit); }
.petit { font-size: 1.05rem; opacity: .85; }
.fil { margin: 0 0 1.5rem; opacity: .75; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.encart { border-left: 1px solid var(--marque); padding: .25rem 0 .25rem 1.5rem; max-width: var(--etroit); font-style: italic; }

/* Bandeau pleine largeur, sorti du conteneur central */
.bandeau { width: 100vw; margin-left: calc(50% - 50vw); padding: 5rem 1.5rem; }
.bandeau > * { max-width: var(--large); margin-left: auto; margin-right: auto; }
.bandeau-taupe { background: var(--taupe); }
.bandeau-sombre { background: var(--encre); color: var(--fond); }
.bandeau-sombre .surtitre { color: var(--taupe); }

/* Boutons : rectangles fins */
.actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.bouton {
    display: inline-block; padding: 1rem 2rem; border: 1px solid currentColor;
    background: var(--encre); border-color: var(--encre); color: var(--fond); text-decoration: none;
    transition: background-color .2s, color .2s;
}
.bouton:hover, .bouton:focus { background: transparent; color: var(--encre); }
.bouton-clair { background: transparent; color: var(--encre); }
.bouton-clair:hover, .bouton-clair:focus { background: var(--encre); color: var(--fond); }
.bandeau-sombre .bouton { background: var(--fond); border-color: var(--fond); color: var(--encre); }
.bandeau-sombre .bouton:hover, .bandeau-sombre .bouton:focus { background: transparent; color: var(--fond); }

/* Accueil */
main:has(.accueil) { padding-top: 0; }
.accueil { text-align: center; padding: 7rem 1.5rem 6rem; }
.accueil h1 { max-width: 48rem; margin-left: auto; margin-right: auto; }
.accueil .chapo { margin: 0 auto 2.5rem; }
.accueil .actions { justify-content: center; }
.titre-section { text-align: center; }
.titre-section h2 { margin-top: 0; }
.gammes { list-style: none; padding: 0; margin: 3rem auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); border-top: 1px solid rgba(46, 35, 33, .2); }
.gammes li { border-bottom: 1px solid rgba(46, 35, 33, .2); }
.gammes a { display: block; padding: 1.5rem .5rem; text-decoration: none; font-size: 1.6rem; text-align: center; transition: background-color .2s; }
.gammes a:hover { background: var(--taupe-clair); }
.accueil-commander { text-align: center; }
.accueil-commander .chapo { margin: 0 auto 2.5rem; }
.accueil-commander h2 { margin-top: 0; }

/* Boutique : liste des gammes */
.gammes-detail { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0 3rem; }
.gammes-detail li { border-top: 1px solid rgba(46, 35, 33, .2); padding: 1.75rem 0 2.25rem; }
.gammes-detail h2 { margin: 0 0 .5rem; font-size: 2rem; }
.gammes-detail h2 a { text-decoration: none; }
.gammes-detail h2 a:hover { text-decoration: underline; }
.gammes-detail p { margin: .25rem 0 .75rem; }
.compte { opacity: .7; }

/* Cartes produit */
.cartes { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 3rem 2rem; }
.carte a { text-decoration: none; }
.carte h3 { margin: 1.1rem 0 .4rem; }
.carte a:hover h3 { text-decoration: underline; }
.carte p { margin: 0; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-vide { display: flex; align-items: center; justify-content: center; background: var(--taupe-clair); }
.photo-vide span { font-style: italic; font-size: 1.4rem; opacity: .55; }
.dispo { opacity: .7; }
.dispo-oui { opacity: 1; color: var(--vert); }
.prix { font-family: var(--serif); font-size: 1.2rem; margin-left: .5rem; }

/* Fiche produit */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
.fiche h1 { margin-top: 0; }
.infos { display: grid; grid-template-columns: auto 1fr; gap: 0 2rem; margin: 2rem 0; border-top: 1px solid rgba(46, 35, 33, .2); }
.infos dt, .infos dd { padding: .75rem 0; border-bottom: 1px solid rgba(46, 35, 33, .2); margin: 0; }
.infos dt { font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; align-self: stretch; display: flex; align-items: center; }
.infos .prix { margin-left: 0; }
@media (max-width: 48rem) {
    .fiche { grid-template-columns: 1fr; gap: 2rem; }
    .fiche .photo { max-width: 18rem; }
    .entete ul { gap: .25rem 1rem; }
    .entete nav { letter-spacing: .1em; }
    .gammes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gammes a { font-size: 1.3rem; padding: 1.1rem .25rem; }
    .accueil { padding: 4rem 0 3.5rem; }
    .bandeau { padding: 3.5rem 1.5rem; }
    main { padding-top: 2rem; }
}

/* Pages de texte et articles */
.texte { max-width: var(--etroit); margin: 0 auto; }
.texte h2 { font-size: 1.9rem; margin-top: 2.5rem; }
.liste-articles { list-style: none; padding: 0; max-width: 48rem; }
.liste-articles li { border-top: 1px solid rgba(46, 35, 33, .2); padding: 1.5rem 0; }
.liste-articles h2 { margin: 0 0 .25rem; font-size: 1.9rem; }
.liste-articles h2 a { text-decoration: none; }
.liste-articles h2 a:hover { text-decoration: underline; }
.liste-articles p { margin: .25rem 0; }

/* Pied de page */
footer { background: var(--encre); color: var(--fond); text-align: center; padding: 3rem 1.5rem; line-height: 2.2; }
footer p { margin: 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
footer button:hover { text-decoration: underline; }

/* Bandeau cookies */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin: 0 auto;
    background: var(--encre); color: var(--fond); padding: 1.25rem 1.5rem;
    font-size: 1.1rem; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: inherit; margin: 0 0 1rem; }
.cookie-actions { display: flex; gap: .75rem; justify-content: flex-end; }
.cookie-actions button { padding: .7rem 1.25rem; cursor: pointer; border: 1px solid var(--fond); background: none; color: var(--fond); }
.cookie-actions button[data-consent="granted"] { background: var(--fond); color: var(--encre); }
.accueil-commander .actions { justify-content: center; }
.liste-centree { margin: 2rem auto 0; }
