/* =====================================================================
   LA MAISON VISUELLE
   Un gris clair lumineux, un texte presque noir, et un jaune léger en
   accent : le monogramme, les mots mis en valeur dans les titres (en
   surligneur sur le clair, en couleur de texte sur le sombre), les filets.
   Police : General Sans.
   Formes : les boutons sont des pilules, tout le reste a des coins
   de 16 px (12 px pour les petites images).
   Le gris clair s'affiche par défaut ; le bouton en haut à droite passe
   au sombre (anthracite). Le réglage « contraste élevé » renforce les gris.

   Contrastes (texte sur fond) :
     clair   encre #1A1A1A sur #ECECEA : 14,9:1   gris #55554F : 6,5:1
             le jaune n'y sert jamais de couleur de texte : trop peu lisible
     sombre  encre #F2F2F0 sur #161616 : 16,4:1   gris #ABABA6 : 8,1:1
             jaune #F2D675 : 13,2:1
   ===================================================================== */

:root {
  --fond:          #ECECEA;   /* la page */
  --surface:       #F6F6F4;   /* les cases posées dessus */
  --encre:         #1A1A1A;   /* le texte */
  --gris:          #55554F;   /* le texte secondaire */
  --accent:        #1A1A1A;   /* les mots en valeur : noirs, sur un surligneur jaune */
  --jaune:         #E9BF35;   /* le logo, les filets, les points */
  --surligne:      #F6DB72;   /* le trait de surligneur derrière les mots en valeur */
  --plein:         #1A1A1A;   /* le bouton principal */
  --sur-plein:     #F6F6F4;
  --trait:         rgba(26, 26, 26, .12);
  --panneau:       #1A1A1A;   /* les blocs mis en avant (appel final, comparatif) */
  --sur-panneau:   #F2F2F0;
  --panneau-doux:  #ABABA6;
  --ombre:         0 24px 48px -28px rgba(26, 26, 26, .30);

  --police: "General Sans", "Segoe UI", system-ui, sans-serif;
  --detente: cubic-bezier(0.16, 1, 0.3, 1);
  --rayon: 16px;
  --marge: clamp(20px, 5vw, 64px);
}
/* Le sombre : choisi par le visiteur avec le bouton (attribut data-theme). */
:root[data-theme="sombre"] {
  --fond:          #161616;
  --surface:       #1F1F1F;
  --encre:         #F2F2F0;
  --gris:          #ABABA6;
  --accent:        #F2D675;
  --jaune:         #F2D675;
  --surligne:      transparent;
  --plein:         #F2D675;
  --sur-plein:     #161616;
  --trait:         rgba(255, 255, 255, .12);
  --panneau:       #242424;
  --sur-panneau:   #F2F2F0;
  --panneau-doux:  #ABABA6;
  --ombre:         0 28px 56px -30px rgba(0, 0, 0, .75);
}
@media (prefers-contrast: more) {
  :root { --gris: #33332F; --trait: rgba(26, 26, 26, .3); }
  :root[data-theme="sombre"] { --gris: #D6D6D2; --trait: rgba(255, 255, 255, .35); }
}

/* --- Les bases ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { transition: background-color .4s var(--detente), color .4s var(--detente); }
/* Lenis : le défilement doux (voir assets/js/main.js). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 16px/1.6 var(--police);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
body { overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--surligne, #F6DB72); color: #1A1A1A; }

.evitement {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--encre); color: var(--fond); text-decoration: none;
}
.evitement:focus-visible { top: 12px; }

.cadre { width: min(1240px, 100% - 2 * var(--marge)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }

.titre-section {
  max-width: 18ch;
  margin-bottom: clamp(36px, 5vw, 64px);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.03em;
  text-wrap: balance;
}
/* Les mots mis en valeur dans un titre : un trait de surligneur jaune
   sur le clair, une couleur jaune sur le sombre. */
h1 em, h2 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 58%, var(--surligne) 58%, var(--surligne) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}

/* --- Les boutons ------------------------------------------------------ */
.appels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--detente), color .3s var(--detente),
              border-color .3s var(--detente), transform .3s var(--detente);
}
.bouton:active { transform: translateY(1px) scale(.99); }
.bouton i { font-size: 18px; transition: transform .35s var(--detente); }
.bouton:hover i { transform: translateX(3px); }
.bouton-plein { background: var(--plein); color: var(--sur-plein); }
.bouton-plein:hover { background: color-mix(in srgb, var(--plein) 86%, var(--encre)); }
/* Dans les blocs mis en avant, le bouton est toujours or sable. */
.bouton-inverse { background: #F2D675; color: #1A1A1A; }
.bouton-inverse:hover { background: #F6E08F; }
.bouton-petit { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* =====================================================================
   LE LOGO ET LE CHOIX DU THÈME (dans la capsule de verre, plus bas).
   ===================================================================== */
.marque {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.marque .monogramme { width: 28px; height: auto; }

/* Le bouton clair / sombre : la lune en clair, le soleil en sombre. */
.theme {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--trait);
  background: transparent; color: var(--encre);
  cursor: pointer;
  transition: border-color .3s var(--detente), transform .3s var(--detente);
}
.theme:hover { border-color: var(--encre); }
.theme:active { transform: scale(.94); }
.theme i { grid-area: 1 / 1; font-size: 19px; transition: opacity .3s, transform .5s var(--detente); }
/* Le clair est affiché par défaut : la lune pour passer au sombre. */
.theme .ph-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="sombre"] .theme .ph-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="sombre"] .theme .ph-sun { opacity: 1; transform: none; }

/* =====================================================================
   L'ACCUEIL
   ===================================================================== */
.accueil { padding: 28px 0 clamp(72px, 9vw, 120px); }
/* La promesse à gauche, alignée à gauche ; le grand monogramme à droite.
   Sur téléphone, le monogramme passe au-dessus, plus petit. */
.accueil-grille {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "texte logo";
  align-items: center; gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(48px, 8vw, 120px);
}
.accueil-texte { grid-area: texte; }
.accueil-logo {
  grid-area: logo; justify-self: center;
  width: clamp(160px, 22vw, 320px); height: auto;
  color: var(--jaune);
}
@media (max-width: 860px) {
  .accueil-grille { grid-template-columns: 1fr; grid-template-areas: "logo" "texte"; gap: 36px; }
  .accueil-logo { justify-self: start; width: clamp(88px, 22vw, 120px); }
}
.accueil-titre {
  max-width: 13ch;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.accueil-sous {
  max-width: 40ch; margin: 24px 0 36px;
  font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--gris);
}

/* =====================================================================
   LES SERVICES : trois lignes séparées par un filet.
   ===================================================================== */
.offre {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--trait);
}
.offre:last-child { border-bottom: 1px solid var(--trait); }
.offre h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.offre p { color: var(--gris); max-width: 46ch; }
.offre .offre-pour { margin-top: 10px; color: var(--encre); font-weight: 500; max-width: 30ch; }
.offre ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.offre li { display: flex; gap: 10px; }
.offre li::before {
  content: ""; flex: none; width: 10px; height: 2px; margin-top: .75em;
  background: var(--jaune);
}
@media (max-width: 860px) {
  .offre { grid-template-columns: 1fr; gap: 14px; }
}

/* =====================================================================
   LES AVANTAGES : quatre cases égales, deux par rangée.
   ===================================================================== */
.atouts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "mobile accent"
    "a      b";
  gap: clamp(16px, 2vw, 24px);
}
.atout {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--rayon);
  background: var(--surface);
  border: 1px solid var(--trait);
}
.atout i { font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.atout h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.atout p { color: var(--gris); max-width: 44ch; }
.atout-mobile { grid-area: mobile; }
.atout-accent { grid-area: accent; background: var(--panneau); border-color: transparent; color: var(--sur-panneau); }
.atout-accent i { color: var(--sur-panneau); }
.atout-accent p { color: var(--panneau-doux); }
.atout:nth-child(3) { grid-area: a; }
.atout:nth-child(4) { grid-area: b; }

@media (max-width: 860px) {
  .atouts { grid-template-columns: 1fr; grid-template-areas: "mobile" "accent" "a" "b"; }
}

/* =====================================================================
   LA MÉTHODE : quatre colonnes reliées par un trait.
   ===================================================================== */
.etapes {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
  counter-reset: etape;
}
.etapes li { position: relative; padding-top: 32px; border-top: 1px solid var(--trait); }
.etapes li::before {
  content: ""; position: absolute; left: 0; top: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--fond); border: 1px solid var(--jaune);
}
.etapes li:first-child::before { background: var(--jaune); }
.etapes h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.etapes p { color: var(--gris); font-size: 15.5px; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 520px) {
  .etapes { grid-template-columns: 1fr; }
}

/* =====================================================================
   LES QUESTIONS : le titre reste à gauche, les réponses à droite.
   ===================================================================== */
.questions-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.questions-grille .titre-section { position: sticky; top: 40px; }
.questions details { border-top: 1px solid var(--trait); }
.questions details:last-child { border-bottom: 1px solid var(--trait); }
.questions summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary i { flex: none; font-size: 20px; color: var(--gris); transition: transform .35s var(--detente); }
.questions details[open] summary i { transform: rotate(45deg); }
.questions details p { padding: 0 48px 24px 0; color: var(--gris); max-width: 62ch; }
@media (max-width: 860px) {
  .questions-grille { grid-template-columns: 1fr; }
  .questions-grille .titre-section { position: static; }
}

/* =====================================================================
   L'APPEL FINAL
   ===================================================================== */
.appel-final {
  padding: clamp(40px, 7vw, 96px);
  border-radius: var(--rayon);
  background: var(--panneau);
  color: var(--sur-panneau);
  border: 1px solid rgba(242, 214, 117, .25);
}
.appel-final h2 {
  max-width: 14ch;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.04em;
}
.appel-final h2 em { color: #F2D675; background: none; }
.appel-final p {
  max-width: 44ch; margin: 20px 0 36px;
  font-size: 18px; color: var(--panneau-doux);
}
.lien-courriel {
  padding: 0 8px; font-size: 16px;
  color: var(--sur-panneau);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.lien-courriel:hover { text-decoration-thickness: 2px; }
.appel-final :focus-visible { outline-color: var(--sur-panneau); }

/* =====================================================================
   LE PIED DE PAGE
   ===================================================================== */
.pied { padding: 40px 0 48px; border-top: 1px solid var(--trait); }
.pied-grille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14.5px; }
.pied-marque { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.pied-marque .monogramme { width: 24px; height: auto; }
.pied-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--gris); }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }

/* =====================================================================
   LE PROBLÈME : le titre à gauche, trois pertes numérotées à droite.
   ===================================================================== */
.probleme-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.probleme .titre-section { margin-bottom: 0; }
.pertes { list-style: none; padding: 0; counter-reset: perte; }
.pertes li {
  counter-increment: perte;
  display: grid; grid-template-columns: 48px 1fr; column-gap: 8px;
  padding: 28px 0; border-top: 1px solid var(--trait);
}
.pertes li:last-child { border-bottom: 1px solid var(--trait); }
.pertes li::before {
  content: counter(perte, decimal-leading-zero);
  grid-row: span 2;
  font-size: 15px; font-weight: 500; color: var(--gris);
  font-variant-numeric: tabular-nums; padding-top: 4px;
}
.pertes h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.pertes p { color: var(--gris); max-width: 52ch; }
@media (max-width: 860px) { .probleme-grille { grid-template-columns: 1fr; } }

/* =====================================================================
   LE COMPARATIF : notre colonne sur un panneau, les autres en retrait.
   ===================================================================== */
.comparatif { overflow-x: auto; margin-inline: -4px; padding: 4px; }
.comparatif table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.comparatif th, .comparatif td { padding: 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--trait); }
.comparatif thead th { font-size: 15px; font-weight: 500; color: var(--gris); border-bottom: 0; padding-bottom: 16px; }
.comparatif tbody th { font-weight: 500; font-size: 16px; width: 34%; }
.comparatif td { color: var(--gris); font-size: 14.5px; }
.comparatif td i { font-size: 20px; color: var(--gris); vertical-align: middle; }
.comparatif td small { display: block; margin-top: 4px; font-size: 13.5px; }
.comparatif td small.seul { margin-top: 0; font-size: 14.5px; }
/* Notre colonne : un panneau continu, du haut au bas du tableau. */
.comparatif .nous { background: var(--panneau); color: var(--sur-panneau); border-bottom-color: color-mix(in srgb, var(--sur-panneau) 14%, transparent); }
.comparatif thead .nous { color: var(--sur-panneau); font-weight: 600; font-size: 16px; border-radius: var(--rayon) var(--rayon) 0 0; padding-top: 22px; }
.comparatif tbody tr:last-child .nous { border-radius: 0 0 var(--rayon) var(--rayon); }
.comparatif .nous i { color: #F2D675; }
.comparatif .nous strong { font-weight: 500; font-size: 15px; }
.comparatif tbody tr:last-child th, .comparatif tbody tr:last-child td { border-bottom: 0; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =====================================================================
   LES APPARITIONS : chaque bloc monte doucement en entrant à l'écran.
   Sans script ou avec « moins d'animations », tout est visible d'emblée.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-apparait] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .8s var(--detente), transform .8s var(--detente);
    transition-delay: calc(var(--rang, 0) * 70ms);
  }
  .js [data-apparait].visible { opacity: 1; transform: none; }
}

/* Sur téléphone, le tableau défile de côté : la colonne des critères
   reste figée à gauche pour qu'on sache toujours ce qu'on compare. */
@media (max-width: 760px) {
  .comparatif table { min-width: 640px; }
  .comparatif tbody th, .comparatif thead th:first-child {
    position: sticky; left: 0; z-index: 1;
    width: 150px; background: var(--fond); font-size: 14.5px;
  }
}

/* =====================================================================
   LE VERRE (approximation web du Liquid Glass d'Apple)
   Comme chez Apple, le verre est réservé à la couche qui flotte au-dessus
   du contenu : la capsule du haut, le dock du bas, les commandes. Jamais
   sur les textes ni les cartes. Il n'existe pas de « Liquid Glass » officiel
   pour le web : ceci l'imite avec un flou d'arrière-plan, une saturation
   légère, un remplissage translucide et un reflet sur l'arête.
   ===================================================================== */
:root {
  --verre-fond:   rgba(246, 246, 244, .66);
  --verre-bord:   rgba(255, 255, 255, .7);
  --verre-arete:  rgba(26, 26, 26, .08);
  --verre-reflet: rgba(255, 255, 255, .8);
  --verre-ombre:  0 1px 1px rgba(26, 26, 26, .04), 0 12px 32px -12px rgba(26, 26, 26, .22);
}
:root[data-theme="sombre"] {
  --verre-fond:   rgba(36, 36, 36, .62);
  --verre-bord:   rgba(255, 255, 255, .12);
  --verre-arete:  rgba(0, 0, 0, .45);
  --verre-reflet: rgba(255, 255, 255, .07);
  --verre-ombre:  0 1px 1px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .7);
}

.verre {
  position: relative; isolation: isolate;
  background: var(--verre-fond);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
          backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--verre-bord);
  box-shadow:
    inset 0 1px 0 var(--verre-reflet),       /* la lumière sur l'arête haute */
    inset 0 -1px 0 var(--verre-arete),       /* l'ombre sur l'arête basse */
    var(--verre-ombre);
}
/* Le reflet : une lueur douce en haut à gauche, comme une lumière de studio. */
.verre::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: none;
}

/* --- La capsule du haut -------------------------------------------- */
.capsule {
  position: fixed; z-index: 50;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1240px, 100% - 2 * var(--marge));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}
.capsule .marque { text-decoration: none; }
.capsule .monogramme { width: 24px; }
.capsule .theme { border-color: transparent; background: transparent; }
.capsule .theme:hover { background: color-mix(in srgb, var(--encre) 7%, transparent); border-color: transparent; }

/* Le bord de défilement d'Apple : le contenu se fond et se floute en
   passant sous la capsule, au lieu de la heurter. */
.bord-defilement {
  position: fixed; z-index: 49; top: 0; left: 0; right: 0; height: 88px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--fond) 0%, color-mix(in srgb, var(--fond) 70%, transparent) 45%, transparent 100%);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
          mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.accueil { padding-top: 88px; }

/* --- Le dock du bas ------------------------------------------------- */
.dock {
  position: fixed; z-index: 40;
  left: 50%; bottom: clamp(14px, 2.4vw, 24px);
  display: flex; align-items: center; gap: 20px;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  opacity: 0; transform: translate(-50%, 20px) scale(.96); pointer-events: none;
  transition: opacity .5s var(--detente), transform .6s var(--detente);
}
.dock.visible { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.dock p { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.dock p span { color: var(--gris); font-weight: 400; }
.dock .bouton { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
@media (max-width: 560px) {
  .dock { left: 12px; right: 12px; transform: translateY(20px); padding: 6px; }
  .dock.visible { transform: none; }
  .dock p { display: none; }
  .dock .bouton { flex: 1; }
}

/* --- Les boutons de verre ------------------------------------------- */
.bouton-verre { color: var(--encre); }
.bouton-verre:hover { background: color-mix(in srgb, var(--verre-fond) 70%, var(--encre) 8%); }
.theme.verre, .theme { -webkit-tap-highlight-color: transparent; }

/* --- Accessibilité : moins de transparence, plus de contraste ------- */
@media (prefers-reduced-transparency: reduce) {
  .verre, .bord-defilement {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--surface);
  }
  .verre::before { display: none; }
  .bord-defilement { background: linear-gradient(180deg, var(--fond) 60%, transparent); }
}
@media (prefers-contrast: more) {
  .verre { background: var(--surface); border-color: var(--encre); }
  .verre::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dock { transition: opacity .2s linear; }
}

/* =====================================================================
   LES RÉALISATIONS EN JEU DE CARTES
   Trois projets, trois cartes à jouer. Sans script (ou avec « moins
   d'animations »), elles sont posées côte à côte, face visible. Avec le
   script, la classe .anime les empile en paquet, face cachée ; GSAP les
   distribue en éventail puis les retourne (assets/js/main.js).
   La face des cartes prend la couleur du fond de la page (claire ou
   sombre selon le thème) ; seule l'ombre les détache de la table.
   ===================================================================== */
.realisations { padding-bottom: clamp(48px, 8vw, 96px); }
.table-cartes { position: relative; }
.jeu {
  --carte-l: clamp(230px, 25vw, 360px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 48px) var(--marge);
  perspective: 1800px;
}
.carte-jeu { width: var(--carte-l); aspect-ratio: 5 / 7; }
.carte-survol {
  width: 100%; height: 100%;
  transition: transform .5s var(--detente);
}
.carte-interieur {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
}
.carte-face, .carte-dos {
  position: absolute; inset: 0;
  border-radius: clamp(14px, 1.4vw, 20px);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 2px 4px rgba(17, 17, 17, .08),
    0 30px 60px -28px rgba(17, 17, 17, .45);
}

/* La face : un carton clair, une marge comme sur une vraie carte, la
   capture du site en haut, le nom en bas. */
.carte-face {
  display: flex; flex-direction: column;
  padding: 10px;
  background: var(--fond);
  color: var(--encre);
  border: 1px solid var(--trait);
}
.carte-face img {
  flex: 1; min-height: 0; width: 100%;
  object-fit: cover; object-position: 50% 0%;
  border-radius: clamp(8px, .9vw, 12px);
}
.carte-legende { padding: 14px 6px 6px; }
.carte-legende h3 {
  font-family: var(--police-titre, var(--police));
  font-size: clamp(20px, 1.7vw, 25px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em;
}
.carte-legende p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--gris); }

/* Le dos : noir, un double filet comme le bord d'une carte, un motif
   fin, et le monogramme au centre. */
.carte-dos {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(245, 245, 243, .045) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(245, 245, 243, .045) 0 1px, transparent 1px 9px),
    #111111;
  color: #F5F5F3;
  transform: rotateY(180deg);
}
.carte-dos::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(245, 245, 243, .28);
  border-radius: clamp(8px, .9vw, 12px);
}
.carte-dos svg { width: 34%; height: auto; }

/* Le paquet, puis la main : les cartes sont superposées au centre de la
   table, et GSAP les déplace. */
.table-cartes.anime .jeu {
  display: block; position: relative;
  height: 100vh; height: 100svh;
  padding: 0;
}
.table-cartes.anime .carte-jeu {
  position: absolute; left: 50%; top: 54%;
  margin-left: calc(var(--carte-l) / -2);
  margin-top: calc(var(--carte-l) * -0.7);
}
/* Une carte distribuée se soulève au survol. */
.table-cartes.distribue .carte-jeu:hover .carte-survol { transform: translateY(-14px) scale(1.03); }

@media (max-width: 760px) {
  .jeu { --carte-l: min(40vw, 200px); }
  .carte-legende p { display: none; }
  .carte-legende { padding: 10px 4px 4px; }
  .carte-legende h3 { font-size: 16px; }
}
