@import url("../fonts/fonts.css");

/* ==========================================================================
   Cognac Billy — Joël et Olivier
   Palette et typographie reprises du dépliant 2026.
   ========================================================================== */

:root {
  --noir: #231f20;
  --noir-profond: #171214;
  --bordeaux: #6e1124;
  --bordeaux-clair: #8a2138;
  --or: #b8862b;
  --or-clair: #e0a02a;
  --creme: #faf6f0;
  --sable: #e5d8c5;
  --sable-fonce: #ded0bd;
  --texte: #2c2724;
  --texte-doux: #5f574f;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --page: 1180px;
  --gouttiere: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.est-bloque { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
sup { font-size: .56em; line-height: 0; vertical-align: .55em; }

a { color: var(--bordeaux); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--or); }

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

/* --- Titres --------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0;
  color: var(--noir);
}

h2 { font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }

.surtitre {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1.1rem;
}

.chapeau {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  line-height: 1.55;
  color: var(--texte-doux);
  max-width: 46ch;
}

.filet {
  width: 58px;
  height: 1px;
  background: var(--or);
  border: 0;
  margin: 2rem 0;
}

/* --- Structure ------------------------------------------------------------ */

.contenu {
  width: min(100% - var(--gouttiere) * 2, var(--page));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section--sable { background: var(--sable); }

/* Grain de papier sur toute la page : donne de la matière au fond crème
   sans ajouter de requête (motif SVG généré à la volée). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Lavis de fûts, repris du dépliant, sous les sections sable. */
.section--sable::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/texture-futs.webp");
  background-size: cover;
  background-position: center 40%;
  opacity: .1;
  filter: sepia(1) saturate(1.4) brightness(.78) blur(2px);
  scale: 1.02; /* compense le débord du flou sur les bords */
}

/* Fond photographique d'une section sombre : la photo très adoucie porte la
   lumière et la couleur, le dégradé par-dessus garantit la lisibilité. */
.section--cepage::before,
.section--cepage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section--cepage::before {
  background-image: url("../img/fond-cepage.webp");
  background-size: cover;
  background-position: center 45%;
  opacity: .85;
}

.section--cepage::after {
  background:
    radial-gradient(ellipse 65% 60% at 30% 40%, rgba(110, 17, 36, .16) 0%, rgba(23, 18, 20, 0) 72%),
    linear-gradient(180deg, rgba(23, 18, 20, .84) 0%, rgba(23, 18, 20, .56) 45%, rgba(23, 18, 20, .88) 100%);
}
.section--sombre { background: var(--noir-profond); color: #e8e0d6; }
.section--sombre h2,
.section--sombre h3 { color: #f4ece1; }
.section--sombre .chapeau { color: #c6bbad; }

.lien-saut {
  position: absolute;
  left: -9999px;
  background: var(--noir);
  color: var(--creme);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.lien-saut:focus { left: 1rem; top: 1rem; }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(35, 31, 32, .09);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.entete__logo img { width: clamp(132px, 16vw, 168px); }

.nav__liste {
  display: flex;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__liste a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.nav__liste a:hover,
.nav__liste a:focus-visible { color: var(--bordeaux); border-bottom-color: var(--or); }

.nav__bouton {
  display: none;
  background: none;
  border: 1px solid rgba(35, 31, 32, .22);
  color: var(--noir);
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .55rem .95rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav__bouton { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--creme);
    border-bottom: 1px solid rgba(35, 31, 32, .12);
    display: none;
  }
  .nav[data-ouvert="true"] { display: block; }
  .nav__liste {
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gouttiere) 1.5rem;
  }
  .nav__liste a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(35, 31, 32, .08);
  }
}

/* --- Bandeau d'accueil ---------------------------------------------------- */

.heros {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: min(84vh, 720px);
  padding-block: clamp(4rem, 12vw, 7rem);
  background: var(--noir-profond);
  color: #f0e8dd;
  overflow: hidden;
  isolation: isolate;
}

/* Deux couches : la photo du chai, très adoucie, pour la lumière et la
   couleur ; la trame de fûts du dépliant, en filigrane, pour le grain. */
.heros__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-chai.webp");
  background-size: cover;
  background-position: center;
  opacity: .8;
}

.heros__fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/texture-futs.webp");
  background-size: cover;
  background-position: center 45%;
  mix-blend-mode: overlay;
  opacity: .14;
  filter: blur(1.5px);
}

.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(110, 17, 36, .22) 0%, rgba(23, 18, 20, 0) 70%),
    linear-gradient(180deg, rgba(23, 18, 20, .82) 0%, rgba(23, 18, 20, .55) 42%, rgba(23, 18, 20, .92) 100%);
}

.heros__logo {
  width: clamp(212px, 28vw, 320px);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.heros h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.7rem);
  color: #f6efe4;
  max-width: 26ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* Filet de séparation entre les deux lignes du titre d'accueil. Dégradé
   plutôt que trait plein : les extrémités ne coupent pas net sur la photo. */
.heros__filet {
  display: block;
  width: clamp(64px, 9vw, 96px);
  height: 1px;
  margin: clamp(.95rem, 1.8vw, 1.5rem) auto;
  background: linear-gradient(90deg,
    rgba(224, 160, 42, 0) 0%,
    var(--or-clair) 50%,
    rgba(224, 160, 42, 0) 100%);
}

.heros__sous-titre {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin: 1.6rem 0 0;
}

.heros__mention {
  margin: 2.4rem auto 0;
  max-width: 44ch;
  color: #cabfb1;
  font-size: .97rem;
}

.heros__defile {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(240, 232, 221, .5);
  text-decoration: none;
}

/* --- Emplacement vidéo ---------------------------------------------------- */

.video__cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--noir-profond);
  border: 1px solid rgba(184, 134, 43, .35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video__cadre video,
.video__cadre iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video__attente {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  color: #cdbfad;
  isolation: isolate;
}

.video__attente::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/texture-futs.webp");
  background-size: cover;
  background-position: center;
  opacity: .22;
  filter: sepia(1) saturate(1.4) brightness(.6);
  z-index: -1;
}

.video__pastille {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  border: 1px solid var(--or);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--or-clair);
  font-size: 1.1rem;
}

.video__legende {
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.video__titre {
  margin: 1.1rem 0 0;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* --- Blocs en deux colonnes ---------------------------------------------- */

.duo {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo--inverse .duo__visuel { order: -1; }
}

.duo__texte p { max-width: 54ch; }

.duo__visuel img {
  width: 100%;
  filter: saturate(.94);
}

.duo__visuel figcaption {
  margin-top: .9rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.cadre-or { border: 1px solid rgba(184, 134, 43, .4); padding: .6rem; }

/* --- Étapes d'élaboration ------------------------------------------------- */

.etapes {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  counter-reset: etape;
}

@media (min-width: 720px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .etapes { grid-template-columns: repeat(4, 1fr); } }

.etape { border-top: 1px solid rgba(184, 134, 43, .45); padding-top: 1.4rem; }

.etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--or);
  margin-bottom: .6rem;
}

.etape h3 { margin-bottom: .5rem; }
.etape p { margin: 0; font-size: .96rem; color: var(--texte-doux); }
.section--sombre .etape p { color: #bdb2a4; }

/* --- Gamme ---------------------------------------------------------------- */

.gamme {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}

.cognac { text-align: center; }

.cognac__visuel {
  height: clamp(250px, 26vw, 320px);
  margin-bottom: 1.6rem;
}

.cognac__visuel picture { display: block; height: 100%; }

.cognac__visuel img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Les carafes sont plus basses que les bouteilles : on conserve le rapport
   de hauteur réel entre les contenants plutôt que de tout caler à la même
   hauteur de boîte. */
.cognac__visuel[data-format="carafe"] img { height: 84%; }

.cognac h3 { font-size: 1.45rem; }

.cognac__mention {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or);
  margin: .55rem 0 .9rem;
}

.cognac__details {
  margin: 0;
  font-size: .9rem;
  color: var(--texte-doux);
  line-height: 1.65;
}

.gamme__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(35, 31, 32, .12);
  font-size: .95rem;
  color: var(--texte-doux);
  max-width: 68ch;
}

/* --- Bande de vignettes --------------------------------------------------- */

.vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.vignettes figure { margin: 0; }
.vignettes img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vignettes figcaption {
  margin-top: .75rem;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

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

.contact {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }

.coordonnees {
  font-style: normal;
  display: grid;
  gap: 1.6rem;
}

.coordonnees address { font-style: normal; }

.coordonnees dt {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .35rem;
}

.coordonnees dd { margin: 0; font-size: 1.05rem; }
.coordonnees a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(184, 134, 43, .5); }
.coordonnees a:hover { color: var(--or-clair); }

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

.pied {
  background: var(--noir-profond);
  color: #b6aa9c;
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  font-size: .9rem;
}

.pied__haut {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 760px) { .pied__haut { grid-template-columns: 1fr auto; } }

.pied__logo img { width: 190px; }
.pied__adresse { margin-top: 1.2rem; }

.pied__liens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pied a { color: #d6c9b9; text-decoration: none; border-bottom: 1px solid rgba(184, 134, 43, .4); }
.pied a:hover { color: var(--or-clair); }

.avertissement {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(184, 134, 43, .45);
  text-align: center;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e2d6c6;
}

.pied__bas {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .8rem;
  color: #8d8276;
}

/* --- Contrôle de l'âge ---------------------------------------------------- */

.porte {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--noir-profond);
  display: grid;
  place-items: center;
  padding: var(--gouttiere);
  text-align: center;
  color: #e9e0d4;
}

.porte[hidden] { display: none; }

.porte__fond {
  position: absolute;
  inset: 0;
  background-image: url("../img/texture-futs.webp");
  background-size: cover;
  background-position: center;
  opacity: .1;
  filter: sepia(.5);
}

.porte__boite { position: relative; max-width: 30rem; }
.porte__logo { width: 210px; margin: 0 auto 2.4rem; }
.porte h2 { color: #f4ece1; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.porte p { color: #bfb3a4; font-size: .95rem; }

.porte__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.bouton {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .95rem 2rem;
  border: 1px solid var(--or);
  background: var(--or);
  color: var(--noir-profond);
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.bouton:hover { background: transparent; color: var(--or-clair); }

.bouton--fantome { background: transparent; color: #d9cdbd; border-color: rgba(217, 205, 189, .45); }
.bouton--fantome:hover { border-color: var(--or); color: var(--or-clair); }

.porte__refus { margin-top: 2rem; font-size: .88rem; }

/* --- Pages de texte (mentions légales, confidentialité) ------------------- */

.page-texte { padding-block: clamp(3rem, 8vw, 6rem); }
.page-texte .contenu { max-width: 74ch; }
.page-texte h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 2.5rem; }
.page-texte h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); margin-top: 3rem; margin-bottom: .9rem; }
.page-texte h3 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: .5rem; }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte ul { padding-left: 1.2rem; }
.page-texte li { margin-bottom: .5rem; }

.maj-date { margin-top: 3rem; }

.a-completer {
  background: rgba(184, 134, 43, .16);
  border-bottom: 1px dashed var(--or);
  padding: 0 .25rem;
  font-style: italic;
}

/* --- Apparition douce au défilement --------------------------------------- */

.revele {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .8s ease, translate .8s ease;
}
.revele.est-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; translate: 0 0; }
}

@media print {
  .entete, .pied__liens, .porte, .heros__defile { display: none; }
  body { background: #fff; color: #000; }
}
