/* ==========================================================
   Kofiyetna – feuille de style du site
   Palette issue du logo officiel
   ========================================================== */

/* ---------- Polices auto-hébergées (assets/fonts/, licence OFL) ----------
   Mêmes fichiers et mêmes déclarations que Google Fonts, sans appel à Google (RGPD).
   Polices variables : un fichier par famille, déclaré pour chaque graisse utilisée. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/reem-kufi-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/reem-kufi-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/reem-kufi-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/reem-kufi-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bordeaux: #431418;
  --bordeaux-deep: #2c0c0f;
  --bordeaux-warm: #4a1312;
  --creme: #efe4da;
  --sable: #dcc8b9;
  --rose: #b48c7e;
  --taupe: #9e8580;
  /* Dérivés pour fond clair (contraste AA) */
  --band-clair: #e9ddd1;   /* fond des bandes claires (sable + crème) */
  --rose-ink: #774a41;     /* vieux rose foncé : petits textes sur clair, ≥ 4.5:1 */
  --ink-soft: #5e3a36;     /* texte secondaire sur clair */

  --glass-bg: rgba(239, 228, 218, 0.08);
  --glass-bg-strong: rgba(239, 228, 218, 0.13);
  --glass-border: rgba(239, 228, 218, 0.22);
  --glass-shadow: 0 20px 50px -20px rgba(10, 2, 3, 0.65);
  --blur: blur(22px) saturate(150%);

  --radius: 26px;
  --radius-sm: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --arabic: "Reem Kufi", "Segoe UI", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; } /* les rubriques ont leur propre marge haute sous le menu */
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--creme);
  background: var(--bordeaux);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; color: var(--sable); font-weight: 400; }
.ar { font-family: var(--arabic); }

/* Fond : chaque rubrique est une bande (bordeaux ou claire), voir « Bandes de fond ».
   L'ancien fond fixe (.backdrop + halos .orb) a été retiré le 2026-11-10. */

/* ---------- Effet verre (glassmorphism) ---------- */
.glass {
  background: linear-gradient(135deg, var(--glass-bg-strong), var(--glass-bg));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(67, 20, 24, 0.92); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  background: var(--creme); color: var(--bordeaux);
  font: 500 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--creme); cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--sable); }
.btn-ghost { background: rgba(239,228,218,.06); color: var(--creme); border-color: var(--glass-border); }
.btn-ghost:hover { background: rgba(239,228,218,.16); color: var(--creme); }
.btn-small { padding: .6em 1.1em; font-size: 14px; }
.btn-full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sable); outline-offset: 3px;
}
/* Lien d'évitement « Aller au contenu » (recette m8, agent Dev) : hors écran, visible au focus clavier */
.lien-evitement {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: .7em 1.2em; border-radius: 999px;
  background: var(--creme); color: var(--bordeaux); font: 500 15px/1 var(--sans); text-decoration: none;
  transform: translateY(-200%); transition: transform .2s ease;
}
.lien-evitement:focus { transform: none; outline: 2px solid var(--bordeaux); outline-offset: 2px; }
#contenu:focus { outline: none; } /* cible du lien d'évitement : pas de cadre autour de toute la page */
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px;
  color: var(--sable); margin: 0 0 .9em; font-weight: 500; /* recette v0.4 M1 : sable ≥ 5,3:1 sur verre bordeaux (vieux rose ≈ 3,7:1) ; sur fond clair : --rose-ink */
}
.eyebrow .ar { letter-spacing: 0; font-size: 15px; margin-right: .6em; color: var(--sable); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 22px; z-index: 50; border-radius: 999px;
}
.nav { transition: background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease; }
/* pastille derrière le logo : bordeaux sur fond clair, le logo crème reste intact */
.nav-logo { display: inline-flex; padding: 4px 12px; margin: -4px 0 -4px -12px; border-radius: 999px; transition: background .35s ease; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15px; opacity: .85; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--sable); transform: scaleX(0); transition: transform .3s ease;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--creme); transition: transform .3s ease, top .3s ease; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.nav.open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Menu au-dessus d'une bande claire : verre blanc, texte bordeaux */
.nav.on-light {
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,252,248,.5));
  border-color: rgba(255,255,255,.8); color: var(--bordeaux);
  box-shadow: 0 16px 40px -22px rgba(67,20,24,.5), inset 0 1px 0 #fff;
}
.nav.on-light .nav-logo { background: var(--bordeaux); }
.nav.on-light .nav-links a:not(.btn) { opacity: 1; }
.nav.on-light .nav-links a:not(.btn)::after { background: var(--bordeaux); }
.nav.on-light .btn { background: var(--bordeaux); color: var(--creme); border-color: var(--bordeaux); }
.nav.on-light .btn:hover { background: var(--bordeaux-warm); }
.nav.on-light .burger span { background: var(--bordeaux); }
.nav.on-light :focus-visible { outline-color: var(--bordeaux); }

/* Lien de la rubrique visible pendant le défilement */
.nav-links a.is-active:not(.btn) { opacity: 1; font-weight: 400; }
.nav-links a.is-active:not(.btn)::after { transform: scaleX(1); }
.nav-links a.btn.is-active { box-shadow: 0 0 0 3px rgba(239,228,218,.28); }
.nav.on-light .nav-links a.btn.is-active { box-shadow: 0 0 0 3px rgba(67,20,24,.2); }

/* ---------- Mise en page générale ---------- */
main > section, .band > section { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* ---------- Bandes de fond : alternance sombre / clair ---------- */
.band { position: relative; }
/* marge haute > hauteur du menu : un lien du menu amène le haut de la bande en haut de l'écran */
.band > section:first-child:not(.hero) { padding-top: 104px; }
.band > section:last-of-type { padding-bottom: 80px; } /* last-of-type : le calque de fond est ajouté en dernier enfant */

/* ---------- Fond calligraphié ancré à la page (v3, 2026-11-10) ----------
   Tuile raccordable assets/img/calligraphie-{claire,sombre}-motif.jpg (1900x1800), générée par
   tools/tuile-calligraphie.ps1 : lettres ENTIÈRES extraites du visuel sources/visuel-calligraphie-claire.jpg
   (ni coupées par le cadre, ni par le médaillon), replacées sans déformation ni retournement.
   Le fond défile avec la page (aucun position/background fixed). Continuité entre rubriques : main.js
   donne à chaque bande sa position dans la page (--band-top) et chaque bande décale sa tuile d'autant ;
   toutes affichent donc la même grande mosaïque, seule la couleur change. */
:root { --motif-w: 1330px; } /* tuile affichée à 70 % : lettres nettes, même sur écran haute densité */
.band-dark, .band-light, .footer {
  background-repeat: repeat;
  background-size: var(--motif-w) auto;
  background-position: center calc(-1 * var(--band-top, 0px));
}
.band-dark, .footer { background-color: var(--bordeaux); background-image: url("../img/calligraphie-sombre-motif.jpg"); }
.band-light { color: var(--bordeaux); background-color: var(--band-clair); background-image: url("../img/calligraphie-claire-motif.jpg"); }
.footer { position: relative; }

/* Jonction en dégradé (choix du client) : passage de couleur linéaire sur 140 px, centré sur la jonction,
   dans les marges des rubriques (aucun texte dessous). Les pseudo-éléments portent la même tuile,
   alignée sur la page, donc les tracés restent continus pendant le fondu. Sans la classe : jonction nette. */
.jonction-degrade .band + .band::before,
.jonction-degrade .band + .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 70px; pointer-events: none;
  background-repeat: repeat; background-size: var(--motif-w) auto;
}
/* au-dessus de la jonction : la couleur de la bande suivante apparaît (0 → 50 %) */
.jonction-degrade .band + .band::before {
  top: -70px;
  background-position: center calc(70px - var(--band-top, 0px));
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.5));
          mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.5));
}
/* sous la jonction : la couleur de la bande précédente s'efface (50 % → 0) */
.jonction-degrade .band + .band::after {
  top: 0;
  background-position: center calc(-1 * var(--band-top, 0px));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}
.jonction-degrade .band-light + .band-dark::before,
.jonction-degrade .band-dark + .band-light::after { background-color: var(--bordeaux); background-image: url("../img/calligraphie-sombre-motif.jpg"); }
.jonction-degrade .band-dark + .band-light::before,
.jonction-degrade .band-light + .band-dark::after { background-color: var(--band-clair); background-image: url("../img/calligraphie-claire-motif.jpg"); }

/* Le fond animé fixe à l'écran (calques .fond-clip, dérive lente, halos) a été retiré le 2026-11-10 :
   le client veut un fond qui défile avec la page et des lettres reconnaissables (voir retours-client.md). */

/* ---------- Parallaxe du fond (ordinateur, v4, 2026-11-10) ----------
   Le fond défile à 60 % de la vitesse du contenu. main.js (classe .fond-parallaxe sur <html>, ajoutée
   seulement au-dessus de 980 px et sans prefers-reduced-motion) place dans chaque bande et dans le
   pied de page un calque .fond-par (découpé aux limites de la bande, ne bouge pas) contenant
   .fond-par-motif (même tuile, même taille, alignée sur la page). L'origine de la tuile est décalée de
   +40 % du défilement, identiquement pour tous les motifs : la mosaïque reste continue d'une rubrique à
   l'autre. Chaque motif dépasse en haut de sa course pendant que sa bande est visible (main.js) : aucun trou.
   Sans cette classe, le fond ci-dessus défile normalement avec la page. */
.fond-par { display: none; }
.fond-parallaxe .band, .fond-parallaxe .footer { background-image: none; background-color: transparent; }
.fond-parallaxe .band + .band::before, .fond-parallaxe .band + .band::after { content: none; }
.fond-parallaxe .fond-par {
  display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
/* Jonction en dégradé : chaque calque descend de 70 px (opaque) sous la bande suivante, dont le calque
   remonte de 70 px en fondu → passage de couleur linéaire sur 140 px, motif continu. */
.fond-parallaxe.jonction-degrade .band > .fond-par { bottom: -70px; }
.fond-parallaxe.jonction-degrade .band + .band > .fond-par {
  top: -70px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 140px);
          mask-image: linear-gradient(to bottom, transparent, #000 140px);
}
.fond-par-motif {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0; /* top et background-position : main.js */
  background-color: var(--bordeaux); background-image: url("../img/calligraphie-sombre-motif.jpg");
  background-repeat: repeat; background-size: var(--motif-w) auto;
  will-change: transform;
}
.band-light .fond-par-motif { background-color: var(--band-clair); background-image: url("../img/calligraphie-claire-motif.jpg"); }

.band-light .glass {
  background: linear-gradient(135deg, rgba(255,255,255,.64), rgba(255,252,248,.38));
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 24px 50px -28px rgba(67,20,24,.5), inset 0 1px 0 rgba(255,255,255,.95);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .band-light .glass { background: rgba(250,245,240,.95); }
}
.band-light h1 em, .band-light h2 em { color: var(--rose-ink); }
.band-light .eyebrow { color: var(--rose-ink); }
.band-light .btn { background: var(--bordeaux); color: var(--creme); border-color: var(--bordeaux); }
.band-light .btn:hover { background: var(--bordeaux-warm); }
.band-light .btn-ghost { background: transparent; color: var(--bordeaux); border-color: rgba(67,20,24,.35); }
.band-light :focus-visible { outline-color: var(--bordeaux); }
.band-light .stat strong { color: var(--bordeaux); }
.band-light .stat strong small { color: var(--rose-ink); }
.band-light .stat span { color: var(--ink-soft); }
section { padding: 56px 0; }
.section-title { font-size: clamp(34px, 5vw, 52px); text-align: center; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 0;
  padding-top: 110px;
}
/* emplacement « Photo 1 » au format paysage (3:2 environ) */
.hero-media {
  position: relative; aspect-ratio: 882 / 606; border-radius: var(--radius); overflow: hidden;
  grid-column: 1 / 2; grid-row: 1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media .slot-label { font-size: 40px; }
.hero-media .slot-icon { width: 44px; height: 44px; }
.hero-card {
  grid-column: 2 / 3; grid-row: 1; margin-left: -48px; /* chevauchement léger : effet verre sans masquer la danseuse de droite */
  padding: clamp(28px, 4vw, 52px); position: relative; z-index: 2;
}
.hero-card h1 { font-size: clamp(40px, 5.2vw, 68px); }
@media (min-width: 981px) {
  /* carte plus compacte pour s'équilibrer avec la photo paysage */
  .hero-card { padding: clamp(28px, 3vw, 42px); }
  .hero-card h1 { font-size: clamp(40px, 3.9vw, 54px); }
  .hero-card .lead { font-size: 17px; }
}
.lead { font-size: 18px; opacity: .9; max-width: 34em; }
.origins { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-card .lead + .origins { margin-top: 26px; }
.origins li {
  font-size: 13px; padding: .35em .9em; border-radius: 999px;
  border: 1px solid var(--glass-border); color: var(--sable);
}

/* ---------- Chiffres (KPI) ---------- */
.stat { padding: 26px 18px; text-align: center; border-radius: var(--radius-sm); }
.stat strong { display: block; font: 500 46px/1 var(--serif); color: var(--creme); font-variant-numeric: lining-nums; }
.stat strong small { font-size: 24px; color: var(--rose); }
.stat span { font-size: 14px; color: var(--sable); letter-spacing: .03em; }

/* ---------- Emplacements média numérotés (Photo n / Vidéo n) ---------- */
.slot {
  margin: 0; min-height: 150px; padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; border-radius: var(--radius-sm); overflow: hidden;
}
.slot.glass { border-style: dashed; border-width: 1.5px; }
/* Emplacement rempli par une vraie photo (agent Dev, 2026-11-12) : l'image remplit la case, recadrée sans déformation */
.slot.slot--media { padding: 0; border-style: solid; border-width: 1px; }
.slot--media > picture { display: contents; } /* <picture> (WebP + repli JPG) : l'image reste positionnée par rapport à la case */
.slot--media img, .slot--media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-media.slot--media img { object-position: 50% 55%; }
.slot--media > video { background: var(--bordeaux-deep); }

/* Bouton lecture / pause des vidéos en boucle (ajouté par main.js) : WCAG 2.2.2, mettre en pause un contenu animé */
.video-pause {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(44,12,15,.62); border: 1px solid rgba(239,228,218,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 0;
  opacity: .85; transition: opacity .25s ease, background .25s ease;
}
.video-pause:hover, .video-pause:focus-visible { opacity: 1; background: rgba(44,12,15,.85); }
.video-pause::before { content: ""; display: block; }
.video-pause[data-etat="lecture"]::before {   /* icône pause : deux barres */
  width: 4px; height: 14px; background: var(--creme); box-shadow: 7px 0 0 var(--creme); transform: translateX(-3.5px);
}
.video-pause[data-etat="pause"]::before {     /* icône lecture : triangle */
  width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--creme); transform: translateX(2px);
}
.slot-icon { width: 34px; height: 34px; opacity: .75; }
.slot figcaption { display: flex; flex-direction: column; gap: 4px; }
.slot-label { font: 500 28px/1.1 var(--serif); letter-spacing: .02em; }
.slot-hint { font: 400 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sable); }
.slot-video .slot-icon { opacity: .9; }
.band-light .slot-hint { color: var(--ink-soft); }
.band-light .slot-icon { color: var(--rose-ink); }

/* Légende au survol et au focus (lieu, événement, client ou crédit photo)
   Texte dans <span class="slot-legende"> du <figcaption> : lu par les lecteurs d'écran, facile à remplir.
   Bandeau en verre bordeaux assez opaque : lisible sur un média clair comme sombre
   (le flou ne s'applique pas à un verre imbriqué dans l'emplacement, d'où l'opacité). */
.slot { position: relative; }
.slot-legende {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(44,12,15,.78); border: 1px solid rgba(239,228,218,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.55);
  font: 400 13.5px/1.4 var(--sans); letter-spacing: .01em; color: var(--creme); text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.slot:hover .slot-legende, .slot:focus .slot-legende, .slot:focus-within .slot-legende { opacity: 1; transform: none; }
.slot:focus { outline: none; }
/* Recette v0.4 m7 : un élément qui reçoit le focus ne passe pas sous le menu flottant (≈ 78 px). Les rubriques
   n'en ont pas besoin : leur marge haute (104 px) laisse déjà le contenu sous le menu. */
.slot, .form :is(input, textarea, button), main :is(a, button) { scroll-margin-top: 100px; scroll-margin-bottom: 24px; }
.slot:focus-visible { outline: 2px solid var(--sable); outline-offset: 3px; }
.band-light .slot:focus-visible { outline-color: var(--bordeaux); }
.hero-media .slot-legende { right: 64px; } /* la carte d'accueil chevauche le bord droit de Photo 1 */
@media (prefers-reduced-motion: reduce) {
  .slot-legende { transform: none; transition: opacity .2s linear; }
}

/* ---------- Rubriques Dabke Show / Prestation scénique ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.offer--reverse .offer-grid { grid-template-columns: 1.15fr 1fr; }
.offer--reverse .offer-media { order: -1; }
.offer-text { padding: clamp(28px, 3.4vw, 46px); display: flex; flex-direction: column; }
.offer-text h2 { font-size: clamp(40px, 4.2vw, 56px); }
.offer-text .btn { align-self: flex-start; margin-top: auto; }
.offer-media {
  /* 2026-11-12 : 1.1fr 1fr → 1fr 1.35fr. La hauteur suit le bloc texte (≈ 571 px à 1366 px) : les cases photo
     passent de 288×278 (1,03) à 347×278 (1,25, paysage comme prévu) : Photos 3 et 4 visibles à 99 %,
     Photos 2 et 5 à 84-85 %. La grande case vidéo (portrait) passe à 257×571 (0,45) : 80 % de la largeur
     d'une vidéo 9:16 (sujet centré). Essayé aussi : 1fr 1.2fr (photos trop rognées), 1fr 1.5fr (colonne vidéo trop fine). */
  display: grid; grid-template-columns: 1fr 1.35fr; grid-template-rows: 1fr 1fr; gap: 14px;
  min-height: 470px;
}
.offer-media .slot-main { grid-row: span 2; }
/* Médias définitifs (2026-11-18, docs/uiux/selection-medias-v2.md) */
/* Dabke Show : photos de mariage en portrait (≈ 0,8) → colonne photo plus étroite (cases ≈ 231×278 à 1366 px) */
#dabke-show .offer-media { grid-template-columns: 1.6fr 1fr; }
/* Performance scénique : texte plus long (bloc ≈ 688 px) → bloc médias centré à 540 px de haut,
   pour garder des cases photo en paysage (≈ 347×263) et une case vidéo ≈ 257×540 */
@media (min-width: 981px) {
  #performance-scenique .offer-media { align-self: center; height: 540px; min-height: 0; }
}
.kpis { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpis .stat { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px 22px; }
.kpis .stat span { line-height: 1.45; }

/* ---------- Listes à puces ✦ (Dabke Show, Prestation scénique) ---------- */
.checks { list-style: none; padding: 0; margin: 6px 0 26px; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .35em; }
.checks li::before { content: "✦"; position: absolute; left: 0; color: var(--rose); font-size: 13px; top: .15em; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px;
  grid-template-rows: repeat(3, 210px) auto; /* 3 rangées d'emplacements + bandeau Instagram */
}
.gallery-grid .slot { min-height: 0; }
.g-item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* Galerie v2 (2026-11-18) : rangées « justifiées ». Chaque case prend le format exact de son média (--r = largeur/hauteur),
   et toutes les cases d'une rangée ont la même hauteur : flex-grow proportionnel au format, aspect-ratio égal au format.
   Activé seulement quand le balisage .g-rang est en place (l'ancienne grille reste valable sinon). */
.gallery-grid:has(> .g-rang) { display: flex; flex-direction: column; gap: 14px; }
.g-rang { display: flex; gap: 14px; }
.g-rang > .g-item { flex: var(--r, 1) 1 0; min-width: 0; min-height: 0; aspect-ratio: var(--r, 1); padding: 0; } /* padding 0 : sinon il fausse le partage des largeurs */
.g-rang > [data-slot="photo-6"] { --r: 1.444; } /* saut, 2048×1418 */
.g-rang > [data-slot="video-3"] { --r: 1.778; } /* Trio Joubran pivotée, 16:9 */
.g-rang > [data-slot="photo-7"] { --r: 1.499; } /* noir et blanc, 2048×1366 */
.g-rang > [data-slot="video-4"] { --r: .5625; } /* Zeyne, 9:16 */
.g-rang > [data-slot="video-5"] { --r: .566; }  /* Street Dabke, 480×848 */
.g-rang > [data-slot="video-6"] { --r: .547; }  /* Salma, 464×848 */
@media (max-width: 980px) { /* mobile (finitions plus tard) : 2 par ligne, format conservé */
  .g-rang { flex-wrap: wrap; }
  .g-rang > .g-item { flex: 1 1 calc(50% - 7px); }
}
.g-insta {
  grid-column: 1 / -1; padding: 22px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  text-decoration: none; text-align: center; transition: background .3s ease;
}
.g-insta:hover { background: var(--glass-bg-strong); }
.g-insta-handle { font: italic 500 30px/1.1 var(--serif); }
.g-insta > span:last-child { font-size: 14px; color: var(--sable); } /* « > » : ne vise que la 2e ligne, pas les spans internes */
.band-light .g-insta > span:last-child { color: var(--ink-soft); }
.band-light .g-insta:hover { background: rgba(255,255,255,.78); }

/* Carte Instagram animée (2026-11-17, demande du client) : au survol ou au focus clavier, le glyphe Instagram
   (blanc, non déformé, sur pastille bordeaux de la palette) glisse à gauche du nom du compte, qui se décale pour
   rester centré ; un reflet de verre balaie la carte ; la flèche avance. transform et opacity uniquement. */
.g-insta { position: relative; overflow: hidden; }
.g-insta-titre { position: relative; display: inline-block; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.g-insta-glyphe {
  position: absolute; right: 100%; top: 50%; margin-right: 14px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bordeaux); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(67,20,24,.7);
  opacity: 0; transform: translate(12px, -50%) scale(.7);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.g-insta-glyphe svg { width: 22px; height: 22px; display: block; }
.g-insta-fleche { display: inline-block; transition: transform .35s ease; }
.g-insta::after { /* reflet de verre */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 28%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6) 50%, transparent);
  transform: translateX(-130%) skewX(-18deg); opacity: 0; pointer-events: none;
}
.g-insta:is(:hover, :focus-visible) .g-insta-titre { transform: translateX(27px); }
.g-insta:is(:hover, :focus-visible) .g-insta-glyphe { opacity: 1; transform: translate(0, -50%) scale(1); }
.g-insta:is(:hover, :focus-visible) .g-insta-fleche { transform: translateX(5px); }
.g-insta:is(:hover, :focus-visible)::after {
  opacity: 1; transform: translateX(420%) skewX(-18deg); transition: transform 1s ease, opacity .2s ease;
}
@media (prefers-reduced-motion: reduce) { /* glyphe en simple fondu, sans mouvement ni reflet */
  .g-insta-titre, .g-insta-fleche { transition: none; }
  .g-insta:is(:hover, :focus-visible) .g-insta-titre, .g-insta:is(:hover, :focus-visible) .g-insta-fleche { transform: none; }
  .g-insta-glyphe, .g-insta:is(:hover, :focus-visible) .g-insta-glyphe { transform: translate(0, -50%); transition: opacity .2s linear; }
  .g-insta::after { display: none; }
}

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; padding: clamp(26px, 4vw, 54px); }
.contact-intro h2 { font-size: clamp(36px, 4.4vw, 52px); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--sable); }
/* Recette v0.4 m3 : champs obligatoires signalés par un astérisque (CSS seul, via :has) + mention sous les champs.
   Grille : libellé + astérisque sur la 1re ligne, champ sur la 2e. Sans :has, rendu inchangé. */
.form label:has(> :required) {
  display: grid; grid-template-columns: max-content 1fr; column-gap: 4px; row-gap: 6px; align-items: baseline;
}
.form label:has(> :required) > :is(input, textarea) { grid-column: 1 / -1; grid-row: 2; }
.form label:has(> :required)::after { content: "*"; grid-row: 1; grid-column: 2; color: var(--creme); }
@supports selector(:has(*)) {
  .form > * { order: 2; }
  .form > :is(input[type="hidden"], .hp, .row, label) { order: 0; }
  .form::after { content: "* obligatoire"; order: 1; margin: -4px 0 0; font-size: 12.5px; color: var(--sable); }
}
.form input, .form textarea {
  font: 400 16px var(--sans); color: var(--creme);
  background: rgba(44,12,15,.35); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: .8em 1em; color-scheme: dark;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(220,200,185,.8); } /* m10 : ≈ 3,3:1 → ≥ 4,5:1 */
.form-note { margin: 0; font-size: 13.5px; color: var(--sable); min-height: 1.2em; }
.form-note.is-error { color: #f2c1b3; }
.form-note.is-ok { color: var(--creme); }
.form [aria-invalid="true"] { border-color: #e29b88; box-shadow: 0 0 0 1px #e29b88; }
.form button:disabled { opacity: .65; cursor: progress; transform: none; }
.form .hp { display: none; } /* pot de miel anti-spam (botcheck) */
.form-rgpd { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sable); } /* m10 : opacité retirée (≈ 4,4:1 → ≥ 5,3:1) */
.form-rgpd a { color: var(--creme); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 50px 20px 40px; font-size: 14.5px; color: var(--sable); }
.footer-medal { width: 96px; margin: 0 auto 10px; }
.footer-ar { font-size: 22px; margin: 0; color: var(--creme); }
.footer a { color: var(--creme); }
.footer .small { font-size: 12px; opacity: .85; } /* m10 : .7 → .85 (≈ 3,1:1 → ≥ 5,8:1 sur un trait de calligraphie) */

/* Sprite d'icônes SVG (index.html) : remplace l'ancien style="position:absolute" en ligne (CSP style-src 'self') */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Pages légales (mentions-legales.html, confidentialite.html) ----------
   Fond clair calme (classe .page-calme sur <html> : pas de parallaxe), une seule carte en verre lisible. */
.band > .page-legale { width: min(880px, calc(100% - 32px)); }
.legal-card { padding: clamp(28px, 4.4vw, 60px); }
.legal-card h1 { font-size: clamp(38px, 4.4vw, 54px); margin-bottom: .25em; }
.legal-card h2 { font-size: clamp(25px, 2.5vw, 31px); margin: 1.7em 0 .45em; }
.legal-card h3 { font-size: 21px; margin: 1.2em 0 .3em; }
.legal-card p { margin: 0 0 .9em; }
.legal-card ul { margin: .2em 0 1em; padding-left: 1.25em; }
.legal-card li { margin-bottom: .35em; }
.legal-card li::marker { color: var(--rose-ink); }
.legal-card strong { font-weight: 500; }
.legal-card a:not(.btn) { color: var(--rose-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-card a:not(.btn):hover { color: var(--bordeaux); }
.legal-maj { font-size: 14px; color: var(--ink-soft); }
.legal-tableau { overflow-x: auto; margin: .3em 0 1.1em; }
.legal-card table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.legal-card th, .legal-card td { text-align: left; vertical-align: top; padding: .65em .9em; border-bottom: 1px solid rgba(67,20,24,.16); }
.legal-card th { font-weight: 500; color: var(--rose-ink); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
.legal-retour { margin: 2.4em 0 0; }
/* Champs encore à compléter : bien visibles tant que les pages ne sont pas publiées */
.a-completer {
  background: #fff1a8; color: #3d2c00; padding: .08em .35em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 6px; padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--bordeaux-deep); /* opaque : le flou ne s'applique pas dans un verre imbriqué */
    border: 1px solid var(--glass-border);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav-links a:not(.btn) { padding: 10px; font-size: 17px; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav.on-light .nav-links { background: #f7f1eb; border-color: rgba(255,255,255,.85); box-shadow: 0 20px 40px -20px rgba(67,20,24,.45); }
  .burger { display: block; }

  .hero { grid-template-columns: 1fr; padding-top: 96px; min-height: auto; }
  .hero-media { height: 52vh; min-height: 300px; }
  .hero-card { grid-column: 1; grid-row: 2; margin: -80px 14px 0; }
  .offer-grid, .offer--reverse .offer-grid { grid-template-columns: 1fr; }
  .offer--reverse .offer-media { order: 0; }
  .offer-media { min-height: 380px; }
  .gallery-grid { grid-template-rows: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .contact-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .band > section:first-child:not(.hero) { padding-top: 96px; }
  .band > section:last-of-type { padding-bottom: 60px; }
  :root { --motif-w: 1000px; }
  .kpis { grid-template-columns: 1fr; }
  .offer-media { min-height: 320px; }
  .nav { padding-left: 16px; }
  .nav-logo img { height: 36px; }
  .hero-card { margin: -60px 0 0; }
  .stat strong { font-size: 38px; }
  .form .row { grid-template-columns: 1fr; }
}
