
:root {
  /* Plan : une planche de stratégie social media façon magazine. Bandes bordeaux et crème, titres condensés signés d'un mot manuscrit, créations en cartes étiquetées. */
  --bordeaux: #5C0F1B;
  --bordeaux-nuit: #3D0811;
  --creme: #F7F1EE;
  --blanc: #FFFFFF;
  --encre: #2A0A10;
  --rose: #EAD7D4;
  --font-titre: "League Gothic", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --font-texte: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --focus: var(--bordeaux);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bordeaux-nuit); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--creme); color: var(--encre); font: 400 1rem/1.6 var(--font-texte); }
body.intro-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }

/* Titres signés */
.titre {
  font-family: var(--font-titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 1.4rem + 7vw, 7.5rem); line-height: .86; overflow-wrap: break-word; letter-spacing: .01em; text-wrap: balance;
}
.titre .signe {
  display: block; width: fit-content; margin: -.32em 0 0 34%;
  font-family: var(--font-script); text-transform: none; font-size: .78em; line-height: 1;
  letter-spacing: 0; transform: rotate(-5deg); color: inherit;
}
.planche--creme .titre .signe { color: var(--encre); }

/* ---------- Entrée : la salle de cinéma (photo réelle) ---------- */
.intro { position: fixed; inset: 0; z-index: 50; background: #0A0A0A; color: var(--rose); overflow: hidden; transition: opacity .4s ease; --focus: var(--rose); }
.no-js .intro, .intro[hidden] { display: none; }
.intro.is-fading { opacity: 0; }
.intro__liens { position: absolute; top: 16px; right: 16px; z-index: 8; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pilule {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(234, 215, 212, .4); background: rgba(10, 10, 10, .55); color: var(--rose);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 .875rem/1.2 var(--font-texte); text-decoration: none; cursor: pointer;
}
.pilule:hover { background: rgba(234, 215, 212, .12); }
.salle { position: absolute; inset: 0; transform-origin: 50% 40%; }
.photo-salle { position: absolute; }
.photo-salle > img { width: 100%; height: 100%; display: block; }
.photo-salle.petite > img { -webkit-mask: radial-gradient(75% 70% at 50% 45%, #000 70%, transparent 100%); mask: radial-gradient(75% 70% at 50% 45%, #000 70%, transparent 100%); }
.reflet { position: absolute; left: 0; right: 0; top: 56%; bottom: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 0%, rgba(247, 241, 238, .16), transparent 70%); opacity: 0; transition: opacity 1.5s ease 1s; mix-blend-mode: screen; }
.intro.projete .reflet { opacity: 1; }
.toile {
  container-type: inline-size; position: absolute; left: 9.96%; top: 20.02%; width: 80.08%; height: 39.06%;
  padding: 0; border: 0; border-radius: 1px; overflow: hidden; cursor: pointer;
  background: transparent; color: var(--bordeaux); font: inherit; text-align: left;
}
.toile:focus-visible { outline: 3px solid var(--rose); outline-offset: 6px; }
.affiche { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 3cqw 6cqw 7cqw; background: var(--creme); opacity: 0; }
.intro.projete .affiche { animation: projection 1.6s steps(1, end) forwards, scintille 3s ease-in-out 1.6s infinite; }
@keyframes projection { 0% { opacity: 0; } 12% { opacity: .55; } 18% { opacity: .1; } 30% { opacity: .85; } 36% { opacity: .4; } 50%, 100% { opacity: 1; } }
@keyframes scintille { 0%, 100% { opacity: 1; } 50% { opacity: .94; } }
.affiche::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(42, 10, 16, .22)); }
.affiche__haut { position: absolute; top: 2.6cqw; left: 6cqw; right: 6cqw; display: flex; justify-content: space-between; font: 700 1.25cqw/1 var(--font-texte); }
.affiche__titre { font-family: var(--font-titre); text-transform: uppercase; font-size: 9.2cqw; line-height: .86; }
.affiche__titre i { display: block; width: fit-content; margin: -.3em 0 0 28%; font: normal 6.8cqw/1 var(--font-script); text-transform: none; transform: rotate(-5deg); color: var(--encre); }
.affiche__role { margin-top: 1.4cqw; font: 600 1.5cqw/1.3 var(--font-texte); color: var(--encre); }
.affiche__bande { position: absolute; left: 0; right: 0; bottom: 0; height: 5.6cqw; display: flex; align-items: center; justify-content: center; gap: 4cqw; background: var(--bordeaux); color: var(--rose); font: 600 1.3cqw/1 var(--font-texte); }
.intro__consigne { position: absolute; left: 16px; right: 16px; bottom: 3.5vh; z-index: 5; margin: 0; text-align: center; font-weight: 600; color: var(--rose); text-shadow: 0 2px 12px #000; opacity: 0; transition: opacity .8s ease 1.8s; }
.intro.projete .intro__consigne { opacity: 1; }
.intro.entre .intro__consigne, .intro.entre .reflet { opacity: 0; transition-delay: 0s; }
.consigne--tel { display: none; }
@media (max-width: 767px) {
  .affiche__haut { font-size: 2.2cqw; } .affiche__role { font-size: 2.4cqw; } .affiche__bande { font-size: 2.2cqw; height: 8cqw; gap: 3cqw; }
  .consigne--bureau { display: none; } .consigne--tel { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .intro.projete .affiche { animation: none; opacity: 1; } .reflet, .intro__consigne { transition: none; } }

/* ---------- Couverture ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 241, 238, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(92, 15, 27, .12); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.nav__nom { font: 400 1.6rem/1 var(--font-titre); text-transform: uppercase; color: var(--bordeaux); text-decoration: none; letter-spacing: .02em; }
.nav ul { display: flex; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9375rem; color: var(--bordeaux); text-decoration: none; }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .nav ul li:not(:last-child) { display: none; } }

.couverture { padding: clamp(40px, 8vw, 96px) 0 0; overflow: hidden; }
.couverture .wrap { display: grid; gap: 32px; align-items: end; }
.stickers { justify-self: center; display: grid; width: min(70vw, 280px); padding-bottom: 8px; }
.stickers .sticker { width: 100%; }
.sticker--2 { justify-self: start; margin-right: -35%; transform: rotate(-7deg) translateY(-6%); z-index: 0; }
.sticker--1 { position: relative; z-index: 1; }
.sticker { height: auto; margin-bottom: -6px; transform: rotate(4deg); filter: drop-shadow(0 18px 24px rgba(42, 10, 16, .35)); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.sticker--1:hover { transform: rotate(-2deg) scale(1.04); }
.sticker--2:hover { transform: rotate(-11deg) translateY(-8%) scale(1.04); }
@media (max-width: 899px) { .stickers { width: min(60vw, 240px); } }
.couverture h1 { color: var(--bordeaux); font-size: clamp(3.4rem, 1rem + 9vw, 9.5rem); overflow-wrap: normal; }
.couverture__role { margin-top: 28px; max-width: 46ch; font-size: 1.125rem; }
.couverture__role b { color: var(--bordeaux); }
.couverture__role:first-of-type { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.35; font-weight: 600; }
.couverture__role--suite { margin-top: 14px; }
.portrait { justify-self: center; width: min(100%, 380px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 200px 200px 24px 24px; box-shadow: 0 0 0 6px var(--creme), 0 0 0 8px var(--bordeaux), 0 30px 60px -30px rgba(42, 10, 16, .6); }
.index { margin-top: 48px; background: var(--bordeaux); color: var(--blanc); }
.index ul { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; }
.index a { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; text-decoration: none; min-height: 44px; }
.index a:hover { background: var(--bordeaux-nuit); }
.index b { font: 400 clamp(1.6rem, 1rem + 2vw, 2.4rem)/1 var(--font-titre); text-transform: uppercase; letter-spacing: .02em; }
.index span { font-size: .875rem; color: var(--rose); }
@media (min-width: 900px) {
  .couverture .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .index ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Planches ---------- */
.planche { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.planche--bordeaux { background: var(--bordeaux); color: var(--blanc); --focus: var(--rose); }
.planche--creme { background: var(--creme); color: var(--encre); }
.planche--creme .titre { color: var(--bordeaux); }
.planche__tete { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.planche__tete::after { content: ""; display: block; width: 96px; height: 8px; border-radius: 8px; background: var(--touche, var(--rose)); }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 32px; padding: 4px 14px; border-radius: 999px; font-size: .875rem; font-weight: 700; }
.badge--reelle { background: var(--blanc); color: var(--bordeaux); box-shadow: inset 0 0 0 2px var(--bordeaux); }
.badge--fictive { background: var(--rose); color: var(--bordeaux); }
.duo { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.encadre { background: var(--blanc); color: var(--encre); border-radius: 20px; padding: 20px 22px; box-shadow: 0 10px 30px -22px rgba(42, 10, 16, .6); }
.encadre h3 { font: 700 1.0625rem/1.3 var(--font-texte); color: var(--bordeaux); margin-bottom: 8px; }
.encadre ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.encadre b { color: var(--bordeaux); }
.todo { display: inline-block; padding: .2em .55em; border: 1.5px dashed currentColor; border-radius: 8px; font-size: .9375rem; }
.categorie { font: 400 clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--font-titre); text-transform: uppercase; letter-spacing: .02em; margin: 40px 0 16px; }
.planche--creme .categorie { color: var(--bordeaux); }

.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; align-items: start; }
@media (min-width: 700px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.carte {
  display: block; width: 100%; padding: 6px 6px 0; border: 0; border-radius: 18px; cursor: zoom-in;
  background: var(--blanc); color: var(--encre); font: inherit; text-align: left;
  box-shadow: 0 0 0 2px var(--bordeaux), 0 12px 26px -20px rgba(42, 10, 16, .7);
  transition: transform .25s ease;
}
.carte:hover { transform: translateY(-4px); }
.carte img { width: 100%; height: auto; border-radius: 13px; background: var(--rose); }
.etiquette { display: flex; justify-content: space-between; gap: 10px; margin: 6px -6px 0; padding: 8px 12px; border-radius: 0 0 18px 18px; background: var(--bordeaux); color: var(--blanc); font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.etiquette span:last-child { font-variant-numeric: tabular-nums; color: var(--rose); white-space: nowrap; }
.carte--nue { padding: 0; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7); }
.carte--nue img { border-radius: 10px; }

.media { display: grid; gap: 32px; margin-top: 40px; align-items: start; }
@media (min-width: 900px) { .media { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.telephone { width: min(100%, 320px); margin-inline: auto; padding: 10px; border-radius: 40px; background: #141213; box-shadow: 0 0 0 2px #3A3537, 0 30px 60px -30px rgba(0, 0, 0, .8); }
.telephone__ecran { border-radius: 30px; overflow: hidden; background: #000; }
.telephone video { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; }
.telephone .etiquette { margin: 10px 0 0; border-radius: 0 0 30px 30px; }
.calendrier .carte { cursor: zoom-in; }

/* ---------- BUTCH : site immersif ---------- */
.site { display: grid; gap: 32px; align-items: end; margin-top: 8px; }
@media (min-width: 900px) { .site { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); } }
.ordi__capot { aspect-ratio: 3 / 2; padding: 1.6% 1.6% 2.4%; background: #1C1A1B; border-radius: 16px 16px 6px 6px; }
.ordi__base { height: 16px; margin: 0 -6%; background: linear-gradient(#C9C3C1, #6F6866); border-radius: 0 0 16px 16px / 0 0 10px 10px; }
.defile { position: relative; height: 100%; overflow: hidden; border-radius: 6px; background: var(--creme); color: var(--bordeaux); }
.defile--tel { aspect-ratio: 9 / 19.5; border-radius: 30px; }
.defile--tel { background: #0B0B0B; }
.defile.defile--tel video { object-fit: contain; object-position: center 46%; }
.site__tel { position: relative; }
.site__tel::before { content: ""; position: absolute; z-index: 2; top: 14px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); border-radius: 999px; background: #050505; }
.defile img { width: 100%; height: auto; will-change: transform; }
.defile .vide { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; }
.site__tel { width: min(100%, 240px); margin-inline: auto; padding: 8px; border-radius: 38px; background: #141213; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font-texte); text-decoration: none; cursor: pointer; }
.bouton--plein { background: var(--blanc); color: var(--bordeaux); }
.bouton--plein:hover { background: var(--rose); }
.bouton--contour { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, .6); }
.bouton--contour:hover { background: rgba(255, 255, 255, .1); }
.planche--creme .bouton--plein { background: var(--bordeaux); color: var(--blanc); }
.planche--creme .bouton--contour { color: var(--bordeaux); border-color: var(--bordeaux); }

/* ---------- Stage : entrer dans l'agence ---------- */
.agence { position: relative; background: var(--bordeaux-nuit); color: var(--blanc); --focus: var(--rose); }
.agence__scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.agence__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 45%; transform-origin: 62% 52%; will-change: transform; }
.agence__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61, 8, 17, .25), rgba(61, 8, 17, .1) 40%, rgba(61, 8, 17, .85)); }
.agence__titre { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(32px, 8vh, 80px); }
.agence__titre .titre { color: var(--blanc); text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.agence__cartes { position: relative; z-index: 2; margin-top: -40vh; padding: 0 0 30vh; display: grid; gap: 70vh; }
.agence__cartes .encadre { width: min(100%, 460px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.agence__cartes .encadre:nth-child(even) { justify-self: end; }
.agence__cartes a { color: var(--bordeaux); font-weight: 700; }
.agence__note { position: absolute; z-index: 1; top: 76px; left: 16px; font-size: .875rem; color: var(--rose); }

/* ---------- Joaillerie ---------- */
.sous { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .2); }
.sous__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.sous__tete h3 { font: 400 clamp(2.4rem, 1.4rem + 3vw, 4rem)/.9 var(--font-titre); text-transform: uppercase; letter-spacing: .01em; }
.sous__tete h3::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .3em; border-radius: 50%; background: var(--touche); vertical-align: .08em; box-shadow: 0 0 0 2px var(--blanc); }
.sous .encadre { margin-bottom: 20px; max-width: 760px; }
.sous__corps { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .sous__corps:has(.telephone) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } .sous__corps:has(.telephone) .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Dar Hbeb : menu à feuilleter ---------- */
.menu { display: flex; gap: 20px; margin: 0; padding: 8px 4px 24px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.menu__page { flex: none; width: min(78vw, 420px); scroll-snap-align: center; }
.menu__barre { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.menu__compteur { min-width: 4ch; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Méthode ---------- */
.etapes { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: e; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.etapes li { counter-increment: e; }
.etapes .encadre { height: 100%; }
.etapes h3::before { content: counter(e, decimal-leading-zero); display: block; font: 400 2.6rem/1 var(--font-titre); color: var(--bordeaux); margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact p { max-width: 52ch; font-size: 1.125rem; }
.contact__adresse { margin-top: 16px; }
.liens { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.liens a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.pied { padding: 24px 0 40px; background: var(--bordeaux-nuit); color: var(--rose); font-size: .875rem; }

/* BUTCH : façade et réseaux */
.planche--butch { padding-top: 0; }
.facade { position: relative; height: min(88vh, 860px); margin-bottom: 48px; overflow: hidden; }
.facade img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .15) 45%, var(--bordeaux)); }
.facade__titre { position: absolute; z-index: 1; left: 0; right: 0; bottom: 32px; display: grid; gap: 16px; }
.defile video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.insta { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.insta .encadre { grid-column: 1 / -1; }
@media (min-width: 900px) { .insta { grid-template-columns: 5fr 7fr; gap: 24px; } .insta .encadre { grid-column: auto; } }
/* Méthode avec exemples */
.etapes { grid-template-columns: 1fr !important; gap: 28px; }
.etape { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .etape { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; } }
.etape > .carte { max-height: 520px; overflow: hidden; }
.etape > .carte img { max-height: 520px; width: 100%; object-fit: cover; object-position: top; }
.exemple { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(92, 15, 27, .15); }
.paire { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.suivi { overflow-x: auto; background: var(--blanc); color: var(--encre); border-radius: 20px; padding: 12px; }
.suivi table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .875rem; }
.suivi caption { text-align: left; font-weight: 700; color: var(--bordeaux); padding: 4px 6px 10px; }
.suivi th, .suivi td { padding: 8px 6px; text-align: left; border-bottom: 1px solid rgba(92, 15, 27, .15); }
.suivi thead th { background: var(--bordeaux); color: var(--blanc); }
.etape--large { grid-template-columns: 1fr !important; }
.etape--large > .carte, .etape--large > .carte img { max-height: none; }

/* ---------- Hors écran : centres d'intérêt ---------- */
.passions { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .passions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .passions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.passion { display: grid; align-content: start; gap: 8px; padding: 10px 10px 20px; border-radius: 22px; background: var(--blanc); box-shadow: 0 0 0 2px var(--bordeaux), 0 14px 30px -22px rgba(42, 10, 16, .7); }
.passion h3 { margin: 10px 10px 0; font: 400 1.9rem/1 var(--font-titre); text-transform: uppercase; letter-spacing: .02em; color: var(--bordeaux); }
.passion p { margin: 0 10px; }
.passion a { color: var(--bordeaux); font-weight: 700; }
.passion__metier { padding-top: 8px; border-top: 1px solid rgba(92, 15, 27, .15); font-weight: 600; color: var(--bordeaux); }

.scene { position: relative; height: 190px; border-radius: 14px; overflow: hidden; }
.scene * { animation-play-state: paused; }
.passion.visible .scene * { animation-play-state: running; }

/* Lecture : le livre s'ouvre, les pages tournent */
.scene--livre { background: var(--rose); display: grid; place-items: center; perspective: 900px; }
.livre { position: relative; width: 220px; height: 140px; transform: rotateX(18deg); transform-style: preserve-3d; }
.livre > span { position: absolute; top: 0; bottom: 0; width: 50%; border-radius: 4px; }
.livre__gauche { left: 0; background: repeating-linear-gradient(#FFFDFB 0 14px, #E9DCD8 14px 15px) 0 14px / 100% 100% no-repeat, #FFFDFB; box-shadow: inset -8px 0 14px -10px rgba(42, 10, 16, .4); }
.livre__droite { left: 50%; background: repeating-linear-gradient(#FFFDFB 0 14px, #E9DCD8 14px 15px) 0 14px / 100% 100% no-repeat, #FFFDFB; box-shadow: inset 8px 0 14px -10px rgba(42, 10, 16, .4); }
.livre__page, .livre__couv { left: 50%; transform-origin: left center; backface-visibility: hidden; }
.livre__page { background: repeating-linear-gradient(#FFFDFB 0 14px, #E9DCD8 14px 15px) 0 14px / 100% 100% no-repeat, #FFFDFB; box-shadow: inset 8px 0 14px -10px rgba(42, 10, 16, .4); }
.livre__couv { display: grid; place-items: center; background: var(--bordeaux); color: var(--rose); box-shadow: 0 10px 24px -10px rgba(42, 10, 16, .7); }
.livre__couv { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; }
.livre__couv b { font: 400 1.05rem/.95 var(--font-titre); overflow-wrap: normal; letter-spacing: 0 !important; text-transform: uppercase; letter-spacing: .02em; color: var(--creme); }
.livre__couv small { font-size: .5625rem; font-weight: 600; letter-spacing: .04em; color: var(--rose); }
.passion.joue .livre__couv { animation-delay: 2.6s !important; }
.passion.joue .p1 { animation-delay: 3.4s !important; } .passion.joue .p2 { animation-delay: 3.75s !important; } .passion.joue .p3 { animation-delay: 4.1s !important; }
.passion.joue .livre__couv { animation: tourne 1s cubic-bezier(.6, 0, .3, 1) .2s forwards; }
.passion.joue .p1 { animation: tourne .8s ease-in-out 1.1s forwards; }
.passion.joue .p2 { animation: tourne .8s ease-in-out 1.45s forwards; }
.passion.joue .p3 { animation: tourne .8s ease-in-out 1.8s forwards; }
@keyframes tourne { to { transform: rotateY(-178deg); } }
.passion.joue:hover .p3 { animation: feuillette 1.2s ease-in-out; }
@keyframes feuillette { 0% { transform: rotateY(-178deg); } 50% { transform: rotateY(-20deg); } 100% { transform: rotateY(-178deg); } }

/* Documentaires : la pellicule défile, le projecteur s'allume */
.scene--doc { background: var(--bordeaux-nuit); }
.faisceau { position: absolute; right: -10%; top: -20%; width: 90%; height: 140%; background: linear-gradient(250deg, rgba(234, 215, 212, .55), rgba(234, 215, 212, 0) 60%); clip-path: polygon(100% 40%, 100% 60%, 0 100%, 0 0); opacity: 0; transition: opacity 1.2s ease .3s; }
.passion.joue .faisceau { opacity: 1; }
.pellicule { position: absolute; left: 0; right: 0; top: 50%; height: 84px; transform: translateY(-50%) rotate(-4deg); overflow: hidden; background: #140306; }
.pellicule::before, .pellicule::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; z-index: 1; background: radial-gradient(circle, var(--rose) 0 3px, transparent 3.5px) 0 0 / 18px 10px repeat-x; }
.pellicule::before { top: 3px; } .pellicule::after { bottom: 3px; }
.pellicule__bande { display: flex; gap: 8px; width: max-content; height: 100%; padding: 16px 0; animation: defile 9s linear infinite; }
.pellicule__bande i { width: 76px; height: 100%; border-radius: 3px; background: linear-gradient(135deg, #8E3A48, var(--bordeaux)); }
.pellicule__bande i:nth-child(3n) { background: linear-gradient(135deg, var(--rose), #C99AA0); }
.pellicule__bande i:nth-child(4n) { background: linear-gradient(135deg, #3D0811, #7A2633); }
@keyframes defile { to { transform: translateX(-50%); } }
.doc__titre { position: absolute; left: 14px; bottom: 12px; z-index: 2; font: 400 1.5rem/1 var(--font-titre); text-transform: uppercase; color: var(--creme); letter-spacing: .04em; opacity: 0; transform: translateY(8px); transition: opacity .6s ease 1.2s, transform .6s ease 1.2s; }
.passion.joue .doc__titre { opacity: 1; transform: none; }

/* Sites web : la page se construit */
.scene--web { background: #EFE3E0; display: grid; place-items: center; padding: 16px; }
.navigateur { width: 100%; max-width: 300px; height: 158px; border-radius: 10px; overflow: hidden; background: var(--blanc); box-shadow: 0 14px 30px -16px rgba(42, 10, 16, .6); }
.navigateur__barre { display: flex; gap: 5px; padding: 7px 9px; background: var(--bordeaux); }
.navigateur__barre i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.navigateur__page { position: relative; height: calc(100% - 22px); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 26px 1fr 14px; gap: 7px; }
.bloc { border-radius: 4px; background: #E7D9D6; transform: scaleX(0); transform-origin: left; }
.b1 { grid-column: 1 / -1; } .b4 { grid-column: 1 / -1; }
.passion.joue .bloc { animation: pose .45s ease forwards; }
.passion.joue .b2 { animation-delay: .25s; } .passion.joue .b3 { animation-delay: .45s; } .passion.joue .b4 { animation-delay: .65s; }
@keyframes pose { to { transform: scaleX(1); } }
.code { position: absolute; left: 50%; top: 42px; display: grid; gap: 6px; width: 42%; }
.code i { height: 5px; border-radius: 3px; background: var(--bordeaux); transform: scaleX(0); transform-origin: left; }
.code i:nth-child(2) { width: 70%; } .code i:nth-child(3) { width: 85%; } .code i:nth-child(4) { width: 55%; }
.passion.joue .code i { animation: pose .35s ease forwards; }
.passion.joue .code i:nth-child(1) { animation-delay: 1s; } .passion.joue .code i:nth-child(2) { animation-delay: 1.15s; } .passion.joue .code i:nth-child(3) { animation-delay: 1.3s; } .passion.joue .code i:nth-child(4) { animation-delay: 1.45s; } .passion.joue .code i:nth-child(5) { animation-delay: 1.6s; }
.navigateur__page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .8s ease 2.2s, transform 1.2s ease 2.2s; }
.passion.joue .navigateur__page img { opacity: 1; transform: none; }

/* Nature : la branche pousse */
.scene--nature { background: #F3E9E6; }
.branche { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.tige { fill: none; stroke: var(--bordeaux); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.tige--2 { stroke-width: 3; }
.passion.joue .tige { animation: pousse 1.6s ease forwards; }
.passion.joue .tige--2 { animation-delay: 1s; animation-duration: .8s; }
@keyframes pousse { to { stroke-dashoffset: 0; } }
.feuilles ellipse { fill: #8E3A48; transform: scale(0); }
.passion.joue .feuilles ellipse { animation: eclot .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.passion.joue .feuilles g:nth-child(1) ellipse { animation-delay: .5s; } .passion.joue .feuilles g:nth-child(2) ellipse { animation-delay: .8s; } .passion.joue .feuilles g:nth-child(3) ellipse { animation-delay: 1.6s; } .passion.joue .feuilles g:nth-child(4) ellipse { animation-delay: 1.1s; } .passion.joue .feuilles g:nth-child(5) ellipse { animation-delay: 1.35s; } .passion.joue .feuilles g:nth-child(6) ellipse { animation-delay: 1.55s; }
@keyframes eclot { to { transform: scale(1); } }
.chute { position: absolute; top: 18%; width: 18px; height: 8px; border-radius: 50%; background: var(--bordeaux); opacity: 0; }
.c1 { left: 58%; } .c2 { left: 74%; } .c3 { left: 40%; }
.passion:hover .chute { animation: tombe 2.2s ease-in forwards; }
.passion:hover .c2 { animation-delay: .3s; } .passion:hover .c3 { animation-delay: .6s; }
@keyframes tombe { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 50% { transform: translate(-22px, 70px) rotate(120deg); } 100% { opacity: 0; transform: translate(10px, 150px) rotate(260deg); } }

/* Voyages : la route entre trois villes */
.scene--voyage { background: var(--bordeaux); }
.carte-voyage { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-dasharray: 6 7; opacity: 0; transition: opacity .8s ease; }
.passion.joue .route { opacity: 1; }
.ville circle { fill: var(--creme); }
.ville text { fill: var(--creme); font: 600 13px var(--font-texte); text-anchor: middle; }
.ville { opacity: 0; transition: opacity .5s ease; }
.passion.joue .v1 { opacity: 1; } .passion.joue .v2 { opacity: 1; transition-delay: 1.4s; } .passion.joue .v3 { opacity: 1; transition-delay: 2.8s; }
.avion { fill: var(--creme); }

/* La mer : les vagues */
.scene--mer { height: 190px; background: linear-gradient(#F7EFEC, var(--rose) 70%); }
.soleil { position: absolute; right: 12%; top: 26px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #F2C9C2, #E6A9A6); opacity: .9; }
.vague { position: absolute; left: 0; bottom: 0; width: 200%; height: 90px; animation: houle 14s linear infinite; }
.vague path { fill: currentColor; }
.v-fond { color: #C98A93; bottom: 70px; height: 80px; animation-duration: 22s; opacity: .8; }
.v-milieu { color: #8E3A48; bottom: 30px; animation-duration: 16s; animation-direction: reverse; }
.v-avant { color: var(--bordeaux); height: 80px; animation-duration: 11s; }
@keyframes houle { to { transform: translateX(-50%); } }
.grande-vague { position: absolute; left: 4%; bottom: 14px; width: min(300px, 70%); height: 150px; transform-origin: 30% 100%; transform: scaleY(.15); }
.grande-vague path { fill: var(--bordeaux-nuit); }
.passion.joue .grande-vague { animation: deferle 6s cubic-bezier(.45, 0, .3, 1) .3s infinite; }
@keyframes deferle { 0% { transform: scaleY(.15) translateX(0); } 45% { transform: scaleY(1) translateX(12%); } 60% { transform: scaleY(1) translateX(16%); } 100% { transform: scaleY(.15) translateX(30%); } }
.mer__mots { position: absolute; right: 14px; bottom: 12px; z-index: 2; margin: 0; font: normal clamp(1.5rem, 1rem + 1.2vw, 2rem)/1 var(--font-script); color: var(--creme); text-shadow: 0 2px 16px rgba(61, 8, 17, .6); }

@media (prefers-reduced-motion: reduce) {
  .livre__couv, .livre__page { transform: rotateY(-178deg); }
  .tige { stroke-dashoffset: 0; } .feuilles ellipse { transform: none; }
  .bloc, .code i { transform: none; } .navigateur__page img { opacity: 1; transform: none; }
  .route, .ville, .doc__titre, .faisceau { opacity: 1; transform: none; }
  .vague, .pellicule__bande, .grande-vague { animation: none !important; }
  .grande-vague { transform: scaleY(.9); }
}

.avion { opacity: 0; } .passion.joue .avion { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .avion { display: none; } }


/* Photos et vidéo des centres d'intérêt */
.scene { height: 220px; }
.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene--livre { place-items: end center; padding-bottom: 18px; }
.scene--livre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 10, 16, .05), rgba(42, 10, 16, .55)); z-index: 0; }
.scene--livre .livre { z-index: 1; width: 230px; height: 140px; }
.livre__couv { overflow: hidden; }
.fond--2 { opacity: 0; animation: fondu 10s ease-in-out infinite; }
@keyframes fondu { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.scene--nature .chute { display: none; }
.scene--mer { height: 220px; }

/* Photos réelles : documentaires, voyages, mer */
.scene--doc::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(61, 8, 17, .1), rgba(61, 8, 17, .75)); }
.scene--doc .fond { object-position: center 30%; }
.scene--doc .faisceau { z-index: 1; opacity: 0; }
.passion.joue .scene--doc .faisceau { opacity: .45; }
.scene--doc .doc__titre { z-index: 2; }
.scene--voyage::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(61, 8, 17, .35), rgba(61, 8, 17, .7)); }
.scene--voyage .fond { z-index: -1; object-position: center 40%; }
.scene--voyage { isolation: isolate; }
.carte-voyage { z-index: 1; }
.scene--mer { background: #0B2B33; }
.scene--mer .fond { object-position: center 55%; }
.scene--mer .v-avant { height: 34px; opacity: .92; z-index: 1; }
.scene--mer .mer__mots { bottom: 30px; }

/* Résultats chez Commercle */
.encadre--resultats { background: var(--creme); width: min(100%, 520px) !important; }
.resultats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 0; padding: 0 !important; list-style: none; }
.resultats li { display: grid; align-content: start; gap: 2px; padding: 14px 14px 12px; border-radius: 16px; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--bordeaux); }
.resultats b { font: 400 clamp(2.8rem, 2rem + 2.4vw, 3.8rem)/.9 var(--font-titre); color: var(--bordeaux); }
.resultats b { white-space: nowrap; }
@media (max-width: 520px) { .resultats b { font-size: clamp(2rem, 9vw, 2.6rem); } .resultats li { padding: 12px 10px 10px; } }
.resultats span { font-size: .875rem; line-height: 1.3; color: var(--encre); }
.resultats em { font-style: normal; font-size: .875rem; font-weight: 700; color: var(--bordeaux); }
.resultats-bloc { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--creme); }
.resultats-bloc h3 { margin-bottom: 6px; }
.resultats-bloc .resultats li { list-style: none; }
.resultats__periode { margin: 16px 0 6px; font-weight: 700; color: var(--bordeaux); }
.resultats__large { grid-column: 1 / -1; }
.resultats__sources { margin-top: 12px; font-size: .75rem; line-height: 1.4; color: #5A3B40; }
.couverture-livre { position: relative; z-index: 1; height: 180px; width: auto; max-width: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 10px 16px 28px -8px rgba(0, 0, 0, .7); transform: rotate(-4deg) translateY(30px); opacity: 0; transition: transform .9s cubic-bezier(.2, .9, .3, 1.2) .2s, opacity .6s ease .2s; }
.passion.joue .couverture-livre { opacity: 1; transform: rotate(-4deg); }
.passion:hover .couverture-livre { transform: rotate(0deg) scale(1.05); }
.scene--livre { place-items: center !important; padding-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { .couverture-livre { opacity: 1; transform: rotate(-4deg); } }

/* ---------- Mon CV en entier ---------- */
.cv-fenetre { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bordeaux-nuit); color: var(--creme); }
.cv-fenetre[open] { display: flex; flex-direction: column; }
.cv-fenetre::backdrop { background: rgba(26, 7, 11, .9); }
.cv-fenetre__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; background: var(--bordeaux); }
.cv-fenetre__barre p { font: 400 1.6rem/1 var(--font-titre); text-transform: uppercase; letter-spacing: .03em; }
.cv-fenetre__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-fenetre__actions .bouton { min-height: 44px; padding: 8px 16px; background: var(--creme); color: var(--bordeaux); }
.cv-fenetre__actions .bouton:hover { background: var(--rose); }
.cv-fenetre__page { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.cv-fenetre__page img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; cursor: zoom-in; border-radius: 4px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.cv-fenetre__page.zoom img { position: static; display: block; margin: 0 auto; width: max(100%, min(1000px, 240vw)); max-width: none; height: auto; object-fit: initial; cursor: zoom-out; }
.cv-fenetre__page:not(.zoom) img { background: transparent; box-shadow: none; }
/* ---------- Visionneuse ---------- */
.visionneuse { width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; border-radius: 20px; background: var(--creme); color: var(--encre); }
.visionneuse::backdrop { background: rgba(26, 7, 11, .85); }
.visionneuse img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--blanc); }
.visionneuse__bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; font-weight: 600; }
.visionneuse__bas .bouton { min-height: 44px; padding: 8px 18px; background: var(--bordeaux); color: var(--blanc); }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px; background: var(--bordeaux-nuit); color: var(--blanc); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
