/* ==========================================================================
   Blue View Cannes — Design system
   Palette : bleu profond méditerranéen / sable / blanc
   CSS natif, sans framework. Objectif Core Web Vitals excellents.
   ========================================================================== */

:root {
  /* Couleurs */
  --bleu-profond: #0b2c4d;
  --bleu-nuit: #071e35;
  --bleu-royal: #12518c;
  --bleu-mer: #1d7fbf;
  --bleu-clair: #e8f1f8;
  --sable: #e9ddc8;
  --sable-clair: #f7f2e9;
  --sable-fonce: #c2a878;
  --blanc: #ffffff;
  --gris-texte: #3a4450;
  --gris-doux: #6b7683;
  --gris-ligne: #e2e6ea;
  --accent: #c2842a;

  /* Typographie */
  --font-titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-texte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mesures */
  --largeur-max: 1180px;
  --largeur-texte: 68ch;
  --rayon: 4px;
  --rayon-l: 10px;
  --ombre: 0 2px 10px rgba(11, 44, 77, .07);
  --ombre-forte: 0 12px 34px rgba(11, 44, 77, .14);
  --transition: .22s ease;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gris-texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img, picture, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--bleu-profond);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
p, li { max-width: var(--largeur-texte); }

a { color: var(--bleu-royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bleu-mer); }

strong { color: var(--bleu-profond); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--bleu-mer);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- Layout   */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sable { background: var(--sable-clair); }
.section--bleu { background: var(--bleu-profond); color: #d9e4ee; }
.section--bleu h2, .section--bleu h3 { color: var(--blanc); }
.section--bleu a { color: #a8d3f2; }

.section__intro { max-width: 62ch; margin-bottom: 2.5rem; }
.section__surtitre {
  display: block;
  font-family: var(--font-texte);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sable-fonce);
  margin-bottom: .7rem;
}

.lien-saut {
  position: absolute; left: -9999px;
  background: var(--bleu-profond); color: #fff;
  padding: .75rem 1.25rem; z-index: 999;
}
.lien-saut:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------- En-tête  */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gris-ligne);
}

.entete__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}

.logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; margin-right: auto;
}
.logo__image {
  width: 46px; height: 46px; flex: none;
  object-fit: contain;
}
.logo__texte { display: flex; flex-direction: column; line-height: 1.05; }
.logo__nom {
  font-family: var(--font-titre);
  font-size: 1.3rem; font-weight: 700; letter-spacing: .04em;
  color: var(--bleu-profond); text-transform: uppercase;
}
.logo__sous {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sable-fonce); font-weight: 600;
}
@media (max-width: 400px) {
  .logo__image { width: 38px; height: 38px; }
  .logo__nom { font-size: 1.1rem; }
  .logo__sous { font-size: .55rem; letter-spacing: .16em; }
}

/* Logo en pied de page (fond sombre) */
.pied__marque .logo { margin-right: 0; margin-bottom: .6rem; }
.pied__marque .logo__image {
  background: rgba(255,255,255,.94);
  border-radius: 50%; padding: 3px;
}

.nav { display: flex; align-items: center; gap: .3rem; }

.nav__liste {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__liste li { max-width: none; }

.nav__lien {
  display: block; padding: .5rem .7rem;
  font-size: .9rem; font-weight: 500;
  color: var(--bleu-profond); text-decoration: none;
  border-radius: var(--rayon);
  transition: background var(--transition), color var(--transition);
}
.nav__lien:hover { background: var(--bleu-clair); color: var(--bleu-royal); }
.nav__lien[aria-current="page"] {
  color: var(--bleu-mer);
  box-shadow: inset 0 -2px 0 var(--bleu-mer);
}

/* Sous-menu */
.nav__groupe { position: relative; }
.nav__bouton {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .7rem; font: inherit; font-size: .9rem; font-weight: 500;
  color: var(--bleu-profond); background: none; border: 0; cursor: pointer;
  border-radius: var(--rayon); font-family: var(--font-texte);
}
.nav__bouton:hover { background: var(--bleu-clair); }
.nav__bouton svg { transition: transform var(--transition); }
.nav__bouton[aria-expanded="true"] svg { transform: rotate(180deg); }

.sous-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 290px; padding: .45rem;
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre-forte);
  list-style: none; margin: 0;
  display: none;
}
.sous-menu[data-ouvert="true"] { display: block; }
.sous-menu li { max-width: none; }
.sous-menu a {
  display: block; padding: .5rem .7rem; border-radius: var(--rayon);
  font-size: .88rem; color: var(--bleu-profond); text-decoration: none;
}
.sous-menu a:hover { background: var(--bleu-clair); }
.sous-menu__titre {
  padding: .5rem .7rem .3rem; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gris-doux); font-weight: 600;
}

.nav__burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon); cursor: pointer; color: var(--bleu-profond);
}

/* ---------------------------------------------------- Choix de langue */
.langues {
  display: flex; gap: .3rem; align-items: center;
  margin-left: .5rem; padding-left: .6rem;
  border-left: 1px solid var(--gris-ligne);
  list-style: none;
}
.langues li { max-width: none; }
.langues__item {
  display: flex; align-items: center; gap: .35rem;
  padding: .32rem .5rem; border-radius: var(--rayon);
  text-decoration: none;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  color: var(--gris-doux);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.langues__item:hover { background: var(--bleu-clair); color: var(--bleu-royal); }
.langues__item[aria-current="true"] {
  color: var(--bleu-profond);
  background: var(--sable-clair);
  border-color: var(--sable-fonce);
}
.langues__drapeau {
  width: 21px; height: 15px; flex: none;
  border-radius: 2px; display: block;
  box-shadow: 0 0 0 1px rgba(11, 44, 77, .12);
}

@media (max-width: 960px) {
  .langues {
    margin: 1.2rem 0 0; padding: 1.1rem 0 0;
    border-left: 0; border-top: 1px solid var(--gris-ligne);
  }
  .langues__item { padding: .6rem .7rem; font-size: .9rem; }
  .langues__drapeau { width: 26px; height: 18px; }
}

/* -------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem;
  font-family: var(--font-texte); font-size: .95rem; font-weight: 600;
  line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--rayon);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn--primaire { background: var(--bleu-royal); color: var(--blanc); }
.btn--primaire:hover { background: var(--bleu-profond); color: var(--blanc); }

.btn--secondaire { background: transparent; color: var(--bleu-profond); border-color: var(--bleu-profond); }
.btn--secondaire:hover { background: var(--bleu-profond); color: var(--blanc); }

.btn--clair { background: var(--blanc); color: var(--bleu-profond); }
.btn--clair:hover { background: var(--sable); color: var(--bleu-profond); }

.btn--contour-clair { background: rgba(255,255,255,.08); color: var(--blanc); border-color: rgba(255,255,255,.65); }
.btn--contour-clair:hover { background: var(--blanc); color: var(--bleu-profond); }

.btn--compact { padding: .58rem 1rem; font-size: .85rem; }
.btn--large { width: 100%; }

.entete .btn { flex: none; }

/* ---------------------------------------------------------------- Héros */
.heros {
  position: relative;
  min-height: clamp(460px, 76vh, 700px);
  display: flex; align-items: flex-end;
  color: var(--blanc);
  background: var(--bleu-profond);
  overflow: hidden;
}
.heros__media { position: absolute; inset: 0; }
.heros__media img { width: 100%; height: 100%; object-fit: cover; }
.heros__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,30,53,.50) 0%, rgba(7,30,53,.18) 40%, rgba(7,30,53,.82) 100%);
}
.heros__contenu { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem); width: 100%; }
.heros__marque {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--sable); margin-bottom: .9rem;
}
.heros h1 { color: var(--blanc); max-width: 17ch; text-shadow: 0 2px 20px rgba(7,30,53,.35); }
.heros__accroche {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  color: #eaf1f7; max-width: 54ch; margin-bottom: 1.6rem;
}
.heros__lieu {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sable); margin-bottom: 1.1rem; font-weight: 600;
}
.heros__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.heros--compact { min-height: clamp(330px, 46vh, 440px); }
.heros--compact h1 { max-width: 22ch; }

/* ------------------------------------------------- Diaporama du héros   */
/* Fondu enchaîné en CSS pur : aucune dépendance, aucun décalage de mise
   en page. Les images sont empilées, seule l'active est opaque.          */
.heros__diapos { position: absolute; inset: 0; }
.heros__diapo {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.heros__diapo[data-actif="true"] { opacity: 1; }
.heros__diapo img { width: 100%; height: 100%; object-fit: cover; }

/* Puces de navigation */
.heros__puces {
  position: absolute; bottom: 1.1rem; right: 1.25rem;
  display: flex; gap: .5rem; z-index: 3;
  margin: 0; padding: 0; list-style: none;
}
.heros__puces li { max-width: none; }
.heros__puce {
  width: 11px; height: 11px; padding: 0;
  border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .85);
  transition: background var(--transition), transform var(--transition);
}
.heros__puce:hover { transform: scale(1.18); }
.heros__puce[aria-current="true"] { background: var(--blanc); }

@media (max-width: 600px) {
  .heros__puces { bottom: .8rem; right: 1rem; }
  .heros__puce { width: 9px; height: 9px; }
}

/* --------------------------------------------------------- Fil d'Ariane */
.fil {
  background: var(--sable-clair);
  border-bottom: 1px solid var(--gris-ligne);
  font-size: .82rem;
}
.fil ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  list-style: none; margin: 0; padding: .7rem 0;
}
.fil li { max-width: none; color: var(--gris-doux); }
.fil li + li::before { content: "›"; margin-right: .45rem; color: var(--sable-fonce); }
.fil a { color: var(--bleu-royal); text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil [aria-current="page"] { color: var(--gris-doux); }

/* ------------------------------------------------------------ Grilles   */
.grille { display: grid; gap: 1.5rem; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.duo {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo--texte-droite .duo__media { order: -1; }
}
.duo__media img { border-radius: var(--rayon-l); box-shadow: var(--ombre-forte); width: 100%; }

/* --------------------------------------------------------------- Cartes */
.carte {
  display: flex; flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon-l);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.carte__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bleu-clair); }
.carte__media img { width: 100%; height: 100%; object-fit: cover; }
.carte__corps { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.carte__corps h3 { margin-bottom: .45rem; }
.carte__corps p { font-size: .94rem; color: var(--gris-doux); }
.carte__lien { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; }
.carte__lien::after { content: " →"; }
.carte__etiquette {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--sable-fonce); margin-bottom: .5rem;
}

/* ----------------------------------------------------- Bloc « essentiel » */
.essentiel {
  background: var(--sable-clair);
  border-left: 4px solid var(--bleu-royal);
  border-radius: 0 var(--rayon-l) var(--rayon-l) 0;
  padding: 1.6rem 1.8rem;
  margin-block: 2rem;
}
.essentiel h2, .essentiel h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.essentiel ul { margin: 0; padding-left: 1.1rem; }
.essentiel li { margin-bottom: .4rem; font-size: .98rem; }
.essentiel li:last-child { margin-bottom: 0; }

.reponse-directe {
  font-size: 1.1rem;
  color: var(--bleu-profond);
  border-left: 4px solid var(--sable-fonce);
  padding-left: 1.1rem;
  margin-block: 1.4rem;
  max-width: 64ch;
}

/* -------------------------------------------------------------- Tableau */
.tableau-enveloppe { overflow-x: auto; margin-block: 1.6rem; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .94rem; min-width: 520px;
}
caption {
  text-align: left; font-size: .85rem; color: var(--gris-doux);
  padding-bottom: .7rem;
}
th, td { text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--gris-ligne); vertical-align: top; }
thead th { background: var(--bleu-profond); color: var(--blanc); font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
tbody tr:nth-child(even) { background: var(--sable-clair); }
td p, td li, th p { max-width: none; }

/* ------------------------------------------------------- Liste atouts   */
.atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.atouts li { max-width: none; display: flex; gap: .8rem; align-items: flex-start; }
.atouts svg { flex: none; width: 24px; height: 24px; color: var(--bleu-mer); margin-top: .18rem; }
.atouts strong { display: block; color: var(--bleu-profond); }
.atouts span { font-size: .92rem; color: var(--gris-doux); }

/* Liste d'équipements */
.equipements { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.equipements li {
  max-width: none; break-inside: avoid;
  padding: .38rem 0 .38rem 1.5rem; position: relative; font-size: .95rem;
}
.equipements li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--bleu-mer);
}
@media (max-width: 620px) { .equipements { columns: 1; } }

/* --------------------------------------------------------------- Chiffres */
.chiffres { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin: 0; padding: 0; }
.chiffres li {
  max-width: none; text-align: center;
  background: var(--blanc); border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon-l); padding: 1.2rem .8rem;
}
.chiffres b {
  display: block; font-family: var(--font-titre);
  font-size: 2rem; color: var(--bleu-royal); line-height: 1;
  margin-bottom: .3rem; font-weight: 600;
}
.chiffres span { font-size: .84rem; color: var(--gris-doux); letter-spacing: .03em; }

/* --------------------------------------------------------------- Galerie */
.galerie {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.galerie__item {
  margin: 0; padding: 0; position: relative;
  border-radius: var(--rayon-l); overflow: hidden;
  background: var(--bleu-clair); cursor: zoom-in;
  border: 0; display: block; width: 100%;
}
.galerie__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s ease;
}
.galerie__item:hover img { transform: scale(1.04); }
.galerie__item--large { grid-column: span 2; }
@media (max-width: 620px) { .galerie__item--large { grid-column: span 1; } }

/* Visionneuse */
.visionneuse {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 30, 53, .95);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.visionneuse[data-ouvert="true"] { display: flex; }
.visionneuse img { max-width: 100%; max-height: 82vh; border-radius: var(--rayon); }
.visionneuse__legende { color: #cfdcea; font-size: .88rem; text-align: center; margin-top: .9rem; max-width: 60ch; }
.visionneuse__fermer, .visionneuse__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  width: 46px; height: 46px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
}
.visionneuse__fermer { top: 1rem; right: 1rem; }
.visionneuse__nav--prec { left: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse__nav--suiv { right: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse__fermer:hover, .visionneuse__nav:hover { background: rgba(255,255,255,.28); }

/* ---------------------------------------------------------------- Vidéo */
/* Façade cliquable : l'iframe YouTube n'est injectée qu'au clic.
   Évite ~1 Mo de JS tiers et des cookies au chargement de la page.       */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon-l);
  overflow: hidden;
  background: var(--bleu-nuit);
  box-shadow: var(--ombre-forte);
}
.video img, .video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; object-fit: cover;
}
.video__bouton {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9rem;
  width: 100%; padding: 1rem;
  background: linear-gradient(180deg, rgba(7,30,53,.30), rgba(7,30,53,.62));
  border: 0; cursor: pointer;
  color: var(--blanc);
  font-family: var(--font-texte); font-size: .95rem; font-weight: 600;
  transition: background var(--transition);
}
.video__bouton:hover { background: linear-gradient(180deg, rgba(7,30,53,.18), rgba(7,30,53,.52)); }
.video__icone {
  display: flex; align-items: center; justify-content: center;
  width: 74px; height: 52px; flex: none;
  background: rgba(220, 38, 38, .92);
  border-radius: 12px;
  transition: transform var(--transition), background var(--transition);
}
.video__bouton:hover .video__icone { transform: scale(1.08); background: #dc2626; }
.video__icone svg { width: 26px; height: 26px; color: #fff; }
.video__legende { text-shadow: 0 1px 8px rgba(7,30,53,.6); max-width: 34ch; text-align: center; }

.video-cadre { margin-block: 2rem; }
.video-cadre figcaption {
  font-size: .87rem; color: var(--gris-doux);
  margin-top: .7rem; max-width: 70ch;
}
.section--bleu .video-cadre figcaption { color: #b9cbdc; }

/* ----------------------------------------------------------- Carte plan */
.carte-plan {
  display: block;
  border-radius: var(--rayon-l);
  overflow: hidden;
  border: 1px solid var(--gris-ligne);
  box-shadow: var(--ombre);
  transition: box-shadow var(--transition), transform var(--transition);
}
.carte-plan:hover { box-shadow: var(--ombre-forte); transform: translateY(-2px); }
.carte-plan img { width: 100%; height: auto; display: block; }

/* Itinéraire numéroté */
.itineraire {
  counter-reset: etape;
  list-style: none;
  margin: 1.4rem 0; padding: 0;
}
.itineraire li {
  counter-increment: etape;
  position: relative;
  padding: .55rem 0 .55rem 2.6rem;
  border-bottom: 1px solid var(--gris-ligne);
  font-size: .96rem;
  max-width: 68ch;
}
.itineraire li:last-child { border-bottom: 0; }
.itineraire li::before {
  content: counter(etape);
  position: absolute; left: 0; top: .5rem;
  width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--bleu-royal); color: var(--blanc);
  border-radius: 50%;
  font-size: .8rem; font-weight: 700;
}

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 74ch; }
.faq__item {
  border-bottom: 1px solid var(--gris-ligne);
}
.faq__item summary {
  cursor: pointer; padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 600; color: var(--bleu-profond);
  font-size: 1.02rem; position: relative;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; font-weight: 400;
  color: var(--bleu-mer); line-height: 1;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--bleu-royal); }
.faq__reponse { padding: 0 0 1.1rem; }
.faq__reponse p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Formulaire */
.formulaire {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon-l);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--ombre);
}
.champ { margin-bottom: 1.15rem; }
.champ label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--bleu-profond); margin-bottom: .35rem;
}
.champ .aide { display: block; font-weight: 400; font-size: .8rem; color: var(--gris-doux); margin-top: .15rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .72rem .85rem;
  font-family: inherit; font-size: 1rem; color: var(--gris-texte);
  background: var(--blanc);
  border: 1px solid #c7ced6; border-radius: var(--rayon);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--bleu-mer);
  box-shadow: 0 0 0 3px rgba(29, 127, 191, .16);
  outline: none;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champs-duo { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .champs-duo { grid-template-columns: 1fr 1fr; } }

.champ-rgpd { display: flex; gap: .65rem; align-items: flex-start; font-size: .87rem; }
.champ-rgpd input { width: auto; margin-top: .25rem; flex: none; }
.champ-rgpd label { font-weight: 400; color: var(--gris-texte); font-size: .87rem; }

.pot-de-miel { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-message { padding: 1rem 1.15rem; border-radius: var(--rayon); margin-top: 1rem; font-size: .94rem; display: none; }
.form-message[data-etat="succes"] { display: block; background: #e7f4ec; border: 1px solid #a8d5bb; color: #1c5a37; }
.form-message[data-etat="erreur"] { display: block; background: #fdecec; border: 1px solid #f0b3b3; color: #8c2020; }

/* -------------------------------------------------------- Bande d'appel */
.appel {
  background: linear-gradient(135deg, var(--bleu-profond) 0%, var(--bleu-royal) 100%);
  color: var(--blanc);
  border-radius: var(--rayon-l);
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.appel h2 { color: var(--blanc); }
.appel p { color: #dce7f1; margin-inline: auto; }
.appel__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }

.note-info {
  font-size: .86rem; color: var(--gris-doux);
  background: var(--bleu-clair); border-radius: var(--rayon);
  padding: .8rem 1rem; max-width: 70ch;
}
.a-confirmer {
  background: #fff4d6; color: #7a5600; font-weight: 600;
  padding: .05em .4em; border-radius: 3px; font-size: .92em;
  white-space: nowrap;
}

/* ------------------------------------------------------------ Pied de page */
.pied {
  background: var(--bleu-nuit);
  color: #a9bdd0;
  padding-block: 3.2rem 1.6rem;
  font-size: .92rem;
}
.pied a { color: #cfe0ef; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied__grille {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2rem;
}
.pied h2, .pied h3 {
  color: var(--blanc); font-family: var(--font-texte);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; max-width: none; }
.pied__marque .logo__nom { color: var(--blanc); }
.pied__bas {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
  justify-content: space-between; font-size: .84rem;
}
.pied__bas p { margin: 0; max-width: none; }
.pied address { font-style: normal; }

/* --------------------------------------------- Bandeau de consentement */
.consentement {
  position: fixed; inset: auto 0 0 0; z-index: 400;
  display: none;
  background: var(--blanc);
  border-top: 3px solid var(--bleu-royal);
  box-shadow: 0 -8px 34px rgba(11, 44, 77, .20);
  padding: 1.3rem 0 1.5rem;
}
.consentement[data-ouvert="true"] { display: block; }

.consentement__inner {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between;
}
.consentement__texte { flex: 1 1 380px; }
.consentement__texte h2 {
  font-size: 1.15rem; margin-bottom: .45rem;
}
.consentement__texte p {
  font-size: .9rem; margin: 0; color: var(--gris-texte);
  max-width: 78ch;
}
.consentement__actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  flex: 0 0 auto;
}
.consentement__actions .btn { padding: .7rem 1.25rem; font-size: .9rem; }

.consentement__lien {
  background: none; border: 0; padding: .7rem .4rem;
  font: inherit; font-size: .85rem; font-family: var(--font-texte);
  color: var(--gris-doux); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.consentement__lien:hover { color: var(--bleu-royal); }

/* Réglages détaillés */
.consentement__reglages {
  display: none;
  width: 100%;
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--gris-ligne);
}
.consentement__reglages[data-ouvert="true"] { display: block; }

.consentement__choix {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gris-ligne);
}
.consentement__choix:last-of-type { border-bottom: 0; }
.consentement__choix input { margin-top: .3rem; flex: none; width: 18px; height: 18px; }
.consentement__choix input:disabled { cursor: not-allowed; }
.consentement__choix label { font-size: .9rem; cursor: pointer; }
.consentement__choix strong { display: block; color: var(--bleu-profond); margin-bottom: .15rem; }
.consentement__choix span { color: var(--gris-doux); font-size: .86rem; }
.consentement__requis {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--bleu-clair); color: var(--bleu-royal);
  padding: .12em .5em; border-radius: 3px; margin-left: .4rem;
  vertical-align: middle;
}

/* Bouton de réouverture depuis le pied de page */
.pied__cookies {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: inherit; font-family: var(--font-texte);
  color: #cfe0ef; text-decoration: none; cursor: pointer;
}
.pied__cookies:hover { color: var(--blanc); text-decoration: underline; }

@media (max-width: 720px) {
  .consentement { max-height: 88vh; overflow-y: auto; }
  .consentement__actions { width: 100%; }
  .consentement__actions .btn { flex: 1 1 auto; }
}
/* Le bandeau doit rester au-dessus de la barre d'action mobile */
@media (max-width: 960px) {
  .consentement { padding-bottom: 1.5rem; }
}

/* ------------------------------------------------- Barre mobile fixe CTA */
.barre-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: .6rem; padding: .6rem .8rem;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--gris-ligne);
  box-shadow: 0 -4px 18px rgba(11,44,77,.10);
}
.barre-mobile .btn { flex: 1; padding: .7rem .6rem; font-size: .88rem; }

/* --------------------------------------------------------- Responsive   */
@media (max-width: 960px) {
  /* Un backdrop-filter (comme un transform ou un filter) transforme l'élément
     en bloc conteneur pour ses descendants en position:fixed. Le panneau de
     navigation se positionnerait alors par rapport à l'en-tête (68 px de haut)
     au lieu de la fenêtre, et se retrouverait écrasé à une hauteur nulle —
     seuls les deux premiers liens apparaissaient, sous le logo.
     On le désactive en mobile : le fond est déjà opaque à 96 %, aucune perte. */
  .entete { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav__burger { display: flex; align-items: center; justify-content: center; }

  /* Le panneau est sorti du flux de l'en-tête et ancré à la fenêtre.
     On n'utilise PAS une hauteur codée en dur : `top` suit la hauteur réelle
     de l'en-tête via une variable, et la hauteur est bornée par dvh pour que
     la barre d'URL des navigateurs mobiles ne tronque pas le panneau. */
  .nav__panneau {
    position: fixed;
    top: var(--hauteur-entete, 68px);
    left: 0; right: 0; bottom: 0;
    height: auto;
    max-height: calc(100dvh - var(--hauteur-entete, 68px));
    z-index: 110;
    background: var(--blanc);
    padding: 1.2rem 1.25rem 6rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  .nav__panneau[data-ouvert="true"] { display: block; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__lien, .nav__bouton { width: 100%; padding: .85rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--gris-ligne); border-radius: 0; }
  .nav__bouton { justify-content: space-between; }
  .nav__groupe { position: static; }
  .sous-menu {
    position: static; box-shadow: none; border: 0;
    background: var(--sable-clair); border-radius: var(--rayon);
    margin: .4rem 0 .6rem; min-width: 0;
  }
  .sous-menu a { padding: .65rem .8rem; }
  .entete .btn--entete { display: none; }
  .barre-mobile { display: flex; }
  body { padding-bottom: 66px; }
}

@media (max-width: 480px) {
  .heros__actions .btn { width: 100%; }
}

@media print {
  .entete, .barre-mobile, .heros__media, .appel { display: none; }
}
