/* Maison Royal by Mila Glam Chaouia : styles du site (accueil, pages tenue, page introuvable). */

@font-face { font-family: Arimo; src: url(polices/arimo.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(polices/eb-garamond-logo.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --blanc: #fff;
  --gris: #f7f7f7;
  --sable: #f4f2ee;
  --encre: #171717;
  --texte: #5e5c5c;
  --filet: #e3e3e3;
  --g: clamp(16px, 4vw, 48px);
  --marge: max(var(--g), calc((100% - 1320px) / 2 + var(--g)));
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --hauteur-annonce: 36px;
  --texte-corps: Arimo, Arial, sans-serif;
  --texte-logo: "EB Garamond", Georgia, serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--texte); font: 400 16px/1.6 var(--texte-corps); font-variant-numeric: lining-nums; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--encre); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--encre); color: var(--blanc); }
.evitement:focus { top: 8px; }
.conteneur { max-width: 1320px; margin: 0 auto; padding-inline: var(--g); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; font: 400 13px/1.2 var(--texte-corps); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.bouton-plein { background: var(--encre); color: var(--blanc); }
.bouton-plein:hover { background: #3a3a3a; }
.bouton-trait { border-color: #232323; background: var(--blanc); color: #232323; }
.bouton-trait:hover { background: #232323; color: var(--blanc); }
.bouton-blanc { border-color: var(--blanc); background: var(--blanc); color: #232323; }
.bouton-blanc:hover { background: transparent; color: var(--blanc); }

/* Bandeau noir du haut */
.annonce { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: var(--hauteur-annonce); padding: 0 16px; background: var(--encre); color: var(--blanc); font-size: 13px; text-align: center; }
.annonce a { display: inline-flex; align-items: center; min-height: var(--hauteur-annonce); }
.annonce .cote { display: none; }

/* En-tête : transparent sur la grande photo de l'accueil, blanc dès qu'on descend et sur les autres pages */
.entete { position: sticky; top: 0; z-index: 30; background: var(--blanc); color: var(--encre); box-shadow: 0 1px 0 var(--filet); }
.entete-accueil { position: fixed; left: 0; right: 0; top: var(--hauteur-annonce); background: transparent; color: var(--blanc); box-shadow: none; transition: background-color 0.3s, color 0.3s, top 0.3s, box-shadow 0.3s; }
.entete-accueil.pleine, .entete-accueil.menu-ouvert { top: 0; background: var(--blanc); color: var(--encre); box-shadow: 0 1px 0 var(--filet); }
.entete-ligne { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; }
.entete-gauche, .entete-droite { display: flex; align-items: center; }
.entete-droite { justify-content: flex-end; }
.icone { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.icone svg { width: 22px; height: 22px; }
.icone-compte { position: absolute; top: 3px; right: 1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--encre); color: var(--blanc); font-size: 11px; line-height: 1; }
.entete-accueil:not(.pleine, .menu-ouvert) .icone-compte { background: var(--blanc); color: var(--encre); }
.logo { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; line-height: 1; }
.logo b { font: 500 23px/1.05 var(--texte-logo); letter-spacing: 0.01em; }
.logo span { margin-top: 3px; font-size: 12px; letter-spacing: 0.04em; }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; text-underline-offset: 6px; }
.nav a:hover { text-decoration: underline; }
.menu { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 8px var(--g) 18px; background: var(--blanc); color: var(--encre); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.3); }
.menu a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid #eee; font-size: 16px; text-decoration: none; }

/* Grande photo d'ouverture */
.ouverture { position: relative; height: calc(100svh - var(--hauteur-annonce)); min-height: 560px; max-height: 960px; background: #2a221d; }
.diapos { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.diapos::-webkit-scrollbar { display: none; }
.diapo { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.diapo picture { display: contents; }
.diapo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 8, 0.82) 0%, rgba(12, 10, 8, 0.56) 30%, rgba(12, 10, 8, 0) 62%), linear-gradient(to bottom, rgba(12, 10, 8, 0.75), rgba(12, 10, 8, 0) 260px); }
.diapo-texte { position: absolute; left: 0; right: 0; bottom: 62px; z-index: 2; padding: 0 var(--g); color: var(--blanc); }
.surtitre { margin: 0 0 10px; color: var(--blanc); font: 700 12px/1.4 var(--texte-corps); letter-spacing: 0.08em; text-transform: uppercase; }
.grand-titre { color: var(--blanc); font: 400 44px/1.15 var(--texte-corps); }
.sous-titre { max-width: 30em; margin-top: 8px; color: var(--blanc); font-size: 16px; line-height: 1.5; }
.diapo-texte .bouton { margin-top: 20px; }
/* Reflet doré : une seule passe quand un grand titre apparaît */
.reflet { width: fit-content; background: linear-gradient(105deg, #fff 42%, #f0cd80 50%, #fff 58%) 100% 0 / 320% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 1.8s cubic-bezier(0.77, 0, 0.175, 1) 0.25s both; }
@keyframes reflet { to { background-position: 0 0; } }
.points { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; justify-content: center; }
.points button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.points button::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--blanc); border-radius: 50%; }
.points button[aria-current="true"]::before { background: var(--blanc); }
.fleche { display: none; }

/* Ronds des familles */
.ronds { display: flex; gap: 16px; overflow-x: auto; padding: 26px var(--g) 8px; scrollbar-width: none; }
.ronds::-webkit-scrollbar { display: none; }
.rond { flex: 0 0 clamp(64px, calc((100vw - 16px) / 4.5 - 16px), 100px); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--encre); font-size: 13px; line-height: 1.3; text-align: center; text-decoration: none; }
.rond-photo { display: block; width: 100%; padding: 3px; border: 1px solid var(--encre); border-radius: 50%; }
.rond img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center 15%; }

/* Sections et titres */
.section { padding: 48px 0; }
.tete { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 22px; padding: 0 var(--g); text-align: center; }
.tete h2 { font-size: 22px; line-height: 1.3; max-width: 34em; }
.voir-tout { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-underline-offset: 4px; }
.etiquette { color: var(--texte); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Tenues : rangée qui défile et grille */
.rangee { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); padding: 0 var(--g); scrollbar-width: none; }
.rangee::-webkit-scrollbar { display: none; }
.rangee-bloc { position: relative; }
.fleche-rangee { display: none; }
.tenue { position: relative; scroll-snap-align: start; }
.tenue-lien { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; text-decoration: none; }
.tenue-photo { position: relative; display: block; width: 100%; margin-bottom: 9px; overflow: hidden; background: #f1f1f1; }
.tenue-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.8s var(--ease); }
.tenue-photo2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path 0.7s var(--ease); pointer-events: none; }
.tenue-usage { font-size: 12px; }
.tenue-nom { color: #2e2e2e; font-size: 15px; line-height: 1.35; text-wrap: balance; }
.tenue-origine { font-size: 13px; }
.grille { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; }
.garder-carte { position: absolute; top: 4px; right: 4px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--encre); cursor: pointer; }
.garder-carte::before { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); transition: background-color 0.2s; }
.garder-carte svg { position: relative; width: 16px; height: 16px; }
.garder svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill 0.2s; }
.garder[aria-pressed="true"] svg path { fill: currentColor; }
.garder-carte[aria-pressed="true"] { color: var(--blanc); }
.garder-carte[aria-pressed="true"]::before { background: var(--encre); }
.garder-carte .garder-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Zoom des tenues : la photo du centre grandit au défilement jusqu'à remplir l'écran */
.zoom { position: relative; height: 280vh; }
.zoom-fixe { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zoom-calque { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
/* La photo du centre finit plein écran (×4) : avec « will-change », le navigateur la dessine au quart de l'écran puis
   l'étire, et elle devient floue. Sans, il la redessine à la bonne taille (mesuré : 4 fois plus net, défilement inchangé). */
.zoom-calque:first-child { will-change: auto; }
.zoom-photo { position: relative; overflow: hidden; }
.zoom-photo picture { display: contents; }
.zoom-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.zoom-p0 { width: 44vw; height: 26vh; }
.zoom-p1 { top: -30vh; left: 4vw; width: 40vw; height: 24vh; }
.zoom-p2 { top: -8vh; left: -36vw; width: 24vw; height: 30vh; }
.zoom-p3 { top: -6vh; left: 37vw; width: 22vw; height: 26vh; }
.zoom-p4 { top: 30vh; left: 9vw; width: 32vw; height: 24vh; }
.zoom-p5 { top: 28vh; left: -30vw; width: 32vw; height: 22vh; }
.zoom-p6 { top: 25vh; left: 37vw; width: 22vw; height: 18vh; }
.zoom-voile { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 0 var(--g) 72px; background: linear-gradient(to top, rgba(12, 10, 8, 0.7), rgba(12, 10, 8, 0) 45%); color: var(--blanc); font-size: 30px; line-height: 1.2; opacity: 0; }

/* La Maison */
.maison { padding: 40px 0 56px; text-align: center; }
.maison-corps { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; }

/* Quatre grandes photos de collections */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
.tuile { position: relative; display: block; overflow: hidden; text-decoration: none; }
.tuile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 15%; transition: transform 0.8s var(--ease); }
.tuile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 8, 0.72), rgba(12, 10, 8, 0) 55%); }
.tuile-texte { position: absolute; left: 8px; right: 8px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--blanc); font-size: 15px; line-height: 1.25; text-align: center; text-transform: uppercase; }
.tuile-bouton { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: var(--blanc); color: #232323; font-size: 12px; letter-spacing: 0.04em; }

/* Filtres */
.onglets { position: relative; display: flex; gap: 2px; overflow-x: auto; margin: 0 calc(-1 * var(--g)) 26px; padding: 0 var(--g); border-bottom: 1px solid var(--filet); scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets button { flex: none; min-width: 44px; height: 46px; padding: 0 12px; border: 0; background: none; color: var(--texte); font-size: 14px; line-height: 1; cursor: pointer; transition: color 0.2s; }
.onglets button[aria-checked="true"] { color: var(--encre); }
.filtres-trait { position: absolute; left: 0; bottom: 0; height: 1px; background: var(--encre); transition: transform 0.42s var(--ease), width 0.42s var(--ease); }

/* Forfait mariée */
.banniere { position: relative; display: flex; align-items: flex-end; height: 86svh; min-height: 540px; max-height: 880px; overflow: hidden; color: var(--blanc); }
.banniere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.banniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 8, 0.86), rgba(12, 10, 8, 0.6) 34%, rgba(12, 10, 8, 0) 66%); }
.banniere-texte { position: relative; z-index: 2; width: 100%; padding-bottom: 36px; }
.banniere h2 { color: var(--blanc); font-size: 40px; line-height: 1.1; }
.banniere p { margin-top: 8px; color: var(--blanc); }
.banniere .bouton { margin-top: 18px; }
.programme-bloc { padding: 44px 0; }
.programme-corps { max-width: 640px; margin: 0 auto; text-align: center; }
.programme { margin: 18px 0 22px; border-top: 1px solid var(--filet); text-align: left; }
.programme div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.programme dt { color: var(--encre); font-size: 14px; font-weight: 700; line-height: 1.6; }
.programme dd { font-size: 15px; }

/* Déplacements */
.deplacements { padding: 44px 0; background: var(--sable); }
.carte { max-width: 420px; padding: 26px 24px; border: 1px solid var(--filet); background: var(--blanc); }
.carte h2 { margin: 0 0 14px; font-size: 28px; line-height: 1.15; }
.carte > p { margin-bottom: 16px; }
.carte ul { margin-bottom: 18px; border-top: 1px solid var(--filet); }
.carte li { padding: 10px 0; border-bottom: 1px solid var(--filet); color: var(--encre); }
.carte-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.carte-boutons .bouton { flex: 1 1 auto; padding: 0 20px; }
.deplacements-photos { display: none; }

/* Bandeau de texte : il avance quand on fait défiler la page */
.defile { overflow: hidden; padding: 14px 0; background: #f2f2f2; color: var(--encre); white-space: nowrap; }
.defile div { display: inline-block; font-size: 18px; will-change: transform; }

/* Pied de page */
.pied { padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--gris); font-size: 15px; }
.pied-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.pied-large { grid-column: 1 / -1; }
.pied h3 { margin-bottom: 8px; font-size: 15px; }
.pied a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; text-underline-offset: 3px; }
.pied p { margin-bottom: 2px; }
.pied-bas { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--filet); font-size: 13px; }

/* Page d'une tenue */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 6px 0 8px; font-size: 13px; }
.fil a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; text-underline-offset: 3px; }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.galerie { display: flex; flex-direction: column; gap: 10px; margin-inline: calc(-1 * var(--g)); }
.galerie-principale { background: #f1f1f1; }
.galerie-principale img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity 0.22s; }
.galerie-principale img.change { opacity: 0; }
.galerie-vignettes { display: flex; flex-wrap: wrap; gap: 8px; padding-inline: var(--g); }
.vignette { width: 66px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; transition: border-color 0.2s; }
.vignette img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.vignette[aria-pressed="true"] { border-color: var(--encre); }
.fiche-infos { display: flex; flex-direction: column; gap: 18px; }
.fiche-famille { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.fiche-infos h1 { font-size: 28px; line-height: 1.2; }
.fiche-prix { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); font-size: 15px; }
.fiche-prix p:first-child { color: var(--encre); font-size: 19px; line-height: 1.3; }
.demande { display: flex; flex-direction: column; gap: 18px; }
.tailles { margin: 0; padding: 0; border: 0; min-width: 0; }
.tailles legend { margin-bottom: 8px; padding: 0; font-size: 14px; }
/* Tailles */
.tailles-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.taille { position: relative; }
.taille-large { grid-column: 1 / -1; }
.taille input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; font-size: 16px; opacity: 0; cursor: pointer; }
.taille span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #bdbdbd; color: var(--encre); font-size: 15px; transition: background-color 0.16s, color 0.16s, border-color 0.16s, transform 0.12s var(--ease); pointer-events: none; }
.taille input:checked + span { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.taille input:active + span { transform: scale(0.95); }
.taille input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }
/* Date : le bouton et le calendrier qui s'ouvre dessous */
.champ-date { display: block; }
.date-bouton { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border: 1px solid #bdbdbd; background: var(--blanc); color: var(--encre); font-size: 16px; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color 0.2s; }
.date-bouton[aria-expanded="true"] { border-color: var(--encre); }
.date-bouton svg { flex: none; width: 20px; height: 20px; }
.date-valeur { display: block; }
.date-valeur::first-letter, .calendrier-mois::first-letter { text-transform: uppercase; }
.calendrier-pli { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.32s var(--ease), visibility 0.32s; }
.calendrier-pli.ouvert { grid-template-rows: 1fr; visibility: visible; }
.calendrier { min-height: 0; overflow: hidden; }
.calendrier-dedans { padding: 4px 8px 10px; border: 1px solid var(--encre); border-top: 0; }
.calendrier-tete { display: flex; align-items: center; justify-content: space-between; }
.calendrier-mois { color: var(--encre); font-size: 15px; }
.calendrier-fleche { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--encre); cursor: pointer; }
.calendrier-fleche svg { width: 20px; height: 20px; }
.calendrier-fleche:disabled { opacity: 0.25; cursor: default; }
.calendrier-noms, .calendrier-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendrier-noms span { padding: 4px 0; font-size: 12px; text-align: center; }
.jour { position: relative; display: grid; place-items: center; height: 44px; padding: 0; border: 0; background: none; color: var(--encre); font-size: 15px; cursor: pointer; transition: background-color 0.16s, color 0.16s, transform 0.12s var(--ease); }
.jour:disabled { color: #b4b4b4; cursor: default; }
.jour-aujourdhui::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.jour[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.jour:active:not(:disabled) { transform: scale(0.92); }
.jour:focus-visible { outline-offset: -2px; }
/* Aperçu du message WhatsApp */
.apercu { display: flex; flex-direction: column; gap: 6px; }
.apercu-titre { font-size: 14px; }
.apercu-bulle { padding: 12px 14px; border-radius: 14px 14px 14px 3px; background: var(--sable); color: var(--encre); font-size: 15px; line-height: 1.45; }
/* Bouton d'envoi : la couleur de WhatsApp le remplit au survol */
.bouton-envoi { position: relative; isolation: isolate; overflow: hidden; transition: transform 0.12s var(--ease); }
.bouton-envoi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #075e54; transform: scaleX(0); transform-origin: left; transition: transform 0.36s var(--ease); }
.bouton-envoi:active, .garder-fiche:active { transform: scale(0.98); }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.champ input, .champ select { width: 100%; min-height: 52px; padding: 0 12px; border: 1px solid #bdbdbd; border-radius: 0; background-color: var(--blanc); color: var(--encre); font: 400 16px/1.2 var(--texte-corps); transition: border-color 0.2s; }
.champ input:hover, .champ select:hover { border-color: var(--encre); }
.demande .bouton, .selection-envoyer { width: 100%; }
.demande .bouton { padding-inline: 12px; letter-spacing: 0.05em; }
.garder-fiche[aria-pressed="true"] { background: var(--sable); color: var(--encre); }
.garder-fiche svg { width: 16px; height: 16px; flex: none; }
.bouton svg { flex: none; width: 18px; height: 18px; }
.plis { border-bottom: 1px solid var(--filet); }
.plis details { border-top: 1px solid var(--filet); }
.plis summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; color: var(--encre); font-size: 15px; list-style: none; cursor: pointer; }
.plis summary::-webkit-details-marker { display: none; }
.plis summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform 0.25s var(--ease); }
.plis details[open] summary::after { transform: rotate(45deg); }
.plis details { interpolate-size: allow-keywords; }
.plis details::details-content { height: 0; overflow: clip; transition: height 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
.plis details[open]::details-content { height: auto; }
.plis p { padding-bottom: 16px; font-size: 15px; }
.plis a { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); text-underline-offset: 3px; }
.autres { padding: 56px 0; }
.autres h2 { margin-bottom: 24px; font-size: 22px; text-align: center; }

/* Page introuvable */
.introuvable { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 96px var(--g); text-align: center; }
.introuvable h1 { font-size: 28px; line-height: 1.2; }

/* Bouton et fenêtre « Ma sélection » */
body.a-selection { padding-bottom: 76px; }
.selection-bouton { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 18px; border: 0; background: var(--encre); color: var(--blanc); font-size: 14px; line-height: 1; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55); cursor: pointer; animation: selection-monte 0.4s var(--ease); }
.selection-compte { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--blanc); color: var(--encre); font-variant-numeric: tabular-nums; }
.selection-bouton.bump .selection-compte { animation: selection-bump 0.42s var(--ease); }
@keyframes selection-bump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes selection-monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
dialog.selection { width: 100vw; max-width: 100vw; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; background: var(--blanc); color: var(--texte); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
dialog.selection[open] { animation: selection-monte 0.35s var(--ease); }
dialog.selection::backdrop { background: rgba(12, 10, 8, 0.62); }
.selection-corps { display: flex; flex-direction: column; gap: 16px; padding: 22px 16px 28px; }
.selection-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selection-tete h2 { font-size: 24px; line-height: 1.2; }
.selection-fermer { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--filet); background: transparent; color: var(--encre); cursor: pointer; }
.selection-fermer svg { width: 18px; height: 18px; }
.selection-aide { font-size: 15px; }
.selection-liste { display: flex; flex-direction: column; border-top: 1px solid var(--filet); }
.selection-liste li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.selection-liste img { flex: none; width: 54px; aspect-ratio: 3 / 4; object-fit: cover; }
.selection-liste a { flex: 1; min-width: 0; color: var(--encre); font-size: 15px; line-height: 1.3; text-decoration: none; }
.selection-liste a:hover { text-decoration: underline; }
.selection-retirer { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--filet); background: transparent; font-size: 13px; line-height: 1; cursor: pointer; }
.selection-retirer:hover { border-color: var(--encre); color: var(--encre); }
.selection-vide { padding: 18px 0; text-align: center; }
.selection-vider { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: transparent; font-size: 14px; line-height: 1; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

@media (hover: hover) {
  .tenue-lien:hover .tenue-photo img, .tuile:hover img { transform: scale(1.03); }
  .jour:hover:not(:disabled, [aria-pressed]) { background: var(--sable); }
  .taille:hover input:not(:checked) + span { border-color: var(--encre); }
  .bouton-envoi:hover { background: var(--encre); }
  .bouton-envoi:hover::before { transform: scaleX(1); }
  .tenue:hover .tenue-photo2.pret { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); transform: none; }
}

@media (min-width: 480px) {
  .galerie-vignettes { gap: 10px; }
}

@media (min-width: 601px) {
  dialog.selection { width: min(540px, calc(100vw - 32px)); margin: auto; max-height: min(760px, calc(100dvh - 32px)); }
  .selection-corps { padding: 28px; }
  .selection-bouton { right: 16px; bottom: 16px; }
}

@media (min-width: 900px) {
  html { scroll-padding-top: 112px; }
  .annonce { justify-content: space-between; padding: 0 48px; }
  .annonce .cote { display: block; min-width: 180px; }
  .annonce .cote:last-child { text-align: right; }
  .entete-ligne { max-width: none; min-height: 64px; padding-inline: 48px; }
  .logo b { font-size: 27px; }
  .nav { display: flex; justify-content: center; gap: 40px; padding-bottom: 4px; }
  .entete-accueil.pleine .logo b { font-size: 24px; }
  .bouton-menu { display: none; }
  .diapo::after { background: linear-gradient(to right, rgba(12, 10, 8, 0.56) 0%, rgba(12, 10, 8, 0.3) 34%, rgba(12, 10, 8, 0) 58%), linear-gradient(to top, rgba(12, 10, 8, 0.74) 0%, rgba(12, 10, 8, 0.3) 28%, rgba(12, 10, 8, 0) 52%), linear-gradient(to bottom, rgba(12, 10, 8, 0.75), rgba(12, 10, 8, 0) 260px); }
  .diapo-texte { bottom: 84px; padding: 0 clamp(88px, 8vw, 150px); }
  .surtitre { font-size: 13px; }
  .grand-titre { font-size: clamp(64px, 6vw, 88px); line-height: 1.2; }
  .sous-titre { font-size: 19px; }
  .fleche { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 0; background: none; color: var(--blanc); cursor: pointer; }
  .fleche svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }
  .fleche-g { left: 20px; }
  .fleche-d { right: 20px; }
  .ronds { justify-content: center; gap: 28px; padding-top: 34px; }
  .rond { flex: 0 0 100px; }
  .rond-photo { width: 92px; }
  .section { padding: 64px 0; }
  .tete h2 { font-size: 28px; }
  .rangee { grid-auto-columns: calc((100% - 3 * 20px) / 3.2); gap: 20px; padding-inline: var(--marge); scroll-padding-inline: var(--marge); }
  .fleche-rangee { position: absolute; top: 38%; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--filet); background: var(--blanc); color: var(--encre); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
  .fleche-rangee:hover { background: var(--encre); color: var(--blanc); }
  .fleche-rangee svg { width: 24px; height: 24px; }
  .fleche-rangee-g { left: calc(var(--marge) - 24px); }
  .fleche-rangee-d { right: calc(var(--marge) - 24px); }
  .zoom-p0 { width: 25vw; height: 25vh; }
  .zoom-p1 { top: -30vh; left: 5vw; width: 35vw; height: 30vh; }
  .zoom-p2 { top: -10vh; left: -25vw; width: 20vw; height: 45vh; }
  .zoom-p3 { top: 0; left: 27.5vw; width: 25vw; height: 25vh; }
  .zoom-p4 { top: 27.5vh; left: 5vw; width: 20vw; height: 25vh; }
  .zoom-p5 { top: 27.5vh; left: -22.5vw; width: 30vw; height: 25vh; }
  .zoom-p6 { top: 22.5vh; left: 25vw; width: 15vw; height: 15vh; }
  .zoom-voile { padding: 0 clamp(88px, 8vw, 150px) 84px; font-size: 44px; }
  .maison { padding: 60px 0 84px; }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-inline: var(--marge); }
  .tuile-texte { bottom: 24px; font-size: 17px; }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
  .onglets { justify-content: center; margin-inline: 0; }
  .banniere::after { background: linear-gradient(to top, rgba(12, 10, 8, 0.78), rgba(12, 10, 8, 0.34) 40%, rgba(12, 10, 8, 0) 62%); }
  .banniere-texte { padding-bottom: 64px; }
  .banniere h2 { font-size: 64px; }
  .banniere p { font-size: 18px; }
  .deplacements { padding: 72px 0; }
  .deplacements-corps { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: center; }
  .deplacements-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .deplacements-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .pied-colonnes { grid-template-columns: 2fr 1.4fr 1fr 1fr; }
  .pied-large { grid-column: auto; }
  .fil { padding: 14px 0 18px; }
  .fiche { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
  .galerie { position: sticky; top: 128px; margin-inline: 0; }
  .galerie:has(.galerie-vignettes) { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: start; }
  .galerie-vignettes { order: -1; flex-direction: column; padding-inline: 0; }
  .vignette { width: 78px; }
  .fiche-infos h1 { font-size: 34px; }
  .autres { padding: 88px 0; }
  .autres h2 { margin-bottom: 32px; font-size: 28px; }
}

/* Téléphone couché : tout le texte de l'ouverture tient dans l'écran */
@media (orientation: landscape) and (max-height: 500px) {
  .ouverture { min-height: 0; }
  .diapo-texte { bottom: 40px; }
  .surtitre { margin-bottom: 4px; }
  .grand-titre { font-size: 36px; }
  .sous-titre { display: none; }
  .diapo-texte .bouton { margin-top: 10px; }
  .points { bottom: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zoom { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
