/* ============================================================
   ZION REACH — Feuille de style principale
   Couleurs et polices issues de la charte graphique officielle
   ============================================================ */

/* Police titres : Clash Display (Fontshare, gratuite).
   Déposez les fichiers .woff2 dans assets/fonts/ avec ces noms exacts.
   Tant qu'ils sont absents, Space Grotesk (Google Fonts) prend le relais. */
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Couleurs primaires */
  --zr-blue: #055DE2;
  --zr-sky: #159CED;
  /* Couleurs secondaires */
  --zr-purple: #8F78EA;
  --zr-orange: #FE8C12;
  --zr-dark: #28292A;
  --zr-cream: #F8F5F3;

  /* Dérivés pour l'interface sombre */
  --bg: #1E1F20;
  --surface: #28292A;
  --surface-2: #2E2F31;
  --surface-3: #343538;
  --line: #36373A;
  --line-2: #424346;
  --line-3: #55575B;
  --text: #F8F5F3;
  --text-2: #D2D0CE;
  --text-3: #B4B2B0;
  --text-4: #8D8C8B;

  --font-display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 18px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--zr-sky); }
:focus-visible { outline: 2px solid var(--zr-sky); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.eyebrow {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--zr-sky); font-weight: 500;
}
.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; line-height: 1.02;
  margin: 16px 0 48px; max-width: 900px;
}
.lead { font-size: 19px; color: var(--text-3); max-width: 680px; margin: -24px 0 48px; }
.deco { position: absolute; pointer-events: none; user-select: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { box-shadow: 0 0 0 0 rgba(5,93,226,.0); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(21,156,237,.7); }
.btn-primary { background: var(--zr-blue); color: #fff; }
.btn-primary:hover { background: #1a6cf0; color: #fff; }
.btn-ghost { border-color: var(--line-3); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--zr-sky); color: var(--text); }
.btn-light { background: #fff; color: var(--zr-blue); }
.btn-lg { padding: 18px 30px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 31, 32, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: var(--max); margin: 0 auto; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { min-height: 44px; padding: 12px 22px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 12px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zr-sky); display: inline-block; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, 8vw, 104px); line-height: .95; letter-spacing: -.035em;
  margin: 28px 0 0; max-width: 1100px; position: relative;
}
.hero h1 span { color: var(--zr-sky); }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 40px; }
.hero-row p { font-size: 20px; color: var(--text-2); max-width: 620px; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.showreel {
  position: relative; margin-top: 64px; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 7; background: var(--zr-blue);
  display: flex; align-items: center; justify-content: center;
}
.showreel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showreel .rec { position: absolute; top: 20px; left: 24px; display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; color: #fff; }
.showreel .rec .dot { background: var(--zr-orange); animation: pulse 1.6s infinite; }
.play {
  position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0;
  background: #fff; color: var(--zr-blue); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform .25s;
}
.play:hover { transform: scale(1.08); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Chiffres ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .grid-4 { padding: 40px 24px; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.1; }
.stat-label { color: var(--text-3); font-size: 15px; margin-top: 4px; }

/* ---------- Grilles ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: var(--max); margin: 0 auto; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

/* ---------- Pour qui (onglets) ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab { border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; font: 600 15px var(--font-body); cursor: pointer; background: transparent; color: var(--text-2); transition: background .2s; }
.tab[aria-selected="true"] { background: var(--zr-blue); color: #fff; }
.tab-panel { margin-top: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel p { font-size: 20px; color: var(--text-2); margin: 0; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; font-size: 17px; }
.checklist li::before { content: "— "; color: var(--zr-sky); }
.reel-pair { display: flex; gap: 16px; }
.reel-pair .reel:last-child { margin-top: 48px; }

/* ---------- Reels (portfolio) ---------- */
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; flex: 1;
  display: flex; align-items: flex-end; padding: 16px; font-size: 13px;
  background: var(--surface-3); color: var(--text-3);
}
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel span { position: relative; z-index: 1; }
.reel.is-blue { background: var(--zr-blue); color: #DCE8FB; }
.reel.is-sky { background: var(--zr-sky); color: var(--bg); }
.reel.is-purple { background: var(--zr-purple); color: var(--bg); }
.reel.is-dark { background: var(--zr-dark); color: var(--text-3); }
.grid-5 .reel:nth-child(even) { margin-top: 40px; }

/* ---------- Cartes services ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--zr-blue); transform: translateY(-4px); }
.card-num { font-size: 13px; color: var(--text-4); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 48px 0 12px; }
.card p { color: var(--text-3); margin: 0; }

/* ---------- Réalisations (fond clair) ---------- */
.light { background: var(--zr-cream); color: var(--bg); }
.light .eyebrow { color: var(--zr-blue); font-weight: 700; }
.light a { color: var(--zr-blue); font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head .h2 { margin-bottom: 0; }

/* ---------- Méthode ---------- */
.step { border-top: 2px solid var(--line-2); padding-top: 20px; }
.step:first-child { border-color: var(--zr-sky); }
.step-num { font-family: var(--font-display); font-weight: 600; font-size: 40px; color: var(--line-3); }
.step:first-child .step-num { color: var(--zr-sky); }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { color: var(--text-3); margin: 0; }

/* ---------- Mission ---------- */
.mission { background: var(--zr-blue); position: relative; overflow: hidden; }
.mission .eyebrow { color: #DCE8FB; }
.mission .h2 { max-width: 980px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin-bottom: 56px; }
.value { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; }
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0 0 10px; }
.value p { margin: 0; color: #EAF1FD; }

/* ---------- Offres ---------- */
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.plan.featured { border: 2px solid var(--zr-blue); background: var(--surface-2); }
.plan-name { font-size: 15px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 12px; font-weight: 700; background: var(--zr-orange); color: var(--bg); padding: 4px 10px; border-radius: 999px; }
.plan-price { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1.1; }
.plan-price small { font: 400 17px var(--font-body); color: var(--text-4); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); }
.plan li::before { content: "✓ "; color: var(--zr-sky); }
.plan .btn { margin-top: auto; }

/* ---------- Équipe ---------- */
.member-photo { aspect-ratio: 3 / 4; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { margin-top: 10px; font-weight: 700; }
.member-role { color: var(--text-4); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { background: var(--zr-blue); color: #fff; position: relative; overflow: hidden; }
.contact h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 6vw, 72px); letter-spacing: -.035em; line-height: .95; margin: 0; }
.contact p { font-size: 19px; color: #EAF1FD; max-width: 460px; margin: 24px 0 0; }
.contact-lines { margin-top: 32px; display: grid; gap: 8px; font-weight: 600; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: #fff; text-decoration: underline; }
.form { display: grid; gap: 14px; background: var(--bg); color: var(--text); padding: 32px; border-radius: 20px; position: relative; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form textarea, .form select {
  padding: 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 16px var(--font-body);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--zr-sky); }
.form .btn { margin-top: 6px; }
.form-success { display: none; padding: 16px; border-radius: 12px; background: rgba(21,156,237,.15); color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; color: var(--text-4); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-3); }

/* ============================================================
   ANIMATIONS
   Une seule courbe d'accélération pour tout le site : sortie douce,
   comme un fondu de montage. Tout est désactivé si le visiteur
   a demandé moins d'animations dans son système.
   ============================================================ */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--zr-blue), var(--zr-sky));
}

/* Navigation qui se resserre au défilement */
.nav-inner { transition: padding .4s var(--ease); }
.nav-logo img { transition: height .4s var(--ease); }
.nav.is-scrolled .nav-inner { padding-top: 8px; padding-bottom: 8px; }
.nav.is-scrolled .nav-logo img { height: 34px; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--zr-sky); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Entrée de la page : titre mot par mot, puis le reste */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + .1s); }
.js [data-split].is-in .w > span { transform: none; }
.js .load { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) var(--d, 0s) forwards; }
.js .load-zoom { clip-path: inset(8% 6% 8% 6% round 28px); animation: unveil 1.4s var(--ease) .55s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 20px); } }

/* Décor du logo : parallaxe et rotation lente */
[data-parallax], [data-rotate] { will-change: transform; }
.spin-slow { animation: spin 60s linear infinite; }
@keyframes spin { from { transform: rotate(160deg); } to { transform: rotate(520deg); } }
.play::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* Bandeau défilant */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; white-space: nowrap; color: var(--text-2); }
.marquee span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px var(--text-3); }
.marquee i { width: 12px; height: 12px; flex: none; background: var(--zr-sky); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Apparition au défilement, en cascade dans chaque groupe */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--stagger, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Cartes : halo bleu qui suit la souris */
.card, .plan, .value { position: relative; isolation: isolate; }
.card::before, .plan::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(21,156,237,.16), transparent 60%);
}
.card:hover::before, .plan:hover::before { opacity: 1; }
.plan { transition: transform .4s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-6px); }
.value { transition: background .3s, transform .4s var(--ease); }
.value:hover { background: rgba(255,255,255,.16); transform: translateY(-4px); }

/* Reels : léger zoom et reflet au survol */
.reel { transition: transform .6s var(--ease); }
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.reel:hover { transform: translateY(-6px) scale(1.02); }
.reel:hover::after { transform: translateX(120%); }

/* Boutons */
.btn-arrow svg { transition: transform .35s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* Méthode : la ligne bleue avance d'une étape à l'autre */
.steps .step { position: relative; border-top-color: var(--line-2); }
.steps .step::before {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--zr-sky);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); transition-delay: calc(var(--stagger, 0) * 220ms + .2s);
}
.steps .step-num { transition: color .5s; transition-delay: calc(var(--stagger, 0) * 220ms + .4s); }
.steps.is-visible .step::before { transform: scaleX(1); }
.steps.is-visible .step-num { color: var(--zr-sky); }

/* Onglets : fondu du contenu */
.tab-panel:not([hidden]) { animation: rise .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .load { opacity: 1; transform: none; }
  .js .load-zoom { clip-path: none; }
  .js [data-split] .w > span { transform: none; }
  .marquee-track { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 .reel:nth-child(even) { margin-top: 0; }
  .section { padding: 80px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-actions .btn { display: none; }
  .showreel { aspect-ratio: 16 / 10; }
  .deco.hide-mobile { display: none; }
}

/* ============================================================
   CONTACT DIRECT : boutons WhatsApp / email
   ============================================================ */
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; font-weight: 600; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.contact-direct { margin-top: 32px; display: grid; gap: 12px; max-width: 420px; }
.direct {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.1); color: #fff; text-decoration: none;
  transition: background .3s, transform .4s var(--ease);
}
.direct:hover { background: rgba(255,255,255,.18); transform: translateX(4px); color: #fff; }
.direct-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; color: var(--zr-blue); display: flex; align-items: center; justify-content: center; }
.direct small { display: block; font-size: 13px; color: #DCE8FB; font-weight: 500; }
.direct strong { font-size: 16px; word-break: break-all; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1FAF5A; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  transform: translateY(120px); transition: transform .6s var(--ease), background .3s;
}
.wa-float.is-shown { transform: none; }
.wa-float:hover { background: #18994d; color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1FAF5A; animation: ring 2.8s var(--ease) infinite; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.faq-intro p { color: var(--text-3); font-size: 18px; margin: 0 0 24px; max-width: 420px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 600; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--zr-sky); }
.faq-plus { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-3); position: relative; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.faq-plus::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] .faq-plus { background: var(--zr-blue); border-color: var(--zr-blue); color: #fff; transform: rotate(180deg); }
.faq details[open] .faq-plus::after { transform: rotate(0); }
.faq-a { color: var(--text-3); padding: 0 56px 24px 0; max-width: 680px; }
.faq details[open] .faq-a { animation: rise .5s var(--ease); }

/* ============================================================
   PAGE PORTFOLIO
   ============================================================ */
.pf-hero { padding: 96px 0 40px; position: relative; overflow: hidden; }
.pf-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(52px, 9vw, 120px); letter-spacing: -.04em; line-height: .92; margin: 28px 0 24px; }
.pf-hero p { font-size: 20px; color: var(--text-2); max-width: 600px; margin: 0; }
.pf-body { padding: 24px 0 112px; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 20; padding: 12px 0; background: var(--bg); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font: 600 15px var(--font-body); cursor: pointer; transition: background .3s, border-color .3s, color .3s;
}
.chip span { font-size: 12px; font-weight: 700; color: var(--text-4); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--zr-sky); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--zr-blue); border-color: var(--zr-blue); color: #fff; }
.chip[aria-pressed="true"] span { color: #DCE8FB; }

/* Grille en colonnes (mosaïque) */
.pf-grid { columns: 3 300px; column-gap: 20px; }
.pf-item {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 20px; padding: 0; border: 0; background: none;
  color: inherit; text-align: left; cursor: zoom-in; font: inherit;
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 60ms);
}
.pf-grid.is-ready .pf-item { opacity: 1; transform: none; }
.pf-media { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-3); }
.fmt-portrait .pf-media, .lb-media.fmt-portrait { aspect-ratio: 4 / 5; }
.fmt-carre .pf-media, .lb-media.fmt-carre { aspect-ratio: 1 / 1; }
.fmt-paysage .pf-media, .lb-media.fmt-paysage { aspect-ratio: 16 / 9; }
.fmt-story .pf-media, .lb-media.fmt-story { aspect-ratio: 9 / 16; }
.pf-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pf-item:hover .pf-media > img, .pf-item:hover .pf-ph img { transform: scale(1.05); }
.pf-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5,20,50,.55));
  opacity: 0; transition: opacity .4s;
}
.pf-item:hover .pf-media::after { opacity: 1; }
.pf-play { position: absolute; left: 16px; bottom: 16px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--zr-blue); display: flex; align-items: center; justify-content: center; }
.pf-meta { display: grid; gap: 2px; padding: 14px 4px 0; }
.pf-cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--zr-sky); font-weight: 700; }
.pf-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; transition: color .3s; }
.pf-item:hover .pf-title { color: var(--zr-sky); }
.pf-client { font-size: 14px; color: var(--text-4); }
.pf-empty { color: var(--text-3); text-align: center; padding: 64px 0; }

/* Vignette provisoire aux couleurs de la marque */
.pf-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; }
.pf-ph img { position: absolute; width: 85%; right: -18%; top: -10%; opacity: .2; transition: transform .9s var(--ease); }
.pf-ph span { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.tone-blue { background: var(--zr-blue); color: #fff; }
.tone-sky { background: var(--zr-sky); color: var(--bg); }
.tone-purple { background: var(--zr-purple); color: var(--bg); }
.tone-orange { background: var(--zr-orange); color: var(--bg); }
.tone-dark { background: var(--surface-3); color: var(--text-2); }
.tone-dark img { opacity: .08; }

/* Visionneuse */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 72px 88px 32px; border: 0;
  background: rgba(16,17,18,.96); color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fadeIn .35s var(--ease); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
@keyframes fadeIn { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; gap: 20px; max-width: 1100px; width: 100%; max-height: 100%; animation: rise .5s var(--ease); }
.lb-media { position: relative; border-radius: 16px; overflow: hidden; margin: 0 auto; max-height: calc(100vh - 220px); max-width: 100%; height: calc(100vh - 220px); }
.lb-media > img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.lb-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.lb-cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--zr-sky); font-weight: 700; }
.lb-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.lb-client { color: var(--text-3); }
.lb-side { display: flex; align-items: center; gap: 16px; }
.lb-count { color: var(--text-4); font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-3);
  background: var(--surface); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.lb-close:hover, .lb-nav:hover { background: var(--zr-blue); border-color: var(--zr-blue); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }

@media (max-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-a { padding-right: 0; }
  .pf-grid { columns: 2 160px; column-gap: 12px; }
  .pf-item { margin-bottom: 16px; }
  .pf-title { font-size: 17px; }
  .pf-filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; top: calc(env(safe-area-inset-top, 0px) + 64px); }
  .chip { flex: none; }
  .lightbox { padding: 72px 16px 24px; }
  .lb-nav { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: auto; right: 84px; }
  .lb-media { height: auto; max-height: calc(100vh - 260px); }
  .lb-caption { padding-right: 140px; }
  .wa-float span { display: none; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-item { opacity: 1; transform: none; }
  .wa-float { transform: none; }
}

/* Encart essai gratuit sous les offres */
.trial {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; border-radius: 20px; border: 1px dashed var(--zr-sky); background: rgba(21,156,237,.08);
  font-size: 18px; color: var(--text-2);
}
.trial strong { color: var(--text); }

/* Offres : précisions et carte Gold */
.plans { align-items: stretch; }
.plan-for { margin: -6px 0 0; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.plan ul b { color: var(--text); }
.plan-gold {
  background: linear-gradient(160deg, #0A4FC0, var(--zr-blue) 45%, #1279E8);
  border: 0; color: #fff; overflow: hidden;
}
.plan-gold::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 300px; height: 300px; z-index: -1;
  background: url("img/zr-mark-white-big.png") center / contain no-repeat; opacity: .1;
}
.plan-gold .plan-name, .plan-gold .plan-for, .plan-gold ul { color: #EAF1FD; }
.plan-gold .plan-price small { color: #DCE8FB; }
.plan-gold ul b { color: #fff; }
.plan-gold li::before { color: #fff; }
.badge-gold { background: #fff; color: var(--zr-blue); }
.plan-gold:hover { transform: translateY(-6px); }
.plan-gold::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 60%); }

/* Trois onglets "Pour qui" : passent à la ligne sur téléphone */
.tabs { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 600px) {
  .tabs { border-radius: 22px; }
  .tab { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; }
}

/* Formats supplémentaires du portfolio */
.fmt-photo .pf-media, .lb-media.fmt-photo { aspect-ratio: 4 / 3; }
.fmt-large .pf-media, .lb-media.fmt-large { aspect-ratio: 3 / 2; }
.lb-media.fmt-photo, .lb-media.fmt-large, .lb-media.fmt-paysage { height: auto; width: min(100%, 1000px); }
.lb-media.fmt-portrait, .lb-media.fmt-story, .lb-media.fmt-carre { width: auto; }
.lb-media > img { display: block; }

/* Réalisations sur l'accueil : vraies affiches */
.works { align-items: start; }
.work {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background: var(--surface); text-decoration: none; color: #fff !important;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; font-size: 14px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease);
}
.work:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(5,40,100,.45); }
.work:hover img { transform: scale(1.06); }
.work:hover span { opacity: 1; transform: none; }
.grid-5.works .work:nth-child(even) { margin-top: 40px; }
@media (max-width: 960px) {
  .grid-5.works .work:nth-child(even) { margin-top: 0; }
  .grid-5.works .work:last-child { display: none; }
  .work span { opacity: 1; transform: none; }
}

/* Reels vidéo : lecture muette en boucle, bouton son */
.reel video { z-index: 0; }
.reel.has-video span { z-index: 1; text-shadow: 0 1px 8px rgba(0,0,0,.5); color: #fff; }
.reel.has-video::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); }
.reel-sound {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .3s;
}
.reel-sound:hover { background: var(--zr-blue); }
.reel-sound .wave { display: none; }
.reel-sound[aria-pressed="true"] .wave { display: inline; }
.reel-sound[aria-pressed="true"] .mute { display: none; }
.reel.no-video .reel-sound, .reel.no-video::before { display: none; }
.reel.no-video span { color: inherit; text-shadow: none; }

/* Reels en couverture (lien vers la vidéo) */
.reel-cover { padding: 0; text-decoration: none; color: #fff !important; }
.reel-cover img { transition: transform .9s var(--ease); }
.reel-cover:hover img { transform: scale(1.05); }
.reel-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.6)); pointer-events: none; }
.reel-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--zr-blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .4s var(--ease), background .3s, color .3s;
}
.reel-cover:hover .reel-play { transform: scale(1.12); background: var(--zr-blue); color: #fff; }
.reel-label { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; font-weight: 700; font-size: 14px; }
.reel-cover.is-pending { cursor: default; }
.reel-cover.is-pending .reel-play { opacity: .85; }
