/* ==========================================================================
   Cabinet Monceau · compte Instagram de démonstration
   Palette et polices reprises du site demo-cabinet-monceau.
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("polices/Fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("polices/InstrumentSans.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("polices/InstrumentSans-Italic.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --porcelaine: #F6F5F1;
  --blanc: #FFFFFF;
  --encre: #101815;
  --gris: #6B736E;
  --gris-clair: #D9DBD5;
  --vert: #1E4A3C;
  --vert-sombre: #0F2A22;
  --vert-clair: #E6ECE5;
  --laiton: #B9975B;
  --laiton-clair: #E8DCC2;
  --terre: #C98E6B;

  --ecran: 368px;               /* largeur utile de l'écran du téléphone */
  --titre: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --courbe: cubic-bezier(.2, .7, .2, 1);
  --tel-l: 390px;
  --tel-h: 844px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--encre);
  background:
    radial-gradient(120% 90% at 50% -10%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
    radial-gradient(80% 60% at 85% 100%, rgba(185,151,91,.10) 0%, rgba(185,151,91,0) 60%),
    var(--porcelaine);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- La scène (fond de présentation) ---------- */
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: 100%;
  max-width: 1500px;
}
.scene__cote { max-width: 340px; }
.scene__cote--gauche { justify-self: end; text-align: right; }
.scene__cote--droite { justify-self: start; }
.scene__oeil {
  margin: 0 0 .7rem; font-family: var(--texte); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--laiton);
}
.scene__titre {
  margin: 0 0 1.1rem; font-family: var(--titre); font-weight: 300; font-size: 2.35rem;
  line-height: 1.08; letter-spacing: -.015em; color: var(--vert-sombre);
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 0;
}
.scene__texte { margin: 0 0 1.6rem; font-family: var(--texte); font-size: .95rem; line-height: 1.6; color: var(--gris); }
.scene__aide { margin: 0; font-family: var(--texte); font-size: .82rem; color: var(--vert); display: inline-flex; align-items: center; gap: .5rem; }
.scene__cote--gauche .scene__aide { flex-direction: row-reverse; }
.scene__puce { width: 7px; height: 7px; border-radius: 50%; background: var(--laiton); flex: none; }
.scene__fiche { border-left: 1px solid var(--gris-clair); padding-left: 1.6rem; }
.scene__fiche ul { margin: 0 0 1.8rem; display: grid; gap: .55rem; }
.scene__fiche li {
  font-family: var(--texte); font-size: .88rem; line-height: 1.45; color: var(--encre);
  padding-left: 1.1rem; position: relative;
}
.scene__fiche li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--laiton-clair); border: 1px solid var(--laiton);
}
.scene__fiche ul:last-of-type { margin-bottom: 0; }

@media (max-width: 1180px) {
  .scene { grid-template-columns: 1fr; gap: 2rem; }
  .scene__cote { display: none; }
}

/* ---------- Le téléphone ---------- */
.tel {
  position: relative;
  width: var(--tel-l); height: var(--tel-h);
  background: #0b0b0c;
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    0 0 0 1.5px #3a3a3d,
    0 2px 0 2px rgba(255,255,255,.14) inset,
    0 40px 80px -30px rgba(16,24,21,.45),
    0 12px 30px -12px rgba(16,24,21,.25);
  flex: none;
}
.tel__ecran {
  position: relative; width: 100%; height: 100%;
  border-radius: 44px; overflow: hidden; background: var(--blanc);
  display: flex; flex-direction: column;
}
.tel__trait {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 130px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55);
  pointer-events: none; z-index: 40;
}

/* barre d'état */
.tel__barre {
  position: absolute; inset: 0 0 auto; height: 54px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.6rem; color: var(--encre); pointer-events: none;
}
.tel__heure { font-size: .92rem; font-weight: 600; letter-spacing: -.01em; padding-top: 4px; }
.tel__ile {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  width: 108px; height: 32px; border-radius: 20px; background: #0b0b0c;
}
.tel__etat { display: inline-flex; align-items: center; gap: 5px; padding-top: 4px; }
.tel__etat svg { fill: currentColor; }

/* ---------- Les vues ---------- */
.vue { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--blanc); }
.vue[hidden] { display: none; }
.defile {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.defile::-webkit-scrollbar { display: none; }

/* ---------- En-tête ---------- */
.tete {
  flex: none; height: 96px; padding: 50px 1rem 0;
  display: flex; align-items: center; gap: .4rem;
  border-bottom: .5px solid transparent; background: var(--blanc); z-index: 20;
}
.tete__prive { color: var(--encre); display: inline-flex; }
.tete__prive svg { fill: currentColor; }
.tete__nom { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.tete__chevron { color: var(--encre); display: inline-flex; opacity: .9; }
.tete__droite { margin-left: auto; display: inline-flex; gap: 1.1rem; color: var(--encre); }
.tete--retour { border-bottom: .5px solid #EFEFEF; gap: .9rem; }
.tete__retour { display: inline-flex; color: var(--encre); }
.tete__titre { font-size: .95rem; font-weight: 600; }

/* ---------- Profil ---------- */
.profil { padding: 1rem 1rem .25rem; }
.profil__haut { display: flex; align-items: center; gap: 1.6rem; }
.profil__avatar {
  width: 88px; height: 88px; border-radius: 50%; padding: 2.5px; flex: none;
  background: linear-gradient(145deg, var(--laiton), var(--laiton-clair) 45%, var(--vert-clair));
}
.profil__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--blanc); }
.profil__stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.profil__stats strong { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.profil__stats span { font-size: .82rem; color: var(--encre); }

.profil__bio { margin-top: .9rem; font-size: .855rem; line-height: 1.45; }
.profil__bio .bio__nom { font-weight: 700; }
.profil__bio .bio__cat { color: var(--gris); }
.profil__bio .bio__l { display: block; }
.profil__bio a { color: #00376B; text-decoration: none; font-weight: 600; }
.profil__bio .bio__lien svg { vertical-align: -1px; margin-right: 3px; }
.profil__bio .bio__suivi { margin-top: .5rem; display: flex; align-items: center; gap: .4rem; color: var(--gris); font-size: .78rem; }
.profil__bio .bio__tetes { display: inline-flex; }
.profil__bio .bio__tetes img { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--blanc); object-fit: cover; margin-left: -6px; }
.profil__bio .bio__tetes img:first-child { margin-left: 0; }

.profil__boutons { margin-top: .95rem; display: flex; gap: .4rem; }
.bouton {
  flex: 1; height: 33px; border-radius: 9px; background: #EFEFEF;
  font-size: .845rem; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--courbe);
}
.bouton:active { background: #E2E2E2; }
.bouton--plein { background: var(--vert); color: var(--porcelaine); }
.bouton--plein:active { background: var(--vert-sombre); }
.bouton--carre { flex: none; width: 33px; }

/* ---------- Stories à la une ---------- */
.alaune {
  margin: 1.15rem -1rem .35rem; padding: 0 1rem .35rem;
  display: flex; gap: .85rem; overflow-x: auto; scrollbar-width: none;
}
.alaune::-webkit-scrollbar { display: none; }
.alaune__b { width: 68px; flex: none; display: grid; justify-items: center; gap: .42rem; }
.alaune__rond {
  width: 66px; height: 66px; border-radius: 50%; padding: 2px;
  background: linear-gradient(160deg, var(--laiton-clair), var(--gris-clair));
  transition: transform .2s var(--courbe);
}
.alaune__b:active .alaune__rond { transform: scale(.94); }
.alaune__b.est-vu .alaune__rond { background: var(--gris-clair); }
.alaune__disque {
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--blanc);
  background: var(--vert); display: grid; place-items: center; overflow: hidden;
}
.alaune__disque svg { width: 30px; height: 30px; }
.alaune__nom {
  font-size: .715rem; line-height: 1.2; text-align: center; color: var(--encre);
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Onglets ---------- */
.onglets { margin-top: .6rem; display: flex; border-top: .5px solid #DBDBDB; }
.onglets__b { flex: 1; height: 44px; display: grid; place-items: center; color: #C7C7C7; position: relative; }
.onglets__b.est-actif { color: var(--encre); }
.onglets__b.est-actif::after { content: ""; position: absolute; inset: auto 0 0; height: 1.5px; background: var(--encre); }

/* ---------- Grille ---------- */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.vignette {
  position: relative; aspect-ratio: 1; overflow: hidden; display: block;
  background: var(--vert-clair); cursor: pointer;
}
.vignette .carte { width: 100%; }
.vignette__pile {
  position: absolute; top: 7px; right: 7px; z-index: 5; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.vignette::after {
  content: ""; position: absolute; inset: 0; background: rgba(16,24,21,0);
  transition: background .18s var(--courbe);
}
.vignette:active::after { background: rgba(16,24,21,.12); }

/* ---------- Signature ---------- */
.signature { padding: 2.2rem 1.5rem 1.6rem; text-align: center; }
.signature__filet { display: block; width: 34px; height: 1px; background: var(--laiton); margin: 0 auto 1.1rem; }
.signature p { margin: 0 0 .3rem; font-family: var(--texte); font-size: .715rem; line-height: 1.5; color: var(--gris); }
.signature strong { color: var(--vert); font-weight: 600; }

/* ---------- Barre du bas ---------- */
.barre-bas {
  flex: none; height: 62px; padding: 0 1.1rem 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: .5px solid #DBDBDB; background: var(--blanc); z-index: 20;
}
.barre-bas button { color: var(--encre); display: inline-flex; }
.barre-bas__moi img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--encre); }

/* ---------- Publication ouverte ---------- */
.post { border-bottom: .5px solid #EFEFEF; padding-bottom: 1rem; }
.post:last-child { border-bottom: 0; }
.post__tete { display: flex; align-items: center; gap: .62rem; padding: .7rem .9rem; }
.post__avatar { width: 33px; height: 33px; border-radius: 50%; object-fit: cover; flex: none; }
.post__qui { display: grid; line-height: 1.25; }
.post__nom { font-size: .84rem; font-weight: 600; }
.post__lieu { font-size: .75rem; color: var(--encre); }
.post__pts { margin-left: auto; color: var(--encre); letter-spacing: .09em; font-size: .9rem; }

.post__media { position: relative; background: var(--vert-clair); overflow: hidden; }
.post__rail {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.post__rail::-webkit-scrollbar { display: none; }
.post__rail > * { flex: 0 0 100%; scroll-snap-align: center; }
.post__compteur {
  position: absolute; top: 11px; right: 11px; z-index: 6;
  background: rgba(16,24,21,.62); color: #fff; font-size: .74rem; font-weight: 600;
  padding: 3px 9px; border-radius: 12px; backdrop-filter: blur(3px);
}
.post__points { display: flex; justify-content: center; gap: 4px; padding: .55rem 0 .1rem; }
.post__point { width: 5.5px; height: 5.5px; border-radius: 50%; background: #C7C7C7; transition: background .2s, transform .2s; }
.post__point.est-actif { background: var(--vert); transform: scale(1.12); }

.post__actions { display: flex; align-items: center; gap: 1rem; padding: .55rem .9rem .3rem; color: var(--encre); }
.post__actions .a-droite { margin-left: auto; }
.post__coeur.est-aime { color: #E0475B; }
.post__coeur.est-aime svg { fill: currentColor; }
.post__chiffres { padding: 0 .9rem; font-size: .84rem; font-weight: 600; }
.post__legende { padding: .38rem .9rem 0; font-size: .855rem; line-height: 1.5; white-space: pre-line; }
.post__legende .nom { font-weight: 600; }
.post__legende .suite {
  display: block; margin-top: .2rem; color: var(--gris); font-weight: 500;
}
.post__legende.est-ouverte .suite { display: none; }
.post__legende .corps { display: none; }
.post__legende.est-ouverte .corps { display: inline; }
.post__mots { color: #00376B; }
.post__com { padding: .45rem .9rem 0; font-size: .84rem; color: var(--gris); }
.post__com b { color: var(--encre); font-weight: 600; }
.post__com .une { color: var(--encre); display: block; margin-top: .25rem; }
.post__date { padding: .5rem .9rem 0; font-size: .69rem; color: var(--gris); letter-spacing: .01em; text-transform: uppercase; }

/* ==========================================================================
   LES CARTES · le système graphique des créas
   Une même carte sert de vignette (carré) et de page de publication (4:5).
   Toutes les tailles sont des multiples de --u : la composition suit le format.
   ========================================================================== */

.carte {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--porcelaine); color: var(--encre);
  --u: calc(var(--ecran) / 100);   /* 1 % de la largeur de la carte */
  --e: 1;                          /* facteur de lisibilité */
  --pad: calc(8.5 * var(--u));
}
.vignette .carte { aspect-ratio: 1; --u: calc((var(--ecran) - 4px) / 300); --e: 1.26; }

/* --- ambiances --- */
.t-porcelaine { background: var(--porcelaine); color: var(--encre); --trait: var(--laiton); --doux: var(--gris); }
.t-vertclair  { background: var(--vert-clair);  color: var(--vert-sombre); --trait: var(--laiton); --doux: #4E6459; }
.t-vert       { background: var(--vert);        color: var(--porcelaine); --trait: var(--laiton-clair); --doux: #A9BCB2; }
.t-vertsombre { background: var(--vert-sombre); color: var(--porcelaine); --trait: var(--laiton); --doux: #8FA79B; }
.t-laiton     { background: var(--laiton-clair);color: var(--vert-sombre); --trait: var(--vert); --doux: #6E6248; }

/* grain de papier, très léger */
.t-porcelaine::before, .t-vertclair::before, .t-laiton::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* --- éléments communs --- */
.c-oeil {
  font-family: var(--texte); font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  font-size: calc(calc(2.55 * var(--u)) * var(--e)); color: var(--trait, var(--laiton)); line-height: 1;
}
.c-titre {
  font-family: var(--titre); font-weight: 300; line-height: 1.04; letter-spacing: -.018em;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 0;
  font-size: calc(calc(8.4 * var(--u)) * var(--e)); margin: 0; text-wrap: balance;
}
.c-titre em { font-style: italic; font-variation-settings: "opsz" 40, "SOFT" 80, "WONK" 1; }
.c-corps {
  font-family: var(--texte); font-size: calc(calc(3.75 * var(--u)) * var(--e)); line-height: 1.52;
  margin: 0; color: inherit; opacity: .92; text-wrap: pretty;
}
.c-filet { display: block; width: calc(calc(9 * var(--u)) * var(--e)); height: 1px; background: var(--trait, var(--laiton)); opacity: .85; }
.c-mono {
  position: absolute; left: 50%; bottom: calc(var(--pad) * .62); transform: translateX(-50%);
  font-family: var(--titre); font-size: calc(calc(3.4 * var(--u)) * var(--e)); letter-spacing: .3em;
  color: var(--trait, var(--laiton)); opacity: .75; text-transform: uppercase; white-space: nowrap;
}
.c-num {
  position: absolute; top: var(--pad); right: var(--pad);
  font-family: var(--titre); font-size: calc(calc(4.2 * var(--u)) * var(--e)); color: var(--trait, var(--laiton));
  opacity: .8; letter-spacing: .04em;
}
.c-cadre { position: absolute; inset: calc(var(--pad) * .55); border: 1px solid currentColor; opacity: .16; pointer-events: none; }

/* --- carte photo --- */
.c-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-photo .voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,26,21,.78) 0%, rgba(11,26,21,.56) 16%, rgba(11,26,21,.24) 36%, rgba(11,26,21,0) 58%);
}
.c-photo .voile--haut {
  background:
    linear-gradient(to bottom, rgba(11,26,21,.74) 0%, rgba(11,26,21,.46) 18%, rgba(11,26,21,.18) 38%, rgba(11,26,21,0) 60%);
}
.c-photo .bloc {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) * .95);
  color: #fff; display: grid; gap: calc(calc(2.2 * var(--u)) * var(--e)); justify-items: start;
}
.c-photo .bloc--haut { bottom: auto; top: calc(var(--pad) * .95); }
.c-photo .c-titre { color: #fff; text-shadow: 0 1px 2px rgba(11,26,21,.28), 0 2px 18px rgba(11,26,21,.4); }
.c-photo .c-oeil { color: var(--laiton-clair); text-shadow: 0 1px 6px rgba(11,26,21,.5); }
.c-photo .c-corps { color: rgba(255,255,255,.9); font-size: calc(calc(3.4 * var(--u)) * var(--e)); }

/* --- carte reel (vidéo) --- */
.c-reel { aspect-ratio: 9 / 16; background: #0B1A15; }
.c-reel video, .c-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette .c-reel img { object-position: 50% 30%; }  /* garde la signature, le visage et le titre, coupe le sous-titre */
.c-reel__lire {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,26,21,.42); color: #fff; backdrop-filter: blur(2px);
  box-shadow: 0 2px 16px rgba(0,0,0,.28);
  transition: opacity .2s var(--courbe), transform .2s var(--courbe);
}
.c-reel__lire svg { margin-left: 3px; }
.c-reel.est-en-lecture .c-reel__lire { opacity: 0; transform: translate(-50%, -50%) scale(.85); pointer-events: none; }
.c-reel__son {
  position: absolute; right: 11px; bottom: 11px; z-index: 6;
  width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,26,21,.55); color: #fff; backdrop-filter: blur(3px);
}
.c-reel__duree {
  position: absolute; left: 12px; bottom: 14px; z-index: 6;
  color: #fff; font-family: var(--texte); font-size: .74rem; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.vignette__reel {
  position: absolute; top: 6px; right: 6px; z-index: 5; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

/* --- carte planche (illustration) --- */
.c-planche { display: grid; grid-template-rows: auto 1fr auto; padding: var(--pad); text-align: center; }
.c-planche .haut { display: grid; gap: calc(calc(2 * var(--u)) * var(--e)); justify-items: center; z-index: 2; }
.c-planche .dessin { position: relative; min-height: 0; }
.c-planche .dessin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.c-planche .bas { display: grid; gap: calc(calc(2.4 * var(--u)) * var(--e)); justify-items: center; z-index: 2; }
.c-planche .c-titre { font-size: calc(calc(7.4 * var(--u)) * var(--e)); }
.c-planche .c-corps { font-size: calc(calc(3.5 * var(--u)) * var(--e)); max-width: 86%; }

/* planche pleine : l'illustration occupe tout, le texte par-dessus */
.c-planche--pleine { display: block; padding: 0; }
.c-planche--pleine .dessin { position: absolute; inset: 0; }
.c-planche--pleine .dessin img { object-fit: cover; }
.c-planche--pleine .haut {
  position: absolute; top: var(--pad); left: var(--pad); right: var(--pad); justify-items: center;
}
.c-planche--pleine .bas {
  position: absolute; bottom: calc(var(--pad) * .9); left: var(--pad); right: var(--pad); justify-items: center;
}

/* légendes posées sur une planche */
.c-legende {
  position: absolute; display: grid; gap: calc(calc(1 * var(--u)) * var(--e)); justify-items: start;
  font-family: var(--texte); font-size: calc(calc(3 * var(--u)) * var(--e)); line-height: 1.3; z-index: 3;
}
.c-legende b { font-weight: 600; color: var(--vert-sombre); }
.c-legende span { color: var(--gris); }
.c-legende--droite { justify-items: end; text-align: right; }

/* --- carte texte --- */
.c-texte { display: grid; align-content: center; gap: calc(calc(4 * var(--u)) * var(--e)); padding: var(--pad); }
.c-texte--haut { align-content: start; padding-top: calc(var(--pad) * 1.5); }
.c-texte .c-titre { font-size: calc(calc(9.2 * var(--u)) * var(--e)); }
.c-texte--grand .c-titre { font-size: calc(calc(11.5 * var(--u)) * var(--e)); }
.c-texte .rangee { display: grid; gap: calc(calc(2.6 * var(--u)) * var(--e)); }

/* --- carte chiffre --- */
.c-chiffre { display: grid; align-content: center; justify-items: center; gap: calc(calc(3 * var(--u)) * var(--e)); padding: var(--pad); text-align: center; }
.c-chiffre .grand {
  font-family: var(--titre); font-weight: 300; font-size: calc(calc(21 * var(--u)) * var(--e)); line-height: .92;
  letter-spacing: -.03em; font-variation-settings: "opsz" 144, "SOFT" 40; color: var(--vert);
}
.c-chiffre .grand small { display: block; font-size: .42em; letter-spacing: .02em; color: inherit; opacity: .9; }
.c-chiffre .c-corps { max-width: 84%; }

/* --- carte étape (photo + bandeau) --- */
.c-etape { display: grid; grid-template-rows: 1fr auto; }
.c-etape .vue-photo { position: relative; overflow: hidden; }
.c-etape .vue-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-etape .pastille {
  position: absolute; top: calc(var(--pad) * .8); left: calc(var(--pad) * .8);
  background: var(--porcelaine); color: var(--vert-sombre);
  font-family: var(--titre); font-size: calc(calc(4.4 * var(--u)) * var(--e)); letter-spacing: -.01em;
  padding: calc(calc(1.4 * var(--u)) * var(--e)) calc(calc(3.2 * var(--u)) * var(--e)); border-radius: 100px;
  box-shadow: 0 2px 10px rgba(11,26,21,.15);
}
.c-etape .bandeau { padding: calc(var(--pad) * .85) var(--pad) calc(var(--pad) * .95); display: grid; gap: calc(calc(2 * var(--u)) * var(--e)); }
.c-etape .bandeau .c-titre { font-size: calc(calc(6.4 * var(--u)) * var(--e)); }

/* --- carte moitié photo / moitié texte --- */
.c-duo { display: grid; grid-template-rows: 1fr 1fr; }
.c-duo .vue-photo { position: relative; overflow: hidden; }
.c-duo .vue-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-duo .mot { padding: var(--pad); display: grid; align-content: center; gap: calc(calc(2.6 * var(--u)) * var(--e)); }
.c-duo .mot .c-titre { font-size: calc(calc(6.8 * var(--u)) * var(--e)); }

/* --- carte liste --- */
.c-liste { display: grid; align-content: center; gap: calc(calc(4 * var(--u)) * var(--e)); padding: var(--pad); }
.c-liste ul { display: grid; gap: calc(calc(3 * var(--u)) * var(--e)); }
.c-liste li {
  font-family: var(--texte); font-size: calc(calc(3.9 * var(--u)) * var(--e)); line-height: 1.4;
  padding-left: calc(calc(5.5 * var(--u)) * var(--e)); position: relative;
}
.c-liste li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: calc(calc(2 * var(--u)) * var(--e)); height: calc(calc(2 * var(--u)) * var(--e)); border-radius: 50%;
  background: var(--trait, var(--laiton));
}
.c-liste li b { font-weight: 600; }

/* --- avant / après --- */
.c-ap { display: grid; grid-template-columns: 1fr 1fr; }
.c-ap figure { position: relative; margin: 0; overflow: hidden; }
.c-ap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-ap figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: calc(calc(3 * var(--u)) * var(--e)) 0;
  text-align: center; font-family: var(--texte); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-size: calc(calc(2.7 * var(--u)) * var(--e)); color: #fff;
  background: linear-gradient(to top, rgba(11,26,21,.75), rgba(11,26,21,0));
}
.c-ap .sep { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--porcelaine); z-index: 3; }

/* --- carte de fin --- */
.c-fin { display: grid; align-content: center; justify-items: center; gap: calc(calc(3.4 * var(--u)) * var(--e)); padding: var(--pad); text-align: center; }
.c-fin .sceau {
  width: calc(calc(13 * var(--u)) * var(--e)); height: calc(calc(13 * var(--u)) * var(--e)); border-radius: 50%;
  border: 1px solid var(--trait); display: grid; place-items: center;
  font-family: var(--titre); font-size: calc(calc(5.6 * var(--u)) * var(--e)); color: var(--trait);
}
.c-fin .c-titre { font-size: calc(calc(7.6 * var(--u)) * var(--e)); }
.c-fin .c-corps { max-width: 82%; }
.c-fin .coord {
  font-family: var(--texte); font-size: calc(calc(3.1 * var(--u)) * var(--e)); letter-spacing: .1em;
  text-transform: uppercase; color: var(--doux);
}

/* ==========================================================================
   STORIES
   ========================================================================== */
.vue--story { background: #0b0b0c; }
.story { position: absolute; inset: 0; overflow: hidden; }
.story__fond { position: absolute; inset: 0; }
.story__fond .carte { position: absolute; inset: 0; aspect-ratio: auto; --e: 1.12; --pad: calc(9 * var(--u)); }
.story__fond .carte.c-texte, .story__fond .carte.c-liste, .story__fond .carte.c-fin { align-content: center; }
.story__fond .carte.c-photo img { object-position: center 40%; }

.story__barres {
  position: absolute; top: 58px; left: 9px; right: 9px; z-index: 12;
  display: flex; gap: 3px;
}
.story__barre { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.34); overflow: hidden; }
.story__barre i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.story__barre.est-faite i { width: 100%; }
.story__barre.est-en-cours i { animation: story-avance var(--duree, 5s) linear forwards; }
@keyframes story-avance { from { width: 0; } to { width: 100%; } }

.story__tete {
  position: absolute; top: 72px; left: 14px; right: 14px; z-index: 12;
  display: flex; align-items: center; gap: .55rem; color: #fff;
}
.story__tete img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.7); }
.story__nom { font-size: .82rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.story__quand { font-size: .78rem; color: rgba(255,255,255,.72); }
.story__fermer { margin-left: auto; color: #fff; display: inline-flex; opacity: .95; }

.story__zone { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 10; }
.story__zone--g { left: 0; }
.story__zone--d { left: 34%; width: 66%; }

.story__lien {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 14;
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; text-decoration: none;
}
.story__lien .fleche { animation: story-fleche 1.8s var(--courbe) infinite; }
@keyframes story-fleche { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.story__lien .mot {
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(16,24,21,.55); backdrop-filter: blur(6px);
  padding: 7px 15px; border-radius: 100px; border: .5px solid rgba(255,255,255,.28);
  white-space: nowrap;
}
.story__note {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 14;
  font-size: .74rem; color: rgba(255,255,255,.62); letter-spacing: .04em; white-space: nowrap;
}
.story--clair .story__nom, .story--clair .story__quand, .story--clair .story__fermer { color: var(--vert-sombre); text-shadow: none; }
.story--clair .story__quand { color: var(--gris); }
.story--clair .story__barre { background: rgba(16,24,21,.18); }
.story--clair .story__barre i { background: var(--vert); }
.story--clair .story__note { color: var(--gris); }
.story--clair .story__lien { color: var(--vert-sombre); }
.story--clair .story__lien .mot { background: rgba(255,255,255,.78); border-color: rgba(30,74,60,.18); color: var(--vert-sombre); }

/* sticker de story : question, lieu, sondage */
.story__sticker {
  position: absolute; left: 50%; transform: translateX(-50%) rotate(-2deg); z-index: 8;
  background: #fff; border-radius: 16px; padding: 18px 20px 16px; width: 76%;
  box-shadow: 0 10px 30px -12px rgba(11,26,21,.45); text-align: center;
}
.story__sticker .st-oeil {
  font-family: var(--texte); font-size: .64rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--laiton); display: block; margin-bottom: .5rem;
}
.story__sticker .st-q { font-family: var(--titre); font-size: 1.15rem; line-height: 1.2; color: var(--vert-sombre); font-weight: 400; }
.story__sticker .st-champ {
  margin-top: .8rem; border-top: 1px solid var(--gris-clair); padding-top: .6rem;
  font-family: var(--texte); font-size: .8rem; color: #B9BDB8;
}
.story__lieu {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 8;
  background: rgba(255,255,255,.92); color: var(--vert-sombre); border-radius: 8px;
  padding: 5px 11px; font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 14px -6px rgba(11,26,21,.4); white-space: nowrap;
}

/* ==========================================================================
   Mobile : le téléphone prend tout l'écran
   ========================================================================== */
@media (max-width: 560px), (max-height: 900px) and (max-width: 1180px) {
  :root { --ecran: 100vw; }
  body { padding: 0; align-items: stretch; }
  .scene { gap: 0; }
  .tel {
    width: 100vw; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none;
  }
  .tel__ecran { border-radius: 0; }
  .tel__trait { background: rgba(16,24,21,.22); bottom: 6px; }
  .tel__barre { padding-top: env(safe-area-inset-top, 0px); }
  .barre-bas { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: calc(62px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .tel__ile { display: none; }
  .tel__barre { height: 46px; }
  .tete { height: 88px; padding-top: 42px; }
  .story__barres { top: 50px; }
  .story__tete { top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .story__barre.est-en-cours i { width: 100%; }
}

/* ---------- Le monogramme (avatar du compte) ---------- */
.marque {
  display: grid; place-items: center; flex: none;
  width: 33px; height: 33px; border-radius: 50%;
  background: var(--vert); color: var(--laiton-clair);
  font-family: var(--titre); font-weight: 400; font-size: 1.05rem;
  letter-spacing: .02em; line-height: 1; padding-bottom: 2px;
  font-variation-settings: "opsz" 40, "SOFT" 60;
  box-shadow: inset 0 0 0 1px rgba(232,220,194,.35);
}
.marque--grand {
  width: 100%; height: 100%; font-size: 2.5rem; padding-bottom: 5px;
  border: 2.5px solid var(--blanc); box-shadow: inset 0 0 0 1px rgba(232,220,194,.4);
  background: radial-gradient(120% 120% at 30% 10%, #2A6150 0%, var(--vert) 45%, var(--vert-sombre) 100%);
}
.marque--petit { width: 25px; height: 25px; font-size: .85rem; box-shadow: inset 0 0 0 1px rgba(232,220,194,.3); }
.profil__avatar .marque--grand { border-radius: 50%; }
.story__tete .marque { width: 30px; height: 30px; font-size: .95rem; border: 1px solid rgba(255,255,255,.55); }
.story--clair .story__tete .marque { border-color: rgba(30,74,60,.25); }

/* ---------- En vignette : on ne garde que l'accroche ---------- */
.vignette .c-texte .c-corps,
.vignette .c-liste ul,
.vignette .c-fin .c-corps,
.vignette .c-planche .c-corps,
.vignette .c-duo .c-corps,
.vignette .c-etape .c-corps,
.vignette .c-photo .c-corps { display: none; }
.vignette .c-texte .rangee:last-child:has(.c-corps) { display: none; }
.vignette .c-liste { align-content: center; }
.vignette .c-fin .c-filet { display: none; }
.vignette .c-mono { display: none; }
.vignette .c-planche .bas .c-filet { display: none; }
.vignette .c-legende { display: none; }
.vignette .c-etape .bandeau { padding-bottom: calc(var(--pad) * .7); }

/* ---------- Ajustements des stories ---------- */
/* la barre d'état passe en blanc au-dessus d'une story sombre */
body[data-vue="story"] .tel__barre { color: #fff; }
body[data-vue="story"]:has(.story--clair) .tel__barre { color: var(--encre); }

/* le texte ne doit jamais tomber sur le lien ni sur la mention du bas */
.story__fond .c-photo .bloc { bottom: 78px; }
.story__fond .c-photo .bloc--haut { top: 116px; bottom: auto; }
.story__fond .c-planche .bas { padding-bottom: 46px; }
.story__fond .c-fin, .story__fond .c-texte, .story__fond .c-liste, .story__fond .c-chiffre { padding-bottom: 86px; padding-top: 108px; }
.story__fond .c-mono { bottom: 56px; }
.story__fond .c-num { top: 108px; }
.story__fond .c-liste { gap: calc(5.5 * var(--u)); }
.story__fond .c-liste ul { gap: calc(4.4 * var(--u)); }
.story__fond .c-liste li { font-size: calc(calc(4 * var(--u)) * var(--e)); }
.story__fond .c-fin { gap: calc(4.4 * var(--u)); }
.story__fond .c-fin .sceau { width: calc(16 * var(--u)); height: calc(16 * var(--u)); font-size: calc(7 * var(--u)); }
.story__fond .c-chiffre .grand { font-size: calc(calc(24 * var(--u)) * var(--e)); }
.story__fond .c-texte .c-titre { font-size: calc(calc(9.6 * var(--u)) * var(--e)); }
.story__fond .c-corps { font-size: calc(calc(4.1 * var(--u)) * var(--e)); }

/* ---------- Transitions d'ouverture ---------- */
.vue--post:not([hidden]) { animation: vue-entre .26s var(--courbe) both; }
.vue--story:not([hidden]) { animation: vue-monte .3s var(--courbe) both; }
@keyframes vue-entre { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes vue-monte { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* le cœur du double-tap */
.post__media .bravo {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; z-index: 8;
  color: #fff; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 4px 18px rgba(11,26,21,.45));
}
.post__media .bravo.est-vu { animation: bravo .95s var(--courbe) both; }
@keyframes bravo {
  0% { opacity: 0; transform: scale(.2); }
  14% { opacity: 1; transform: scale(1.18); }
  26% { transform: scale(.95); }
  36% { transform: scale(1); }
  74% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); }
}

/* le compteur de pages s'efface, comme sur Instagram */
.post__compteur { animation: compteur-part 3.2s var(--courbe) 1.6s both; }
@keyframes compteur-part { to { opacity: 0; } }
.post__rail:hover + .post__compteur, .post__media:has(.post__rail:active) .post__compteur { animation: none; opacity: 1; }

/* le haut d'une story photo est assombri : barre d'état, nom et barres lisibles */
.story:not(.story--clair)::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 168px; z-index: 6;
  background: linear-gradient(to bottom, rgba(11,26,21,.46) 0%, rgba(11,26,21,.18) 55%, rgba(11,26,21,0) 100%);
  pointer-events: none;
}
/* et le texte laisse la place au lien quand il y en a un */
.story:has(.story__lien) .c-photo .bloc { bottom: 112px; }
.story:has(.story__lien) .c-planche .bas { padding-bottom: 76px; }
.story:has(.story__lien) .c-fin,
.story:has(.story__lien) .c-texte,
.story:has(.story__lien) .c-liste,
.story:has(.story__lien) .c-chiffre { padding-bottom: 124px; }

/* ---------- Vignette d'une planche : le dessin remplit le carré ---------- */
.vignette .c-planche { display: block; padding: 0; }
.vignette .c-planche .dessin { position: absolute; inset: 0; }
.vignette .c-planche .dessin img { object-fit: cover; object-position: center 46%; }
.vignette .c-planche .haut { position: absolute; top: calc(6 * var(--u)); left: 0; right: 0; z-index: 3; }
.vignette .c-planche .bas {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: calc(9 * var(--u)) calc(6 * var(--u)) calc(6.5 * var(--u));
  background: linear-gradient(to top, var(--porcelaine) 42%, rgba(246,245,241,.86) 68%, rgba(246,245,241,0) 100%);
}
