/* Noir profond, blanc pur, gris neutres. Accueil : une scène plein écran ; shooting : barre fine + vues. */
:root {
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #86868b;
  --line: #1d1d1f;
  --chip: #1c1c1e;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --accent: #ff5a1f;
  --on-accent: #000;
  --tile-h: clamp(200px, 36vh, 400px);
  --gap: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Barre du shooting ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px max(16px, env(safe-area-inset-left, 0px)) 14px max(16px, env(safe-area-inset-right, 0px));
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.back {
  justify-self: start;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
  transition: color .2s;
}
.back:hover, .back:focus-visible { color: var(--fg); }
.bar-logo img { display: block; width: 34px; height: 34px; opacity: .9; }

main { position: relative; z-index: 1; flex: 1; padding: 40px 0 24px; }
.shoot-head { text-align: center; padding: 0 16px; }
.shoot :is(h1, h2) {
  margin: 0;
  font: 300 clamp(22px, 3vw, 34px)/1.2 Inter, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* Sélecteur de vue (contrôle segmenté) */
.views {
  display: inline-flex;
  margin: 22px auto 30px;
  padding: 3px;
  gap: 2px;
  background: var(--chip);
  border-radius: 999px;
}
.views button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 Inter, sans-serif;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.views button:hover { color: var(--fg); }
.views button[aria-pressed="true"] { background: #3a3a3c; color: var(--fg); }
.views button:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.views svg { width: 15px; height: 15px; }

.view { animation: fade .45s ease; }

/* Carrousel */
.slider { position: relative; }
.track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 50vw;
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.tile {
  flex: 0 0 auto;
  height: var(--tile-h);
  padding: 0;
  border: 0;
  background: #111;
  scroll-snap-align: center;
  cursor: zoom-in;
  overflow: hidden;
}
.tile img, .cell img {
  display: block;
  filter: grayscale(1) brightness(.75);
  transition: filter .45s ease, transform .6s var(--ease);
  user-select: none;
}
.tile img { height: 100%; width: auto; pointer-events: none; }
.tile.active img { filter: none; transform: scale(1.03); }
@media (hover: hover) {
  .tile.active img { filter: grayscale(1) brightness(.75); transform: none; }
  .tile:hover img, .tile:focus-visible img { filter: none; transform: scale(1.03); }
}
.tile:focus-visible, .cell:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid #333;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: var(--fg);
  font: 300 26px/1 Inter, sans-serif;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
.nav:hover, .nav:focus-visible { opacity: 1; }
.nav.prev { left: 16px; }
.nav.next { right: 16px; }
@media (hover: none) { .nav { display: none; } }
.count { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .2em; margin-top: 18px; }

/* Grille */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
  gap: 8px;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
  max-width: 1600px;
  margin: 0 auto;
}
.cell {
  display: block;
  padding: 0;
  border: 0;
  background: #111;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  max-width: 100%;
}
.cell img { width: 100%; height: 100%; object-fit: cover; }
.cell:hover img, .cell:focus-visible img { filter: none; transform: scale(1.05); }
@media (hover: none) { .cell img { filter: none; } }

/* Liste */
.list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
}
.item { margin: 0; }
.item button { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; }
.item img { display: block; width: 100%; height: auto; max-width: 100%; }
.item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}

/* Bouton télécharger */
.dl, .lb-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
  font: 500 13px/1 Inter, sans-serif;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #3a3a3c;
  background: rgba(28,28,30,.8);
  transition: background .2s, border-color .2s;
}
.dl:hover, .lb-dl:hover, .dl:focus-visible, .lb-dl:focus-visible { background: #2c2c2e; border-color: #636366; }

.empty { text-align: center; color: var(--muted); }
footer { position: relative; z-index: 1; text-align: center; color: #555; font-size: 12px; padding: 32px 16px 36px; }

/* Visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.97);
}
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; user-select: none; }
.lightbox figcaption { color: var(--muted); font-size: 12px; letter-spacing: .15em; margin-top: 12px; }
.lb-tools {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-btn {
  background: none;
  border: 0;
  color: var(--fg);
  font: 300 44px/1 Inter, sans-serif;
  width: 56px;
  height: 56px;
  cursor: pointer;
  opacity: .7;
}
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .views button span { display: none; }
  .views button { padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Lien contact (accueil + barre) */
.home-contact, .bar-contact {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  transition: color .3s;
}
.home-contact {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fade .6s ease 1s forwards;
}
.bar-contact { justify-self: end; font-size: 11px; }
.home-contact:hover, .bar-contact:hover, .home-contact:focus-visible, .bar-contact:focus-visible { color: var(--fg); }

/* Logo de l'événement en tête de page */
.shoot-logo { display: block; width: clamp(72px, 8vw, 104px); height: auto; margin: 0 auto 18px; border-radius: 4px; }

/* ---------- Page contact ---------- */
.contact { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 56px 16px 40px; }
.contact :is(h1, h2) { margin: 0; text-align: center; font: 500 clamp(32px, 4.3vw, 56px)/1.05 Inter, system-ui, sans-serif; letter-spacing: -.04em; color: #fff; }
.contact-lead { margin: 10px 0 36px; text-align: center; color: var(--muted); }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: 400 16px/1.5 Inter, sans-serif;
  color: var(--fg);
  background: #0b0b0c;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #8e8e93; }
.contact-form button {
  justify-self: center;
  margin-top: 8px;
  font: 500 14px/1 Inter, sans-serif;
  color: #000;
  background: var(--fg);
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.contact-form button:hover { background: #fff; transform: scale(1.03); }
.contact-form button:disabled { opacity: .5; cursor: default; transform: none; }
.contact-status { min-height: 1.6em; text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.contact-status.ok { color: #e8e8ed; }
.contact-status.err { color: #ff6961; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Page contact sur un seul écran, sans défilement */
body.on-contact { height: 100vh; height: 100dvh; overflow: hidden; }
body.on-contact .contact { display: flex; flex-direction: column; min-height: 0; padding-top: clamp(16px, 4vh, 48px); padding-bottom: 8px; }
body.on-contact .contact-form { flex: 1; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: clamp(10px, 2vh, 18px); }
body.on-contact .contact-form label:nth-of-type(3) { grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
body.on-contact .contact-form textarea { height: 100%; min-height: 70px; max-height: 260px; resize: none; }
body.on-contact .contact-lead { margin-bottom: clamp(14px, 3vh, 36px); }
body.on-contact footer { padding-top: 8px; padding-bottom: 12px; }


/* ---------- Accueil : mise en page éditoriale, un seul écran ---------- */
body.on-home { height: 100vh; height: 100dvh; overflow: hidden; }
.home {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 32px; height: 32px; flex-shrink: 0; }
.brand span { font: 500 19px/1 "Playfair Display", Georgia, serif; letter-spacing: -.005em; }
.top-nav { display: flex; gap: 28px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .15s ease; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--fg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  min-height: 0;
}
.eyebrow { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.eyebrow span + span::before { content: "·"; margin: 0 .6em; color: #48484a; }
.headline {
  margin: 0;
  max-width: 14em;
  font: 500 clamp(36px, 4.3vw, 62px)/1.05 Inter, system-ui, sans-serif;
  letter-spacing: -.04em;
  color: #fff;
  text-wrap: balance;
}
.headline span { color: #6e6e73; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 40px); }
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 Inter, sans-serif;
  text-decoration: none;
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #f5f5f7; color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--fg); border: 1px solid #333336; }
.btn-ghost:hover { border-color: #6e6e73; }

.work { min-height: 0; }
.work-label { display: flex; justify-content: space-between; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.cards { display: grid; gap: 16px; }
.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 56vh;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  text-decoration: none;
  isolation: isolate;
  outline-offset: 4px;
  transition: transform .16s var(--ease-out);
}
.card:active { transform: scale(.99); }
.card .cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.85);
  transition: filter .45s ease, transform .6s var(--ease-out);
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 60%);
}
.card-info { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 14px; }
.card-info .badge { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.card-info h2 { margin: 0; font: 500 17px/1.25 Inter, sans-serif; letter-spacing: -.01em; color: #fff; }
.card-info p { margin: 2px 0 0; color: #a1a1a6; font-size: 13px; }
.card .arrow {
  margin-left: auto; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
@media (hover: hover) {
  .card:hover .cover { filter: none; transform: scale(1.03); }
  .card:hover .arrow { transform: translateX(3px); background: rgba(255,255,255,.24); }
}
@media (hover: none) { .card .cover { filter: none; } }
.card:focus-visible .cover { filter: none; }

.foot { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 20px 0; color: #48484a; font-size: 12px; }

/* apparition courte : 400 ms, une seule fois */
.home .intro, .home .work { animation: home-in .45s var(--ease-out) both; }
.home .work { animation-delay: .06s; }
@keyframes home-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 820px) {
  .top { padding: 16px 0; }
  .brand span { font-size: 17px; }
  .hero { grid-template-columns: 1fr; align-content: center; gap: clamp(20px, 4vh, 36px); }
  .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .headline { font-size: clamp(30px, 8.6vw, 44px); }
  .ctas { margin-top: 20px; }
  .btn { height: 42px; padding: 0 18px; font-size: 14px; }
  .card { aspect-ratio: 16 / 10; max-height: 30vh; border-radius: 16px; }
  .work-label { margin-bottom: 10px; }
  .foot { padding: 14px 0; }
  .foot-loc { display: none; }
}
@media (max-height: 640px) and (max-width: 820px) {
  .eyebrow, .work-label { display: none; }
}

/* ---------- Couleur d'accent ---------- */
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline-color: var(--accent); }
.acc { font-style: normal; color: var(--accent); }
.eyebrow span + span::before { color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
@media (hover: hover) { .card:hover .arrow { background: var(--accent); color: var(--on-accent); } }
.views button[aria-pressed="true"] { background: var(--fg); color: #000; }
.dl:hover, .lb-dl:hover, .dl:focus-visible, .lb-dl:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.contact-form button { background: var(--accent); color: var(--on-accent); }
.contact-form button:hover { background: var(--accent); filter: brightness(1.08); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.top-nav a:hover, .back:hover, .bar-contact:hover { color: var(--accent); }

/* Aperçu qui défile dans la carte de l'événement */
.card .cover { opacity: 0; transition: opacity .9s ease, filter .45s ease, transform .6s var(--ease-out); }
.card .cover.on { opacity: 1; }

/* Titre de l'album : même typo que l'accueil */
.shoot :is(h1, h2) {
  margin: 0;
  font: 500 clamp(32px, 4.3vw, 56px)/1.05 Inter, system-ui, sans-serif;
  letter-spacing: -.04em;
  text-transform: none;
  color: #fff;
  text-wrap: balance;
}
.shoot :is(h1, h2) .acc { color: var(--accent); }
.shoot .meta { margin-top: 10px; font-size: 14px; }
.shoot-logo { width: clamp(64px, 6vw, 84px); border-radius: 14px; margin-bottom: 22px; }
.bar-contact, .back { font-size: 14px; letter-spacing: 0; text-transform: none; }

/* Logo modernisé (A + point orange) */
.brand img, .bar-logo img { width: auto; height: 30px; border-radius: 0; opacity: 1; }

/* En-tête : lettre plus grande, nom plus discret */
.brand { gap: 14px; }
.brand img { height: 40px; }
.brand span { font-size: 16px; color: #d2d2d7; }
@media (max-width: 820px) { .brand img { height: 34px; } .brand span { font-size: 15px; } }

/* Photos de l'accueil en couleur */
.card .cover { filter: none; }
@media (hover: hover) { .card:hover .cover { transform: scale(1.03); } }

/* Lueur orange qui suit la souris */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 35%), color-mix(in srgb, var(--accent) 13%, transparent), color-mix(in srgb, var(--accent) 4%, transparent) 40%, transparent 70%);
  transition: opacity .6s ease;
}

/* Point orange qui suit la souris (ordinateurs uniquement) */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1));
  transition: opacity .2s ease, width .2s var(--ease-out), height .2s var(--ease-out), margin .2s var(--ease-out);
  will-change: transform;
}
.cursor-dot.on { opacity: 1; }
.cursor-dot.big { width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: .35; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-dot { display: none; } .glow { background: radial-gradient(600px circle at 70% 35%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); } }

/* --- Retouches 16:40 --- */
/* lueur orange plus présente */
.glow { background: radial-gradient(700px circle at var(--mx, 70%) var(--my, 35%), color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 8%, transparent) 38%, transparent 68%); }
/* logo seul, sans le texte */
.brand span { display: none; }
.brand img { height: 44px; }
@media (max-width: 820px) { .brand img { height: 38px; } }
/* points orange plus gros entre les métiers */
.eyebrow { align-items: center; }
.eyebrow span + span::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin: 0 .8em; vertical-align: middle; transform: translateY(-1px);
}
/* carrousel : zoom marqué au survol */
.tile img { transition: filter .45s ease, transform .7s var(--ease-out); }
@media (hover: hover) {
  .tile:hover img, .tile:focus-visible img { filter: none; transform: scale(1.12); }
}


/* --- Retouches 16:55 --- */
/* Liste plein écran : chaque photo occupe un écran et grandit jusqu'au plein écran au centre */
.list { max-width: none; padding: 0; gap: 0; }
.list .item { position: relative; height: 100vh; height: 100svh; margin: 0; }
.list .frame {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #0b0b0c;
  transform-origin: center;
  will-change: transform;
}
.list .frame button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: auto; }
.list .frame img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.list .item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 60px clamp(16px, 4vw, 48px) clamp(16px, 4vh, 36px);
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color: #e8e8ed;
  pointer-events: none;
}
.list .item figcaption .dl, .list .item figcaption .dl-don { pointer-events: auto; }
html.snap-list { scroll-snap-type: y proximity; }
html.snap-list .list .item { scroll-snap-align: center; }
@media (max-width: 820px) { .list .frame img { object-fit: contain; } }

/* Carrousel : tout le bloc photo grossit au survol */
.track { padding-top: 34px; padding-bottom: 34px; }
.tile { position: relative; transition: transform .45s var(--ease-out), box-shadow .45s ease; border-radius: 6px; }
@media (hover: hover) {
  .tile:hover, .tile:focus-visible { transform: scale(1.12); z-index: 2; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
  .tile:hover img, .tile:focus-visible img { transform: none; }
}

/* Phrase : intérieur des lettres éclairé en orange sous la souris */
@property --glow-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.headline span {
  display: block;
  color: transparent;
  background: radial-gradient(circle var(--glow-r) at var(--tx, 50%) var(--ty, 50%), var(--accent), color-mix(in srgb, var(--accent) 55%, #6e6e73) 45%, #6e6e73 100%) no-repeat, #6e6e73;
  -webkit-background-clip: text; background-clip: text;
  transition: --glow-r .5s var(--ease-out);
}
.headline span.lit { --glow-r: 190px; }

/* En-tête des pages intérieures identique à l'accueil : pas de fond, pas de trait */
.bar.top {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 56px);
  background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (max-width: 820px) { .bar.top { padding: 16px 20px; } }

/* Bouton flottant de la vue liste */
.list-exit {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: flex; gap: 4px; padding: 4px;
  border-radius: 999px;
  background: rgba(28, 28, 30, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .25s var(--ease-out);
}
.list-exit.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.list-exit button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--fg);
  font: 500 13px/1 Inter, sans-serif; cursor: pointer;
  transition: background-color .15s ease, transform .16s var(--ease-out);
}
.list-exit button:hover { background: rgba(255,255,255,.1); }
.list-exit button:active { transform: scale(.97); }
.list-exit button[data-act="top"] { background: var(--accent); color: var(--on-accent); }
.list-exit button[data-act="top"]:hover { background: var(--accent); filter: brightness(1.08); }

/* Nom en petites capitales, sur deux lignes, séparé du logo par un filet */
.brand .wordmark {
  display: flex; flex-direction: column; gap: 3px;
  padding-left: 14px;
  border-left: 1px solid #3a3a3c;
  font: 500 10.5px/1.15 Inter, system-ui, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #d2d2d7;
}
.brand .wordmark b { font-weight: 500; }
.brand .wordmark b + b { color: #86868b; }
@media (max-width: 820px) { .brand .wordmark { font-size: 9.5px; letter-spacing: .2em; padding-left: 12px; } }

/* ---------- Plusieurs projets sur l'accueil (photo + vidéo) ---------- */
.work { display: flex; flex-direction: column; height: 100%; justify-content: center; }
#work-count a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
#work-count a:hover { color: var(--accent); }
.cards.many {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  height: min(100%, 64vh);
  min-height: 0;
  gap: 12px;
}
.cards.many[data-n="3"] > .card:first-child { grid-row: span 2; }
.cards.many .card { aspect-ratio: auto; max-height: none; height: 100%; border-radius: 16px; }
.cards.many .card-info { left: 14px; right: 14px; bottom: 12px; gap: 10px; }
.cards.many .card-info .badge { width: 34px; height: 34px; border-radius: 8px; }
.cards.many .card-info h2 { font-size: 15px; }
.cards.many .card-info p { font-size: 12px; }
.cards.many .arrow { width: 30px; height: 30px; }
.card video.cover { opacity: 1; }
.card.is-video .arrow svg { margin-left: 0; } /* triangle déjà décalé dans son dessin : centrage optique */
@media (max-width: 820px) {
  .work { height: auto; }
  .cards.many {
    display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 0 clamp(20px, 4vw, 56px);
    scrollbar-width: none;
  }
  .cards.many::-webkit-scrollbar { display: none; }
  .cards.many .card { flex: 0 0 72%; height: 30vh; scroll-snap-align: start; }
  .cards.many .card.is-video { flex-basis: 50%; }
  .cards.many .card.is-video .badge { display: none; }
}

/* Page « Tous les projets » */
.all-projects { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.cards.all { margin: 28px 0 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.all-projects .shoot-head { text-align: center; }
.all-projects .shoot-head :is(h1, h2) { margin: 0; font: 500 clamp(32px, 4.3vw, 56px)/1.05 Inter, system-ui, sans-serif; letter-spacing: -.04em; color: #fff; }
.all-projects .shoot-head :is(h1, h2) .acc { color: var(--accent); }
.filters { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.filters:empty { display: none; }
.filters button {
  height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid #333336; background: transparent;
  color: var(--muted); font: 500 13px/1 Inter, sans-serif; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out);
}
.filters button:hover { color: var(--fg); border-color: #6e6e73; }
.filters button:active { transform: scale(.97); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cards.all .card { aspect-ratio: 4 / 5; max-height: none; }

/* ---------- Projet vidéo ---------- */
.vp {
  max-width: 1180px; margin: 40px auto 0; padding: 0 clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start;
}
.vp-players { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.vp-item { margin: 0; flex: 0 1 auto; }
.vp-item video {
  display: block; height: min(78vh, 760px); width: auto; max-width: 100%;
  aspect-ratio: var(--ar, 9 / 16); object-fit: cover;
  border-radius: 20px; background: #111;
}
.vp-item figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.vp-players:has(.vp-item + .vp-item) video { height: min(64vh, 620px); }
.vp-side { position: sticky; top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vp-side .page-body { margin-bottom: 10px; }
.vp-insta { gap: 10px; }
@media (max-width: 820px) {
  .vp { grid-template-columns: 1fr; margin-top: 28px; }
  .vp-item video { height: auto; width: 100%; max-height: 80vh; }
  .vp-side { position: static; }
}

/* ---------- Pages libres ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 8px clamp(20px, 4vw, 40px) 48px; }
.page :is(h1, h2) { margin: 0 0 28px; font: 500 clamp(32px, 4.3vw, 56px)/1.05 Inter, system-ui, sans-serif; letter-spacing: -.04em; color: #fff; }
.page-body { color: #c7c7cc; font-size: 16px; line-height: 1.7; }
.page-body p { margin: 0 0 1.1em; }
.page-body h3 { margin: 1.6em 0 .5em; color: #fff; font: 500 20px/1.3 Inter, sans-serif; letter-spacing: -.01em; }
.page-body ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.page-body li::marker { color: var(--accent); }
.page-body a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.page-body strong { color: #fff; font-weight: 500; }

/* Menu sur mobile : le logo ramène à l'accueil, on gagne de la place */
@media (max-width: 600px) {
  .top-nav { gap: 14px; }
  .top-nav a { white-space: nowrap; font-size: 13px; }
  .top-nav a[href="/"], .top-nav a[href="#"] { display: none; }
}

/* ---------- Pied de page : liens discrets ---------- */
footer a, .foot a { color: inherit; text-decoration: none; transition: color .2s; }
footer a:hover, .foot a:hover, footer a:focus-visible, .foot a:focus-visible { color: var(--fg); }
footer .sep { margin: 0 10px; opacity: .6; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.foot-links .fl1, .foot-links .fl2 { display: contents; }

/* ---------- Faire un don ---------- */
.don-form { display: grid; gap: 22px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amounts button {
  font: 500 17px/1 Inter, sans-serif; color: var(--fg); background: #0b0b0c;
  border: 1px solid #2c2c2e; border-radius: 14px; padding: 18px 0; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.amounts button:hover { border-color: #636366; }
.amounts button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.don-form .other { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.don-form .eur { position: relative; display: block; }
.don-form .eur input {
  width: 100%; box-sizing: border-box; font: 400 16px/1.5 Inter, sans-serif; color: var(--fg);
  background: #0b0b0c; border: 1px solid #2c2c2e; border-radius: 12px; padding: 12px 40px 12px 14px;
  -moz-appearance: textfield;
}
.don-form .eur input::-webkit-outer-spin-button, .don-form .eur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.don-form .eur input:focus { outline: none; border-color: var(--accent); }
.don-form .eur > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); letter-spacing: 0; font-size: 16px; text-transform: none; }
.don-form button[type=submit] {
  justify-self: center; font: 500 14px/1 Inter, sans-serif; color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 999px; padding: 15px 38px; cursor: pointer; transition: transform .2s var(--ease), filter .2s;
}
.don-form button[type=submit]:hover { filter: brightness(1.08); transform: scale(1.03); }
.don-form button[type=submit]:disabled { opacity: .5; cursor: default; transform: none; }
.don-note { margin: 0; text-align: center; color: #636366; font-size: 12px; line-height: 1.6; }
.don-merci { text-align: center; color: #c7c7cc; }
.don-merci .big { margin: 8px 0 10px; color: #fff; font: 500 clamp(28px, 4vw, 40px)/1.2 Inter, sans-serif; letter-spacing: -.03em; }
.don-merci .btn { margin-top: 18px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }

/* Lien discret dans la visionneuse */
.lb-don { color: var(--muted); text-decoration: none; font: 500 13px/1 Inter, sans-serif; padding: 9px 10px; transition: color .2s; }
.lb-don:hover, .lb-don:focus-visible { color: var(--fg); }

/* Mentions légales */
.legal { padding-top: 40px; }
.legal .page-body h3 { font-size: 17px; }
.cap-acts { display: inline-flex; align-items: center; gap: 6px; }
.dl-don { color: var(--muted); text-decoration: none; font: 500 13px/1 Inter, sans-serif; padding: 9px 8px; transition: color .2s; }
.dl-don:hover, .dl-don:focus-visible { color: var(--fg); }
.lb-don[hidden] { display: none; }
.don-merci .big { font-size: clamp(34px, 5vw, 56px); margin-top: 24px; }

/* Texte de présentation d'un projet : grand, gris, mots clés en blanc */
.statement { max-width: 900px; margin: 26px auto 34px; color: #7a7a7f; font: 400 clamp(22px, 2.7vw, 36px)/1.28 Inter, system-ui, sans-serif; letter-spacing: -.025em; text-wrap: balance; }
.statement p { margin: 0 0 .5em; }
.statement p:last-child { margin-bottom: 0; }
.statement strong { color: #fff; font-weight: 600; letter-spacing: -.035em; }
.statement a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.statement h3 { margin: 0 0 .3em; color: #fff; font: inherit; font-weight: 500; }
.statement ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 600px) { .statement { margin: 18px auto 26px; } }

/* Page vidéo : texte en grand dans la colonne de droite, face à la vidéo */
.video-project .vp { align-items: center; }
.video-project .vp-side { position: static; align-self: center; gap: 28px; }
.vp-side .statement { margin: 0; text-align: left; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.18; max-width: 560px; }
/* plein écran : la vidéo entière, jamais recadrée */
.vp-item video:fullscreen { object-fit: contain; width: 100%; height: 100%; max-height: none; border-radius: 0; background: #000; }
.vp-item video:-webkit-full-screen { object-fit: contain; width: 100%; height: 100%; max-height: none; border-radius: 0; background: #000; }
@media (max-width: 820px) {
  .vp-side .statement { text-align: center; font-size: clamp(22px, 6vw, 30px); }
  .video-project .vp-side { align-items: center; }
}
.video-project .vp { margin-top: 12px; }
.vp-side .shoot-head { text-align: left; padding: 0; }
.vp-side .shoot-head .shoot-logo { margin: 0 0 18px; width: 64px; }
.vp-side .shoot-head :is(h1, h2) { margin: 0; text-align: left; font-size: clamp(26px, 2.6vw, 36px); }
.vp-side .shoot-head .meta { margin-top: 8px; text-align: left; }
.video-project .vp-item video { height: min(calc(100vh - 170px), 800px); }
@media (max-width: 820px) {
  .video-project .vp-side { display: contents; }
  .vp-side > .shoot-head { order: 1; }
  .vp-side > .statement { order: 2; margin: 0 auto; }
  .video-project .vp-players { order: 3; }
  .vp-side > .btn { order: 4; justify-self: center; }
  .vp-side .shoot-head, .vp-side .shoot-head :is(h1, h2), .vp-side .shoot-head .meta { text-align: center; }
  .vp-side .shoot-head .shoot-logo { margin: 0 auto 14px; }
  .video-project .vp-item video { height: auto; }
}

/* Textes gris des projets : même éclairage orange sous la souris que sur l'accueil */
@media (hover: hover) {
  .statement p {
    color: transparent;
    background: radial-gradient(circle var(--glow-r) at var(--tx, 50%) var(--ty, 50%), var(--accent), color-mix(in srgb, var(--accent) 55%, #7a7a7f) 45%, #7a7a7f 100%) no-repeat, #7a7a7f;
    -webkit-background-clip: text; background-clip: text;
    transition: --glow-r .5s var(--ease-out);
  }
  .statement p.lit { --glow-r: 190px; }
}

/* Fil d'Ariane */
.crumbs { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: -6px auto 18px; padding: 0 clamp(20px, 4vw, 56px); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; font: 500 12px/1 Inter, sans-serif; letter-spacing: .04em; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; margin: 0 8px; border-radius: 50%; background: var(--accent); opacity: .85; }
.crumbs a { color: #8e8e93; text-decoration: none; padding: 6px 10px; margin: 0 -10px; border-radius: 999px; transition: color .2s, background .2s; }
.crumbs a:hover, .crumbs a:focus-visible { color: #fff; background: rgba(255,255,255,.06); }
.crumbs [aria-current] { color: #f5f5f7; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .crumbs { margin: -10px auto 12px; } .crumbs ol { font-size: 11px; } }

/* « Soutenir » : même pastille que Télécharger, cœur orange */
.lb-don, .dl-don {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg); text-decoration: none; font: 500 13px/1 Inter, sans-serif;
  padding: 9px 14px; border-radius: 999px; border: 1px solid #3a3a3c; background: rgba(28,28,30,.8);
  transition: background .2s, border-color .2s, color .2s;
}
.lb-don .heart, .dl-don .heart { color: var(--accent); flex: none; transition: transform .25s var(--ease-out); }
.lb-don:hover, .dl-don:hover, .lb-don:focus-visible, .dl-don:focus-visible { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 14%, #1c1c1e); }
.lb-don:hover .heart, .dl-don:hover .heart { transform: scale(1.15); }
.cap-acts { gap: 8px; }
.list-exit.only-top [data-act=grid] { display: none; }
body.exit-on footer { padding-bottom: 96px; } /* le bouton flottant ne cache pas le pied de page */
.filters.groups { margin: 0 0 18px; flex-wrap: wrap; }

/* Conditions avant téléchargement */
.terms { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.terms[hidden] { display: none; }
.terms-box { width: min(520px, 100%); background: #111113; border: 1px solid #2c2c2e; border-radius: 20px; padding: 28px clamp(20px, 4vw, 32px); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: termsIn .25s var(--ease-out); }
@keyframes termsIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.terms-k { margin: 0 0 6px; color: var(--accent); font: 500 11px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.terms h3 { margin: 0 0 18px; color: #fff; font: 500 clamp(22px, 3vw, 28px)/1.15 Inter, sans-serif; letter-spacing: -.03em; }
.terms ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; color: #a1a1a6; font-size: 14px; line-height: 1.5; }
.terms li { position: relative; padding-left: 18px; }
.terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.terms li b { color: #f5f5f7; font-weight: 500; }
.terms-act { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.lb-dl[hidden] { display: none; }

/* Vidéo dans un projet photo (ex. inauguration du Bistronome) */
.shoot-films { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 8px auto 36px; padding: 0 20px; }
.shoot-film { margin: 0; }
.shoot-film video { display: block; height: min(72vh, 680px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #111; }
.shoot-film figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.shoot-film video:fullscreen { object-fit: contain; width: 100%; height: 100%; max-height: none; border-radius: 0; background: #000; }
.shoot-film video:-webkit-full-screen { object-fit: contain; width: 100%; height: 100%; max-height: none; border-radius: 0; background: #000; }
@media (max-width: 820px) { .shoot-film video { height: auto; width: min(100%, 420px); max-height: 80vh; } }

/* Projet à plusieurs vidéos (ex. ML Solutions) : texte en haut, vidéos côte à côte */
.video-project .vp.multi { grid-template-columns: 1fr; max-width: 1320px; }
.vp.multi .vp-side { display: flex; align-items: center; text-align: center; order: -1; }
.vp.multi .vp-side .shoot-head, .vp.multi .vp-side .shoot-head :is(h1, h2), .vp.multi .vp-side .shoot-head .meta { text-align: center; }
.vp.multi .vp-side .shoot-head .shoot-logo { margin: 0 auto 18px; }
.vp.multi .vp-side .statement { text-align: center; max-width: 900px; font-size: clamp(24px, 2.6vw, 38px); }
.vp.multi .vp-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.video-project .vp.multi .vp-item video { height: auto; width: 100%; max-height: 78vh; }
.shoot-head .shoot-films { margin: 34px auto 30px; }

/* Projet photo avec filtre « Vidéo » : on retrouve l'affichage d'une page vidéo */
.shoot.film-on > .shoot-head > :not(.filters) { display: none; }
.shoot.film-on > .shoot-head { padding-bottom: 0; }
.v-film .vp { margin-top: 20px; }
.filters.groups button.is-film::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 7px; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent currentColor; vertical-align: 0; }

/* Liens du client : deux petites pastilles discrètes */
.client-links { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.client-links a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #2c2c2e; border-radius: 999px; color: var(--muted); font-size: 12.5px; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.client-links a:hover { color: var(--fg); border-color: var(--accent); }
.client-links a:hover svg { color: var(--accent); }
.vp-side .client-links { justify-content: flex-start; }
.shoot-head > .client-links + .statement { margin-top: 26px; }

/* Projet à plusieurs vidéos : présentation + une carte par vidéo */
.vi-top { max-width: 980px; margin: 0 auto; text-align: center; }
.vi-top .statement { margin: 28px auto 0; text-align: center; max-width: 900px; font-size: clamp(24px, 2.6vw, 38px); }
.vi-grid { max-width: 1320px; margin: 48px auto 0; padding: 0 clamp(20px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.vi-card { display: flex; flex-direction: column; gap: 10px; color: var(--fg); text-decoration: none; }
.vi-media { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #111; }
.vi-media img, .vi-media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); transition: transform .6s var(--ease-out); }
.vi-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.42); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); transition: background .25s ease, transform .25s ease; }
.vi-play svg { margin-left: 2px; }
.vi-title { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.vi-go { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; transition: color .2s ease; }
.vi-go::after { content: "→"; transition: transform .2s ease; }
.vi-card:hover .vi-media video, .vi-card:focus-visible .vi-media video { transform: scale(1.03); }
.vi-card:hover .vi-play { background: var(--accent); transform: scale(1.06); border-color: transparent; }
.vi-card:hover .vi-go { color: var(--accent); }
.vi-card:hover .vi-go::after { transform: translateX(3px); }
.vi-foot { display: flex; justify-content: center; margin: 48px 0 0; }

/* Page d'une vidéo : boutons « Parlons-en » et « Vidéo suivante » */
.vp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vp-next { gap: 8px; }
.vp-next svg { transition: transform .2s ease; }
.vp-next:hover svg { transform: translateX(3px); }
@media (max-width: 820px) {
  .vp-side > .vp-actions { order: 4; justify-content: center; }
  .vp-side .client-links { justify-content: center; }
  .vi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.lb-on .list-exit { opacity: 0 !important; pointer-events: none !important; }
/* les aperçus bougent déjà : la bulle « lecture » n'apparaît qu'au survol */
.vi-play { opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .25s ease, background .25s ease; }
.vi-card:hover .vi-play, .vi-card:focus-visible .vi-play { opacity: 1; transform: scale(1.06); }

/* résumé pour les moteurs de recherche (remplacé par le site dès que JavaScript démarre) */
#ssr { max-width: 760px; margin: 0 auto; padding: 40px 20px; color: var(--muted); }
#ssr h1 { color: #fff; font: 500 clamp(28px, 4vw, 48px)/1.1 Inter, sans-serif; letter-spacing: -.03em; }
#ssr ul { list-style: none; padding: 0; display: grid; gap: 8px; }
#ssr img { max-width: 100%; height: auto; }
#ssr a { color: var(--fg); }

/* ---------- Pages services (HTML statique, référencement local) ---------- */
.svc { max-width: 1120px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 48px) 40px; }
.svc-hero { text-align: center; max-width: 760px; margin: 0 auto; }
.svc-kicker { margin: 0 0 14px; color: var(--accent); font: 500 12px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.svc-hero h1 { margin: 0; color: #fff; font: 500 clamp(36px, 5vw, 60px)/1.04 Inter, sans-serif; letter-spacing: -.04em; text-wrap: balance; }
.svc-hero .acc { color: var(--accent); font-style: normal; }
.svc-lead { margin: 22px auto 0; max-width: 620px; color: #a1a1a6; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; text-wrap: pretty; }
.svc-lead strong, .svc-sec strong { color: #f5f5f7; font-weight: 500; }
.svc-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
/* exemples */
.svc-exs-top { margin-top: clamp(44px, 6vw, 72px); scroll-margin-top: 90px; }
.svc-exs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.svc-ex { display: flex; flex-direction: column; gap: 6px; color: var(--fg); text-decoration: none; }
.svc-ex-media { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #111; }
.svc-ex-media img, .svc-ex-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.svc-ex:hover img, .svc-ex:hover video { transform: scale(1.03); }
.svc-ex-title { color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-top: 8px; transition: color .2s ease; }
.svc-ex:hover .svc-ex-title { color: var(--accent); }
.svc-ex-text { color: #86868b; font-size: 13.5px; line-height: 1.5; }
/* corps + colonne */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 88px); align-items: start; margin-top: clamp(56px, 7vw, 88px); }
.svc-main { max-width: 660px; }
.svc-sec { color: #a1a1a6; font-size: 17px; line-height: 1.75; scroll-margin-top: 90px; }
.svc-sec + .svc-sec { margin-top: 56px; padding-top: 48px; border-top: 1px solid #1d1d1f; }
.svc-sec h2 { margin: 0 0 16px; color: #fff; font: 500 clamp(24px, 2.6vw, 32px)/1.15 Inter, sans-serif; letter-spacing: -.025em; }
.svc-sec p { margin: 0 0 14px; }
.svc-sec p:last-child { margin-bottom: 0; }
.svc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-list li { position: relative; padding-left: 20px; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.svc-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.svc-steps li { display: flex; gap: 14px; align-items: baseline; }
.svc-steps p { margin: 0; }
.svc-n { flex-shrink: 0; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid #2c2c2e; color: var(--accent); font-size: 13px; font-weight: 500; line-height: 1; transform: translateY(-1px); }
.svc-faq { border-top: 1px solid #2c2c2e; padding: 16px 0; }
.svc-faq:last-of-type { border-bottom: 1px solid #2c2c2e; }
.svc-faq summary { cursor: pointer; color: #f5f5f7; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.svc-faq[open] summary::after { transform: rotate(45deg); }
.svc-faq p { margin: 10px 0 0; }
.svc-aside { position: sticky; top: 96px; display: grid; gap: 28px; font-size: 14px; }
.svc-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.svc-box a { color: #a1a1a6; text-decoration: none; transition: color .2s ease; }
.svc-box a:hover { color: #fff; }
.svc-box-t { margin: 0 0 12px; color: #6e6e73; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.svc-box-cta { padding: 22px; border: 1px solid #2c2c2e; border-radius: 16px; color: #a1a1a6; line-height: 1.5; }
.svc-box-cta .svc-box-t { color: #fff; font-size: 17px; letter-spacing: -.01em; text-transform: none; }
.svc-box-cta p { margin: 0 0 16px; }
.svc-box-cta .btn { color: var(--on-accent); }
.svc-more a { text-decoration: underline; text-decoration-color: #3a3a3c; text-underline-offset: 3px; }
.svc-end { margin: clamp(72px, 9vw, 120px) auto 0; text-align: center; }
.svc-end-t { margin: 0 0 18px; color: #fff; font: 500 clamp(26px, 3.4vw, 40px)/1.1 Inter, sans-serif; letter-spacing: -.03em; }
/* listes de villes et réalisations (texte seul) */
.svc-towns { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.svc-towns a, .svc-work a { color: #f5f5f7; text-decoration: underline; text-decoration-color: #3a3a3c; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.svc-towns a:hover, .svc-work a:hover { text-decoration-color: var(--accent); }
.svc-blocks { display: grid; gap: 22px; }
.svc-block { scroll-margin-top: 90px; }
.svc-block h3 { margin: 0 0 4px; font: 500 18px/1.3 Inter, sans-serif; letter-spacing: -.01em; }
.svc-block h3 a { color: #fff; text-decoration: none; transition: color .2s ease; }
.svc-block h3 a::after { content: " →"; color: var(--accent); }
.svc-block h3 a:hover { color: var(--accent); }
.svc-block p { margin: 0; }
.svc-work { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
/* page /services : bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 22vw, 250px); gap: 14px; margin-top: clamp(44px, 6vw, 72px); }
.bento-tile { position: relative; overflow: hidden; border-radius: 22px; background: #111; color: #fff; text-decoration: none; isolation: isolate; }
.bento-tile img, .bento-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.bento-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.bento-tile:hover img, .bento-tile:hover video { transform: scale(1.04); }
.bento-video { grid-column: span 4; grid-row: span 2; }
.bento-photo { grid-column: span 2; grid-row: span 2; }
.bento-communication, .bento-community-management { grid-column: span 3; }
.bento-txt { position: absolute; left: 24px; right: 64px; bottom: 22px; display: grid; gap: 6px; }
.bento-t { font: 500 clamp(24px, 2.6vw, 34px)/1.05 Inter, sans-serif; letter-spacing: -.03em; }
.bento-video .bento-t { font-size: clamp(30px, 4vw, 52px); }
.bento-d { color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.45; max-width: 40ch; }
.bento-go { position: absolute; right: 20px; bottom: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease; }
.bento-tile:hover .bento-go { background: var(--accent); color: var(--on-accent); transform: translateX(2px); }
.svc-towns-all { max-width: 860px; margin: clamp(72px, 9vw, 112px) auto 0; }
.svc-towns-all h2 { margin: 0 0 8px; color: #fff; font: 500 clamp(24px, 2.6vw, 32px)/1.15 Inter, sans-serif; letter-spacing: -.025em; }
.towns { margin: 0; padding: 0; list-style: none; }
.towns li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid #1d1d1f; }
.town-n { color: #f5f5f7; font-size: 16px; font-weight: 500; }
.town-l { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.town-l a { color: #86868b; text-decoration: none; transition: color .2s ease; }
.town-l a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-toc { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .bento-video { grid-column: span 2; grid-row: span 1; }
  .bento-photo, .bento-communication, .bento-community-management { grid-column: span 1; grid-row: span 1; }
  .bento-photo { grid-column: span 2; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 200px; }
  .bento-video, .bento-photo, .bento-communication, .bento-community-management { grid-column: auto; }
  .bento-video { grid-row: span 1; }
  .svc-towns { grid-template-columns: minmax(0, 1fr); }
  .svc-exs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(20px, 4vw, 48px)); padding: 0 clamp(20px, 4vw, 48px) 4px; scrollbar-width: none; }
  .svc-exs::-webkit-scrollbar { display: none; }
  .svc-ex { scroll-snap-align: start; }
}
.top-nav a[aria-current="page"] { color: var(--fg); }

/* ---------- Passe responsive (mobile et tablette) ---------- */
.dl, .lb-dl, .dl-don, .list-exit button, .list .item figcaption > span:first-child { white-space: nowrap; }
.list-exit { max-width: calc(100vw - 24px); }
.svc-exs { scroll-padding-inline: clamp(20px, 4vw, 48px); }
@media (max-width: 600px) {
  .list .item figcaption { gap: 10px; font-size: 13px; padding-left: 16px; padding-right: 16px; }
  body.exit-on .list .item figcaption { padding-bottom: 80px; }
  .list .cap-acts { gap: 6px; }
  .list .dl, .list .dl-don { padding: 9px 12px; }
  .list-exit button { padding: 0 14px; }
  .svc-cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .svc-cta .btn { justify-content: center; text-align: center; }
  .svc-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .svc-sec + .svc-sec { margin-top: 40px; padding-top: 36px; }
  .svc-layout { gap: 48px; }
  .svc-end-t { font-size: 26px; }
}
@media (max-width: 400px) {
  .dl-long { display: none; }
  .lb-tools { left: 12px; justify-content: flex-end; }
}

/* iOS Safari : la page de service ne doit jamais dépasser la largeur de l'écran */
main.svc { min-width: 0; width: 100%; max-width: min(1120px, 100%); box-sizing: border-box; overflow-x: clip; }
.svc-main, .svc-aside, .svc-exs-top, .svc-hero { min-width: 0; max-width: 100%; }
@media (max-width: 900px) { .svc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .svc-exs { max-width: 100vw; min-width: 0; } }

/* Bandeau cookies (Google Analytics, seulement avec accord) */
.cookie-bar { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: 16px; margin: 0 auto; max-width: 520px; box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: rgba(22, 22, 24, .96); border: 1px solid #2c2c2e; border-radius: 16px; color: var(--fg); font-size: 13.5px; line-height: 1.45; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { color: var(--muted); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btns button { font: 500 13px/1 Inter, sans-serif; padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 1px solid #3a3a3c; background: transparent; color: var(--fg); }
.cookie-btns button[data-c="yes"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-btns button:hover { border-color: var(--accent); }
.cookie-btns button[data-c="yes"]:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-btns button { flex: 1; } }

/* Liens Instagram dans le texte (contact, conditions de téléchargement) */
.terms li a, .contact-lead a { color: #f5f5f7; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.terms li a:hover, .contact-lead a:hover { color: var(--accent); }

/* Icône Instagram orange, à droite du menu */
.top-nav { align-items: center; }
.top-nav a.nav-ig { display: inline-flex; align-items: center; color: var(--accent); margin-left: -4px; padding: 4px; transition: transform .15s ease, filter .15s ease; }
.top-nav a.nav-ig:hover, .top-nav a.nav-ig:focus-visible { color: var(--accent); filter: brightness(1.15); transform: scale(1.08); }
@media (max-width: 600px) { .top-nav a.nav-ig { margin-left: -6px; } .top-nav a.nav-ig svg { width: 19px; height: 19px; } }
@media (max-width: 400px) {
  .top { gap: 10px; }
  .brand { gap: 10px; }
  .brand .wordmark { letter-spacing: .12em; padding-left: 10px; }
  .top-nav { gap: 12px; }
  .top-nav a.nav-ig { margin-left: -4px; padding: 2px; }
}
@media (max-width: 430px) {
  .top-nav { gap: 10px; }
  .top-nav a { font-size: 12.5px; }
  .brand .wordmark { letter-spacing: .1em; padding-left: 9px; font-size: 9px; }
}
@media (max-width: 400px) { .brand .wordmark { display: none; } }


/* Page Qui suis-je : grande photo N&B qui prend ses couleurs, phrases en grand, repères courts */
.page.about { max-width: 1120px; }
.ab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ab-photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.ab-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); }
@media (hover: hover) { .ab-photo:not(.ab-color) > img:not(.ab-photo-c) { filter: grayscale(1) contrast(1.05); } }
/* la couleur apparaît autour du curseur, comme une lampe torche */
@property --lamp { syntax: '<length>'; inherits: true; initial-value: 0px; }
.ab-photo { position: relative; --lamp: 0px; transition: --lamp .6s var(--ease-out); }
.ab-photo.lit { --lamp: 230px; }
.ab-photo .ab-photo-c { filter: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask: radial-gradient(circle var(--lamp) at var(--px, 50%) var(--py, 50%), #000 35%, transparent 100%);
  mask: radial-gradient(circle var(--lamp) at var(--px, 50%) var(--py, 50%), #000 35%, transparent 100%); }
/* photo du haut : effet inversé, le noir et blanc suit le curseur */
.ab-photo.ab-color .ab-photo-c { filter: grayscale(1) contrast(1.05); }
.ab-k { margin: 0 0 16px; color: var(--accent); font: 500 11px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.page.about .ab-intro h1 { margin: 0 0 22px; font-size: clamp(38px, 4.6vw, 64px); text-wrap: balance; }
.ab-lead { margin: 0; color: #a1a1a6; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.ab-lead b, .ab-big b { color: #fff; font-weight: 500; }
.ab-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 34px; background: #2c2c2e; border: 1px solid #2c2c2e; border-radius: 16px; overflow: hidden; }
.ab-facts p { margin: 0; padding: 16px 18px; background: #0b0b0c; color: #f5f5f7; font-size: 15px; line-height: 1.35; }
.ab-facts span { display: block; margin-bottom: 6px; color: #6e6e73; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ab-big { margin: clamp(64px, 9vw, 120px) auto; max-width: 900px; text-align: center; color: #6e6e73; font: 500 clamp(28px, 3.6vw, 48px)/1.15 Inter, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.ab-block { margin: 0 0 clamp(48px, 7vw, 88px); }
.ab-h { margin: 0 0 22px !important; color: #6e6e73 !important; font: 500 12px/1 Inter, sans-serif !important; letter-spacing: .16em !important; text-transform: uppercase; }
.ab-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.ab-path li { position: relative; padding: 26px 14px 0 0; color: #d2d2d7; font-size: 14.5px; line-height: 1.4; counter-increment: st; }
.ab-path li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: #2c2c2e; }
.ab-path li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #0b0b0c; border: 1px solid #48484a; box-sizing: border-box; }
.ab-path li:last-child { color: #fff; }
.ab-path li:last-child::after { background: var(--accent); border-color: var(--accent); }
.ab-words { margin: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 3vw, 44px); color: #fff; font: 500 clamp(34px, 5vw, 72px)/1.05 Inter, sans-serif; letter-spacing: -.04em; }
.ab-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ab-tags span { padding: 9px 16px; border: 1px solid #2c2c2e; border-radius: 999px; color: #c7c7cc; font-size: 14px; transition: border-color .2s, color .2s; }
.ab-tags span:hover { border-color: var(--accent); color: #fff; }
.ab-end { padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid #1c1c1e; text-align: center; }
.ab-end > p { margin: 0 0 24px; color: #fff; font: 500 clamp(30px, 4vw, 52px)/1.1 Inter, sans-serif; letter-spacing: -.04em; }
.ab-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; }
.ab-ig { gap: 8px; }
.ab-ig svg { color: var(--accent); flex: none; }
.ab-ig:hover { border-color: var(--accent); }
@media (max-width: 900px) {
  .ab-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ab-photo { aspect-ratio: 1 / 1; }
  .ab-path { grid-template-columns: minmax(0, 1fr); }
  .ab-path li { padding: 0 0 18px 28px; }
  .ab-path li::before { top: 6px; bottom: -6px; left: 5px; right: auto; width: 1px; height: auto; }
  .ab-path li:last-child::before { display: none; }
  .ab-path li::after { top: 4px; }
}
@media (max-width: 420px) { .ab-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ab-facts p { padding: 14px; font-size: 14px; } }
.ab-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: clamp(20px, 4vw, 56px); margin: 0 0 clamp(48px, 7vw, 88px); }
.ab-story-t p { margin: 0 0 1em; color: #a1a1a6; font-size: 17px; line-height: 1.7; }
.ab-story-t strong { color: #fff; font-weight: 500; }
@media (max-width: 900px) { .ab-story { grid-template-columns: minmax(0, 1fr); gap: 28px; } .ab-story-ph { aspect-ratio: 1 / 1; } .ab-story-t p { font-size: 16px; } }

/* Parcours : timeline de montage vidéo, la tête de lecture avance et révèle chaque plan */
.ab-tl { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(20px, 4vw, 40px)); padding: 0 clamp(20px, 4vw, 40px); }
.ab-tl::-webkit-scrollbar { display: none; }
.ab-tl-in { position: relative; min-width: 760px; padding: 0 0 4px; background: #0b0b0c; border: 1px solid #1f1f21; border-radius: 14px; overflow: hidden; }
.ab-tl-ruler { display: grid; grid-template-columns: repeat(6, 1fr); height: 28px; padding: 0 10px; border-bottom: 1px solid #1f1f21; background: repeating-linear-gradient(90deg, #2c2c2e 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat; }
.ab-tl-ruler span { padding-top: 6px; color: #48484a; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.ab-tl-v { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 10px 10px 0; padding: 0; list-style: none; }
.ab-clip { position: relative; min-height: 78px; padding: 10px 12px; border-radius: 8px; background: #161618; border: 1px solid #242426; color: #6e6e73; font-size: 13.5px; line-height: 1.35; transition: background .45s ease, color .45s ease, border-color .45s ease; }
.ab-clip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 8px 8px 0 0; background: #2c2c2e; transition: background .45s ease; }
.ab-clip-n { display: block; margin-bottom: 6px; color: #48484a; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; transition: color .45s; }
.ab-clip.on { background: #1c1c1e; border-color: #3a3a3c; color: #f5f5f7; }
.ab-clip.on::before { background: #8e8e93; }
.ab-clip.on .ab-clip-n { color: #8e8e93; }
.ab-clip:last-child.on { background: color-mix(in srgb, var(--accent) 18%, #161618); border-color: var(--accent); }
.ab-clip:last-child.on::before { background: var(--accent); }
.ab-clip:last-child.on .ab-clip-n { color: var(--accent); }
.ab-tl-a { position: relative; height: 34px; margin: 4px 10px 6px; border-radius: 8px; background: #121214; border: 1px solid #1f1f21; overflow: hidden; }
.ab-tl-a::before { content: ""; position: absolute; inset: 6px 0; background: radial-gradient(circle at 50% 50%, #3a3a3c 0 1.1px, transparent 1.3px) 0 0 / 4px 100%; -webkit-mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px), linear-gradient(#000, #000); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); clip-path: polygon(0 40%, 3% 20%, 6% 55%, 9% 10%, 12% 45%, 15% 25%, 18% 60%, 21% 15%, 24% 50%, 27% 30%, 30% 5%, 33% 45%, 36% 20%, 39% 55%, 42% 25%, 45% 10%, 48% 50%, 51% 30%, 54% 60%, 57% 15%, 60% 40%, 63% 20%, 66% 55%, 69% 10%, 72% 45%, 75% 25%, 78% 5%, 81% 50%, 84% 30%, 87% 55%, 90% 20%, 93% 45%, 96% 25%, 100% 40%, 100% 60%, 96% 75%, 93% 55%, 90% 80%, 87% 45%, 84% 70%, 81% 50%, 78% 95%, 75% 75%, 72% 55%, 69% 90%, 66% 45%, 63% 80%, 60% 60%, 57% 85%, 54% 40%, 51% 70%, 48% 50%, 45% 90%, 42% 75%, 39% 45%, 36% 80%, 33% 55%, 30% 95%, 27% 70%, 24% 50%, 21% 85%, 18% 40%, 15% 75%, 12% 55%, 9% 90%, 6% 45%, 3% 80%, 0 60%); background: color-mix(in srgb, var(--accent) 45%, #2c2c2e); }
.ab-tl-lab { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); z-index: 1; color: #8e8e93; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: #121214; padding: 3px 6px; border-radius: 4px; }
.ab-tl-head { position: absolute; top: 0; bottom: 0; left: 10px; width: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); pointer-events: none; }
.ab-tl-head::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--accent); }
.page.about { min-width: 0; width: 100%; box-sizing: border-box; }
.ab-block { min-width: 0; }

/* Mon histoire : photo à droite pour alterner avec le haut de page */
@media (min-width: 901px) { .ab-story { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .ab-story-ph { order: 2; } }

/* Le contenu passe toujours devant la lueur orange */
.page { position: relative; z-index: 1; }

/* Textes gris de tout le site : les lettres s'éclairent en orange sous la souris, comme sur l'accueil */
.ab-big { --lt: #6e6e73; }
.ab-lead, .ab-story-t p, .svc-lead, .svc-sec p, .svc-block p { --lt: #a1a1a6; }
.contact-lead { --lt: #86868b; }
.page-body p { --lt: #c7c7cc; }
@media (hover: hover) {
  :is(.ab-big, .ab-lead, .ab-story-t p, .contact-lead, .diag-lead, .diag-q, .page-body p, .svc-lead, .svc-sec p, .svc-block p) {
    color: transparent;
    background: radial-gradient(circle var(--glow-r) at var(--tx, 50%) var(--ty, 50%), var(--accent), color-mix(in srgb, var(--accent) 55%, var(--lt)) 45%, var(--lt) 100%) no-repeat, var(--lt);
    -webkit-background-clip: text; background-clip: text;
    transition: --glow-r .5s var(--ease-out);
  }
  :is(.ab-big, .ab-lead, .ab-story-t p, .contact-lead, .diag-lead, .diag-q, .page-body p, .svc-lead, .svc-sec p, .svc-block p).lit { --glow-r: 190px; }
  :is(.ab-big, .ab-lead, .ab-story-t p, .contact-lead, .page-body p, .svc-lead, .svc-sec p, .svc-block p) a { color: #f5f5f7; }
}

/* Timeline : tête de lecture pilotée à la souris, plan courant mis en avant */
.ab-tl-in { cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ab-tl.touch .ab-tl-in { cursor: auto; }
.ab-tl-hint { display: none; margin: 10px 0 0; color: #6e6e73; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-align: right; }
@media (hover: none), (pointer: coarse) { .ab-tl-hint { display: block; } }
.ab-tl-head { will-change: transform; }
.ab-tl-tc { position: absolute; top: 4px; left: 8px; padding: 3px 6px; border-radius: 4px; background: var(--accent); color: #fff; font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.ab-clip.cur { background: #242427; border-color: #8e8e93; color: #fff; }
.ab-clip:last-child.cur { background: color-mix(in srgb, var(--accent) 26%, #161618); border-color: var(--accent); }
.ab-clip:not(.on) { opacity: .55; }
.ab-tl-head.end .ab-tl-tc { left: auto; right: 8px; }
/* lettres éclairées : on laisse de la place aux jambages (g, p, q) pour qu'ils ne soient pas coupés */
.headline span { padding-bottom: .16em; margin-bottom: -.16em; }
.ab-big { padding-bottom: .16em; }

/* ---------- Accueil : dernières publications Instagram ---------- */
.ig-strip { --s: clamp(58px, 9.5vh, 96px); min-width: 0; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-top: clamp(12px, 2vh, 20px); border-top: 1px solid #1c1c1e; animation: home-in .45s var(--ease-out) both; }
.ig-head { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--accent); text-decoration: none; }
.ig-head span { display: grid; gap: 4px; }
.ig-head b { color: var(--fg); font: 500 14px/1 Inter, sans-serif; }
.ig-head small { color: #6e6e73; font-size: 12px; line-height: 1; transition: color .2s ease; }
.ig-head:hover small, .ig-head:focus-visible small { color: var(--accent); }
.ig-grid { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 14px 0; background: #0c0c0e; border-radius: 6px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
/* perforations de la pellicule, en haut et en bas */
.ig-grid::before, .ig-grid::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, #26262a 0 8px, transparent 8px 17px); border-radius: 1px; }
.ig-grid::before { top: 4px; } .ig-grid::after { bottom: 4px; }
.ig-track { display: flex; gap: 10px; width: max-content; padding-left: 10px; animation: igRoll var(--dur, 40s) linear infinite; will-change: transform; backface-visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .ig-grid:hover .ig-track, .ig-grid:focus-within .ig-track { animation-play-state: paused; } }
@keyframes igRoll { to { transform: translateX(-50%); } }
.ig-fr { position: relative; overflow: visible; flex: none; width: calc(var(--s) * 1.22); height: var(--s); border-radius: 3px; background: #161618; outline-offset: 2px; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.ig-fr img { border-radius: 3px; display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75) contrast(1.05); transition: filter .5s var(--ease-out), transform .7s var(--ease-out); }
.ig-fr:hover, .ig-fr:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.ig-fr:hover img, .ig-fr:focus-visible img { filter: none; }
.ig-no { position: absolute; z-index: 2; left: 4px; bottom: -12px; padding: 0 3px; background: #0c0c0e; color: var(--accent); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-shadow: 0 0 6px rgba(0,0,0,.8); opacity: .9; }
.ig-fr.vid::after { content: ""; position: absolute; top: 7px; right: 7px; border: 5px solid transparent; border-left: 8px solid #fff; border-right: 0; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
@media (hover: none), (pointer: coarse) { .ig-fr img { filter: none; } .ig-fr:hover, .ig-fr:focus-visible { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .ig-track { animation: none; } .ig-grid { overflow-x: auto; } }
@media (max-width: 820px) {
  .ig-strip { --s: 54px; gap: 14px; }
  .ig-head small { display: none; }
  .ig-head b { font-size: 13px; }
  .ig-strip { --s: 62px; gap: 12px; }
  .ig-head span { display: none; }
  .ig-head svg { width: 26px; height: 26px; }
  .ig-grid { padding: 12px 0; }
}
@media (max-width: 820px) {
  .home:has(.ig-strip:not([hidden])) .card { max-height: 22vh; }
  .home:has(.ig-strip:not([hidden])) .hero { gap: clamp(14px, 2.4vh, 28px); }
  .ig-strip { padding-top: 10px; }
}
@media (max-height: 600px), (max-width: 820px) and (max-height: 620px) { .ig-strip { display: none; } }

/* ---------- Accueil, ordinateur : le fil Instagram dans un iPhone qui sort du bas de l'écran ---------- */
.ig-phone { display: none; }
@media (min-width: 821px) and (min-height: 640px) and (hover: hover) {
  .ig-strip { position: relative; min-height: clamp(70px, 11vh, 110px); }
  .ig-strip .ig-grid { display: none; }
  .ig-phone { display: block; position: absolute; z-index: 3; left: clamp(230px, 22vw, 320px); top: -10px; width: 244px; height: 506px; padding: 7px;
    border-radius: 46px; background: linear-gradient(150deg, #4a4a4e 0%, #1e1e20 22%, #2e2e31 52%, #141416 78%, #3a3a3e 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 2px #0a0a0b, 0 40px 120px -20px color-mix(in srgb, var(--accent) 55%, transparent), 0 20px 40px -10px rgba(0,0,0,.9);
    transform: rotate(-7deg); transform-origin: 50% 100%; transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); animation: igFloat 6s ease-in-out infinite; }
  .ig-phone:hover, .ig-phone:has(:focus-visible) { animation-play-state: paused; transform: translateY(min(-170px, calc(-1 * (100dvh - 640px) / 1.1 - 120px))) rotate(0deg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 0 2px #0a0a0b, 0 50px 150px -20px color-mix(in srgb, var(--accent) 80%, transparent), 0 30px 60px -10px rgba(0,0,0,.9); }
  @keyframes igFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  /* boutons latéraux */
  .ig-btn-a, .ig-btn-b, .ig-btn-c { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a2a2d, #48484c); }
  .ig-btn-a { left: -3px; top: 92px; height: 26px; } .ig-btn-b { left: -3px; top: 132px; height: 44px; } .ig-btn-c { right: -3px; top: 120px; height: 62px; }
  .ig-island { position: absolute; z-index: 3; left: 50%; top: 17px; width: 74px; height: 22px; margin-left: -37px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px #111; }
  .ig-screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #000; color: #f5f5f7; font-family: Inter, -apple-system, sans-serif; }
  .ig-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 28%, transparent 42%); }
  .ig-status { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 0 26px; height: 34px; font-size: 11px; }
  .ig-status b { font-weight: 600; }
  .ig-sicons { display: inline-flex; gap: 4px; align-items: center; fill: #f5f5f7; }
  .ig-batt { position: relative; width: 20px; height: 10px; border: 1px solid #8e8e93; border-radius: 3px; }
  .ig-batt i { position: absolute; inset: 1px 4px 1px 1px; background: #f5f5f7; border-radius: 1px; }
  .ig-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 6px; font-size: 13px; }
  .ig-top b { font-weight: 700; letter-spacing: -.01em; }
  .ig-top span { display: inline-flex; gap: 12px; color: #f5f5f7; }
  .ig-phead { display: flex; align-items: center; gap: 10px; padding: 4px 14px 8px; color: inherit; text-decoration: none; }
  .ig-ring { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--accent), #ffb36b, var(--accent), #c2185b, var(--accent)); }
  .ig-ring img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #000; background: #000; object-fit: cover; }
  .ig-ring img.logo { padding: 12px; }
  .ig-stat { flex: 1; display: grid; justify-items: center; gap: 1px; color: #c7c7cc; font-size: 9.5px; }
  .ig-stat b { color: #f5f5f7; font-size: 13px; font-weight: 600; }
  .ig-bio { padding: 0 14px 8px; font-size: 10px; line-height: 1.35; }
  .ig-bio b { font-weight: 600; font-size: 10.5px; }
  .ig-bio p { margin: 2px 0; color: #e5e5ea; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ig-bio span { color: #a5c8ff; }
  .ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 14px 10px; }
  .ig-btns > * { display: grid; place-items: center; height: 24px; border-radius: 7px; font: 600 10.5px/1 Inter, sans-serif; text-decoration: none; }
  .ig-follow { background: var(--accent); color: #fff; transition: filter .2s ease; }
  .ig-follow:hover { filter: brightness(1.1); }
  .ig-msg { background: #262628; color: #f5f5f7; }
  .ig-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #1f1f21; }
  .ig-tabs span { display: grid; place-items: center; height: 30px; color: #6e6e73; }
  .ig-tabs span.on { color: #f5f5f7; box-shadow: inset 0 -1px 0 #f5f5f7; }
  .ig-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
  .ig-pgrid > * { position: relative; aspect-ratio: 4 / 5; background: #111113; overflow: hidden; }
  .ig-pgrid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
  .ig-pgrid a:hover img { transform: scale(1.06); }
  .ig-pgrid a.vid::after { content: ""; position: absolute; top: 5px; right: 5px; border: 4px solid transparent; border-left: 6px solid #fff; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .ig-phone { animation: none !important; } }

/* Recherche par dossard (THPB) */
.bib { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: -4px auto 22px; max-width: 560px; }
.bib label { color: var(--muted, #a1a1a6); font-size: 14px; }
.bib-in { display: flex; align-items: center; border: 1px solid #3a3a3c; border-radius: 999px; padding: 3px 3px 3px 16px; background: #0b0b0c; transition: border-color .2s, box-shadow .2s; }
.bib-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .18); }
.bib input { width: 130px; background: none; border: 0; outline: 0; color: var(--fg, #f5f5f7); font-size: 16px; font-weight: 500; font-family: inherit; letter-spacing: .06em; }
.bib input::placeholder { color: #6e6e73; letter-spacing: 0; }
.bib-in button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent, #000); cursor: pointer; }
.bib-msg { flex-basis: 100%; margin: 0; text-align: center; color: var(--muted, #a1a1a6); font-size: 14px; min-height: 1px; }
.bib-msg b { color: var(--fg, #f5f5f7); }
.bib-all { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Contact : configurateur en conversation */
.cfg { display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.cfg[hidden] { display: none; }
.cfg-b { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; animation: cfgIn .35s var(--ease-out, ease) both; }
.cfg-bot { align-self: flex-start; background: #1c1c1e; color: var(--fg); border-bottom-left-radius: 6px; }
.cfg-me { align-self: flex-end; background: var(--accent); color: var(--on-accent, #000); font-weight: 500; border-bottom-right-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cfg-typing { display: flex; gap: 5px; padding: 16px 18px; }
.cfg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: cfgDot 1s infinite ease-in-out; }
.cfg-typing i:nth-child(2) { animation-delay: .15s; } .cfg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cfgDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes cfgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.cfg-ans { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; animation: cfgIn .35s .1s var(--ease-out, ease) both; }
.cfg-chip, .cfg-go, .cfg-skip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #3a3a3c; background: transparent; color: var(--fg); font: 500 14px/1 Inter, sans-serif; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s; }
.cfg-chip:hover { border-color: var(--accent); }
.cfg-chip:active, .cfg-go:active { transform: scale(.96); }
.cfg-chip[aria-pressed="true"] { background: rgba(255, 90, 31, .16); border-color: var(--accent); color: #fff; }
.cfg-go { min-width: 120px; background: var(--accent); color: #fff; border-color: var(--accent); }
.cfg-go:not(:disabled):hover { filter: brightness(1.08); }
.cfg-go:disabled { background: color-mix(in srgb, var(--accent) 22%, #1c1c1e); border-color: transparent; color: rgba(255, 255, 255, .45); cursor: default; }
.cfg-br { flex-basis: 100%; height: 2px; }
.cfg-skip { border-color: transparent; color: var(--muted); }
.cfg-field { flex: 1 1 100%; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid #3a3a3c; border-radius: 24px; background: #0b0b0c; transition: border-color .2s, box-shadow .2s; }
.cfg-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
.cfg-field input, .cfg-field textarea { flex: 1; min-width: 0; padding: 8px 0; background: none; border: 0; outline: 0; resize: none; color: var(--fg); font: 400 16px/1.45 Inter, sans-serif; }
.cfg-field button { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent, #000); cursor: pointer; }
.cfg-field.shake { animation: cfgShake .35s; border-color: #ff453a; }
@keyframes cfgShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.cfg-sum { margin-top: 6px; padding: 18px 20px; border: 1px solid #2c2c2e; border-radius: 18px; background: linear-gradient(180deg, #141416, #0b0b0c); animation: cfgIn .4s var(--ease-out, ease) both; }
.cfg-sum p { margin: 0 0 8px; color: var(--fg); overflow-wrap: anywhere; }
.cfg-sum p span { display: inline-block; min-width: 76px; margin-right: 8px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cfg-sum-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.cfg-send { height: 46px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent, #000); font: 600 15px/1 Inter, sans-serif; cursor: pointer; transition: transform .2s; }
.cfg-send:hover { transform: scale(1.03); }
.cfg-send:disabled { opacity: .5; }
.cfg-redo { height: 46px; padding: 0 18px; border: 0; background: none; color: var(--muted); font: 500 14px/1 Inter, sans-serif; cursor: pointer; }
.cfg-alt { margin: 26px 0 0; text-align: center; }
.cfg-alt button { background: none; border: 0; padding: 0; color: var(--muted); font: 400 14px/1.4 Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cfg-alt button:hover { color: var(--fg); }
#contact-form:not([hidden]) { margin-top: 18px; }
body.on-contact .cfg { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 18px 2px 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px); }
body.on-contact .cfg::-webkit-scrollbar { display: none; }
body.on-contact .cfg-alt { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .cfg-b, .cfg-ans, .cfg-sum { animation: none; } }

/* Téléphone : inclinaison 3D, post ouvert, Dynamic Island */
@media (min-width: 821px) and (min-height: 640px) and (hover: hover) {
  .ig-island { z-index: 5; overflow: hidden; transition: width .5s cubic-bezier(.3, 1.4, .5, 1), height .5s cubic-bezier(.3, 1.4, .5, 1), margin-left .5s cubic-bezier(.3, 1.4, .5, 1), border-radius .5s, top .5s; }
  .ig-island.open { width: 200px; height: 44px; margin-left: -100px; border-radius: 22px; top: 13px; }
  .ig-isl-in { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 7px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .ig-island.open .ig-isl-in { opacity: 1; transition-delay: .2s; }
  .ig-isl-in img { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
  .ig-isl-in > span { flex: 1; min-width: 0; display: grid; font-size: 10px; line-height: 1.25; color: #f5f5f7; }
  .ig-isl-in b { font-weight: 600; }
  .ig-isl-in small { font-size: 8.5px; color: #a1a1a6; overflow: hidden; text-overflow: ellipsis; }
  .ig-isl-in i { display: grid; color: var(--accent); }
  .ig-isl-in i svg path { fill: currentColor; }
}
@media (max-width: 820px) {
  .bib { gap: 8px 10px; margin-bottom: 18px; }
  .bib label { font-size: 13px; }
  .bib-in { padding: 2px 2px 2px 12px; }
  .bib input { width: 96px; font-size: 16px; padding: 0; }
  .bib input::placeholder { font-size: 13px; }
  .bib-in button { width: 30px; height: 30px; }
  .bib-in button svg { width: 15px; height: 15px; }
  .bib-msg { font-size: 13px; }
}

/* ---------- Mode Planche : table lumineuse infinie, plein écran ---------- */
.v-board:not([hidden]) { position: fixed; inset: 0; z-index: 9; background: #000; animation: board-in .45s var(--ease-out); }
@keyframes board-in { from { opacity: 0; transform: scale(1.03); } }
html.board-open, html.board-open body { overflow: hidden; }
.board { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.board.grab { cursor: grabbing; }
.board-in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.board-col { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; will-change: transform; }
.board-ph { display: block; width: 100%; padding: 0; border: 0; background: #111; border-radius: 6px; overflow: hidden; cursor: inherit; flex: none; }
.board-ph img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: grayscale(1) brightness(.7); transition: filter .45s var(--ease-out), transform .6s var(--ease-out); }
@media (hover: hover) { .board:not(.grab) .board-ph:hover img { filter: none; transform: scale(1.04); } }
@media (hover: none) { .board-ph img { filter: grayscale(.6) brightness(.85); } }
.board-ph:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.board-hint, .board-ui, .board-close { position: absolute; z-index: 2; background: rgba(10,10,10,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #2c2c2e; color: var(--fg); }
.board-hint {
  left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; pointer-events: none; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; letter-spacing: .02em; transition: opacity .6s ease;
}
.board-hint::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.board-hint.gone { opacity: 0; }
.board-ui { right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; border-radius: 999px; padding: 3px; }
.board-ui button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--fg); font-size: 19px; line-height: 1; cursor: pointer; }
.board-ui button:hover { background: #2c2c2e; }
.board-zv { min-width: 48px; text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.board-close { top: max(18px, env(safe-area-inset-top)); right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s var(--ease-out); }
.board-close:hover { background: #2c2c2e; transform: rotate(90deg); }
@media (max-width: 700px) {
  .board-ui { display: none; }
  .board-hint { font-size: 12px; }
  .board-close { right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .v-board:not([hidden]) { animation: none; } }

/* ---------- Diagnostic Instagram ---------- */
.diag-teaser { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: #c7c7cc; font-size: 14px; text-decoration: none; transition: color .2s; }
.diag-teaser i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: dg-ping 2.4s ease-out infinite; }
.diag-teaser span { color: var(--accent); transition: transform .25s var(--ease-out); }
.diag-teaser:hover { color: var(--fg); }
.diag-teaser:hover span { transform: translateX(4px); }
@keyframes dg-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (max-height: 640px) and (max-width: 820px) { .diag-teaser { display: none; } }

.page.diag { max-width: 1248px; text-align: left; padding-top: 24px; }
.diag-kicker { margin: 0 0 14px; color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.page.diag h1 { margin-bottom: 16px; }
.diag-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding: clamp(16px, 5vh, 56px) 0 clamp(8px, 2vh, 24px); }
.diag-hero .diag-form { max-width: none; margin: 0; }
.diag-hook b { color: #fff; font-weight: 500; }
.diag-q { --lt: #6e6e73; }
.diag-hook { --lt: #6e6e73; margin: 0; font: 500 clamp(24px, 2.6vw, 36px)/1.2 Inter, system-ui, sans-serif; letter-spacing: -.025em; color: #6e6e73; }
.diag-pts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0 20px; color: #8e8e93; font-size: 13.5px; }
.diag-pts span { position: relative; white-space: nowrap; }
.diag-pts span + span::before { content: ""; position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--accent); }
.diag-pts b { color: #fff; font-weight: 500; }
.diag-out { max-width: 860px; margin-left: auto; margin-right: auto; }
.diag-more > h2, .diag-more > p { max-width: 760px; }
.diag-more details { max-width: 860px; }
@media (min-width: 901px) { .diag-crit { grid-template-columns: repeat(5, minmax(0, 1fr)); } .diag-crit b { flex-direction: column; gap: 2px; } }
@media (max-width: 900px) { .diag-hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; } }
.diag-rot { position: relative; display: inline-block; height: 1.2em; vertical-align: bottom; transition: width .4s var(--ease-out); white-space: nowrap; }
.diag-rot .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.diag-rot i { position: absolute; left: 0; top: 0; font-style: normal; user-select: none; -webkit-user-select: none; white-space: nowrap; color: var(--accent);
  opacity: 0; transform: translateY(.55em); filter: blur(6px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s var(--ease-out); }
.diag-rot i.on { opacity: 1; transform: none; filter: none; transition-delay: .18s; }
.diag-rot i.out { opacity: 0; transform: translateY(-.55em); filter: blur(6px); }
.diag-rot i:first-of-type { position: relative; }
.diag-rot i:first-of-type:not(.on) { position: absolute; }
.diag-lead { margin: 0 auto 30px; max-width: 560px; color: #a1a1a6; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; text-wrap: pretty; --lt: #a1a1a6; }
.diag-lead b { color: #fff; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .diag-rot, .diag-rot i { transition: none; } }
.diag-form { display: flex; align-items: center; gap: 6px; max-width: 460px; margin: 0 auto; padding: 6px 6px 6px 20px; border: 1px solid #2c2c2e; border-radius: 999px; background: #0d0d0e; transition: border-color .2s, box-shadow .2s; }
.diag-form:focus-within { border-color: #48484a; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.diag-at { color: var(--accent); font-size: 18px; }
.diag-form input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 17px; outline: none; }
.diag-form input::placeholder { color: #545458; }
.diag-form button { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 500; cursor: pointer; transition: filter .2s, transform .15s; }
.diag-form button:hover { filter: brightness(1.08); }
.diag-form button:active { transform: scale(.97); }
.diag-form button:disabled { opacity: .5; cursor: default; }
.diag-form.shake { animation: dg-shake .4s; }
@keyframes dg-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.diag-note { margin: 10px 0 0 20px; color: #545458; font-size: 12.5px; text-wrap: balance; }
.diag-out { margin-top: 40px; text-align: left; }
.dg-err { max-width: 460px; margin: 0 auto; padding: 16px 20px; border: 1px solid #3a2418; border-radius: 16px; background: #140c08; color: #ffb38f; font-size: 15px; line-height: 1.55; text-align: center; }

.dg-scan { display: grid; justify-items: center; gap: 12px; padding: 20px 0 40px; text-align: center; }
.dg-scan-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 1px solid #2c2c2e; }
.dg-scan-ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, var(--accent)); -webkit-mask: radial-gradient(circle, transparent 44px, #000 45px); mask: radial-gradient(circle, transparent 44px, #000 45px); animation: dg-spin 1.1s linear infinite; }
.dg-scan-ring span { position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%); animation: dg-breathe 1.6s ease-in-out infinite; }
@keyframes dg-spin { to { transform: rotate(1turn); } }
@keyframes dg-breathe { 50% { transform: scale(1.5); opacity: .5; } }
.dg-scan-ring b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dg-steps { list-style: none; margin: 10px auto 0; padding: 0; display: grid; gap: 9px; text-align: left; min-width: min(320px, 100%); }
.dg-steps li { display: flex; align-items: center; gap: 12px; color: #3a3a3c; font-size: 14.5px; transition: color .35s; }
.dg-steps li i { flex: none; position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #2c2c2e; transition: border-color .3s, background .3s; }
.dg-steps li.on { color: var(--fg); }
.dg-steps li.on i { border-color: #3a3a3c; border-top-color: var(--accent); animation: dg-spin .7s linear infinite; }
.dg-steps li.done { color: var(--muted); }
.dg-steps li.done i { border-color: var(--accent); background: var(--accent); }
.dg-steps li.done i::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #000; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
@keyframes dg-fill { from { transform: scaleX(0); } to { transform: scaleX(.96); } }

.dg-card { padding: clamp(22px, 4vw, 36px); border: 1px solid #1d1d1f; border-radius: 28px; background: linear-gradient(180deg, #0e0e0f, #070707); }
.dg-card > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.dg-card.in > * { opacity: 1; transform: none; }
.dg-card.in > :nth-child(2) { transition-delay: .08s; } .dg-card.in > :nth-child(3) { transition-delay: .5s; } .dg-card.in > :nth-child(4) { transition-delay: .7s; }
.dg-card.in > :nth-child(5) { transition-delay: .85s; } .dg-card.in > :nth-child(6) { transition-delay: 1s; } .dg-card.in > :nth-child(n+7) { transition-delay: 1.15s; }
.dg-head { display: flex; align-items: center; gap: 14px; }
.dg-head img, .dg-noimg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #1c1c1e; flex: none; box-shadow: 0 0 0 2px #000, 0 0 0 3px #3a3a3c; }
.dg-head div { display: grid; gap: 2px; min-width: 0; }
.dg-head a { color: var(--fg); font-weight: 600; font-size: 17px; text-decoration: none; }
.dg-head span { color: #c7c7cc; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-head small { color: var(--muted); font-size: 13px; }
.dg-score { position: relative; width: 190px; height: 190px; margin: 26px auto 6px; }
.dg-score svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 40%, transparent)); }
.dg-score circle { fill: none; stroke-width: 7; }
.dg-ring-bg { stroke: #1c1c1e; }
.dg-ring { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.4s cubic-bezier(.33,1,.68,1) .1s; }
.dg-card.in .dg-ring { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.dg-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 62px; }
.dg-num b { font-size: 58px; font-weight: 500; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.dg-num span { margin-left: 2px; color: var(--muted); font-size: 16px; }
.dg-grade { margin: 0 0 26px; text-align: center; color: var(--fg); font-size: 18px; font-weight: 500; }
.dg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dg-tile { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: #141415; }
.dg-tl { color: var(--muted); font-size: 12px; }
.dg-tile b { color: #fff; font-size: 24px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.dg-tile b small { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.dg-lv { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-style: normal; }
.dg-lv.good { background: #12301b; color: #7ee2a0; }
.dg-lv.mid { background: #2a2414; color: #f2cf73; }
.dg-lv.low { background: #331a10; color: #ff9a6b; }
.dg-block { margin-top: 30px; }
.dg-h { margin: 0 0 14px; color: #c7c7cc; font-size: 15px; }
.dg-h b { color: #fff; font-weight: 500; }
.dg-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.dg-bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.dg-bar i { align-self: end; display: block; height: max(var(--h), 4%); border-radius: 6px 6px 3px 3px; background: #2c2c2e; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease-out) .9s; }
.dg-card.in .dg-bar i { transform: none; }
.dg-bar.best i { background: var(--accent); }
.dg-bar span { color: var(--muted); font-size: 11.5px; }
.dg-bar.best span { color: var(--fg); }
.dg-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dg-top a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #141415; color: #fff; text-decoration: none; }
.dg-top img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); transition: filter .4s var(--ease-out), transform .6s var(--ease-out); }
.dg-top a:hover img { filter: none; transform: scale(1.04); }
@media (hover: none) { .dg-top img { filter: none; } }
.dg-top span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 12px; }
.dg-top em { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 11px; font-style: normal; }
.dg-tip { display: flex; gap: 14px; margin: 0 0 12px; padding: 16px; border-radius: 16px; background: #141415; color: #d1d1d6; font-size: 15px; line-height: 1.55; }
.dg-tip i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-style: normal; font-weight: 600; }
.dg-cta { margin-top: 30px; padding: 22px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), #141415; text-align: center; }
.dg-cta p { margin: 0 0 16px; color: #d1d1d6; font-size: 15px; line-height: 1.55; }
.dg-cta div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dg-foot { margin: 18px 0 0; color: #545458; font-size: 12px; text-align: center; }
@media (max-width: 600px) {
  .dg-tiles { grid-template-columns: repeat(2, 1fr); }
  .dg-score { width: 160px; height: 160px; }
  .dg-num { padding-top: 50px; } .dg-num b { font-size: 48px; }
  .diag-form { padding-left: 16px; } .diag-form button { padding: 0 16px; }
  .dg-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .dg-card > *, .dg-ring, .dg-bar i { transition: none; } .diag-teaser i, .dg-scan-ring::before, .dg-scan-ring span { animation: none; } }
.page.diag { min-width: 0; width: 100%; box-sizing: border-box; }
.page.diag h1 { font-size: clamp(38px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 14px; }
.dg-lv { white-space: nowrap; }
.dg-cta .btn-ghost { background: transparent; }
.dg-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .dg-top span { font-size: 10.5px; padding: 20px 7px 7px; } .dg-top em { font-size: 10px; } }
html.board-open #bar, html.board-open #footer, html.board-open .foot, html.board-open .list-exit, html.board-open .crumbs, html.board-open .cursor-dot.big { visibility: hidden; }
.v-board:not([hidden])::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 120px 30px #000; }
.diag-more { margin-top: 72px; text-align: left; color: #c7c7cc; font-size: 15.5px; line-height: 1.7; }
.diag-more h2 { margin: 48px 0 14px; color: #fff; font: 500 clamp(22px, 3vw, 28px)/1.2 Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.diag-more h2:first-child { margin-top: 0; }
.diag-more p { margin: 0 0 1em; }
.diag-more a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.diag-crit { display: grid; gap: 10px; margin: 0 0 18px; }
.diag-crit div { padding: 16px 18px; border-radius: 16px; background: #0e0e0f; border: 1px solid #1d1d1f; }
.diag-crit b { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-weight: 500; }
.diag-crit b span { color: var(--accent); font-weight: 400; font-size: 14px; }
.diag-crit p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.diag-more details { border-top: 1px solid #1d1d1f; }
.diag-more details:last-of-type { border-bottom: 1px solid #1d1d1f; }
.diag-more summary { position: relative; padding: 16px 32px 16px 0; color: #fff; cursor: pointer; list-style: none; }
.diag-more summary::-webkit-details-marker { display: none; }
.diag-more summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--accent); font-size: 20px; transition: transform .25s var(--ease-out); }
.diag-more details[open] summary::after { transform: rotate(45deg); }
.diag-more details p { margin: 0 0 16px; }
/* pas de mot seul en fin de paragraphe : les lignes se répartissent mieux */
p, li, summary, figcaption, .cookie-bar { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.diag-free { white-space: nowrap; }
.dg-harm-in { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: 16px; background: #141415; }
.dg-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 10px; overflow: hidden; }
.dg-feed img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.dg-harm-txt p { margin: 0 0 8px; color: #c7c7cc; font-size: 14.5px; line-height: 1.55; }
.dg-harm-s { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.dg-harm-s b { color: #fff; font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.dg-harm-s span { color: var(--muted); font-size: 13px; }
.dg-harm-s em { margin-left: 8px; font-style: normal; color: var(--fg); font-size: 14px; }
.dg-pal { display: flex; gap: 6px; margin: 4px 0 12px; }
.dg-pal i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
@media (max-width: 600px) { .dg-harm-in { grid-template-columns: 1fr; } .dg-feed { max-width: 220px; } }

/* Lien Diagnostic dans le menu : petit point orange pour signaler l'outil gratuit */
.top-nav a.nav-diag { display: inline-block; margin: -6px 0; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: #f5f5f7; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.top-nav a.nav-diag:hover, .top-nav a.nav-diag:focus-visible, .top-nav a.nav-diag[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Sur téléphone le menu est déjà plein : l'outil reste accessible par le lien sous les boutons de l'accueil et le pied de page */
@media (max-width: 600px) { .top-nav a.nav-diag { display: none; } }

/* Diagnostic : conseils débloqués par l'adresse mail */
.dg-gate { position: relative; min-height: 300px; border-radius: 18px; overflow: hidden; }
.dg-blur { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; }
.dg-mail { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.78)); }
.dg-mail-t { margin: 0 0 6px; color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.dg-mail-s { margin: 0 0 16px; color: #d1d1d6; font-size: 14.5px; line-height: 1.5; max-width: 420px; }
.dg-mail-row { display: flex; gap: 8px; width: 100%; max-width: 440px; }
.dg-mail-row input[type=email] { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid #3a3a3c; background: #0b0b0c; color: #fff; font: inherit; font-size: 15px; }
.dg-mail-row input[type=email]:focus { outline: none; border-color: var(--accent); }
.dg-mail-row .btn { flex: none; height: 48px; border: 0; white-space: nowrap; cursor: pointer; }
.dg-mail-row .btn:disabled { opacity: .6; cursor: wait; }
.dg-mail-n { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; max-width: 420px; }
.dg-mail-e { margin: 8px 0 0; min-height: 1em; color: #ffb38f; font-size: 13.5px; }
.dg-mail-e:empty { display: none; }
.dg-open .dg-tip { animation: dgIn .5s ease both; }
.dg-open .dg-tip:nth-child(2) { animation-delay: .12s; }
.dg-open .dg-tip:nth-child(3) { animation-delay: .24s; }
@keyframes dgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dg-sent { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 600px) {
  .dg-gate { min-height: 370px; }
  .dg-mail { padding: 18px 14px; }
  .dg-mail-row { flex-direction: column; }
  .dg-mail-row input[type=email] { flex: none; width: 100%; box-sizing: border-box; font-size: 16px; }
  .dg-mail-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .dg-open .dg-tip { animation: none; } }
.dg-mail-n a { color: #a1a1a6; text-underline-offset: 2px; }

/* Diagnostic : aperçu du compte pendant la saisie */
.diag-peek { max-width: 460px; margin: 0 auto; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease-out), opacity .25s ease, margin .3s var(--ease-out); }
.diag-peek.on { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.diag-peek > * { min-height: 0; overflow: hidden; }
.dp-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 8px 8px 10px; border: 1px solid #2c2c2e; border-radius: 18px; background: #0d0d0e; color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.dp-card:hover, .dp-card:focus-visible { border-color: #48484a; background: #131314; outline: none; }
.dp-card img, .dp-noimg { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #1c1c1e; }
.dp-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dp-txt b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-txt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ok { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #12301b; color: #7ee2a0; font-size: 12px; }
.dp-go { flex: none; padding: 8px 14px; border-radius: 999px; background: #1c1c1e; color: var(--fg); font-size: 13px; }
.dp-card:hover .dp-go { background: var(--accent); color: var(--on-accent); }
.dp-wait, .dp-miss { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; color: var(--muted); font-size: 13.5px; text-align: center; text-wrap: pretty; }
.dp-wait i { width: 12px; height: 12px; border: 2px solid #3a3a3c; border-top-color: var(--accent); border-radius: 50%; animation: dpSpin .8s linear infinite; }
@keyframes dpSpin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .dp-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .diag-peek { transition: none; } .dp-wait i { animation: none; } }

/* Diagnostic : le plan d'action (conseils) mis en avant */
.dg-lock { display: inline-block; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.dg-lock.big { width: 30px; height: 30px; margin-bottom: 10px; }
.dg-jump { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 14px auto 14px; padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: #f5f5f7; font-size: 14px; text-decoration: none; text-align: center; text-wrap: balance; transition: background .2s, border-color .2s; }
.dg-jump b { color: var(--accent); font-weight: 600; white-space: nowrap; }
.dg-jump i { font-style: normal; color: var(--accent); animation: dgNudge 1.6s ease-in-out infinite; }
.dg-jump:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
@keyframes dgNudge { 50% { transform: translateY(3px); } }
.dg-tips { position: relative; margin-top: 34px; padding: clamp(22px, 4vw, 32px); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 40%, #2c2c2e);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), #0c0c0d;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent); text-align: center; scroll-margin-top: 90px; }
.dg-tips-k { margin: 0 0 8px; color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.dg-tips h2.dg-tips-h { margin: 0; color: #fff; font: 600 clamp(26px, 4.4vw, 34px)/1.12 Inter, system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.15; }
.dg-tips-h em { font-style: normal; color: var(--accent); white-space: nowrap; }
.dg-tips-s { margin: 12px auto 0; max-width: 440px; color: #a1a1a6; font-size: 15px; line-height: 1.5; }
.dg-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.dg-topics span { padding: 5px 12px; border-radius: 999px; background: #1c1c1e; border: 1px solid #2c2c2e; color: #e5e5ea; font-size: 13px; }
.dg-tips .dg-gate, .dg-tips .dg-open { margin-top: 22px; text-align: left; }
.dg-tips .dg-gate { border: 1px solid #232326; }
.dg-tips .dg-mail { text-align: center; }
.dg-tips .dg-tip { background: #161618; border: 1px solid #232326; }
.dg-tips .dg-open .dg-tip:first-child { border-color: color-mix(in srgb, var(--accent) 35%, #232326); }
@media (prefers-reduced-motion: reduce) { .dg-jump i { animation: none; } }
.dg-tips .dg-gate { min-height: 0; }
.dg-tips .dg-blur { position: absolute; inset: 0; padding: 16px; overflow: hidden; }
.dg-tips .dg-mail { position: relative; inset: auto; padding: 30px 20px 26px; }
.top-nav a { white-space: nowrap; }
@media (max-width: 880px) { .top-nav a.nav-diag .nd-long { display: none; } }
@media (max-width: 760px) { .top-nav { gap: 18px; } .top-nav a[href="/"] { display: none; } }

/* Accueil, ordinateur : les liens du pied de page passent à droite du téléphone, jamais dessous */
@media (min-width: 821px) and (min-height: 640px) and (hover: hover) {
  .home:has(#ig-strip:not([hidden])) .foot { align-items: flex-end; }
  .home:has(#ig-strip:not([hidden])) .foot-links { flex-direction: column; align-items: flex-end; gap: 9px; }
  .home:has(#ig-strip:not([hidden])) .foot-links .fl1, .home:has(#ig-strip:not([hidden])) .foot-links .fl2 { display: flex; flex-wrap: nowrap; gap: 18px; }
  .home:has(#ig-strip:not([hidden])) .fl1 a { color: #a1a1a6; font-size: 13px; }
  .home:has(#ig-strip:not([hidden])) .fl-ig, .home:has(#ig-strip:not([hidden])) .foot-loc { display: none; }
}

/* ---------- Blog (pages générées par tools/build_blog.py) ---------- */
.post-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 2px; pointer-events: none; }
.post-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.blog-hero .svc-lead strong { color: #f5f5f7; font-weight: 500; }
.blog-rubs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px auto 0; }
.blog-rubs a { padding: 9px 16px; border: 1px solid #2c2c2e; border-radius: 999px; color: #a1a1a6; font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.blog-rubs a:hover { color: #fff; border-color: #3a3a3c; }
.blog-rubs a[aria-current] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.blog-list { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: clamp(14px, 2vw, 22px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.blog-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 26px 26px 22px; border: 1px solid #1d1d1f; border-radius: 22px; background: #0a0a0b; color: var(--fg); text-decoration: none; transition: border-color .3s ease, transform .5s var(--ease-out); }
.blog-card::before { content: ""; position: absolute; z-index: -1; inset: -40% -40% auto auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); opacity: 0; transition: opacity .5s ease; }
.blog-card:hover { border-color: #2c2c2e; transform: translateY(-3px); }
.blog-card:hover::before { opacity: 1; }
.bc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bc-rub { color: var(--accent); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.bc-num { color: #48484a; font-size: 13px; font-weight: 300; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.bc-title { color: #fff; font: 500 clamp(20px, 1.9vw, 24px)/1.18 Inter, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.bc-title .acc { color: var(--accent); font-style: normal; }
.bc-chapo { color: #86868b; font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }
.bc-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; color: #6e6e73; font-size: 13px; white-space: nowrap; }
.bc-meta .sep { margin: 0 8px; }
.bc-go { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; color: #f5f5f7; transition: background .2s, color .2s, transform .2s; }
.blog-card:hover .bc-go { background: var(--accent); color: var(--on-accent); transform: translateX(2px); }
.blog-card-big { min-height: 380px; padding: clamp(28px, 4vw, 48px); }
.blog-card-big .bc-num { position: absolute; z-index: -1; right: clamp(10px, 3vw, 40px); bottom: -.18em; color: transparent; -webkit-text-stroke: 1px #2c2c2e; font-size: clamp(140px, 22vw, 300px); font-weight: 200; line-height: 1; letter-spacing: -.06em; transition: -webkit-text-stroke-color .5s ease; }
.blog-card-big:hover .bc-num { -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.blog-card-big .bc-title { max-width: 18ch; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.blog-card-big .bc-chapo { max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); color: #a1a1a6; }
.blog-card-big .bc-meta { max-width: 56ch; }
.blog-empty { text-align: center; color: #86868b; }
.blog-svc { margin: 28px 0 0; text-align: center; color: #86868b; font-size: 15px; }
.blog-svc a, .post-body a:not(.btn) { color: #f5f5f7; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s; }
.blog-svc a:hover, .post-body a:not(.btn):hover { color: #fff; text-decoration-color: var(--accent); }
.blog-diag { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: clamp(56px, 7vw, 88px) auto 0; padding: clamp(24px, 3vw, 36px); border: 1px solid color-mix(in srgb, var(--accent) 35%, #1d1d1f); border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), #0a0a0b; color: #a1a1a6; }
.blog-diag p { margin: 0; }
.blog-diag-t { margin: 4px 0 6px !important; color: #fff; font: 500 clamp(22px, 2.4vw, 28px)/1.15 Inter, sans-serif; letter-spacing: -.02em; }
.blog-diag .btn { flex-shrink: 0; }

/* article */
.post-hero { max-width: 860px; }
.post-hero .svc-kicker { display: flex; align-items: center; gap: 14px; }
.post-hero .svc-kicker a { color: var(--accent); text-decoration: none; }
.post-num { color: #6e6e73; letter-spacing: .08em; }
.post-hero h1 { margin: 0; color: #fff; font: 500 clamp(34px, 5vw, 62px)/1.04 Inter, sans-serif; letter-spacing: -.04em; text-wrap: balance; }
.post-hero .acc { color: var(--accent); font-style: normal; }
.post-chapo { margin: 24px 0 0; max-width: 680px; color: #a1a1a6; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; text-wrap: pretty; }
.post-chapo strong { color: #f5f5f7; font-weight: 500; }
.post-by { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #1d1d1f; max-width: 680px; }
.post-by-img img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .4s ease; }
.post-by-img:hover img { filter: none; }
.post-by p { margin: 0; display: grid; gap: 3px; font-size: 14px; }
.post-by p > a { color: #f5f5f7; font-weight: 500; text-decoration: none; }
.post-by-m { color: #6e6e73; }
.post-by-m .sep { margin: 0 7px; }
.post-layout { margin-top: clamp(40px, 5vw, 64px); }
.post-body { max-width: 680px; min-width: 0; color: #a1a1a6; font-size: 18px; line-height: 1.78; }
.post-body p { margin: 0 0 18px; text-wrap: pretty; }
.post-body strong { color: #f5f5f7; font-weight: 500; }
.post-sec { scroll-margin-top: 90px; }
.post-sec + .post-sec, .post-ess + .post-sec { margin-top: 52px; }
.post-sec h2 { margin: 0 0 18px; color: #fff; font: 500 clamp(25px, 2.7vw, 33px)/1.15 Inter, sans-serif; letter-spacing: -.025em; text-wrap: balance; }
.post-sec h3 { margin: 30px 0 10px; color: #f5f5f7; font: 500 20px/1.3 Inter, sans-serif; letter-spacing: -.01em; scroll-margin-top: 90px; }
.post-ess { margin: 0 0 8px; padding: 24px 26px; border: 1px solid #2c2c2e; border-radius: 20px; background: #0a0a0b; }
.post-ess-k, .post-note-k, .post-box-k { margin: 0 0 12px !important; color: var(--accent); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.post-ess ol, .post-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.post-ess li, .post-steps li { display: flex; gap: 14px; align-items: baseline; }
.post-ess li p, .post-steps li p { margin: 0; font-size: 16.5px; line-height: 1.55; color: #d1d1d6; }
.post-n { flex-shrink: 0; color: var(--accent); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.post-steps { margin: 6px 0 22px; }
.post-quote { margin: 30px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); }
.post-quote p { margin: 0 !important; color: #fff; font: 400 clamp(21px, 2.2vw, 26px)/1.4 Inter, sans-serif; letter-spacing: -.015em; }
.post-note { margin: 26px 0; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.post-note p { margin: 0; font-size: 16.5px; line-height: 1.6; color: #d1d1d6; }
.post-note .post-note-k { margin-bottom: 8px !important; }
.post-box { margin: 40px 0; padding: clamp(24px, 3vw, 32px); border: 1px solid #2c2c2e; border-radius: 22px; background: radial-gradient(110% 130% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), #0a0a0b; }
.post-box p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.post-box .post-box-t { margin: 0 0 8px; color: #fff; font: 500 clamp(21px, 2.2vw, 25px)/1.2 Inter, sans-serif; letter-spacing: -.02em; }
.post-box .btn { color: var(--on-accent); }
.post-faq .svc-faq p { margin: 10px 0 0; font-size: 16.5px; }
.post-src { font-size: 14px; line-height: 1.6; }
.post-src h2 { font-size: 15px; color: #6e6e73; letter-spacing: .1em; text-transform: uppercase; }
.post-src .post-steps li p { font-size: 14px; color: #86868b; }
.post-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 64px; padding: 26px; border: 1px solid #1d1d1f; border-radius: 20px; }
.post-author img { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.post-author p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; }
.post-author .post-author-n { margin-bottom: 4px; color: #fff; font-weight: 500; font-size: 17px; }
.post-author a { font-size: 14.5px; }
.post-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a { position: relative; display: block; padding: 6px 0 6px 30px; color: #86868b; line-height: 1.4; text-decoration: none; transition: color .2s; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 7px; color: #48484a; font-size: 11.5px; font-variant-numeric: tabular-nums; transition: color .2s; }
.post-toc a:hover, .post-toc a.on { color: #fff; }
.post-toc a.on::before { color: var(--accent); }
.post-toc-m { display: none; margin: 0 0 28px; border: 1px solid #2c2c2e; border-radius: 16px; padding: 14px 18px; font-size: 15px; }
.post-toc-m summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; color: #f5f5f7; font-weight: 500; }
.post-toc-m summary::-webkit-details-marker { display: none; }
.post-toc-m summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
.post-toc-m[open] summary::after { transform: rotate(45deg); }
.post-toc-m ol { margin: 10px 0 0; padding: 0 0 0 22px; color: #6e6e73; }
.post-toc-m li { padding: 4px 0; }
.post-toc-m a { color: #a1a1a6 !important; text-decoration: none !important; }
.post-rel { margin-top: clamp(72px, 9vw, 112px); }
.post-rel h2 { margin: 0 0 22px; color: #fff; font: 500 clamp(24px, 2.6vw, 32px)/1.15 Inter, sans-serif; letter-spacing: -.025em; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-toc-m { display: block; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-card { min-height: 0; }
  .blog-card-big { min-height: 340px; }
  .blog-rubs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .blog-rubs::-webkit-scrollbar { display: none; }
  .blog-diag { flex-direction: column; align-items: stretch; text-align: left; }
  .blog-diag .btn { justify-content: center; }
  .post-body { font-size: 17px; }
  .post-author { flex-direction: column; padding: 22px; }
  .post-hero h1 { font-size: clamp(31px, 8.6vw, 40px); }
}
@media (max-width: 480px) { .top-nav a.nav-blog { display: none; } }
@media (min-width: 901px) { .blog-card-big { padding-right: 40%; } .blog-card-big .bc-num { right: clamp(24px, 4vw, 56px); bottom: 50%; transform: translateY(50%); font-size: clamp(130px, 15vw, 220px); } }
.post-author { text-align: left; }
@media (max-width: 600px) { .blog-card-big .bc-num { right: 18px; top: 14px; bottom: auto; font-size: 88px; } .blog-card-big { padding-top: 34px; } .blog-card-big .bc-title { max-width: 11ch; } }
.post-by-m .rt { white-space: nowrap; }
/* images et vidéos dans les articles : gris, couleur au survol (comme le reste du site) */
.post-fig { margin: 34px 0; }
.post-fig .pf-m { overflow: hidden; border-radius: 18px; border: 1px solid #1d1d1f; background: #0a0a0b; }
.post-fig img, .post-fig video { display: block; width: 100%; height: auto; transition: filter .6s ease, transform .8s var(--ease-out); }
.post-fig .pf-v { aspect-ratio: 9 / 16; }
.post-fig .pf-v video { height: 100%; object-fit: cover; }
.post-fig-v .pf-m { max-width: 340px; margin: 0 auto; }
.post-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.post-duo figcaption { grid-column: 1 / -1; }
.post-duo .pf-m:not(.pf-v) { aspect-ratio: 4 / 5; }
.post-duo .pf-m:not(.pf-v) img { height: 100%; object-fit: cover; }
.post-duo:has(.pf-v) .pf-m:not(.pf-v) { aspect-ratio: 9 / 16; }
.post-fig figcaption { margin-top: 12px; color: #6e6e73; font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.post-fig-v figcaption { max-width: 420px; margin-left: auto; margin-right: auto; text-align: center; }
.post-fig .pf-link { color: #f5f5f7 !important; white-space: nowrap; text-decoration: none !important; }
.post-fig .pf-link::after { content: " →"; color: var(--accent); }
@media (hover: hover) {
  .post-fig img, .post-fig video { filter: grayscale(1) brightness(.9); }
  .post-fig .pf-m:hover img, .post-fig .pf-m:hover video { filter: none; transform: scale(1.015); }
}
@media (max-width: 600px) { .post-duo { gap: 8px; } .post-fig .pf-m { border-radius: 14px; } }
.post-duo:has(.pf-v) .pf-m:not(.pf-v) img { object-fit: contain; }
#footer a { white-space: nowrap; } /* le pied de page peut passer à la ligne entre deux liens, jamais au milieu */

/* ---------- Menu mobile : deux traits et le point orange du logo, ouverture en cercle depuis le bouton ---------- */
.nav-burger { display: none; }
@media (max-width: 600px) {
  .nav-burger { display: block; position: relative; z-index: 61; flex: none; width: 44px; height: 44px; margin: -6px -10px -6px auto; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav-burger span { position: absolute; left: 10px; height: 1.6px; border-radius: 2px; background: #f5f5f7; transition: top .45s var(--ease-out), width .45s var(--ease-out), transform .45s var(--ease-out); }
  .nav-burger span:nth-child(1) { top: 17px; width: 24px; }
  .nav-burger span:nth-child(2) { top: 25px; width: 15px; }
  .nav-burger i { position: absolute; left: 29px; top: 23px; width: 5.5px; height: 5.5px; border-radius: 50%; background: var(--accent); transition: transform .4s var(--ease-out), opacity .3s; }
  .nav-burger:active i { transform: scale(1.6); }
  .nav-burger[aria-expanded="true"] span { top: 21px; width: 24px; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
  .nav-burger[aria-expanded="true"] i { transform: scale(0); opacity: 0; }

  .top-nav { counter-reset: m; position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px !important;
    padding: 90px 28px 110px; background: radial-gradient(130% 70% at 100% 0%, #3a1708 0%, #120804 38%, #000 75%);
    clip-path: circle(0 at var(--cx, calc(100% - 30px)) var(--cy, 40px)); visibility: hidden;
    transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .55s; }
  .top-nav.open { clip-path: circle(150vmax at var(--cx, calc(100% - 30px)) var(--cy, 40px)); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
  .top-nav a, .top-nav a[href="/"], .top-nav a[href="#"] { display: block; font: 500 clamp(38px, 11vw, 48px)/1.12 Inter, system-ui, sans-serif !important; letter-spacing: -.045em; color: #f5f5f7; white-space: nowrap;
    opacity: 0; transform: translateY(28px); transition: opacity .3s ease, transform .3s ease, color .2s; }
  .top-nav a:not(.nav-ig) { counter-increment: m; }
  .top-nav a:not(.nav-ig)::before { content: "0" counter(m); display: inline-block; width: 34px; vertical-align: .95em; font: 500 11px/1 Inter, sans-serif; letter-spacing: .1em; color: var(--accent); }
  .top-nav a[aria-current="page"] { color: var(--accent); }
  .top-nav.open a { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .2s; transition-delay: calc(.18s + var(--i, 0) * .06s); }
  .top-nav a.nav-diag, .top-nav a.nav-diag:hover, .top-nav a.nav-diag[aria-current="page"] { display: block; margin: 18px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid #2c2c2e; border-radius: 0; background: none; color: var(--accent); white-space: normal; line-height: 1.02 !important; }
  .top-nav a.nav-diag::after { content: "Outil gratuit · votre note sur 100"; display: block; margin: 8px 0 0 34px; font: 400 13px/1.3 Inter, sans-serif; letter-spacing: .02em; color: #8e8e93; }
  .top-nav a.nav-diag { padding-left: 34px !important; text-indent: -34px; }
  .top-nav a.nav-diag .nd-long { display: inline; }
  .top-nav a.nav-diag::after, .top-nav a.nav-diag::before { text-indent: 0; }
  .top-nav a.nav-diag::after { margin-left: 0 !important; }
  .top-nav a.nav-diag .nd-long { display: inline; }
  .top-nav a.nav-ig { position: absolute; left: 28px; bottom: 40px; display: inline-flex; gap: 10px; align-items: center; margin: 0; padding: 0; font-size: 14px !important; letter-spacing: 0; color: #a1a1a6; }
  .top-nav a.nav-ig::after { content: "@arthurwebmarketing"; }
  .top-nav a.nav-ig svg { width: 22px; height: 22px; color: var(--accent); }
  html.menu-open { overflow: hidden; }
  html.menu-open .cookie-bar, html.menu-open .cursor-dot { visibility: hidden; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .top-nav, .top-nav.open, .top-nav a, .nav-burger span, .nav-burger i { transition: none !important; } }

/* ---------- Pied de page : une dernière invitation en grand, liens discrets, copyright tout en bas ---------- */
#footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 40px; box-sizing: border-box; width: min(1168px, calc(100% - 80px)); margin: clamp(56px, 8vw, 96px) auto 0; padding: 56px 0 30px; border-top: 1px solid #1c1c1e; text-align: left; font-size: 12px; line-height: 1.4; color: #545458; }
#footer[hidden] { display: none; }
#footer .ft-cta { color: #f5f5f7; text-decoration: none; font: 500 clamp(34px, 5vw, 64px)/1.04 Inter, system-ui, sans-serif; letter-spacing: -.045em; }
#footer .ft-cta span { color: #6e6e73; transition: color .25s; }
#footer .ft-cta em { font-style: normal; color: var(--accent); }
#footer .ft-cta:hover span, #footer .ft-cta:focus-visible span { color: var(--accent); }
#footer .ft-links { display: grid; gap: 10px; justify-items: end; padding-bottom: 8px; }
#footer .ft-links div { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
#footer .ft-l1 a { color: #a1a1a6; font-size: 13px; }
#footer .ft-l2 a { color: #636366; }
#footer .ft-links a:hover, #footer .ft-links a:focus-visible { color: var(--fg); }
#footer .ft-ig { display: inline-flex; color: var(--accent) !important; }
#footer .ft-c { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 6px 0 0; padding-top: 20px; border-top: 1px solid #141416; color: #48484a; }
body.on-contact #footer { grid-template-columns: 1fr; margin-top: 8px; padding: 14px 0 12px; }
body.on-contact #footer .ft-cta, body.on-contact #footer .ft-links { display: none; }
body.on-contact #footer .ft-c { margin: 0; padding: 0; border: 0; }
body.exit-on #footer { padding-bottom: 96px; }
@media (max-width: 700px) {
  #footer { grid-template-columns: 1fr; width: auto; margin: 56px 20px 0; padding: 44px 0 28px; gap: 30px; }
  #footer .ft-cta { font-size: clamp(36px, 11vw, 46px); }
  #footer .ft-links { justify-items: start; padding: 0; }
  #footer .ft-links div { gap: 8px 18px; }
}

/* Contact, ordinateur : les cinq choix tiennent sur une seule ligne */
@media (min-width: 760px) { .contact { max-width: 700px; } }
.cfg-b { text-wrap: pretty; }
