/* =========================================================
   Charte « Cep à cep » — Domaine Les Noyers
   ========================================================= */
:root {
  --lin: #F4EEE4;
  --sable: #E8DFD0;
  --ivoire: #FBF7F0;
  --brun-schiste: #2E2622;
  --carignan: #8E2B22;
  --laiton: #A07E4A;
  --bordure: #E2D6C3;

  --cuvee-grand-pere: #5A3B2B;
  --cuvee-carignan: #8E2B22;
  --cuvee-grenache: #B5653A;
  --cuvee-copines: #D6A79C;
  --cuvee-gourmandise: #C0904A;
  --cuvee-amphora: #8C7A68;

  --font-titre: 'Bodoni Moda', Georgia, serif;
  --font-texte: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --sidebar: 264px;
  --gutter: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--lin);
  color: var(--brun-schiste);
  font-family: var(--font-texte);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--carignan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brun-schiste); }
h1, h2, h3 { font-family: var(--font-titre); font-weight: 400; margin: 0; }
p { margin: 0 0 16px; max-width: 65ch; }
em { font-style: italic; color: var(--carignan); }
:focus-visible { outline: 2px solid var(--carignan); outline-offset: 3px; }

/* ---------- Typographie ---------- */
.surtitre {
  font-family: var(--font-texte); font-weight: 500; font-size: 13px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--carignan);
  margin: 0 0 16px; display: flex; align-items: center; gap: 12px;
}
.h2 { font-size: 40px; line-height: 1.15; margin-bottom: 24px; display: block; }
.h2 .ico { width: 40px; height: 40px; display: inline-block; vertical-align: -6px; margin-right: 14px; }
.ico { stroke: var(--laiton); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.lead { font-size: 20px; }
.small { font-size: 13px; font-weight: 400; }
.sanitaire { font-size: 12px; font-weight: 400; margin: 16px 0 0; color: var(--brun-schiste); }
.avalider {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .08em;
  color: var(--carignan); border: 1px dashed var(--carignan); padding: 0 6px; margin-left: 4px;
  vertical-align: middle; line-height: 1.7; text-transform: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px; border: 1px solid var(--brun-schiste);
  background: var(--brun-schiste); color: var(--lin);
  font-family: var(--font-texte); font-weight: 400; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border-radius: 0; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--carignan); border-color: var(--carignan); color: var(--lin); }
.btn--sec { background: transparent; border-color: var(--carignan); color: var(--carignan); }
.btn--sec:hover { background: var(--carignan); color: var(--lin); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ---------- Frise des cuvées ---------- */
.frise { display: flex; gap: 6px; margin: 24px 0; }
.frise span { width: 36px; height: 6px; display: block; }
.frise span:nth-child(1) { background: var(--cuvee-grand-pere); }
.frise span:nth-child(2) { background: var(--cuvee-carignan); }
.frise span:nth-child(3) { background: var(--cuvee-grenache); }
.frise span:nth-child(4) { background: var(--cuvee-copines); }
.frise span:nth-child(5) { background: var(--cuvee-gourmandise); }
.frise span:nth-child(6) { background: var(--cuvee-amphora); }

/* ---------- Menu latéral ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 50;
  background: var(--ivoire); border-right: 1px solid var(--bordure);
  display: flex; flex-direction: column; padding: 32px 24px 24px; overflow-y: auto;
}
.logo-court { font-family: var(--font-titre); font-size: 28px; color: var(--brun-schiste); text-decoration: none; line-height: 1.1; }
.logo-court em { color: var(--brun-schiste); }
.logo-court small {
  display: block; font-family: var(--font-texte); font-weight: 400; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; color: var(--brun-schiste);
}
.filet { height: 1px; background: var(--laiton); border: 0; margin: 24px 0; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 44px;
  font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brun-schiste); text-decoration: none; border-left: 2px solid transparent;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.nav a .ico { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: var(--lin); color: var(--carignan); }
.nav a.is-active { border-left-color: var(--carignan); color: var(--carignan); background: var(--lin); }
.sidebar .btn { width: 100%; margin-top: 24px; }
.side-foot { margin-top: auto; padding-top: 24px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--bordure);
  transition: border-color .25s ease, background .25s ease;
}
.socials a:hover { border-color: var(--carignan); background: var(--lin); }
.socials .ico { width: 20px; height: 20px; stroke: var(--brun-schiste); }
.lang { margin-top: 16px; font-size: 12px; letter-spacing: .22em; font-weight: 400; }
.lang a { text-decoration: none; color: var(--brun-schiste); }
.lang a[aria-current] { color: var(--carignan); text-decoration: underline; }

/* ---------- Logo cep (fusain, noir sur blanc) ---------- */
.logo-cep { display: block; border-radius: 50%; background: #fff; flex: none; }
.side-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.side-brand .logo-cep { width: 64px; height: 64px; }
.side-brand .logo-court small { letter-spacing: .16em; white-space: normal; font-size: 10px; line-height: 1.6; margin-top: 6px; }
.sidebar .btn { padding: 0 12px; white-space: nowrap; letter-spacing: .18em; }
.hero .logo-cep { width: 112px; height: 112px; margin-bottom: 24px; }
.devise { text-align: center; margin: 96px auto 0; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.devise .logo-cep { width: 140px; height: 140px; }
.devise blockquote { margin: 0; font-family: var(--font-titre); font-size: 34px; line-height: 1.3; }
.devise cite { font-style: normal; font-size: 13px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--carignan); }
.reseau .logo-cep { width: 88px; height: 88px; outline: 1px solid var(--laiton); outline-offset: 4px; }
.logo-complet .logo-cep { width: 96px; height: 96px; margin: 0 auto 16px; }
.topbar .side-brand .logo-cep { width: 40px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .logo-cep { animation: rise .9s ease both; }
  .side-brand .logo-cep, .devise .logo-cep { transition: transform .6s ease; }
  .side-brand:hover .logo-cep, .devise:hover .logo-cep { transform: rotate(-6deg); }
}

/* barre mobile */
.topbar { display: none; }

/* ---------- Mise en page ---------- */
main { margin-left: var(--sidebar); }
.section { padding: 96px var(--gutter); }
.section--sable { background: var(--sable); }
.wrap { max-width: 1200px; margin: 0 auto; }
.sep { max-width: 1200px; margin: 0 auto; height: 1px; background: var(--laiton); }

/* Lecture en Z : en-tête (titre à gauche, action à droite) puis rangées alternées */
.z-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.z-head p { margin: 0; }
.z-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 64px; }
.z-row:last-child { margin-bottom: 0; }
.z-row.reverse .z-media { order: 2; }
.z-media { overflow: hidden; border: 1px solid var(--bordure); background: var(--ivoire); }
.z-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.z-media.portrait img { aspect-ratio: 4/5; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 92vh; align-items: center; }
.hero-text { padding: 40px var(--gutter) 96px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 72px; line-height: 1.02; margin-bottom: 8px; }
.hero h1 em { display: block; }
/* Photo d'accueil encadrée : marges tout autour + filet laiton décalé */
.hero-media { position: relative; margin: 72px var(--gutter) 72px 16px; }
.hero-media::before { content: ""; position: absolute; inset: -16px; border: 1px solid var(--laiton); pointer-events: none; }
.hero-frame { position: relative; overflow: hidden; height: min(72vh, 680px); min-height: 380px; border: 1px solid var(--bordure); background: var(--ivoire); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Bandeau photo en haut de l'accueil (coucher de soleil sur les vignes) */
.photo-bandeau { position: relative; height: 240px; overflow: hidden; border-bottom: 1px solid var(--laiton); }
.photo-bandeau img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; filter: saturate(1.5) contrast(1.15) brightness(1.03); }
.photo-bandeau::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(to bottom, rgba(51,54,58,0), rgba(51,54,58,.9)); /* gris anthracite */ pointer-events: none; }

/* ---------- Choix rapide ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.quick a { display: flex !important; flex-direction: column; }
.quick .go { margin-top: auto; }
.quick h3 { font-size: 26px !important; }
/* Séminaires & groupes */
.formats { margin-top: 64px; }
.formats .card h3 { font-size: 28px; font-style: italic; margin-bottom: 8px; }
.formats .ico { width: 40px; height: 40px; margin-bottom: 16px; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bordure); background: var(--ivoire); margin: 24px 0 0; }
.chiffres div { padding: 20px; border-right: 1px solid var(--bordure); }
.chiffres div:last-child { border-right: 0; }
.chiffres b { display: block; font-family: var(--font-titre); font-weight: 400; font-style: italic; font-size: 34px; color: var(--carignan); line-height: 1.1; }
.chiffres span { font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.process { margin-top: 64px; }
.quick a {
  display: block; padding: 32px; background: var(--ivoire); border: 1px solid var(--bordure);
  text-decoration: none; color: var(--brun-schiste);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.quick a:hover { border-color: var(--carignan); }
.quick .ico { width: 44px; height: 44px; margin-bottom: 16px; }
.quick h3 { font-size: 28px; font-style: italic; margin-bottom: 8px; }
.quick p { font-size: 17px; margin: 0 0 16px; }
.quick .go { font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--carignan); }

/* ---------- Cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card { background: var(--ivoire); border: 1px solid var(--bordure); position: relative; display: flex; flex-direction: column; }
.card-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.card-media { overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* Carte gîte : bande supérieure 6 px */
.gite { border-top: 6px solid var(--band); }
.gite h3 { font-size: 34px; font-style: italic; margin-bottom: 8px; }
.gite .meta { font-weight: 400; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 17px; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points li::before { content: ""; width: 12px; height: 1px; background: var(--laiton); margin-top: 14px; flex: none; }
.card .btns { margin-top: auto; padding-top: 8px; gap: 12px; }
.card .btn { padding: 0 20px; flex: 1 1 auto; }

/* Carte cuvée : bande verticale 12 px à gauche */
.cuvee { border-left: 12px solid var(--band); padding: 32px; }
.cuvee .surtitre { font-size: 12px; margin-bottom: 8px; }
.cuvee h3 { font-size: 40px; font-style: italic; line-height: 1.1; margin-bottom: 8px; }
.cuvee .cepages { margin: 0 0 8px; }
.cuvee .desc { font-size: 17px; }
.cuvee img { width: 96px; aspect-ratio: 4/5; object-fit: cover; float: right; margin: 0 0 12px 16px; border: 1px solid var(--bordure); }
.cuvee:has(img.bouteille) { padding-right: 124px; min-height: 280px; }
.cuvee img.bouteille { position: absolute; top: 28px; right: 32px; width: auto; height: 220px; aspect-ratio: auto; object-fit: contain; border: 0; margin: 0; filter: drop-shadow(0 8px 10px rgba(46,38,34,.18)); }

/* Comparatif */
.compare { width: 100%; border-collapse: collapse; background: var(--ivoire); border: 1px solid var(--bordure); font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--font-titre); font-style: italic; font-size: 24px; font-weight: 400; }
.compare tbody th { font-weight: 400; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; width: 24%; }
.table-wrap { overflow-x: auto; margin-top: 48px; }

/* ---------- Parcours de réservation ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--bordure); background: var(--ivoire); }
.step { padding: 32px; border-right: 1px solid var(--bordure); }
.step:last-child { border-right: 0; }
.step-num { font-family: var(--font-titre); font-style: italic; font-size: 40px; color: var(--carignan); line-height: 1; }
.step h3 { font-family: var(--font-texte); font-weight: 500; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; margin: 12px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; padding: 0 18px; border: 1px solid var(--bordure); background: var(--lin);
  font-family: var(--font-texte); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brun-schiste); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--carignan); }
.chip[aria-pressed="true"] { background: var(--brun-schiste); border-color: var(--brun-schiste); color: var(--lin); }
.stepper { display: flex; align-items: center; gap: 0; margin-top: 20px; border: 1px solid var(--bordure); width: max-content; }
.stepper button { width: 48px; height: 48px; border: 0; background: var(--lin); font-size: 20px; cursor: pointer; color: var(--brun-schiste); }
.stepper button:hover { background: var(--sable); }
.stepper output { min-width: 120px; text-align: center; font-size: 15px; font-weight: 400; }
.pick { display: grid; gap: 10px; }
.pick label {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--lin);
  border: 1px solid var(--bordure); border-left: 6px solid var(--band); cursor: pointer; transition: border-color .2s, opacity .2s;
}
.pick input { accent-color: var(--carignan); width: 18px; height: 18px; }
.pick .nm { font-family: var(--font-titre); font-style: italic; font-size: 22px; line-height: 1.1; }
.pick .cap { font-size: 13px; font-weight: 400; display: block; }
.pick label.is-off { opacity: .4; }
.pick label.is-reco { border-color: var(--carignan); }
.pick .badge { margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--carignan); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--bordure); background: var(--lin);
  font-family: var(--font-texte); font-size: 16px; font-weight: 300; color: var(--brun-schiste); border-radius: 0; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--carignan); outline: none; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recap {
  margin-top: 32px; padding: 24px 32px; background: var(--brun-schiste); color: var(--lin);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.recap p { margin: 0; }
.recap strong { font-family: var(--font-titre); font-style: italic; font-weight: 400; font-size: 26px; }
.recap .btn { background: var(--lin); color: var(--brun-schiste); border-color: var(--lin); }
.recap .btn:hover { background: var(--carignan); color: var(--lin); border-color: var(--carignan); }
.recap .btn--sec { background: transparent; color: var(--lin); border-color: var(--lin); }
.saison { margin-top: 24px; font-size: 15px; }

/* ---------- Offres ---------- */
.offre .ico { width: 40px; height: 40px; margin-bottom: 16px; }
.offre h3 { font-size: 30px; font-style: italic; margin-bottom: 8px; }
.offre .meta { font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Carte Google ---------- */
.map { border: 1px solid var(--bordure); background: var(--ivoire); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: sepia(.25) saturate(.85); }
.adresse { font-style: normal; }
.adresse dt { font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; margin-top: 16px; }
.adresse dd { margin: 0; }

/* ---------- Réseaux ---------- */
.reseau { display: flex; gap: 24px; align-items: flex-start; padding: 32px; }
.reseau .mono {
  width: 88px; height: 88px; flex: none; border-radius: 50%; background: var(--brun-schiste);
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--brun-schiste), 0 0 0 4px var(--laiton);
  outline: 1px solid var(--laiton); outline-offset: -8px;
  font-family: var(--font-titre); font-style: italic; font-size: 30px; color: var(--lin);
}
.reseau h3 { font-size: 28px; font-style: italic; display: flex; align-items: center; gap: 10px; }
.reseau h3 .ico { width: 26px; height: 26px; }
.handle { font-size: 15px; font-weight: 400; letter-spacing: .06em; margin: 4px 0 16px; }

/* ---------- FAQ ---------- */
.search {
  display: flex; align-items: center; gap: 12px; background: var(--ivoire); border: 1px solid var(--bordure);
  padding: 0 16px; margin-bottom: 16px; transition: border-color .2s;
}
.search:focus-within { border-color: var(--carignan); }
.search .ico { width: 22px; height: 22px; flex: none; }
.search input { flex: 1; min-height: 60px; border: 0; background: transparent; font-family: var(--font-texte); font-size: 18px; font-weight: 300; color: var(--brun-schiste); outline: none; }
.search button { border: 0; background: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; color: var(--carignan); min-height: 44px; }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.faq-count { font-size: 13px; font-weight: 400; margin-bottom: 16px; }
.faq-group h3 { font-family: var(--font-texte); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--carignan); margin: 32px 0 8px; }
.faq details { border-bottom: 1px solid var(--bordure); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-titre); font-size: 22px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-family: var(--font-texte); font-size: 26px; color: var(--carignan); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; font-size: 17px; }
.faq .ans p { margin-bottom: 8px; }
.faq mark { background: var(--sable); color: inherit; padding: 0 2px; }
.faq-empty { display: none; padding: 32px; background: var(--ivoire); border: 1px solid var(--bordure); }

/* ---------- Contact ---------- */
.form { background: var(--ivoire); border: 1px solid var(--bordure); padding: 40px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rgpd { font-size: 13px; font-weight: 400; margin: 8px 0 24px; display: flex; gap: 10px; align-items: flex-start; }
.rgpd input { margin-top: 4px; accent-color: var(--carignan); }
.form-ok { display: none; margin-top: 16px; font-size: 15px; }

/* ---------- Pied de page ---------- */
footer { background: var(--sable); padding: 80px var(--gutter) 40px; }
.foot { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.logo-complet { text-align: center; width: max-content; }
.logo-complet .l1 { font-family: var(--font-texte); font-weight: 400; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; }
.logo-complet .l2 { font-family: var(--font-titre); font-size: 44px; line-height: 1.1; }
.logo-complet .l2 em { color: var(--brun-schiste); }
.logo-complet .l3 { display: flex; align-items: center; gap: 12px; justify-content: center; font-size: 11px; font-weight: 400; letter-spacing: .3em; margin-top: 6px; }
.logo-complet .l3::before, .logo-complet .l3::after { content: ""; width: 48px; height: 1px; background: var(--laiton); }
footer h4 { font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 12px; color: var(--carignan); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.foot-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--laiton); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 400; }
.legal details { max-width: 1200px; margin: 24px auto 0; font-size: 14px; }
.legal summary { cursor: pointer; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; }

/* ---------- Dynamisme (adapté du script fourni) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .z-media img, .card-media img, .hero-media img { transition: transform .5s ease, filter .5s ease; }
  .z-media:hover img, .card:hover .card-media img, .hero-frame:hover img { transform: scale(1.04); filter: saturate(1.08); }
  .z-media, .hero-frame, .cuvee img { transition: box-shadow .5s ease, transform .5s ease; }
  .z-media:hover, .hero-frame:hover { box-shadow: 0 14px 34px rgba(46,38,34,.14); }
  .cuvee:hover img { transform: scale(1.05) rotate(-1deg); }
  .hero-media::before { transition: inset .6s ease; }
  .hero-media:hover::before { inset: -22px; }
  .card, .quick a, .z-media { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
  .card:hover, .quick a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(46,38,34,.10); }
  .tp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  .tp-reveal.tp-in { opacity: 1; transform: none; }
  .card.tp-in:hover, .quick a.tp-in:hover { transform: translateY(-4px); transition-delay: 0s; }
  .hero h1, .hero .surtitre, .hero .lead, .hero .btns, .hero .frise { animation: rise .9s ease both; }
  .hero .surtitre { animation-delay: .05s; } .hero h1 { animation-delay: .15s; }
  .hero .frise { animation-delay: .3s; } .hero .lead { animation-delay: .4s; } .hero .btns { animation-delay: .55s; }
  .hero-frame img { animation: zoomout 2.4s ease backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes zoomout { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .grid-3, .quick { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--bordure); }
  .hero h1 { font-size: 60px; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 60; background: var(--ivoire); border-bottom: 1px solid var(--bordure);
    align-items: center; justify-content: space-between; padding: 10px 20px;
  }
  .topbar .logo-court { font-size: 24px; }
  .burger { width: 48px; height: 48px; border: 1px solid var(--bordure); background: var(--lin); cursor: pointer; display: grid; place-items: center; }
  .burger span, .burger span::before, .burger span::after { width: 20px; height: 1px; background: var(--brun-schiste); display: block; position: relative; content: ""; }
  .burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
  .sidebar { transform: translateX(-100%); transition: transform .35s ease; width: min(320px, 86vw); box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(46,38,34,.35); }
  .sidebar .side-brand { display: none; }
  .hero .logo-cep { width: 88px; height: 88px; }
  .devise blockquote { font-size: 26px; }
  main { margin-left: 0; }
  .section { padding: 64px var(--gutter); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; margin: 30px 30px 14px; }
  .hero-media::before { inset: -10px; }
  .hero-frame { height: auto; min-height: 0; aspect-ratio: 4/3; }
  .hero-text { padding: 48px var(--gutter); }
  .photo-bandeau { height: 140px; }
  .hero h1 { font-size: 40px; }
  .h2 { font-size: 30px; } .h2 .ico { width: 32px; height: 32px; }
  .z-row, .grid-2, .grid-3, .quick, .foot, .form .row { grid-template-columns: 1fr; gap: 32px; }
  .z-row.reverse .z-media { order: 0; }
  .cuvee h3 { font-size: 30px; } .gite h3 { font-size: 28px; }
  .btns .btn { width: 100%; }
  .form { padding: 24px; }
  .recap { padding: 24px; }
  .recap .btns, .recap .btn { width: 100%; }
  .map iframe { height: 320px; }
  .reseau { flex-direction: column; }
  .chiffres { grid-template-columns: 1fr; }
  .chiffres div { border-right: 0; border-bottom: 1px solid var(--bordure); }
  .chiffres div:last-child { border-bottom: 0; }
}

/* Pied de page sur mobile */
@media (max-width: 860px){ .footer{ margin-left:0 !important; } }

/* ---------- Drapeaux de langue et logos des réseaux ---------- */
.flag { width: 21px; height: 14px; flex: none; box-shadow: 0 0 0 1px var(--bordure); }
.lang { display: flex; gap: 8px; }
.lang a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid transparent; }
.lang a[aria-current] { border-color: var(--bordure); background: var(--lin); text-decoration: none; }
.lang a:hover .flag, .top-lang:hover .flag { box-shadow: 0 0 0 1px var(--carignan); }
.brand { width: 24px; height: 24px; flex: none; display: block; }
.reseau h3 .brand { width: 28px; height: 28px; }
.foot-social { display: inline-flex; align-items: center; gap: 10px; }
.foot-social .brand { width: 20px; height: 20px; }
.top-lang { display: none; }
@media (max-width: 860px) {
  .top-lang {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 12px; min-height: 48px; padding: 0 12px;
    border: 1px solid var(--bordure); font-size: 12px; font-weight: 400; letter-spacing: .22em; color: var(--brun-schiste); text-decoration: none;
  }
}

/* Devise sur une seule ligne */
.devise { max-width: none; }
.devise blockquote { font-size: clamp(20px, 2.2vw, 34px); }
@media (min-width: 600px) { .devise blockquote { white-space: nowrap; } }


/* ---------- Bienvenue : sélecteur de saison ---------- */
.portes { list-style: none; padding: 0; margin: 0; }
.portes li { display: flex; }
.portes li > a { flex: 1; }
.saison-picker { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 32px; padding: 16px 0; border-top: 1px solid var(--laiton); border-bottom: 1px solid var(--laiton); }
.saison-ask { margin: 0; font-family: var(--font-titre); font-style: italic; font-size: 24px; }
.saison-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.saison-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 12px;
  background: transparent; border: 1px solid var(--bordure); cursor: pointer; color: var(--brun-schiste);
  font-family: var(--font-texte); transition: background .25s, border-color .25s, color .25s;
}
.saison-btn .ico { width: 28px; height: 28px; transition: transform .5s ease; }
.saison-btn .nm { font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.saison-btn .tr { font-weight: 300; font-size: 13px; letter-spacing: .04em; }
.saison-btn .now { display: none; position: absolute; top: -9px; right: 8px; background: var(--sable); padding: 0 6px; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--carignan); }
.saison-btn.is-now .now { display: block; }
.saison-btn:hover { border-color: var(--carignan); }
.saison-btn:hover .ico { transform: rotate(-8deg) scale(1.08); }
.saison-btn[aria-pressed="true"] { background: var(--brun-schiste); border-color: var(--brun-schiste); color: var(--lin); }
.saison-btn[aria-pressed="true"] .ico { stroke: var(--lin); }
.saison-txt { transition: opacity .35s ease, transform .35s ease; }
.saison-txt.is-changing { opacity: 0; transform: translateY(6px); }
@media (max-width: 860px) {
  .saison-btn .tr { display: none; }
  .saison-btns { width: 100%; }
  .saison-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .saison-txt { transition: none; } }

/* ---------- Galerie des gîtes ---------- */
.g-main { transition: opacity .3s ease; }
.g-main.is-changing { opacity: 0; }
.g-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 6px 0; }
.g-thumb { padding: 0; border: 1px solid var(--bordure); background: none; cursor: pointer; overflow: hidden; opacity: .7; transition: opacity .25s, border-color .25s; }
.g-thumb img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.g-thumb:hover, .g-thumb.is-on { opacity: 1; border-color: var(--carignan); }

/* Listes à puces : le texte et les repères « à valider » restent sur la même ligne de lecture */
.points li { display: block; position: relative; padding-left: 22px; }
.points li::before { position: absolute; left: 0; top: 13px; margin-top: 0; }

/* Piscine : galerie dans une rangée en Z */
.z-row.reverse .z-gal { order: 2; }
.z-gal .z-media { border-bottom: 0; }
.z-gal .g-thumbs { padding: 6px 0 0; }
@media (max-width: 860px) { .z-row.reverse .z-gal { order: 0; } }

/* Le domaine en images : mosaïque de photos réelles (grille fixe 4 × 3) */
.mosaique { display: grid; gap: 10px; margin: 72px 0 0;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto repeat(4, 210px);
  grid-template-areas: "titre titre titre titre" "pano pano grap faca" "cuve dame grap chev" "cuve bout bout verr" "soir soir trac trac"; }
.mosaique .surtitre { grid-area: titre; margin: 0; }
.mos { margin: 0; overflow: hidden; border: 1px solid var(--bordure); background: var(--ivoire); }
.mos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mos:nth-of-type(1) { grid-area: pano; } .mos:nth-of-type(2) { grid-area: grap; }
.mos:nth-of-type(3) { grid-area: faca; } .mos:nth-of-type(4) { grid-area: cuve; }
.mos:nth-of-type(5) { grid-area: dame; } .mos:nth-of-type(6) { grid-area: chev; }
.mos:nth-of-type(7) { grid-area: bout; } .mos:nth-of-type(8) { grid-area: verr; }
.mos:nth-of-type(9) { grid-area: soir; } .mos:nth-of-type(10) { grid-area: trac; }
@media (prefers-reduced-motion: no-preference) {
  .mos img { transition: transform .5s ease, filter .5s ease; }
  .mos:hover img { transform: scale(1.04); filter: saturate(1.08); }
}
@media (max-width: 860px) {
  .mosaique { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto repeat(7, 150px);
    grid-template-areas: "titre titre" "pano pano" "grap faca" "grap cuve" "dame cuve" "chev bout" "soir soir" "trac trac"; }
  .mos:nth-of-type(8) { display: none; }
}

/* =========================================================
   Touche « étiquette » : double filet laiton + repères d'angle
   (le laiton reste décoratif, jamais en texte ; angles droits)
   ========================================================= */
:root { --rose-cave: #D6A79C; }

/* Accueil : le cadre laiton devient un double filet, comme une étiquette ancienne */
.hero-media::before { box-shadow: inset 0 0 0 4px var(--lin), inset 0 0 0 5px var(--laiton); }

/* Cuvées : filet intérieur laiton, en retrait de la bordure */
.cuvee::after { content: ""; position: absolute; inset: 7px 7px 7px 5px; border: 1px solid rgba(160,126,74,.45); pointer-events: none; }

/* Photos : petites équerres laiton aux quatre coins */
.z-media, .hero-frame { position: relative; }
.z-media::after, .hero-frame::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 1;
  --c: rgba(251,247,240,.9); --l: 18px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .z-media::after, .hero-frame::after { transition: inset .5s ease; }
  .z-media:hover::after, .hero-frame:hover::after { inset: 18px; }
}

/* Section « cave » : la devise sur fond sombre, cadre étiquette */
.devise {
  position: relative; background: var(--brun-schiste); color: var(--ivoire);
  padding: 72px 48px 64px; margin-top: 96px;
  outline: 1px solid var(--laiton); outline-offset: -14px;
  box-shadow: inset 0 0 0 18px var(--brun-schiste), inset 0 0 0 19px rgba(160,126,74,.5);
}
.devise blockquote { color: var(--ivoire); }
.devise blockquote em, .devise em { color: var(--rose-cave); }
.devise cite { color: var(--rose-cave); }
.devise .logo-cep { box-shadow: 0 0 0 1px var(--laiton), 0 0 0 7px var(--brun-schiste), 0 0 0 8px rgba(160,126,74,.5); border-radius: 50%; }
@media (max-width: 860px) { .devise { padding: 56px 28px 48px; } }

/* =========================================================
   Menu latéral dynamique
   ========================================================= */
.nav a { position: relative; overflow: hidden; }
/* Filet laiton qui se dessine sous le libellé (décor, pas du texte) */
.nav a::after {
  content: ""; position: absolute; left: calc(var(--pl, 12px) + 32px); right: 12px; bottom: 9px; height: 1px;
  background: var(--laiton); transform: scaleX(0); transform-origin: left center;
}
/* Barre carignan à gauche qui pousse depuis le centre */
.nav a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--carignan); transform: scaleY(0);
}
.nav a.is-active { border-left-color: transparent; }
.nav a.is-active::before { transform: scaleY(1); }
.nav a.is-active::after { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  .nav a { transition: background .3s ease, color .3s ease, padding-left .35s cubic-bezier(.2,.7,.2,1), letter-spacing .35s ease; }
  .nav a::after { transition: transform .45s cubic-bezier(.2,.7,.2,1), left .35s cubic-bezier(.2,.7,.2,1); }
  .nav a::before { transition: transform .35s ease; }
  .nav a .ico { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .nav a:hover, .nav a:focus-visible { --pl: 18px; padding-left: 18px; letter-spacing: .26em; }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
  .nav a:hover .ico, .nav a:focus-visible .ico { transform: rotate(-8deg) scale(1.12); }

  /* Entrée en cascade : au chargement (bureau) et à l'ouverture du menu (mobile) */
  @keyframes navIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  .nav li, .sidebar > .btn, .side-foot { animation: navIn .6s cubic-bezier(.2,.7,.2,1) backwards; }
  .nav li:nth-child(1) { animation-delay: .10s; } .nav li:nth-child(2) { animation-delay: .14s; }
  .nav li:nth-child(3) { animation-delay: .18s; } .nav li:nth-child(4) { animation-delay: .22s; }
  .nav li:nth-child(5) { animation-delay: .26s; } .nav li:nth-child(6) { animation-delay: .30s; }
  .nav li:nth-child(7) { animation-delay: .34s; } .nav li:nth-child(8) { animation-delay: .38s; }
  .nav li:nth-child(9) { animation-delay: .42s; } .nav li:nth-child(10) { animation-delay: .46s; }
  .nav li:nth-child(11) { animation-delay: .50s; }
  .sidebar > .btn { animation-delay: .58s; } .side-foot { animation-delay: .66s; }
  @media (max-width: 860px) {
    .nav li, .sidebar > .btn, .side-foot { animation: none; }
    .sidebar.open .nav li, .sidebar.open > .btn, .sidebar.open .side-foot { animation: navIn .5s cubic-bezier(.2,.7,.2,1) backwards; }
    .sidebar.open .nav li:nth-child(n) { animation-delay: calc(.04s * var(--i, 0) + .12s); }
  }
}
/* Nom du domaine sur une seule ligne dans le menu */
.sidebar .side-brand { gap: 12px; }
.sidebar .side-brand .logo-cep { width: 56px; height: 56px; }
.sidebar .side-brand .logo-court { white-space: nowrap; font-size: 27px; }
.sidebar .side-brand .logo-court small { white-space: normal; }

/* ---------- Une histoire de famille (Le domaine) ---------- */
.famille { margin: 96px 0; }
.famille-intro { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.famille-intro p, .famille-titre, .famille-fin, .membre p { max-width: none; }
.famille-intro .surtitre { justify-content: center; }
.famille-intro p:last-child { font-size: 20px; }
.famille-groupe { margin-bottom: 56px; }
.famille-titre { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; font-family: var(--font-titre); font-style: italic; font-size: 28px; color: var(--carignan); }
.famille-titre::before, .famille-titre::after { content: ""; flex: 1; height: 1px; background: var(--laiton); opacity: .6; }
.membre { background: var(--ivoire); border: 1px solid var(--bordure); border-top: 3px solid var(--cuvee-grand-pere); padding: 32px; }
.famille-groupe--branches .membre { border-top-color: var(--laiton); }
.membre-role { font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--carignan); margin: 0 0 8px; }
.membre-nom { font-family: var(--font-titre); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 16px; }
.membre p:last-child { margin: 0; font-size: 17px; }
.famille-fin { max-width: 980px; margin: 0 auto; text-align: center; font-family: var(--font-titre); font-size: clamp(19px, 1.75vw, 24px); line-height: 1.45; text-wrap: balance; }
.famille-fin em { color: var(--carignan); }
@media (max-width: 1100px) { .famille-groupe--branches .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .famille { margin: 64px 0; } .membre { padding: 24px; } .famille-fin { font-size: 21px; } }

/* Phrase d’introduction des gîtes sur une seule ligne (ordinateur) */
.z-head p.une-ligne { max-width: none; white-space: nowrap; }
@media (max-width: 1200px) { .z-head p.une-ligne { white-space: normal; } }

/* Bandeau de trois photos de bouteilles (Nos vins) */
.vins-photos { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; gap: 10px; margin: 48px 0 0; }
.vins-photos figure { margin: 0; overflow: hidden; border: 1px solid var(--bordure); background: var(--ivoire); height: 380px; }
.vins-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vins-photos figure:nth-child(2) img { object-position: center 60%; }
@media (prefers-reduced-motion: no-preference) {
  .vins-photos img { transition: transform .5s ease; }
  .vins-photos figure:hover img { transform: scale(1.04); }
}
@media (max-width: 860px) {
  .vins-photos { grid-template-columns: 1fr 1fr; }
  .vins-photos figure { height: 240px; }
  .vins-photos figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
.z-gal .z-media.portrait img { aspect-ratio: 4/5; }

/* Photo de la cour sous l'adresse (Nous trouver) */
.acces-photo { margin: 24px 0 0; border: 1px solid var(--bordure); background: var(--ivoire); }
.acces-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.acces-photo figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--carignan); padding: 10px 14px; }

/* Galeries de plus de 4 vignettes : 3 colonnes sur 2 lignes */
.g-thumbs:has(> .g-thumb:nth-child(5)) { grid-template-columns: repeat(3, 1fr); }
.g-thumbs:has(> .g-thumb:nth-child(9)) { grid-template-columns: repeat(4, 1fr); }

/* Ligne tarifs (Réserver) sur une seule ligne (ordinateur) */
p.saison.une-ligne { max-width: none; white-space: nowrap; }
@media (max-width: 1200px) { p.saison.une-ligne { white-space: normal; } }

/* Mobile : empêche le parcours de réservation de déborder (champs date) */
.steps > .step { min-width: 0; }
.dates > * { min-width: 0; }
.dates input { min-width: 0; width: 100%; box-sizing: border-box; }
@media (max-width: 480px) { .step { padding: 24px 20px; } .dates { grid-template-columns: 1fr; } }

/* Les racines : photo de Thérèse et Bernard entre les deux cartes ; médaillons des branches */
.racines-grid { grid-template-columns: 1fr minmax(220px, .8fr) 1fr; align-items: stretch; }
.racines-photo { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--bordure); background: var(--ivoire); }
.racines-photo img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: center 30%; display: block; }
.racines-photo figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--carignan); padding: 10px 14px; text-align: center; }
.membre-nom { display: flex; align-items: center; gap: 16px; }
.medaillon { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--laiton), 0 0 0 4px var(--ivoire), 0 0 0 5px rgba(160,126,74,.45); }
@media (max-width: 1100px) {
  .racines-grid { grid-template-columns: 1fr; }
  .racines-photo { order: -1; }
  .racines-photo img { aspect-ratio: 4/5; max-height: 520px; flex: none; }
}

/* ---------- Site en plusieurs pages ---------- */
.suite { padding: 56px 16px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; border-top: 1px solid var(--bordure); }
.suite .surtitre { margin-bottom: 14px; }

/* ---------- Bandeau devise réduit de moitié (pages Nos vins) ---------- */
.devise--demi { zoom: .5; width: 50%; margin-left: auto; margin-right: auto; }
.devise--demi .small { font-size: 125%; }
@media (max-width: 700px) { .devise--demi { zoom: 1; width: auto; } }

/* ---------- Page Récompenses : frise chronologique ---------- */
.chrono { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--laiton); }
.chrono-dec { position: relative; text-align: center; margin: 56px 0 36px; }
.chrono-dec:first-child { margin-top: 0; }
.chrono-dec span { position: relative; background: var(--lin); padding: 4px 22px; font-family: var(--font-titre); font-style: italic; font-size: 30px; color: var(--carignan); }
.chrono-it { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 64px; }
.chrono-it::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -7px 0 0 -7px; background: var(--lin); border: 2px solid var(--carignan); transform: rotate(45deg); }
.chrono-txt { text-align: right; }
.chrono-txt p { margin-left: auto; }
.chrono-it--d .chrono-txt { order: 2; text-align: left; }
.chrono-it--d .chrono-txt p { margin-left: 0; }
.chrono-an { font-family: var(--font-titre); font-size: 56px; line-height: 1; margin: 0 0 10px !important; }
.chrono-titre { font-family: var(--font-texte); font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--carignan); margin: 0 0 10px; }
.chrono-txt > p:not(.chrono-an) { font-size: 17px; }
.chrono-citation { margin: 14px 0 0; font-family: var(--font-titre); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--carignan); }
.chrono-citation cite { display: block; margin-top: 4px; font: 400 12px/1.5 var(--font-texte); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--brun-schiste); }
.chrono-pic { display: grid; grid-template-columns: 1fr; gap: 18px; width: 100%; max-width: 340px; justify-self: start; align-items: start; }
.chrono-pic--duo { grid-template-columns: 1fr 1fr; max-width: 400px; }
.chrono-it--d .chrono-pic { justify-self: end; }
.chrono-pic a { display: block; background: #fff; padding: 8px; border: 1px solid var(--laiton); box-shadow: 0 0 0 6px var(--lin), 0 0 0 7px var(--bordure); cursor: zoom-in; }
.chrono-pic img { width: 100%; }
.chrono-vide { position: relative; max-width: 560px; margin: 0 auto 56px; padding: 18px 24px; text-align: center; background: var(--ivoire); border: 1px dashed var(--laiton); font-size: 15px; font-style: italic; }
.chrono-vide .avalider { font-style: normal; margin: 0 6px 0 0; }
.chrono-note { text-align: center; margin: 40px auto 0; color: var(--laiton); }
@media (prefers-reduced-motion: no-preference) {
  .chrono-pic a { transition: transform .35s ease, box-shadow .35s ease; }
  .chrono-pic a:hover { transform: translateY(-3px); box-shadow: 0 0 0 6px var(--lin), 0 0 0 7px var(--laiton), 0 12px 28px rgba(46,38,34,.12); }
}
@media (max-width: 860px) {
  .chrono::before { left: 7px; }
  .chrono-dec { text-align: left; padding-left: 26px; }
  .chrono-dec span { font-size: 24px; padding: 4px 10px; }
  .chrono-it, .chrono-it--d { grid-template-columns: 1fr; gap: 20px; padding-left: 36px; margin-bottom: 48px; }
  .chrono-it::after { left: 7px; top: 20px; }
  .chrono-txt, .chrono-it--d .chrono-txt { order: 0; text-align: left; }
  .chrono-txt p { margin-left: 0; }
  .chrono-an { font-size: 44px; }
  .chrono-pic, .chrono-it--d .chrono-pic { justify-self: start; }
  .chrono-vide { margin-left: 36px; text-align: left; }
}

/* ---------- Nouveau logo « Médaille » (fond transparent, versions foncée et claire) ---------- */
.logo-cep { background: none; border-radius: 0; }
.reseau .logo-cep { outline: none; }
.devise .logo-cep { box-shadow: none; }

/* ---------- Pictogrammes vivants (toutes les petites icônes du site) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Le trait se dessine quand l'icône apparaît */
  html.js-ico svg.ico { stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.3s cubic-bezier(.55,.1,.25,1) var(--ico-d, 0s), transform .45s cubic-bezier(.2,.7,.2,1); }
  html.js-ico svg.ico.ico-in { stroke-dashoffset: 0; }

  /* 2. Chaque pictogramme a son geste, joué à l'apparition puis au survol */
  .ico { --ico-anim: ico-wiggle .8s ease; transform-origin: 50% 50%; }
  .ico:has(use[href="#i-soleil"])     { --ico-anim: ico-spin 1.4s cubic-bezier(.4,0,.2,1); }
  .ico:has(use[href="#s-cycle"])      { --ico-anim: ico-spin-back 1.4s cubic-bezier(.4,0,.2,1); }
  .ico:has(use[href="#i-raisin"])     { --ico-anim: ico-swing 1.1s ease; transform-origin: 50% 8%; }
  .ico:has(use[href="#i-medaille"])   { --ico-anim: ico-swing 1.2s ease; transform-origin: 50% 5%; }
  .ico:has(use[href="#i-amphore"])    { --ico-anim: ico-swing .9s ease; transform-origin: 50% 90%; }
  .ico:has(use[href="#i-feuille"]),
  .ico:has(use[href="#s-printemps"])  { --ico-anim: ico-sway 1.2s ease; transform-origin: 50% 92%; }
  .ico:has(use[href="#i-maison"]),
  .ico:has(use[href="#s-ete"])        { --ico-anim: ico-hop .8s ease; }
  .ico:has(use[href="#i-cadeau"])     { --ico-anim: ico-shake .7s ease; }
  .ico:has(use[href="#i-pin"])        { --ico-anim: ico-drop .9s cubic-bezier(.3,.6,.4,1); transform-origin: 50% 100%; }
  .ico:has(use[href="#i-mail"])       { --ico-anim: ico-send .9s ease; }
  .ico:has(use[href="#i-verre"])      { --ico-anim: ico-toast .9s ease; transform-origin: 50% 95%; }
  .ico:has(use[href="#i-cle"])        { --ico-anim: ico-turn .9s ease; transform-origin: 30% 50%; }
  .ico:has(use[href="#i-boussole"])   { --ico-anim: ico-compass 1.3s ease; }
  .ico:has(use[href="#i-loupe"])      { --ico-anim: ico-search 1s ease; }
  .ico:has(use[href="#i-groupe"]),
  .ico:has(use[href="#i-calendrier"]) { --ico-anim: ico-pulse .8s ease; }
  .ico:has(use[href="#i-question"])   { --ico-anim: ico-wiggle .8s ease; }
  .ico:has(use[href="#s-automne"])    { --ico-anim: ico-fall 1.2s ease; }
  .ico:has(use[href="#s-hiver"])      { --ico-anim: ico-shiver .7s linear; }
  .ico.is-play { animation: var(--ico-anim); }

  /* 3. Logos Instagram / Facebook : petit rebond au survol */
  .brand { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  a:hover > .brand, a:focus-visible > .brand { transform: scale(1.15) rotate(-6deg); }

  @keyframes ico-spin      { to { transform: rotate(360deg); } }
  @keyframes ico-spin-back { to { transform: rotate(-360deg); } }
  @keyframes ico-swing     { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 45% { transform: rotate(-10deg); } 70% { transform: rotate(5deg); } 85% { transform: rotate(-2deg); } }
  @keyframes ico-sway      { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-2deg); } }
  @keyframes ico-hop       { 0%,100% { transform: none; } 30% { transform: translateY(-18%); } 50% { transform: translateY(0) scaleY(.92); } 65% { transform: translateY(-6%); } }
  @keyframes ico-shake     { 0%,100% { transform: none; } 15%,45%,75% { transform: rotate(-10deg) scale(1.06); } 30%,60% { transform: rotate(10deg) scale(1.06); } }
  @keyframes ico-drop      { 0% { transform: translateY(-30%); opacity: .3; } 55% { transform: translateY(0) scaleY(.88); opacity: 1; } 75% { transform: translateY(-8%); } 100% { transform: none; } }
  @keyframes ico-send      { 0%,100% { transform: none; } 35% { transform: translate(14%, -10%) rotate(-10deg); } 55% { transform: translate(-4%, 0) rotate(3deg); } }
  @keyframes ico-toast     { 0%,100% { transform: none; } 35% { transform: rotate(-18deg); } 65% { transform: rotate(8deg); } }
  @keyframes ico-turn      { 0%,100% { transform: none; } 40% { transform: rotate(-35deg); } 70% { transform: rotate(8deg); } }
  @keyframes ico-compass   { 0%,100% { transform: none; } 25% { transform: rotate(-40deg); } 55% { transform: rotate(25deg); } 80% { transform: rotate(-8deg); } }
  @keyframes ico-search    { 0%,100% { transform: none; } 25% { transform: translate(-10%, -6%); } 50% { transform: translate(8%, -8%); } 75% { transform: translate(-4%, 4%); } }
  @keyframes ico-pulse     { 0%,100% { transform: none; } 40% { transform: scale(1.18); } 70% { transform: scale(.96); } }
  @keyframes ico-wiggle    { 0%,100% { transform: none; } 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } }
  @keyframes ico-fall      { 0%,100% { transform: none; } 30% { transform: translate(6%, 10%) rotate(14deg); } 60% { transform: translate(-4%, 4%) rotate(-8deg); } }
  @keyframes ico-shiver    { 0%,100% { transform: none; } 10%,30%,50%,70%,90% { transform: translateX(-5%); } 20%,40%,60%,80% { transform: translateX(5%); } }
}
