/* Portfolio – Caroline N'Goran
   Palette reprise de son CV : bleu nuit + or. */
:root {
  --ink: #0f1f33;
  --navy: #14304f;
  --navy-2: #1d3f66;
  --paper: #f3f5f8;
  --white: #ffffff;
  --gold: #e8b523;
  --gold-ink: #6b4e00;
  --mist: #56677a;
  --line: #d6dde6;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(243, 245, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 800 21px/1 var(--display); text-decoration: none; color: var(--navy); }
.brand span { font-weight: 400; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--mist); }
.nav a:hover { color: var(--ink); }
.nav .nav__cta { color: var(--navy); border: 1.5px solid var(--navy); padding: 7px 14px; border-radius: 999px; }
.nav .nav__cta:hover { background: var(--navy); color: var(--white); }
@media (max-width: 560px) { .nav a:not(.nav__cta) { display: none; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #f3c84a; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); }
.link { font-weight: 600; color: var(--navy); text-underline-offset: 4px; }

/* ---------- Héros ---------- */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); }
.hero__in { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.hero__name { font-size: clamp(56px, 11vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -0.035em; color: var(--navy); }
.hero__role { font: 600 clamp(20px, 2.4vw, 26px)/1.25 var(--display); margin: 22px 0 10px; }
.hero__tag { color: var(--mist); max-width: 46ch; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 26px; }
.hero__avail { margin: 22px 0 0; font-size: 15px; color: var(--mist); display: flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 4px rgba(47, 158, 91, .18); }
.hero__photo { justify-self: end; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; padding: 10px; background: var(--gold); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--white); }
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
  .hero__photo { order: -1; justify-self: start; width: 150px; padding: 6px; }
}

/* ---------- Bande « pellicule » ---------- */
.strip { position: relative; background: var(--navy); padding: 26px 0; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, .22) 14px 28px); }
.strip::before { top: 8px; }
.strip::after { bottom: 8px; }
.strip__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.strip__frame { position: relative; flex: 0 0 auto; height: clamp(230px, 34vw, 380px); scroll-snap-align: start; background: var(--navy-2); }
.strip__frame img { height: 100%; width: auto; max-width: none; }
.strip__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: var(--white); font: 600 15px/1.2 var(--display); background: linear-gradient(transparent, rgba(10, 22, 38, .82)); }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 36px; padding-bottom: 8px; }
.stat { margin: 0; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--gold); padding-left: 14px; }
.stat strong { font: 800 30px/1 var(--display); color: var(--navy); }
.stat span { color: var(--mist); font-size: 15px; line-height: 1.4; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Réalisations ---------- */
.work { padding: clamp(48px, 7vw, 88px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 15px/1 var(--text); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.grid { columns: 3 300px; column-gap: 18px; }
.card { display: block; break-inside: avoid; margin-bottom: 18px; text-decoration: none; background: var(--white); }
.card[hidden] { display: none; }
.card img { width: 100%; height: auto; transition: opacity .2s; }
.card:hover img { opacity: .88; }
.card__meta { display: block; padding: 12px 14px 14px; }
.card__title { display: block; font: 600 18px/1.25 var(--display); }
.card__sub { display: block; color: var(--mist); font-size: 14px; margin-top: 3px; }
.empty { color: var(--mist); }

/* ---------- À propos ---------- */
.about { background: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.about__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about__bio h2 { margin-bottom: 22px; }
.about__bio p { max-width: 60ch; font-size: 18px; }
.about__skills { display: grid; gap: 26px; align-content: start; }
.sk h3 { margin-bottom: 10px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 12px; font-size: 15px; }
.bars i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy) var(--v), var(--line) var(--v)); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.path { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(40px, 6vw, 72px); }
.path h3 { font-size: 24px; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--white); }
.timeline__when { font-size: 14px; color: var(--mist); margin: 0 0 2px; }
.timeline__what { margin: 0 0 4px; line-height: 1.35; }
.timeline__what span { color: var(--mist); font-size: 15px; }
.timeline__desc { font-size: 15px; margin: 0; color: #2c3c4f; max-width: 52ch; }
@media (max-width: 820px) { .about__in, .path { grid-template-columns: 1fr; } .bars li { grid-template-columns: 140px 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.contact__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
.contact h2 { color: var(--white); margin-bottom: 16px; }
.contact__intro > p { color: #c3d0df; font-size: 18px; max-width: 42ch; }
.direct { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.direct li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 16px; }
.direct span { color: #93a7bf; }
.direct a { color: var(--white); text-underline-offset: 4px; }
.form { display: grid; gap: 14px; background: var(--white); color: var(--ink); padding: clamp(20px, 3vw, 32px); border-radius: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: 400 16px/1.4 var(--text); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.notice { margin: 0; padding: 12px 14px; border-radius: 8px; background: #e3f4ea; color: #1d5e37; font-size: 15px; }
.notice--err { background: #fde8e6; color: #8a2318; }
.notice--err p { margin: 0; }
@media (max-width: 820px) { .contact__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } .direct li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #9fb0c3; font-size: 14px; padding: 22px 0 90px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot p { margin: 0; }
.foot__links { display: flex; gap: 16px; }
.foot a { color: var(--white); }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; background: #1f9d55; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 16px 11px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(15, 31, 51, .25); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: #188546; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* ---------- Page réalisation ---------- */
.proj { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.back { display: inline-block; font-size: 15px; color: var(--mist); text-underline-offset: 4px; margin-bottom: 18px; }
.back::before { content: "‹ "; }
.proj__head h1 { font-size: clamp(38px, 6.5vw, 76px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; max-width: 18ch; }
.proj__lead { font-size: clamp(18px, 2vw, 21px); color: #2c3c4f; max-width: 58ch; margin-top: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { min-width: 120px; }
.facts dt { font-size: 13px; color: var(--mist); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.proj__body { margin-top: 32px; }
.proj__body p { max-width: 64ch; font-size: 18px; }
.proj__video { margin-top: 28px; }
.proj__video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--ink); }
.gallery { columns: 2 340px; column-gap: 14px; margin-top: 32px; }
.gallery__item { display: block; break-inside: avoid; margin-bottom: 14px; cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; }
.more { margin-top: clamp(40px, 6vw, 72px); }
.more h2 { font-size: 26px; margin-bottom: 16px; }
.more__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more__item { text-decoration: none; font: 600 16px/1.3 var(--display); }
.more__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
@media (max-width: 700px) { .more__list { grid-template-columns: 1fr 1fr; } }
.proj__cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.proj__cta p { margin: 0; font: 600 22px/1.2 var(--display); }

/* ---------- Visionneuse ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(8, 16, 28, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 20px 0; }
.lb__fig img { max-height: 84vh; width: auto; }
.lb__fig figcaption { color: #c3d0df; font-size: 15px; text-align: center; }
.lb button { background: none; border: 0; color: var(--white); font-size: 44px; cursor: pointer; height: 64px; }
.lb__close { position: absolute; top: 8px; right: 12px; }
@media (max-width: 600px) { .lb { grid-template-columns: 40px 1fr 40px; } .lb button { font-size: 34px; } }

/* Zones tactiles confortables (≥ 40 px) sur mobile */
.brand { padding: 10px 0; }
.link, .back { display: inline-block; padding: 10px 0; }
.foot a { display: inline-block; padding: 8px 0; }

/* Titres très longs : pas de débordement sur petit écran */
h1, h2, .card__title, .strip__cap { overflow-wrap: anywhere; }
.btn { text-align: center; }

/* ================= Mode « application mobile » ================= */
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
.ico { width: 24px; height: 24px; flex: 0 0 auto; }
.install { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid #3d5470; color: var(--white); font: 600 14px var(--text); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.install .ico { width: 18px; height: 18px; }
.install[hidden] { display: none; }

/* Barre d'onglets en bas (téléphone, y compris en paysage) */
.tabbar { display: none; }
@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse), (max-height: 500px) and (pointer: coarse) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; text-decoration: none; color: var(--mist); font: 600 11px/1 var(--text); letter-spacing: .01em; border-radius: 12px; }
  .tabbar a.on { color: var(--navy); }
  .tabbar a.on .ico { stroke-width: 2.4; }
  .tabbar a.on::after { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 2px; }
  .tabbar a:not(.on)::after { content: ""; height: 3px; margin-top: 2px; }
  .tabbar__wa { color: #188546 !important; }
  .tabbar__bubble { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; background: #1f9d55; color: #fff; box-shadow: 0 6px 16px rgba(31, 157, 85, .35); border: 4px solid var(--white); }
  .tabbar__wa::after { display: none; }
  .wa-float { display: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 22px; }
  .top { padding-top: env(safe-area-inset-top); }
  .nav { display: none; }
  .top__in { justify-content: center; }
}
/* Lancé depuis l'écran d'accueil : plein écran, sans marge inutile */
@media (display-mode: standalone) {
  .install { display: none !important; }
}

/* Téléphone en paysage : héros plus compact */
@media (max-height: 500px) and (pointer: coarse) {
  .hero { padding: 24px 0 20px; }
  .hero__name { font-size: clamp(44px, 9vh, 72px); }
  .hero__photo { width: min(38vh, 260px); }
  .strip__frame { height: 62vh; }
}

/* Bouton WhatsApp flottant (ordinateur) : pastille ronde, texte au survol */
.wa-float { padding: 14px; }
.wa-float span { display: none; }
.wa-float:hover span, .wa-float:focus-visible span { display: inline; }
.wa-float:hover, .wa-float:focus-visible { padding: 11px 16px 11px 12px; }

/* Mise à jour en direct : petit message en bas */
.live-toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%); opacity: 0; transition: transform .25s, opacity .25s; background: var(--ink); color: var(--white); font: 500 14.5px/1.4 var(--text); padding: 11px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 31, 51, .25); max-width: calc(100vw - 32px); }
.live-toast.show { transform: translate(-50%, 0); opacity: 1; }
.live-toast a { color: var(--gold); }
.live-toast__btn { margin-left: 8px; background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 12px; font: 600 13.5px var(--text); cursor: pointer; }
@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse), (max-height: 500px) and (pointer: coarse) {
  .live-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Parcours devenu une section à part entière */
.about--path .path { margin-top: 0; }
.about:not(.about--path) + .about--path { padding-top: 0; }
.about:not(.about--path):has(+ .about--path) { padding-bottom: clamp(40px, 6vw, 72px); }
.btn--gold { color: var(--on-gold, var(--ink)); }
.btn--gold:hover { background: var(--gold); filter: brightness(1.08); }
.tabbar.tabbar--4 { grid-template-columns: repeat(4, 1fr); }

/* ================= Effet « waouh » ================= */
/* Héros avec diaporama de photos en fond */
.hero__kicker { margin: 0 0 14px; font: 600 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.hero--slides { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero__bg img.on { opacity: 1; transform: scale(1); }
.hero--slides::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--navy) 94%, transparent) 0%, color-mix(in srgb, var(--navy) 80%, transparent) 48%, color-mix(in srgb, var(--navy) 35%, transparent) 100%), linear-gradient(0deg, color-mix(in srgb, var(--navy) 70%, transparent), transparent 40%); }
.hero--slides .hero__name { color: var(--white); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero--slides .hero__kicker { color: var(--gold); }
.hero--slides .hero__role { color: var(--gold); }
.hero--slides .hero__tag, .hero--slides .hero__avail { color: #d7e1ec; }
.hero--slides .btn--line { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.hero--slides .btn--line:hover { background: var(--white); color: var(--navy); }
.hero--slides .link { color: var(--white); }
.hero--slides .hero__photo { box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.hero__dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background .3s, width .3s; }
.hero__dots i.on { width: 24px; border-radius: 4px; background: var(--gold); }

/* Bande de photos qui défile toute seule (pause au survol / au toucher) */
.strip { overflow: hidden; }
.strip__track--auto { width: max-content; overflow: visible; scroll-snap-type: none; padding: 0; animation: defile calc(var(--n) * 7s) linear infinite; }
.strip__track--auto .strip__frame { margin-right: 12px; }
.strip__track--auto { gap: 0; }
.strip:hover .strip__track--auto, .strip:focus-within .strip__track--auto, .strip.is-paused .strip__track--auto { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip__frame { overflow: hidden; border-radius: 4px; }
.strip__frame img { transition: transform .6s ease; }
.strip__frame:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .strip__track--auto { width: auto; overflow-x: auto; padding: 0 20px; }
  .strip__track--auto [aria-hidden="true"] { display: none; }
  .hero__bg img { transition: none; }
}

/* Services */
.services { padding: clamp(56px, 8vw, 100px) 0; background: var(--white); }
.services__head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.services__head h2 { margin-bottom: 12px; }
.services__head p { color: var(--mist); font-size: 18px; margin: 0; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.svc { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.svc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 31, 51, .1); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc__ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--navy); color: var(--gold); margin-bottom: 18px; }
.svc__ico .ico { width: 26px; height: 26px; }
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { color: var(--mist); margin: 0; font-size: 16px; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: monte .8s ease both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; } .hero .reveal:nth-child(3) { animation-delay: .16s; } .hero .reveal:nth-child(4) { animation-delay: .24s; } .hero .reveal:nth-child(5) { animation-delay: .32s; } .hero .reveal:nth-child(6) { animation-delay: .4s; }
.hero__photo.reveal { animation: zoomin 1s ease both .1s; }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zoomin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.js .hero .reveal { opacity: 1; transform: none; transition: none; }
.js .card { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .card.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .card { opacity: 1; transform: none; } }

/* Boutons des formulaires centrés */
.form__end, .contact form .btn[type=submit] { justify-self: center; }
.form__end { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.contact form > .btn[type=submit], .contact form button[type=submit] { display: flex; margin-left: auto; margin-right: auto; }

/* ---------- Mur de photos qui défilent ---------- */
.kicker { margin: 0 0 12px; font: 600 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.wall { padding: clamp(56px, 8vw, 96px) 0; background: var(--ink); color: var(--white); overflow: hidden; }
.wall .kicker { color: var(--gold); }
.wall__head { text-align: center; margin-bottom: 34px; }
.wall__head h2 { max-width: 18ch; margin: 0 auto; }
.wall__row { overflow: hidden; margin-top: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall__track { display: flex; width: max-content; animation: defile calc(var(--n) * 5s) linear infinite; }
.wall__row--rev .wall__track { animation-direction: reverse; animation-duration: calc(var(--n) * 6s); }
.wall__row:hover .wall__track, .wall__row:focus-within .wall__track, .wall__row.is-paused .wall__track { animation-play-state: paused; }
.wall__pic { flex: none; display: block; height: clamp(150px, 20vw, 240px); margin-right: 14px; border-radius: 10px; overflow: hidden; background: #1b2a3d; }
.wall__pic img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(.92); }
.wall__pic:hover img { transform: scale(1.07); filter: saturate(1.1); }

/* ---------- Comment je travaille ---------- */
.process { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper); }
.process__head { text-align: center; margin-bottom: 38px; }
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; counter-reset: none; }
.step { position: relative; padding: 26px 22px 24px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); min-width: 0; }
.step__n { display: block; font: 800 46px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 14px; letter-spacing: -.02em; }
.step:hover .step__n { color: var(--gold); -webkit-text-stroke-color: var(--gold); transition: color .3s; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--mist); margin: 0; font-size: 16px; }
@media (min-width: 1000px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -14px; width: 10px; height: 10px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
}

/* ---------- Collaborations ---------- */
.clients { padding: 34px 0 38px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients__title { text-align: center; margin: 0 0 18px; font: 600 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.clients__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__track { display: flex; width: max-content; animation: defile calc(var(--n) * 3.5s) linear infinite; }
.clients__row:hover .clients__track { animation-play-state: paused; }
.clients__name { flex: none; padding: 0 34px; font: 800 clamp(22px, 3vw, 34px)/1.2 var(--display); color: var(--navy); opacity: .82; white-space: nowrap; position: relative; }
.clients__name::after { content: "✦"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--gold); }

/* ---------- Barre de progression + retour en haut ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 60; pointer-events: none; }
.to-top { position: fixed; right: 18px; bottom: 86px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); box-shadow: 0 8px 22px rgba(15, 31, 51, .28); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; } }

/* Cartes : léger zoom au survol */
.card { overflow: hidden; border-radius: 6px; }
.card img { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
.card:hover img { transform: scale(1.04); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .wall__track, .clients__track { animation: none; overflow-x: auto; width: auto; }
  .wall__row, .clients__row { overflow-x: auto; }
  .wall [aria-hidden="true"], .clients [aria-hidden="true"] { display: none; }
}

/* Vidéo */
.proj__clip { margin: 0 auto 34px; display: flex; justify-content: center; }
.proj__clip video { width: auto; max-width: 100%; max-height: 82vh; border-radius: 14px; background: #000; box-shadow: 0 18px 50px rgba(15, 31, 51, .25); }
.card { position: relative; }
.card__play { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 22, 38, .72); color: #fff; backdrop-filter: blur(4px); }
.card__play svg { width: 20px; height: 20px; margin-left: 2px; }

/* Transitions douces entre les pages (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.top { view-transition-name: entete; }
.tabbar { view-transition-name: onglets; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
/* Les images apparaissent en fondu une fois chargées */
.card img, .gallery__item img, .more__item img { background: linear-gradient(110deg, #e9edf2 30%, #f4f6f9 50%, #e9edf2 70%); background-size: 200% 100%; }

/* Voir plus */
.more-wrap { display: grid; justify-items: center; gap: 8px; margin-top: 30px; }
.more-wrap[hidden] { display: none; }
.more-btn { background: var(--navy); color: #fff; border: 0; cursor: pointer; }
.more-btn:hover { filter: brightness(1.12); }
.more-btn[hidden] { display: none; }
.more-btn__n { opacity: .75; font-weight: 500; margin-left: 6px; }
.more-count { margin: 0; font-size: 14px; color: var(--mist); }
