/* La Casa de Lacanau : feuille de style du site public (refonte 2027).
   Elle reprend le design de l'espace propriétaire (apps/espace-proprietaire) : jetons Arc (uiarc.dev) réchauffés d'une pointe de beige,
   fenêtres arrondies (un canevas beige qui porte des panneaux blancs), contrôles arrondis, tout à plat.
   Typographie : Cormorant Garamond pour les grands titres (rappel du logo), Inter pour le texte, Geist pour les petits titres.
   Pour changer la police des grands titres (par exemple Aqrada, la police du logo, si elle est achetée) : --font-marque ci-dessous.
   Une seule feuille pour tout le site : pas de Bootstrap, pas de jQuery. */

/* ---------- Jetons ---------- */
:root {
  color-scheme: light;
  --background: oklch(98.8% .0035 85);
  --surface: oklch(100% 0 0);
  --surface-muted: oklch(96.1% .0045 84);
  --surface-sable: oklch(93.4% .0075 83);
  --foreground: oklch(15% .004 83);
  --annonce-fond: oklch(100% 0 0);
  --annonce-texte: oklch(15% .004 83);
  --text-secondary: oklch(46% .006 83);
  --text-muted: oklch(48% .006 83); /* 4,5:1 au moins sur blanc et sur beige (contrôle de contraste Lighthouse) */
  --border: oklch(92.5% .005 83);
  --border-bouton: oklch(88% .005 83); /* contour des boutons secondaires : visible sur le canevas comme sur les panneaux */
  --border-subtle: oklch(95.5% .004 83);
  --border-strong: oklch(82% .007 83);
  --accent: oklch(33% .006 83);
  --accent-subtle: oklch(33% .006 83 / .08);
  --success: oklch(49% .19 150);
  --vert-foret: oklch(38% .06 150);
  --warning: oklch(58% .18 75);
  --danger: oklch(54% .21 25);
  --shadow-floating: 0 20px 48px oklch(0% 0 0 / .105), 0 3px 10px oklch(0% 0 0 / .045);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-control: 1.125rem; --radius-panel: 1.625rem; --radius-surface: 2.125rem; --radius-pill: 9999px;
  --radius-interieur: calc(var(--radius-surface) - var(--space-4)); /* rayon concentrique d'un panneau posé dans une fenêtre */
  --control-height-sm: 2.25rem; --control-height-md: 2.75rem; --control-height-lg: 3.125rem;

  --font-marque: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-display: "Geist", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.375rem; --text-2xl: 1.75rem; --text-3xl: 2.25rem;
  --tracking-body: -.01em; --tracking-display: -.03em;
  --ease-standard: cubic-bezier(.22, 1, .36, 1);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --duration-fast: 160ms; --duration-standard: 240ms; --duration-considered: 480ms;

  --largeur: 1240px;
  --marge: clamp(12px, 2vw, 24px);
  --largeur-page: min(var(--largeur), calc(100% - 2 * var(--marge))); /* largeur du contenu, marges comprises */
  --verre-bord: oklch(100% 0 0 / .55); /* bord des surfaces en verre (menu, pop-in) */
  --logo-texte: #324834;
  --selection: oklch(88% .02 83);
}

/* ---------- Mode sombre : automatique selon l'appareil, ou choisi dans le pied de page (data-theme) ----------
   Les jetons sombres sont ceux de l'espace propriétaire. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: oklch(23% .004 80);
    --surface: oklch(25.5% .004 80);
    --surface-muted: oklch(30% .005 80);
    --surface-sable: oklch(34% .006 80);
    --foreground: oklch(96% .003 85);
    --annonce-fond: oklch(23% .004 80);
    --annonce-texte: oklch(96% .003 85);
    --text-secondary: oklch(79% .005 83);
    --text-muted: oklch(67% .005 83);
    --border: oklch(33% .005 80);
    --border-bouton: oklch(42% .005 80);
    --border-subtle: oklch(29% .004 80);
    --border-strong: oklch(44% .005 80);
    --accent: oklch(82% .005 83);
    --accent-subtle: oklch(82% .005 83 / .13);
    --success: oklch(78% .18 150);
    --vert-foret: oklch(78% .075 150);
    --warning: oklch(83% .17 80);
    --danger: oklch(76% .2 25);
    --shadow-floating: 0 22px 55px oklch(0% 0 0 / .34);
    --verre-bord: oklch(100% 0 0 / .08);
    --logo-texte: oklch(94% .008 95);
    --selection: oklch(44% .02 83);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: oklch(23% .004 80);
  --surface: oklch(25.5% .004 80);
  --surface-muted: oklch(30% .005 80);
  --surface-sable: oklch(34% .006 80);
  --foreground: oklch(96% .003 85);
  --annonce-fond: oklch(23% .004 80);
  --annonce-texte: oklch(96% .003 85);
  --text-secondary: oklch(79% .005 83);
  --text-muted: oklch(67% .005 83);
  --border: oklch(33% .005 80);
  --border-bouton: oklch(42% .005 80);
  --border-subtle: oklch(29% .004 80);
  --border-strong: oklch(44% .005 80);
  --accent: oklch(82% .005 83);
  --accent-subtle: oklch(82% .005 83 / .13);
  --success: oklch(78% .18 150);
  --vert-foret: oklch(78% .075 150);
  --warning: oklch(83% .17 80);
  --danger: oklch(76% .2 25);
  --shadow-floating: 0 22px 55px oklch(0% 0 0 / .34);
  --verre-bord: oklch(100% 0 0 / .08);
  --logo-texte: oklch(94% .008 95);
  --selection: oklch(44% .02 83);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.6;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
button { font: inherit; letter-spacing: inherit; }
::selection { background: var(--selection); }
[hidden] { display: none !important; } /* un élément caché le reste, même s'il a une classe qui l'affiche */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sans-lien { text-decoration: none; }
/* Lien au milieu d'un texte : repérable sans la couleur */
a.lien-texte, .texte a:not(.btn) { text-decoration: underline; }
a.lien-texte:hover, .texte a:not(.btn):hover { text-decoration-thickness: 2px; }

/* Focus : jamais d'anneau à la souris, un contour discret au clavier (comme les composants Arc) */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid color-mix(in oklab, var(--accent) 72%, transparent); outline-offset: 2px; }

.saut { position: absolute; left: var(--space-3); top: -4rem; z-index: 100; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--foreground); color: var(--background); font-size: var(--text-sm); }
.saut:focus { top: var(--space-3); }

.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

/* ---------- Titres ---------- */
.titre-marque, .bloc-tete h2, .cta h2, .grand-chiffre {
  font-family: var(--font-marque);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.015em;
}
h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; letter-spacing: -.02em; }

/* ---------- Boutons (jeu d'Arc : bouton plein, bouton cerclé, bouton discret) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-height-md); padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-control);
  font: inherit; font-size: var(--text-sm); font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), scale var(--duration-fast) var(--ease-standard);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:active:not(:disabled) { scale: .975; }
.btn:disabled { cursor: not-allowed; }
.btn--primaire { color: var(--background); background: var(--foreground); border-color: var(--foreground); }
.btn--secondaire { color: var(--foreground); background: var(--surface); border-color: var(--border-bouton); }
.btn--discret { color: var(--text-secondary); background: transparent; }
.btn--lg { min-height: var(--control-height-lg); padding-inline: var(--space-6); }
.btn--bloc { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primaire:hover:not(:disabled) { opacity: .88; }
  .btn--secondaire:hover:not(:disabled) { background: var(--surface-muted); }
  .btn--discret:hover:not(:disabled) { color: var(--foreground); background: var(--surface-muted); }
}
.btn--primaire:disabled { color: var(--text-muted); background: var(--surface-sable); border-color: var(--surface-sable); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn--appel { position: relative; }
.btn--appel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: appel 3.2s var(--ease-standard) infinite; }
@keyframes appel { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--foreground) 32%, transparent); } 55%, 100% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--foreground) 0%, transparent); } }
.btn-icone.btn--appel { color: var(--background); background: var(--foreground); border-color: var(--foreground); }
.entete .appel-mobile { display: none; }
@media (prefers-reduced-motion: reduce) { .btn--appel::after { animation: none; } }

/* Pastille d'étiquette (Badge d'Arc) */
.pastille { display: inline-flex; align-items: center; gap: var(--space-1); padding: .2rem .65rem; border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--text-secondary); font-size: var(--text-xs); font-weight: 500; line-height: 1.4; }
/* « Inclus » : un vert forêt terne et foncé, dans la teinte du logo (jeton --vert-foret, plus clair en mode sombre) */
.pastille--ok { background: color-mix(in oklab, var(--vert-foret) 12%, var(--surface)); color: var(--vert-foret); }

/* Pastille d'icône carrée arrondie (comme l'accueil de l'espace propriétaire) */
.icone { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-control); background: var(--accent-subtle); color: var(--accent); flex: none; }
.icone svg { width: 1.3rem; height: 1.3rem; }

/* ---------- En-tête : une barre arrondie qui flotte (comme la fenêtre de l'espace propriétaire) ---------- */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: var(--space-3) 0 0; pointer-events: none; }
.entete-barre {
  pointer-events: auto;
  position: relative;
  width: var(--largeur-page);
  margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border: 1px solid var(--verre-bord);
  border-radius: var(--radius-panel);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 2px oklch(0% 0 0 / .04);
  transition: border-color var(--duration-standard) var(--ease-standard);
}
.logo { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
.logo img { height: 2.35rem; width: auto; }

.onglets { display: flex; gap: 2px; list-style: none; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #85775b24; }
.onglets a {
  display: block; padding: .5rem .95rem; border-radius: var(--radius-pill);
  color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.onglets a:hover { color: var(--foreground); }
.onglets a[aria-current="page"] { background: var(--surface); color: var(--foreground); box-shadow: 0 0 0 1px var(--border); }

.entete-outils { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.btn-icone {
  display: inline-grid; place-items: center; width: var(--control-height-md); height: var(--control-height-md); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--foreground); text-decoration: none; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.btn-icone:hover { background: var(--surface-muted); }
.btn-icone svg { width: 1.15rem; height: 1.15rem; }
.langue { overflow: hidden; }
.langue svg { width: 1.45rem; height: .95rem; border-radius: 2px; box-shadow: 0 0 0 1px oklch(0% 0 0 / .18); }
.reseaux { display: flex; gap: var(--space-2); }
.burger { display: none; }

/* Menu du téléphone : un panneau arrondi qui s'ouvre sous la barre */
.menu-mobile { pointer-events: auto; width: var(--largeur-page); margin: var(--space-2) auto 0; }
.menu-mobile[hidden] { display: none; }
.menu-mobile-boite { padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-floating); animation: entree var(--duration-standard) var(--ease-enter); }
.menu-mobile ul { list-style: none; }
.menu-mobile li + li { border-top: 1px solid var(--border-subtle); }
.menu-mobile a.lien { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-3); color: var(--foreground); text-decoration: none; font-weight: 500; }
.menu-mobile a.lien[aria-current="page"] { color: var(--text-muted); }
.menu-mobile-pied { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-1) var(--space-1); }
.menu-mobile-pied .btn--primaire { flex: 1; }
@keyframes entree { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1060px) {
  .entete-barre { grid-template-columns: 1fr auto; padding-left: var(--space-4); }
  .entete-barre > nav, .onglets, .reseaux, .entete-outils .btn--primaire { display: none; }
  .burger, .entete .appel-mobile { display: inline-grid; }
}
@media (min-width: 1061px) { .menu-mobile { display: none !important; } }
@media (max-width: 1220px) and (min-width: 1061px) { .reseaux { display: none; } .onglets a { padding-inline: .75rem; } }

/* ---------- Fenêtres : un canevas beige arrondi qui porte des panneaux blancs ---------- */
main { display: block; }
.fenetre {
  width: var(--largeur-page);
  margin-inline: auto;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-surface);
  background: var(--surface-muted);
}
.panneau { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-interieur); background: var(--surface); }
.panneau-pad { padding: clamp(var(--space-5), 3.4vw, var(--space-10)); }
.panneau-centre { display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
  .fenetre { padding: var(--space-2); }
  .panneau { border-radius: calc(var(--radius-surface) - var(--space-2)); }
}

/* ---------- En-tête de page : une photo (ou la vidéo de l'accueil) sur toute la largeur de l'écran ---------- */
.couverture { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(30rem, 74svh, 46rem); overflow: hidden; background: oklch(30% .01 83); color: #fff; }
.couverture--accueil { min-height: max(36rem, 100svh); }
.couverture-media { position: absolute; inset: 0; z-index: -2; }
.couverture-media img, .couverture-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.couverture-media video { opacity: 0; transition: opacity 1.4s cubic-bezier(.65, 0, .35, 1); }
.couverture-media video.pret { opacity: 1; }
/* voile sombre en bas pour lire le titre en blanc, plus léger en haut sous le menu */
.couverture::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(14% .01 83 / .78) 0%, oklch(14% .01 83 / .5) 40%, oklch(14% .01 83 / .22) 72%, oklch(14% .01 83 / .32) 100%); }
.couverture-contenu { display: grid; justify-items: start; gap: var(--space-5); width: var(--largeur-page); margin-inline: auto; padding-block: 8.5rem clamp(var(--space-10), 6vw, var(--space-16)); }
.couverture h1 { max-width: 15ch; font-family: var(--font-marque); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.couverture--accueil h1 { max-width: 12ch; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.couverture--accueil .chapeau { font-size: var(--text-lg); }
.couverture--accueil .couverture-contenu { padding-bottom: clamp(var(--space-10), 7svh, var(--space-16)); }
.couverture--accueil .couverture-pause { bottom: clamp(var(--space-10), 7svh, var(--space-16)); }
.couverture .chapeau { max-width: 34rem; margin: 0; font-size: var(--text-base); line-height: 1.5; color: oklch(100% 0 0 / .9); text-wrap: pretty; }
.couverture .actions { margin-top: var(--space-1); }
.couverture .btn--primaire { color: oklch(15% .004 83); background: #fff; border-color: #fff; }
.couverture-pause { position: absolute; right: max(var(--marge), calc((100% - var(--largeur)) / 2)); bottom: clamp(var(--space-10), 6vw, var(--space-16)); color: #fff; background: oklch(100% 0 0 / .14); border-color: oklch(100% 0 0 / .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.couverture-pause:hover { background: oklch(100% 0 0 / .24); }
.btn--verre { color: #fff; background: oklch(100% 0 0 / .14); border-color: oklch(100% 0 0 / .32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (hover: hover) and (pointer: fine) { .btn--verre:hover { background: oklch(100% 0 0 / .24); } }
@media (max-width: 700px) {
  .couverture { min-height: clamp(26rem, 68svh, 34rem); }
  .couverture--accueil { min-height: max(32rem, 100svh); }
  .couverture-contenu { padding-block: 7rem var(--space-8); gap: var(--space-4); }
  .couverture--accueil .couverture-contenu { padding-bottom: var(--space-10); }
  .couverture .chapeau { font-size: var(--text-base); }
  .couverture--accueil h1 { font-size: 2.85rem; }
  .couverture--accueil .chapeau { font-size: .9375rem; }
  .couverture-pause { bottom: auto; top: 6rem; }
}
.couverture + main > .bloc:first-child { padding-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.couverture + main > .fenetre:first-child { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); }

/* ---------- Chargeur : seulement à la première arrivée sur le site (classe « arrivee » posée dans la tête de page) ---------- */
.chargeur { display: none; }
.arrivee { overflow: hidden; }
.arrivee .chargeur { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--marge); background: var(--surface-muted); transition: opacity .6s cubic-bezier(.65, 0, .35, 1), visibility 0s .6s; }
.arrivee .chargeur.fin { opacity: 0; visibility: hidden; }
/* départ vers une autre page : le voile beige revient en fondu, sans logo ; la page suivante écrit le logo */
.arrivee .chargeur.depart { animation: voile .26s cubic-bezier(.65, 0, .35, 1) both; }
.chargeur.depart .chargeur-logo, .chargeur.depart .chargeur-attente { visibility: hidden; }
@keyframes voile { from { opacity: 0; } to { opacity: 1; } }
.chargeur-logo { width: min(26rem, 82vw); }
.chargeur-attente { position: absolute; left: var(--marge); right: var(--marge); top: calc(50% + min(3.25rem, 10vw)); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); color: var(--text-secondary); font-size: var(--text-sm); text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s cubic-bezier(.65, 0, .35, 1), transform .4s cubic-bezier(.65, 0, .35, 1); }
.chargeur.lent .chargeur-attente { opacity: 1; transform: none; }
.chargeur-rond { width: 1.4rem; height: 1.4rem; border: 2px solid var(--border-strong); border-top-color: var(--foreground); border-radius: 50%; animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.logo-anime { display: block; width: 100%; height: auto; overflow: visible; }
.logo-anime .maison { fill: none; stroke: #899383; stroke-width: 2.5; stroke-miterlimit: 10; stroke-dasharray: 1; stroke-dashoffset: 1; animation: logo-trace .9s cubic-bezier(.65, 0, .35, 1) .05s forwards; }
.logo-anime .lettre { fill: #324834; opacity: 0; animation: logo-plein .3s cubic-bezier(.65, 0, .35, 1) var(--d) both; }
.logo-anime .trait { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: logo-ecrire .5s cubic-bezier(.65, 0, .35, 1) var(--d) both; }
.logo-anime .plein { fill: #fff; opacity: 0; animation: logo-plein .2s ease-in-out var(--d) forwards; }
@keyframes logo-trace { to { stroke-dashoffset: 0; } }
@keyframes logo-plein { to { opacity: 1; } }
@keyframes logo-ecrire { 0% { opacity: 0; stroke-dashoffset: 1; } 2% { opacity: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .logo-anime .maison, .logo-anime .trait { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .logo-anime .plein, .logo-anime .lettre { animation: none; opacity: 1; }
}

/* ---------- Sections ---------- */
.notes { display: flex; align-items: flex-start; justify-content: center; gap: var(--space-2); margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--text-secondary); }
.notes svg { flex: none; width: 1rem; height: 1rem; margin-top: .2em; color: var(--foreground); }
.bloc { width: var(--largeur-page); margin-inline: auto; padding-block: clamp(var(--space-12), 7vw, var(--space-24)) 0; }
.bloc > .bloc-tete { margin-bottom: var(--space-8); }
.bloc-tete { max-width: 44rem; }
.bloc-tete--centre { margin-inline: auto; text-align: center; }
.bloc-tete h2 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); }
.bloc-tete p { margin: var(--space-3) 0 0; color: var(--text-secondary); }
.fenetre + .bloc, .bloc + .fenetre, .fenetre + .fenetre { margin-top: var(--space-4); }
.bloc + .bloc { padding-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.cadre-vertical { padding-block: clamp(var(--space-10), 5vw, var(--space-16)) 0; }

/* Deux colonnes dans une fenêtre : des photos et un panneau de texte */
.duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; min-height: clamp(30rem, 44vw, 38rem); margin-top: var(--space-4); }
/* Les blocs d'une même page ont tous la même hauteur (celle du plus haut) */
.duos { display: grid; grid-auto-rows: 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.duos > .duo { margin-top: 0; }
/* Exception (À propos, « Notre histoire ») : une seule photo sur un tiers, le texte sur deux tiers */
.duo--texte-large .duo-photos { grid-column: span 1; }
.duo--texte-large .duo-texte { grid-column: span 2; }
@media (max-width: 860px) { .duo--texte-large .duo-photos, .duo--texte-large .duo-texte { grid-column: auto; } }
@media (max-width: 860px) { .duos { grid-auto-rows: auto; } }
.duo--court { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo--inverse .duo-photos { order: 2; }
.duo-photos { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: var(--space-4); min-height: 0; }
.duo-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-interieur); background: var(--surface-sable); }
.duo-photos--seule { grid-template-columns: minmax(0, 1fr); }
.duo-texte { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding: clamp(var(--space-6), 4vw, var(--space-12)); }
.duo-texte h2, .duo-texte h3 { font-family: var(--font-marque); font-weight: 500; font-size: clamp(1.75rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -.015em; }
.duo-texte p { margin: 0; color: var(--text-secondary); font-size: var(--text-base); line-height: 1.55; }
.duo-texte .actions { margin-top: var(--space-2); }
@media (max-width: 860px) {
  .duo, .duo--court { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .duo-photos { grid-column: auto; }
  .duo--inverse .duo-photos { order: 0; }
  .duo-photos { gap: var(--space-2); }
  .duo { min-height: 0; }
  .duo-photos { height: 18rem; }
  .duo-photos img { border-radius: calc(var(--radius-surface) - var(--space-2)); }
}

/* Cartes : services, étapes, avis */
.grille { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carte { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.carte h3 { font-size: .9375rem; letter-spacing: -.015em; }
.carte p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.55; }
.carte .pastille { margin-top: auto; }
.carte .icone { width: 2.5rem; height: 2.5rem; margin-bottom: var(--space-1); }
.carte .icone svg { width: 1.15rem; height: 1.15rem; }
.etapes { list-style: none; counter-reset: etape; }
.etapes .carte { counter-increment: etape; }
.etapes .carte::before { content: counter(etape); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--space-2); border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--text-secondary); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; }
@media (max-width: 980px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grille, .grille--2 { grid-template-columns: minmax(0, 1fr); } .carte { padding: var(--space-5); } }

/* Bande « une question ? » : une fenêtre beige, un grand titre et un bouton */
.cta { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); text-align: center; padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-4); }
/* En fin de page, il prolonge le pied de page : coins du bas droits, même fond, sans couture */
main > .cta:last-child { padding-bottom: clamp(var(--space-8), 4vw, var(--space-12)); border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
main:has(> .cta:last-child) ~ .pied { margin-top: 0; }
main:has(> .cta:last-child) ~ .pied .fenetre { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 40rem; margin-inline: auto; }
.cta .actions { justify-content: center; margin-top: var(--space-6); }

/* Questions fréquentes : un groupe, lignes séparées par un filet (Accordion d'Arc) */
.accordeon { max-width: 52rem; margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
.accordeon details + details { border-top: 1px solid var(--border-subtle); }
.accordeon summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--text-secondary); font-family: var(--font-body); font-size: 1.15rem; font-weight: 400; line-height: 1; transition: rotate var(--duration-standard) var(--ease-standard); }
.accordeon details[open] summary::after { rotate: 45deg; }
.accordeon summary:hover { background: var(--surface-muted); }
.accordeon .reponse { padding: .625rem var(--space-5) var(--space-5); color: var(--text-secondary); max-width: 44rem; }
.accordeon .reponse p { margin: 0; }

/* ---------- Avis ---------- */
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.chiffre { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.grand-chiffre { font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1; }
.grand-chiffre small { margin-left: .15em; font-size: .4em; color: var(--text-muted); }
.chiffre p { margin: 0; color: var(--text-secondary); }
.note-sources { width: var(--largeur-page); margin: var(--space-8) auto 0; font-size: var(--text-xs); line-height: 1.5; color: var(--text-muted); text-align: center; }
.note-sources a { color: inherit; }
.note-releve { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--text-muted); text-align: center; }
.avis-liste { columns: 2; column-gap: var(--space-3); margin-top: var(--space-3); }
.avis-liste figure { break-inside: avoid; margin: 0 0 var(--space-3); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.avis-liste blockquote { margin: 0 0 var(--space-4); }
.avis-liste blockquote p { margin: 0; color: var(--foreground); font-size: .9375rem; line-height: 1.6; }
.avis-liste figcaption { font-size: var(--text-sm); color: var(--text-secondary); }
.avis-liste figcaption strong { color: var(--foreground); font-weight: 500; }
@media (max-width: 760px) { .chiffres { grid-template-columns: minmax(0, 1fr); } .avis-liste { columns: 1; } }
.avis-langue { display: inline-block; max-width: 34rem; margin: var(--space-2) auto var(--space-6); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-secondary); text-align: left; font-size: var(--text-sm); }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.galerie a { display: block; position: relative; overflow: hidden; border-radius: var(--radius-panel); background: var(--surface-sable); }
.galerie a:first-child { grid-column: span 2; grid-row: span 2; }
.galerie img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale var(--duration-considered) var(--ease-standard); }
.galerie a:hover img { scale: 1.035; }
.galerie a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(0% 0 0 / .06); pointer-events: none; }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } .galerie a:first-child { grid-row: auto; } .galerie a:first-child img { aspect-ratio: 16 / 9; } }
@media (max-width: 520px) { .galerie { grid-template-columns: minmax(0, 1fr); } .galerie a:first-child { grid-column: auto; } }
.visionneuse { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--space-4); border: 0; background: oklch(15% .004 83 / .94); color: #fff; }
.visionneuse:not([open]) { display: none; }
.visionneuse[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-3); animation: apparition var(--duration-standard) var(--ease-standard); }
.visionneuse figure { display: grid; place-items: center; min-height: 0; margin: 0; }
.visionneuse img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius-panel); object-fit: contain; }
.visionneuse-tete, .visionneuse-pied { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.visionneuse-pied { justify-content: center; font-size: var(--text-sm); color: oklch(85% .005 83); }
.visionneuse .btn-icone { background: oklch(100% 0 0 / .1); border-color: oklch(100% 0 0 / .18); color: #fff; }
.visionneuse .btn-icone:hover { background: oklch(100% 0 0 / .2); }
.visionneuse-nav { display: flex; gap: var(--space-2); }
@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Texte courant (règlement, guide, mentions légales...) ---------- */
.texte { max-width: 46rem; margin-inline: auto; }
.texte h2 { margin: var(--space-12) 0 var(--space-4); font-family: var(--font-marque); font-size: clamp(1.65rem, 2.6vw, 2.15rem); line-height: 1.05; letter-spacing: -.015em; }
.texte h2:first-child { margin-top: 0; }
.texte h3 { margin: var(--space-8) 0 var(--space-2); font-size: var(--text-lg); }
.texte p, .texte li { color: var(--text-secondary); }
.texte p b, .texte p strong, .texte li b, .texte li strong { color: var(--foreground); font-weight: 500; }
.texte ul, .texte ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
.texte li { margin-bottom: var(--space-2); }
.texte iframe { width: 100%; border: 0; }
.texte--large { max-width: 56rem; }

/* Guide de Lacanau : un lieu = une photo arrondie et son texte */
.guide-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-12); }
.guide-nav a { padding: .45rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.guide-nav a:hover { background: var(--surface-muted); }
.guide h2 { margin: var(--space-16) 0 var(--space-6); font-family: var(--font-marque); font-size: clamp(1.75rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -.015em; }
.guide h2:first-child { margin-top: 0; }
.guide h2.sous { margin-top: var(--space-10); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.lieu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; margin-bottom: var(--space-4); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.lieu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius-panel) - var(--space-3)); background: var(--surface-sable); }
.lieu-corps { padding: clamp(var(--space-5), 3vw, var(--space-10)); }
.lieu h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.lieu p { margin: 0 0 var(--space-3); color: var(--text-secondary); }
.lieu p b { color: var(--foreground); font-weight: 500; }
.lieu .infos { padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface-muted); font-size: var(--text-sm); }
.lieu .astuce { padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface-muted); font-size: var(--text-sm); }
.lieu p:last-child { margin-bottom: 0; }
.lieu:nth-of-type(even) img { order: 2; }
@media (max-width: 760px) { .lieu { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } .lieu-corps { padding: var(--space-3) var(--space-4) var(--space-4); } .lieu:nth-of-type(even) img { order: 0; } }
.guide-fin { max-width: 40rem; margin: var(--space-16) auto 0; text-align: center; font-family: var(--font-marque); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; font-weight: 500; }

/* Encart : une remarque dans un panneau beige */
.encart { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); margin: var(--space-4) 0 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-secondary); font-size: var(--text-sm); }
.encart svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--text-secondary); }
.encart p { margin: 0; }
.encart > div { flex: 1 1 12rem; }
.encart strong { color: var(--foreground); font-weight: 500; }
.duo-texte--long p { font-size: var(--text-base); }

/* Coordonnées (contact) */
.coordonnees { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coordonnees .carte { gap: var(--space-2); }
.coordonnees .etiquette { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.coordonnees p { color: var(--foreground); overflow-wrap: anywhere; }
.coordonnees a { display: inline-block; padding-block: .35rem; text-underline-offset: .2em; } /* cible tactile d'au moins 24 px de haut */
@media (max-width: 860px) { .coordonnees { grid-template-columns: minmax(0, 1fr); } }

/* Pages voyageurs : cartes de la page de bienvenue */
.accueil-voyageur { display: grid; gap: var(--space-3); }
.accueil-haut { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }  /* réservation 2/3, météo 1/3 */
.accueil-petites { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }  /* Contact, Wi-fi, règlement, guide : une seule rangée */
.accueil-voyageur .carte p { margin: 0; }
.plateformes { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.plateformes a { display: grid; place-items: center; width: 8rem; height: 4.5rem; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.plateformes img { width: 78%; height: auto; max-height: 2.6rem; object-fit: contain; }
.wifi-valeurs { display: grid; gap: var(--space-1); margin: 0; }
.wifi-valeurs dt { font-size: var(--text-xs); font-weight: 500; letter-spacing: .02em; color: var(--text-muted); text-transform: uppercase; }
.wifi-valeurs dd { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-xl); }
@media (max-width: 860px) { .accueil-haut { grid-template-columns: minmax(0, 1fr); } }
.qr { width: min(18rem, 100%); border: 1px solid var(--border); border-radius: var(--radius-panel); background: #fff; padding: var(--space-3); }

/* Météo (Elfsight, page de bienvenue) : le composant prend toute la largeur de sa carte */
.eapp-weather-weather-component { max-width: none !important; }
.elfsight-app-37d9deb9-74b2-466e-aa4d-77fa105594ee { width: 100%; }
.texte--liste ul { columns: 2; column-gap: var(--space-8); }
.texte--liste li { break-inside: avoid; }
@media (max-width: 560px) { .texte--liste ul { columns: 1; } }

/* Contenu extérieur en attente d'accord (voir apps/cookies/src/contenus.ts) */
.consentement-attente { max-width: 34rem; margin: var(--space-6) auto; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface-muted); color: var(--foreground); text-align: center; }
.consentement-attente p, .accueil-voyageur .carte .consentement-attente p { margin: 0 0 var(--space-5); color: var(--text-secondary); }
.consentement-attente--cadre { position: absolute; top: 2rem; left: 50%; width: calc(100% - 2rem); margin: 0; transform: translateX(-50%); }
.consentement-attente button { min-height: var(--control-height-md); padding: 0 var(--space-5); border: 1px solid var(--foreground); border-radius: var(--radius-control); background: var(--foreground); color: var(--background); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.consentement-attente button:hover, .consentement-attente button:focus-visible { opacity: .88; }
.airbnb-embed-frame a + a { margin-left: var(--space-3); }
.airbnb-embed-frame { width: 100% !important; max-width: 28rem !important; }
.video { position: relative; aspect-ratio: 16 / 9; min-height: 14rem; overflow: hidden; border-radius: var(--radius-panel); background: var(--surface-muted); }
.video--portrait { width: min(100%, 26rem); aspect-ratio: 9 / 16; max-height: 82svh; margin-inline: auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Incitation à réserver en direct (pages du menu) ---------- */
.incitation { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 45; display: grid; gap: var(--space-4); width: min(25rem, calc(100% - 2 * var(--space-4))); padding: var(--space-5); border: 1px solid var(--verre-bord); border-radius: var(--radius-panel); background: color-mix(in oklab, var(--surface) 85%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--border), var(--shadow-floating); opacity: 0; transform: translateY(12px); transition: opacity .45s cubic-bezier(.65, 0, .35, 1), transform .45s cubic-bezier(.65, 0, .35, 1); }
.incitation[hidden] { display: none; }
.incitation.visible { opacity: 1; transform: none; }
.incitation-corps { display: flex; gap: var(--space-3); align-items: flex-start; }
.incitation .icone { width: 2.5rem; height: 2.5rem; }
.incitation .icone svg { width: 1.15rem; height: 1.15rem; }
.incitation-titre { margin: 0 0 var(--space-1); font-family: var(--font-display); font-size: .9375rem; font-weight: 500; letter-spacing: -.015em; }
.incitation-texte { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); }
.incitation .actions { justify-content: flex-end; }
@media (max-width: 560px) { .incitation { right: var(--space-3); left: var(--space-3); bottom: var(--space-3); width: auto; } .incitation .actions .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .incitation { transition: none; } }

/* ---------- Pied de page : une fenêtre beige, des colonnes, une ligne de mentions ---------- */
.pied { margin: clamp(var(--space-12), 7vw, var(--space-24)) 0 var(--space-3); }
.pied .fenetre { margin-inline: auto; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.pied h2 { margin-bottom: var(--space-3); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); letter-spacing: -.005em; }
.pied-haut p { margin: 0 0 var(--space-3); color: var(--text-secondary); font-size: var(--text-sm); }
.pied ul { list-style: none; display: grid; gap: var(--space-2); }
.pied ul a, .pied-haut address a { text-decoration: none; font-size: var(--text-sm); display: inline-block; padding-block: .2rem; } /* cible tactile d'au moins 24 px de haut */
.pied ul a:hover, .pied-haut address a:hover, .pied-bas a:hover { text-decoration: underline; }
.pied address { font-style: normal; font-size: var(--text-sm); color: var(--text-secondary); }
.pied-logo img { height: 2.4rem; width: auto; margin-bottom: var(--space-4); }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); padding: var(--space-4) clamp(var(--space-6), 4vw, var(--space-10)); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-secondary); }
.pied-bas p { margin: 0; }
.pied .pied-liens { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.pied-liens a { text-decoration: none; }
.pied .reseaux { margin-left: auto; }
@media (max-width: 900px) { .pied-haut { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } .pied-haut > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pied-haut { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Apparition au défilement (sans JavaScript, tout est visible) ---------- */
.js [data-apparait] { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease-standard), translate .7s var(--ease-standard); transition-delay: var(--delai, 0ms); }
.js [data-apparait].vu { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-apparait] { opacity: 1; translate: none; transition: none; }
  .couverture-media video { transition: none; }
  .btn, .galerie img, .menu-mobile-boite, .visionneuse[open] { transition: none; animation: none; }
}

/* ---------- Réservation : le calendrier (même esprit que le Calendar d'Arc : jours ronds, disque plein pour la sélection) ---------- */
.calendrier { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--space-4); align-items: start; }
.cal { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-interieur); background: var(--surface); }
.cal-tete { display: flex; justify-content: flex-end; gap: 2px; margin-bottom: calc(var(--space-2) * -1); position: relative; z-index: 1; }
.cal-nav { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-secondary); cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast); }
.cal-nav svg { width: 1.05rem; height: 1.05rem; }
.cal-nav:hover:not(:disabled) { background: var(--surface-muted); color: var(--foreground); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-mois-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.cal-mois { min-width: 0; }
.cal-mois h3 { min-height: 2rem; margin: 0 0 var(--space-3); font-family: var(--font-body); font-size: var(--text-base); font-weight: 500; letter-spacing: var(--tracking-body); text-transform: capitalize; line-height: 2rem; }
.cal-jours-sem, .cal-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 0; } /* sans espace entre les jours : la période du séjour forme une bande continue */
.cal-jours-sem { margin-bottom: 6px; }
.cal-jours-sem span { text-align: center; color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; line-height: 24px; text-transform: lowercase; }
.cal-jours { row-gap: 4px; }
.cal-cellule { position: relative; min-width: 0; }
.cal-cellule.plage::before, .cal-cellule.apercu::before, .cal-cellule.plage-fin::before { content: ""; position: absolute; inset: 0; background: var(--surface-muted); }
.cal-cellule.apercu-fin::before { content: ""; position: absolute; inset: 0; background: var(--accent-subtle); } /* le jour de départ a aussi sa demi-bande, comme le jour d'arrivée */
.cal-cellule.plage-debut::before, .cal-cellule.apercu.plage-debut::before { left: 50%; }
.cal-cellule.plage-fin::before, .cal-cellule.apercu-fin::before { right: 50%; }
.cal-cellule.plage-debut.plage-fin::before { display: none; }
.cal-cellule.apercu::before { background: var(--accent-subtle); }
.cal-jour { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--foreground); font: inherit; font-size: var(--text-sm); line-height: 1; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast), scale var(--duration-fast) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .cal-jour:hover:not([aria-disabled="true"]):not(.borne) { background: var(--surface-sable); } }
.cal-jour:active:not([aria-disabled="true"]) { scale: .94; }
.cal-jour.aujourdhui { font-weight: 500; }
.cal-jour.aujourdhui::after { content: ""; position: absolute; left: 50%; bottom: 17%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-jour.borne { background: var(--accent); color: var(--background); font-weight: 500; }
.cal-jour[aria-disabled="true"] { cursor: default; color: var(--text-muted); opacity: .5; }
.cal-jour.reserve[aria-disabled="true"] { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .42; }
.cal-jour.depart-possible { box-shadow: inset 0 0 0 1px var(--border-strong); }
.cal-vide { aspect-ratio: 1; }
.cal-legende { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); font-size: var(--text-xs); color: var(--text-secondary); }
.cal-legende span { display: inline-flex; align-items: center; gap: var(--space-2); }
.cal-pastille { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; font-size: .6rem; font-style: normal; line-height: 1; }
.cal-pastille.p-res { text-decoration: line-through; opacity: .62; } /* contraste du texte barré de la légende : 4,5:1 au moins */
.cal-pastille.p-sel { background: var(--accent); color: var(--background); }
.cal-pastille.p-plage { background: var(--surface-sable); border-radius: var(--radius-pill); width: 1.9rem; }
.cal-etat { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-secondary); font-size: var(--text-sm); }
.cal-etat:empty { display: none; }
.cal-inconnu .cal-jour:not([aria-disabled="true"]) { opacity: .85; }

.cal-recap { display: grid; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-interieur); background: var(--surface); position: sticky; top: 6.5rem; }
.cal-dates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.cal-champ { display: grid; gap: 2px; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); text-align: left; color: var(--foreground); cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast); }
.cal-champ small { font-size: var(--text-xs); color: var(--text-muted); }
.cal-champ span { font-size: var(--text-sm); font-weight: 500; }
.cal-champ:hover { background: var(--surface-muted); }
.cal-champ.actif { border-color: var(--foreground); }
.cal-voyageurs { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cal-voy-titre { display: grid; font-size: var(--text-sm); font-weight: 500; }
.cal-voy-titre small { font-size: var(--text-xs); font-weight: 400; color: var(--text-muted); }
.cal-pas { display: inline-flex; align-items: center; gap: var(--space-2); }
.cal-pas button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--foreground); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.cal-pas button:hover:not(:disabled) { background: var(--surface-muted); }
.cal-pas button:disabled { opacity: .4; cursor: default; }
.cal-pas output { min-width: 1.5rem; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-resume { margin: 0; font-size: var(--text-sm); font-weight: 500; }
.cal-resume.aide { font-weight: 400; color: var(--text-secondary); }
.cal-prix { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.45; }
.cal-prix strong { color: var(--foreground); font-weight: 500; }
.cal-cta { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-height-lg); border: 1px solid var(--foreground); border-radius: var(--radius-control); background: var(--foreground); color: var(--background); font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: opacity var(--duration-fast), scale var(--duration-fast); }
.cal-cta:hover:not(:disabled) { opacity: .88; }
.cal-cta:active:not(:disabled) { scale: .975; }
.cal-cta:disabled { border-color: var(--surface-sable); background: var(--surface-sable); color: var(--text-muted); cursor: not-allowed; }
.cal-lien { justify-self: center; padding: var(--space-1) var(--space-2); border: 0; background: none; color: var(--text-secondary); font-size: var(--text-sm); text-decoration: underline; cursor: pointer; }
@media (max-width: 980px) { .calendrier { grid-template-columns: minmax(0, 1fr); } .cal-recap { position: static; } }
@media (max-width: 720px) { .cal-mois-grille { grid-template-columns: minmax(0, 1fr); } .cal { padding: var(--space-4); } }

/* Panneau du formulaire de demande (Tally) : une feuille arrondie, plein écran sur téléphone */
.cal-panneau-ouvert, .cal-panneau-ouvert body { overflow: hidden; }
.cal-panneau { position: fixed; inset: 0; z-index: 10000; }
.cal-panneau[hidden] { display: none; }
.cal-panneau-fond { position: absolute; inset: 0; background: oklch(15% .004 83 / .4); opacity: 0; transition: opacity .25s ease; }
.cal-panneau-boite { position: absolute; inset: 0; width: 100%; height: 100dvh; display: flex; flex-direction: column; background: var(--surface-muted); transform: translateY(24px); opacity: 0; transition: transform .25s var(--ease-standard), opacity .25s ease; }
.cal-panneau-boite:focus { outline: none; }
.cal-panneau.visible .cal-panneau-fond { opacity: 1; }
.cal-panneau.visible .cal-panneau-boite { transform: none; opacity: 1; }
.cal-panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); padding-top: max(var(--space-3), env(safe-area-inset-top)); }
.cal-panneau-tete h2 { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -.02em; }
.cal-panneau-fermer { display: grid; place-items: center; width: var(--control-height-md); height: var(--control-height-md); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--foreground); cursor: pointer; }
.cal-panneau-fermer:hover { background: var(--background); }
.cal-panneau-fermer svg { width: 1.2rem; height: 1.2rem; }
.cal-panneau-cadre { flex: 1; width: calc(100% - 2 * var(--space-4)); margin: 0 var(--space-4) var(--space-4); border: 0; display: block; border-radius: var(--radius-interieur); background: var(--surface); }
@media (min-width: 768px) {
  .cal-panneau-boite { inset: var(--space-3) var(--space-3) var(--space-3) auto; width: min(max(46%, 600px), calc(100% - 2 * var(--space-3))); height: auto; border: 1px solid var(--border); border-radius: var(--radius-surface); transform: translateX(40px); box-shadow: var(--shadow-floating); }
  .cal-panneau-tete { padding: var(--space-4) var(--space-4) var(--space-3) var(--space-6); }
}
@media (prefers-reduced-motion: reduce) { .cal-panneau-fond, .cal-panneau-boite { transition: none; } }

/* Formulaire Tally intégré dans une page (signature du règlement) */
.cadre-tally { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.cadre-tally iframe { display: block; width: 100%; border: 0; }

/* ---------- Impression : le règlement et le guide s'impriment proprement ---------- */
@media print {
  .entete, .pied, .cta, .chargeur, .couverture-pause, .menu-mobile, .guide-nav { display: none !important; }
  .couverture { min-height: 0; color: var(--foreground); }
  .couverture-media, .couverture::after { display: none; }
  body { background: #fff; }
  .fenetre, .panneau, .lieu { border: 0; background: none; }
  .js [data-apparait] { opacity: 1; translate: none; }
}

/* ---------- Mode sombre : logos, logo animé, sélecteur de thème ---------- */
.logo-nuit { display: none !important; }
.logo-anime .lettre { fill: var(--logo-texte); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-jour { display: none !important; }
  :root:not([data-theme="light"]) .logo-nuit { display: block !important; }
}
:root[data-theme="dark"] .logo-jour { display: none !important; }
:root[data-theme="dark"] .logo-nuit { display: block !important; }
.pied-droite { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.pied-droite .reseaux { margin-left: 0; }
.theme { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-muted); }
.theme button { padding: .3rem .7rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: color var(--duration-fast), background var(--duration-fast); }
.theme button:hover { color: var(--foreground); }
.theme button[aria-pressed="true"] { background: var(--surface); color: var(--foreground); box-shadow: 0 0 0 1px var(--border); }

/* Drapeau de langue : fondu quand il passe d'une langue à l'autre (js/langue.js) */
.langue svg { transition: opacity .26s ease; }
.langue.change svg { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .langue svg { transition: none; } }

/* Page Surf : titre de chaque groupe de spots */
.surf-groupe { margin: var(--space-6) 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -.015em; }
.surf-groupe:first-of-type { margin-top: var(--space-5); }

/* Espace locataire : chiffres du séjour, dans l'esprit de « Stats band » d'Arc (js/welcome.js) */
.carte-resa { gap: var(--space-4); }
.carte-resa > .resume-sejour { margin: calc(var(--space-2) * -1) 0 0; }
.carte-meteo { align-self: stretch; }
.chiffres-sejour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 0; border-block: 1px solid var(--border); }
.chiffres-sejour .stat { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; padding: var(--space-5) var(--space-5) var(--space-5) 0; }
.chiffres-sejour .stat + .stat { padding-left: var(--space-5); border-left: 1px solid var(--border); }
.chiffres-sejour dt { order: 2; color: var(--foreground); font-size: var(--text-sm); font-weight: 500; }
.chiffres-sejour .stat-valeur { order: 1; display: flex; align-items: baseline; gap: .4rem; margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 5.5vw, 3.75rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.chiffres-sejour .unite { color: var(--text-secondary); font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 400; letter-spacing: -.01em; }
.chiffres-sejour .stat-detail { order: 3; margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.45; }
@media (max-width: 560px) {
  .chiffres-sejour { grid-template-columns: minmax(0, 1fr); }
  .chiffres-sejour .stat, .chiffres-sejour .stat + .stat { padding: var(--space-4) 0; border-left: 0; }
  .chiffres-sejour .stat + .stat { border-top: 1px solid var(--border); }
}
/* (ancien récapitulatif en liste, plus utilisé) */
.recap { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); width: 100%; margin: 0 0 var(--space-3); }
.recap dt { color: var(--text-secondary); font-size: var(--text-sm); }
.recap dd { margin: 0; }
.recap .aide, .aide[data-info] { margin: 0; }
@media (max-width: 480px) { .recap { grid-template-columns: 1fr; gap: 0; } .recap dd { margin-bottom: var(--space-2); } }

/* Barre d'annonce en haut des pages (dans l'esprit de « Announcement bar » d'Arc, js/casa.js) : deux messages qui alternent,
   pause au survol, bouton pour la fermer. Elle défile avec la page ; la barre de menu fixe se place juste dessous. */
/* en position absolue : elle recouvre le haut de la photo sans pousser le contenu de l'en-tête (titre et boutons restent à leur place) */
.annonce { position: absolute; top: 0; left: 0; right: 0; z-index: 60; overflow: hidden; background: var(--annonce-fond); color: var(--annonce-texte); border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.annonce[hidden] { display: none; }
.annonce.ferme { transition: height .45s cubic-bezier(.22, 1, .36, 1); }
.annonce-interieur { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; align-items: center; min-height: 2.5rem; padding: 0 var(--space-2); }
.annonce-vue { grid-column: 2; display: grid; overflow: hidden; }
/* tout le message est un lien vers la réservation ; un voile couvre toute la barre (le bouton de fermeture reste au-dessus) */
.annonce-message { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: .5rem; min-width: 0; margin: 0; padding: .45rem 0; color: inherit; line-height: 1.35; text-decoration: none; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1); visibility: hidden; }
.annonce-message.actif { opacity: 1; transform: none; visibility: visible; }
.annonce-message.actif::after { content: ""; position: absolute; inset: 0; }
.annonce-message.sortie { opacity: 0; transform: translateY(-100%); visibility: visible; }
.annonce-texte { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.annonce-court { display: none; }
.annonce-action { font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.annonce-message:hover .annonce-action { text-decoration-thickness: 2px; }
.annonce-fleche { flex: none; width: 1rem; height: 1rem; transition: transform .25s ease; }
.annonce-message:hover .annonce-fleche { transform: translateX(3px); }
.annonce-fermer { position: relative; z-index: 2; grid-column: 3; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; opacity: .7; cursor: pointer; }
.annonce-fermer:hover, .annonce-fermer:focus-visible { opacity: 1; background: color-mix(in oklab, var(--annonce-texte) 14%, transparent); }
.annonce-fermer svg { width: 1rem; height: 1rem; }
/* le menu fixe passe sous la barre, puis remonte quand la barre sort de l'écran (--annonce-decalage posée par js/casa.js) */
.annonce:not([hidden]) ~ .entete { top: var(--annonce-decalage, 2.5rem); }
/* téléphone : une seule ligne, texte court et flèche (plus de bouton) */
@media (max-width: 560px) { .annonce-long, .annonce-action { display: none; } .annonce-court { display: inline; } .annonce-message { gap: .4rem; } }
@media (prefers-reduced-motion: reduce) { .annonce-message, .annonce-message.sortie { transform: none; transition: opacity .3s ease; } .annonce.ferme { transition: none; } .annonce-fleche { transition: none; } }
