/* Hartshe : styles du site. Les couleurs et les polices se changent dans :root. */

@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --surface: #161615;
  --ink: #ece8e0;
  --muted: rgba(236, 232, 224, .62);
  --line: rgba(236, 232, 224, .14);
  --fond-fin: var(--surface);
  --jaune: #ffe500;

  --titre: "Switzer", system-ui, sans-serif;   /* titres : une seule ligne à changer pour essayer une autre typo */
  --texte: "Switzer", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --titre-graisse: 700;

  --pad: clamp(20px, 3.9vw, 56px);
  --nav: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--jaune); color: var(--bg); }
:focus-visible { outline: 2px solid var(--jaune); outline-offset: 3px; border-radius: 2px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1680px; margin: 0 auto; }
.mono { font: 400 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.titre { font-family: var(--titre); font-weight: var(--titre-graisse); letter-spacing: -.035em; line-height: .98; }
.a-remplir { color: var(--jaune); background: rgba(255, 229, 0, .1); border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--jaune); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 12px; }

/* lien souligné qui se dessine */
.lien { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C30 4.8 62 5.6 96 4.6C128 3.8 160 4.4 197 3.2M8 8.2C50 7 110 7.4 168 6.6' fill='none' stroke='%23ffe500' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 100% / 0 9px no-repeat; padding-bottom: 8px; transition: background-size .4s var(--ease); }
.lien:hover { background-size: 100% 9px; }
.lien .fl { transition: transform .25s var(--ease); }
.lien:hover .fl { transform: translateX(4px); }

/* boutons : un rectangle au trait fin, qui se remplit de jaune au survol */
.touche { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; color: var(--ink); font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap; background: rgba(11, 11, 11, .35); border: 1px solid rgba(236, 232, 224, .4); text-shadow: none; transition: background .2s, color .2s, border-color .2s; }
.touche:hover { background: var(--jaune); border-color: var(--jaune); color: var(--bg); }
.touche:active { transform: translateY(1px); }

/* ---------- Barre du haut ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--nav); display: flex; align-items: center; background: rgba(11, 11, 11, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background .7s var(--ease), backdrop-filter .7s var(--ease), -webkit-backdrop-filter .7s var(--ease), height .7s var(--ease); }
.nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.fond { background: rgba(11, 11, 11, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); height: 68px; }
.marque { display: flex; align-items: center; gap: 14px; }
.marque img { width: 36px; height: auto; transition: transform .12s ease; }
.marque:hover img { transform: translateY(3px); }
.marque:active img { transform: translateY(5px); }
.marque .nom { font-weight: 700; font-size: 21px; letter-spacing: -.03em; }
.nav nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
.nav nav a { position: relative; padding: 6px 0 11px; }
/* page active (après le clic) : le même trait de marqueur que « Voir le showreel », qui se dessine à l'arrivée */
.nav nav a { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C30 4.8 62 5.6 96 4.6C128 3.8 160 4.4 197 3.2M8 8.2C50 7 110 7.4 168 6.6' fill='none' stroke='%23ffe500' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 100% / 0 9px no-repeat; }
.nav nav a[aria-current] { background-size: 100% 9px; animation: marqueur .6s var(--ease) .2s backwards; }
@keyframes marqueur { from { background-size: 0 9px; } }
/* survol : le mot monte et sa copie jaune arrive par en dessous */
.roule { display: block; overflow: hidden; line-height: 1.25; }
.roule > span { display: block; position: relative; transition: transform .45s var(--ease); }
.roule > span::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; top: 100%; color: var(--jaune); }
.nav nav a:hover .roule > span, .nav nav a:focus-visible .roule > span { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .roule > span { transition: none; } }

/* ---------- Accueil : le showreel plein écran ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #000; }
.bobine, .bobine > * { position: absolute; inset: 0; }
.bobine { z-index: 0; }
.bobine > * { opacity: 0; transition: opacity 1.2s ease; overflow: hidden; will-change: opacity; }
.bobine > .on { opacity: 1; }
.bobine img, .bobine video { width: 100%; height: 100%; object-fit: cover; will-change: transform; backface-visibility: hidden; }
.bobine .on img, .bobine .part img { animation: zoom 9s linear both; }
.bobine > .part { opacity: 1; z-index: 1; transition: none; }
.bobine > .on { z-index: 2; }
.cadre img, .cadre video { scale: 1.33; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(0deg, var(--bg) 0, rgba(11,11,11,.85) 6%, rgba(11,11,11,0) 22%),
  linear-gradient(180deg, rgba(0,0,0,.55) 0, rgba(0,0,0,0) 18%),
  linear-gradient(0deg, rgba(0,0,0,.94) 0, rgba(0,0,0,.8) 26%, rgba(0,0,0,.45) 52%, rgba(0,0,0,0) 75%),
  linear-gradient(90deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 75%),
  rgba(0,0,0,.18); }
.hero h1, .hero__actions, .repere, .nav:not(.fond) { text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 24px rgba(0,0,0,.5); }
@media (max-width: 899px) {
  .hero::after { background:
    linear-gradient(0deg, var(--bg) 0, rgba(11,11,11,.85) 5%, rgba(11,11,11,0) 16%),
    linear-gradient(180deg, rgba(0,0,0,.72) 0, rgba(0,0,0,.35) 12%, rgba(0,0,0,0) 24%),
    linear-gradient(0deg, rgba(0,0,0,.95) 0, rgba(0,0,0,.88) 30%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.3) 66%, rgba(0,0,0,0) 80%),
    rgba(0,0,0,.2); }
}
.hero__bas { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 104px); max-width: 15ch; }
.hero__actions { display: flex; align-items: center; gap: 32px; margin-top: clamp(24px, 4vh, 44px); flex-wrap: wrap; }
.repere { width: clamp(360px, 30vw, 400px); flex: none; }
.repere a { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; }
.repere a span:first-child { overflow: hidden; text-overflow: ellipsis; }
.repere a:hover span:first-child { color: var(--jaune); }
@media (max-width: 699px) { .repere a { gap: 6px; } }
.segments { display: flex; gap: 6px; margin-top: 14px; }
.segments button { flex: 1; height: 18px; position: relative; }
.segments button::before, .segments button::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255,255,255,.25); }
.segments button::after { background: var(--jaune); transform: scaleX(0); transform-origin: left; }
.segments button.vu::after { transform: scaleX(1); }
.segments button.on::after { animation: avance var(--duree, 6s) linear forwards; }
@keyframes avance { to { transform: scaleX(1); } }
.hero .entre { opacity: 0; transform: translateY(18px); animation: entre .9s var(--ease) forwards; }
.hero .entre:nth-child(2) { animation-delay: .12s; }
@keyframes entre { to { opacity: 1; transform: none; } }

/* ---------- Accueil : projets récents, une bande qui défile sous une tête de lecture ---------- */
.projets-tl { position: relative; --gauche: max(var(--pad), calc((100vw - 1680px) / 2 + var(--pad))); }
.tl-scene { position: relative; padding: clamp(56px, 9vh, 96px) 0 clamp(24px, 4vh, 48px); }
.tl-intro { padding: 0 var(--gauche); margin-bottom: 32px; }
.tl-intro h2 { font-size: clamp(36px, 4vw, 60px); margin: 12px 0 20px; }
.tl-cadre { position: relative; }
.tl-fen { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.tl-fen::-webkit-scrollbar { display: none; }
.tl-bande { position: relative; display: flex; width: max-content; padding: 0 50vw 0 var(--gauche); will-change: transform; }
.tl-clips { flex: none; }
.tl-regle { position: relative; height: 30px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, rgba(236, 232, 224, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 232, 224, .2) 1px, transparent 1px);
  background-size: 240px 12px, 24px 6px; background-repeat: repeat-x; background-position: 0 100%, 0 100%; }
.tl-regle span { position: absolute; top: 0; padding-left: 5px; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.tl-rang { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tl-clip { flex: none; width: clamp(280px, 78vw, 640px); scroll-snap-align: center; opacity: .38; transition: opacity .35s var(--ease); }
.tl-clip.on, .tl-clip:hover, .tl-clip:focus-within { opacity: 1; }
.tl-clip .img { border: 1px solid var(--line); }
.tl-clip h3 { font-size: clamp(18px, 1.6vw, 24px); }
.tl-fin { flex: none; align-self: flex-start; scroll-snap-align: center; margin: calc(var(--rh, 30px) + 14px) 0 0 clamp(40px, 4vw, 72px); height: var(--ih, 200px); display: flex; align-items: center; gap: 20px; color: var(--ink); }
.tl-fin-fl { width: clamp(56px, 5vw, 76px); height: clamp(56px, 5vw, 76px); display: grid; place-items: center; font-size: clamp(22px, 2vw, 30px); border: 1px solid rgba(236, 232, 224, .28); transition: background .2s, color .2s, border-color .2s, translate .3s var(--ease); }
.tl-fin-txt { font-family: var(--titre); font-weight: var(--titre-graisse); letter-spacing: -.02em; font-size: clamp(22px, 2.2vw, 34px); white-space: nowrap; transition: color .2s; }
.tl-fin:hover .tl-fin-fl { border-color: var(--jaune); color: var(--jaune); }
.tl-fin:hover .tl-fin-txt { color: var(--jaune); }
.tl-tete { position: absolute; top: 0; left: 50%; height: calc(var(--rh, 30px) + 14px + var(--ih, 200px)); width: 2px; margin-left: -1px; background: var(--jaune); pointer-events: none; z-index: 2; }
.tl-tete { transition: opacity .3s; }
.tl-cadre.fini .tl-tete { opacity: 0; }
.tl-tete::before { content: ""; position: absolute; left: -6px; top: 0; border: 7px solid transparent; border-top: 9px solid var(--jaune); }
.tl-tc { position: absolute; top: -26px; left: 50%; translate: -50% 0; padding: 3px 6px; background: var(--jaune); color: var(--bg); font-size: 11px; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* sur ordi : la section reste à l'écran et le scroll fait avancer la bande */
.projets-tl.epingle .tl-scene { position: sticky; top: 0; height: 100svh; padding: calc(var(--nav) + 16px) 0 8px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.projets-tl.epingle .tl-intro { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: calc(var(--gauche) + clamp(260px, 24vw, 400px)); margin: 0; padding-right: 0; z-index: 1; will-change: transform; }
.projets-tl.epingle .tl-fen { overflow: clip; }
.projets-tl.epingle .tl-bande { padding-left: calc(var(--gauche) + clamp(260px, 24vw, 400px) + clamp(48px, 5vw, 96px)); padding-right: 60vw; }
.projets-tl.epingle .tl-clip { width: clamp(340px, min(56vw, (100svh - 330px) * 16 / 9), 1100px); }

/* ---------- Accueil : ce que je fais ---------- */
.bloc { padding-top: clamp(96px, 14vh, 160px); padding-bottom: clamp(64px, 10vh, 112px); }
.bloc .duo { align-items: center; }
.services.colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.services.colonnes li, .services.colonnes li:last-child { display: block; padding: 0; border: 0; }
.services.colonnes .mono { display: block; color: var(--jaune); font-size: 12px; margin-bottom: 14px; }
.services.colonnes strong { display: block; font-size: 22px; margin-bottom: 10px; }
.services.colonnes p { font-size: 15px; line-height: 1.55; }
.presentation { margin-top: clamp(48px, 7vh, 72px); font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 46ch; }
.presentation::before { content: "Derrière Hartshe"; display: block; margin-bottom: 12px; font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.en-savoir { margin-top: 32px; }
@media (max-width: 699px) { .services.colonnes { grid-template-columns: 1fr; gap: 32px; } }
.marques { padding-bottom: clamp(96px, 14vh, 160px); }
.marques h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.defilant { display: flex; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bande { display: flex; align-items: center; flex: none; animation: defile 40s linear infinite; }
.bande li { display: flex; align-items: center; height: 120px; padding: 0 clamp(36px, 4.5vw, 72px); }
.bande span { font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.03em; white-space: nowrap; color: rgba(236, 232, 224, .6); transition: color .25s; }
.bande li:hover span { color: var(--ink); }
.bande img { width: auto; max-width: 220px; object-fit: contain; opacity: .6; transition: opacity .25s; }
.bande li:hover img { opacity: 1; }
.bande img[src$=".png"] { filter: brightness(0) invert(1); }
.defilant:hover .bande { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-100%); } }
.duo { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.photo { overflow: hidden; aspect-ratio: 4 / 5; }
.bloc .photo { aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.duo h2 { font-size: clamp(36px, 4vw, 60px); margin-bottom: clamp(32px, 5vh, 56px); }
.services li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; }
.services strong { font-weight: 500; font-size: 22px; }
.services p { color: var(--muted); }

/* ---------- Fin de page : contact ---------- */
.contact { position: relative; margin-top: clamp(64px, 10vh, 120px); padding-top: clamp(88px, 14vh, 160px); padding-bottom: 40px; background: var(--fond-fin); box-shadow: 0 0 0 100vmax var(--fond-fin); clip-path: inset(0 -100vmax); }
.contact h2 { font-size: clamp(48px, 8vw, 132px); }
.contact .sous { margin-top: 20px; color: var(--muted); font-size: 19px; max-width: 52ch; }
.contact .avant { font-size: clamp(20px, 1.8vw, 26px); color: var(--ink); margin-bottom: clamp(16px, 2.4vh, 24px); }
.mail { display: inline-block; margin-top: clamp(40px, 7vh, 80px); font-family: var(--titre); font-weight: var(--titre-graisse); letter-spacing: -.03em; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.1; border-bottom: 2px solid var(--line); padding-bottom: 6px; transition: border-color .3s, color .3s; word-break: break-word; }
.mail:hover { border-color: var(--jaune); }
.coord { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 8vh, 96px); }
.coord dt { margin-bottom: 8px; color: var(--muted); }
.pied { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(64px, 10vh, 120px); color: var(--muted); }

/* ---------- Pages intérieures ---------- */
.page { padding-top: calc(var(--nav) + clamp(48px, 8vh, 96px)); }
.page-tete { margin-bottom: clamp(48px, 8vh, 88px); }
.page-tete h1 { font-size: clamp(56px, 9vw, 150px); }
.page-tete p { margin-top: 20px; color: var(--muted); font-size: 19px; max-width: 46ch; }
.categorie { margin-bottom: clamp(72px, 12vh, 128px); }
.categorie > h2 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 28px; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
.grille.verticale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carte .img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.grille.verticale .carte .img { aspect-ratio: 9 / 16; }
.carte .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.carte .img.cadre img { scale: 1.33; }
.carte:hover .img img { transform: scale(1.03); }
.carte h3 { font-weight: 500; font-size: 22px; letter-spacing: -.01em; margin-top: 16px; transition: color .2s; }
.carte:hover h3 { color: var(--jaune); }
.carte p { margin-top: 4px; }
.vide { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

.fil { display: flex; gap: 10px; color: var(--muted); margin-bottom: 24px; }
.fil a:hover { color: var(--ink); }
.lecteur { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); margin-top: clamp(32px, 5vh, 56px); }
.lecteur.vertical { aspect-ratio: 9 / 16; max-width: 440px; }
.lecteur > img { width: 100%; height: 100%; object-fit: cover; }
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.lecteur > img { filter: brightness(.85); transition: transform .8s var(--ease), filter .4s; }
.lecteur:hover > img { transform: scale(1.02); filter: brightness(.7); }
/* même bouton jaune que le showreel, au centre de l'image ; toute l'image est cliquable */
.lecteur .jouer { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; }
.lecteur .jouer .ap-lecture { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; }
.lecteur .jouer:hover .ap-lecture { transform: scale(1.08); }
.lecteur .jouer:active .ap-lecture { transform: scale(.97) translateY(2px); transition-duration: .06s; }
.lecteur .jouer:focus-visible .ap-lecture { outline: 2px solid var(--ink); outline-offset: 4px; }
.infos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.infos dt { margin-bottom: 8px; color: var(--muted); }
.textes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: clamp(56px, 9vh, 104px) 0; }
.textes p { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; margin-top: 14px; max-width: 40ch; }
.suivant { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: end; padding: 40px 0 clamp(80px, 12vh, 140px); }
.suivant strong { display: block; margin-top: 12px; font-size: clamp(40px, 6vw, 96px); transition: color .2s; }
.suivant:hover strong { color: var(--jaune); }
.suivant .img { aspect-ratio: 16 / 9; overflow: hidden; }
.suivant .img img { width: 100%; height: 100%; object-fit: cover; }

/* apparition au défilement */
[data-r] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-r].vu { opacity: 1; transform: none; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1023px) {
  .duo { grid-template-columns: 1fr; }
  .photo { max-width: 520px; }
  .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille.verticale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suivant { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
}
@media (max-width: 699px) {
  :root { --nav: 64px; }
  body { font-size: 16px; }
  .nav nav { font-size: 14px; gap: 18px; flex-shrink: 0; }
  .nav nav a { white-space: nowrap; }
  .hero__bas { flex-direction: column; align-items: stretch; gap: 28px; }
  .repere { width: 100%; }
  .services li { grid-template-columns: 1fr; gap: 6px; }
  .grille, .textes, .coord { grid-template-columns: 1fr; }
  .pied { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .bande { animation: none; }
  .bande[aria-hidden] { display: none; }
  .defilant { flex-wrap: wrap; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-r] { opacity: 1; transform: none; }
  .hero .entre { opacity: 1; transform: none; }
}

/* ---------- Visionneuse du showreel (par-dessus la page) ---------- */
.sans-defile { overflow: hidden; }
.visionneuse { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .92); opacity: 0; transition: opacity .35s ease; }
.visionneuse.ouverte { opacity: 1; }
.cadre-video { width: min(94vw, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; transform: scale(.96); transition: transform .35s var(--ease); }
.visionneuse.ouverte .cadre-video { transform: none; }
.cadre-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.visionneuse .fermer { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); transition: color .2s, transform .2s; }
.visionneuse .fermer:hover { color: var(--jaune); transform: rotate(90deg); }
.visionneuse .fermer svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .visionneuse, .cadre-video { transition: none; } }

/* ---------- Portfolio : formats courts qui défilent ---------- */
.courts-defile { margin: 0 calc(var(--pad) * -1); }
.bande-courts { display: flex; gap: 16px; padding-right: 16px; flex: none; animation: defile 60s linear infinite; }
.bande-courts .tuile { flex: none; width: clamp(150px, 15vw, 220px); aspect-ratio: 9 / 16; overflow: hidden; background: var(--surface); }
.bande-courts video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tuile.vide, .mur .vide { position: static; display: grid; place-items: center; color: var(--muted); font-size: 11px; border: 1px dashed rgba(236, 232, 224, .14); background: transparent; }
@media (prefers-reduced-motion: reduce) { .bande-courts { animation: none; } .bande-courts[aria-hidden] { display: none; } }
/* les Shorts : la tuile se lit au clic, le bandeau s'arrête au survol */
.courts-defile:hover .bande-courts, .courts-defile:focus-within .bande-courts { animation-play-state: paused; }
.court-jouer { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.court-jouer img, .court-jouer video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), opacity .4s; }
.court-jouer video { position: absolute; inset: 0; opacity: 0; }
.tuile.joue .court-jouer video { opacity: 1; }
.court-jouer:hover img, .court-jouer:hover video { transform: scale(1.03); }

/* la rangée à flèches : 3 vignettes au centre qui jouent, les autres en image fixe, assombries sur les bords */
.courts-car { --tw: clamp(160px, 14vw, 240px); }
.courts-fenetre { position: relative; overflow: hidden; }
/* les flèches sont au même endroit que celles des carrousels du dessus ; dégradé court sur les bords */
.courts-fenetre::before, .courts-fenetre::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.courts-fenetre::before { left: 0; background: linear-gradient(to right, var(--bg), rgba(11, 11, 11, .5) 45%, rgba(11, 11, 11, 0)); }
.courts-fenetre::after { right: 0; background: linear-gradient(to left, var(--bg), rgba(11, 11, 11, .5) 45%, rgba(11, 11, 11, 0)); }
.courts-piste { display: flex; gap: 16px; transition: transform .6s var(--ease); will-change: transform; }
.courts-piste .tuile { flex: none; width: var(--tw); aspect-ratio: 9 / 16; overflow: hidden; background: var(--surface); }
.courts-car .car-fl { top: 50%; z-index: 3; }

@media (max-width: 899px) { .courts-fenetre { grid-column: 1 / -1; } }
@media (max-width: 699px) {
  .courts-car { --tw: 44vw; }
  .courts-piste { gap: 12px; }
  .courts-fenetre::before, .courts-fenetre::after { width: 16%; }
}
.court-jouer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); pointer-events: none; }
/* le signe « vidéo » : rond jaune ▶ et durée, en bas à gauche */
.court-signe { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 8px; }
.court-signe svg { width: 34px; height: 34px; padding: 9px 8px 9px 10px; border-radius: 50%; background: var(--jaune); fill: #0b0b0b; transition: transform .3s var(--ease); }
.court-signe .mono { font-size: 12px; color: var(--ink); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.court-jouer:hover .court-signe svg, .court-jouer:focus-visible .court-signe svg { transform: scale(1.15); }
.court-jouer:active .court-signe svg { transform: scale(.94); transition-duration: .06s; }
.court-jouer:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cadre-court { grid-column: 2; grid-row: 1; justify-self: center; height: min(calc(100svh - 120px), calc((100vw - 200px) * 16 / 9)); aspect-ratio: 9 / 16; background: #000; transform: scale(.96); transition: transform .35s var(--ease); }
.visionneuse.ouverte .cadre-court { transform: none; }
.cadre-court iframe { width: 100%; height: 100%; border: 0; display: block; }
/* sur téléphone : la vidéo prend presque toute la largeur, les flèches passent dessous */
@media (max-width: 699px) {
  .visionneuse.courts { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-content: center; row-gap: 8px; padding: 64px 16px 16px; }
  .cadre-court { grid-column: 1 / -1; height: min(calc(100svh - 150px), calc((100vw - 32px) * 16 / 9)); }
  .visionneuse.courts .nav-img { grid-row: 2; }
  .visionneuse.courts .nav-img.prec { grid-column: 1; justify-self: start; }
  .visionneuse.courts .nav-img.suiv { grid-column: 2; justify-self: end; }
}

/* ---------- Portfolio : mur de visuels ---------- */
.mur { columns: 4 220px; column-gap: 16px; }
.mur li { break-inside: avoid; margin-bottom: 16px; }
.mur .vide { aspect-ratio: 4 / 3; }
.mur .vide:nth-child(3n) { aspect-ratio: 3 / 4; }
.mur button { display: block; width: 100%; overflow: hidden; }
.mur img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease), opacity .3s; }
.mur button:hover img { transform: scale(1.03); }
.visionneuse.images { grid-template-columns: 72px 1fr 72px; padding: 72px 24px; }
.cadre-image { grid-column: 2; display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.cadre-image img { max-width: 100%; max-height: calc(100svh - 190px); object-fit: contain; }
.cadre-image figcaption { color: var(--muted); font-size: 12px; }
.nav-img { width: 56px; height: 56px; display: grid; place-items: center; color: var(--ink); transition: color .2s; }
.nav-img:hover { color: var(--jaune); }
.nav-img svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-img.prec { grid-column: 1; grid-row: 1; } .nav-img.suiv { grid-column: 3; grid-row: 1; }
@media (max-width: 699px) { .visionneuse.images { grid-template-columns: 44px 1fr 44px; padding: 64px 4px; } }

/* ---------- À propos ---------- */
.ap-etiq { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.ap-texte { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 46ch; margin-top: 24px; }
.ap-bloc { padding-top: clamp(120px, 18vh, 200px); }

.ap-intro h1 { font-size: clamp(44px, 6.4vw, 108px); max-width: 15ch; }
.ap-chapo { color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 46ch; margin: clamp(28px, 4vh, 40px) 0 0 auto; }

.ap-reel { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; background: var(--surface); cursor: pointer; color: var(--ink); }
.ap-reel img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: transform .8s var(--ease), filter .4s; }
.ap-reel:hover img { transform: scale(1.02); filter: brightness(.7); }
.ap-lecture { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); width: 72px; height: 72px; border-radius: 50%; background: var(--jaune); display: grid; place-items: center; transition: transform .3s var(--ease); }
.ap-lecture svg { width: 30px; height: 30px; fill: #0b0b0b; margin-left: 2px; }
.ap-reel:hover .ap-lecture { transform: scale(1.08); }
.ap-reel-titre { position: absolute; left: calc(clamp(20px, 3vw, 40px) + 92px); bottom: calc(clamp(20px, 3vw, 40px) + 26px); font: 400 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

.ap-formats { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.ap-formats h2 { font-size: clamp(36px, 4vw, 60px); max-width: 12ch; }
.ap-formats dl { margin: 0; display: grid; gap: clamp(32px, 5vh, 48px); }
.ap-formats dt { font-family: var(--titre); font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.02em; }
.ap-formats dd { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 42ch; }

.ap-chiffres { padding-top: clamp(120px, 18vh, 200px); }
.ap-chiffres ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.ap-chiffres strong { display: block; font-size: clamp(64px, 8vw, 128px); line-height: 1; margin-bottom: 14px; }
.ap-chiffres .compte { font-variant-numeric: tabular-nums; }
.ap-chiffres strong { color: var(--jaune); }
.ap-chiffres li > span { color: var(--muted); font-size: 17px; line-height: 1.5; display: block; max-width: 24ch; margin: 0 auto; }
.ap-chiffres li { text-align: center; }

.ap-parcours-tete { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 112px); align-items: end; }
.ap-parcours-tete .ap-texte { margin-top: 0; }
.frise { list-style: none; padding: 0; margin: clamp(56px, 9vh, 96px) 0 0; display: flex; gap: 4px; }
.frise li { flex-basis: 0; min-width: 0; display: flex; flex-direction: column; }
.frise-an { font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.frise-bloc { display: block; height: 40px; background: #3a3936; margin-bottom: 18px; transition: background .3s; }
.frise li:hover .frise-bloc { background: #55534e; }
.frise .maintenant .frise-bloc { background: var(--jaune); }
.frise .maintenant .frise-an { color: var(--jaune); }
.frise strong { font-weight: 500; font-size: 17px; line-height: 1.3; padding-right: 12px; }
.frise-detail { align-self: flex-start; color: var(--jaune); background: rgba(255, 229, 0, .1); font-size: 14px; line-height: 1.45; margin-top: 8px; margin-right: 12px; padding: 0 2px; }
.frise-detail::before { content: "["; }
.frise-detail::after { content: "]"; }
.ap-fin { padding-bottom: clamp(120px, 18vh, 200px); }
.ap-approche { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.ap-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.ap-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.ap-portrait:hover img { transform: scale(1.03); }

.ap-timeline { margin-top: clamp(64px, 10vh, 112px); }
.bande-tl { flex: none; animation: defile 110s linear infinite; }
.bande-tl img { display: block; width: 3600px; height: 212px; max-width: none; }   /* taille exacte du dessin : pas de flou ni d’écarts irréguliers */
@media (prefers-reduced-motion: reduce) { .bande-tl { animation: none; } .bande-tl + .bande-tl { display: none; } }
.ap-approche h2 { font-size: clamp(36px, 4.4vw, 68px); max-width: 16ch; margin-bottom: 16px; }
.ap-approche .ap-texte { font-size: 18px; max-width: 54ch; }
.ap-parcours h2 { font-size: clamp(32px, 3.6vw, 56px); max-width: 15ch; }

@media (max-width: 899px) {
  .ap-bloc, .ap-chiffres { padding-top: 96px; }
  .ap-chapo { margin-left: 0; }
  .ap-formats, .ap-parcours-tete, .ap-approche { grid-template-columns: 1fr; }
  .ap-parcours-tete { gap: 0; }
  .ap-parcours-tete .ap-texte { margin-top: 24px; }
  .frise { flex-direction: column; gap: 28px; }
  .frise li { min-width: 0; }
  .frise li { display: grid; grid-template-columns: 10px 1fr; column-gap: 18px; }
  .frise-bloc { grid-row: 1 / span 3; grid-column: 1; height: auto; margin: 0; }
  .frise-an, .frise strong, .frise-detail { grid-column: 2; }
  .frise-detail { justify-self: start; }
  .frise-an { margin-bottom: 6px; }
  .ap-approche { gap: 48px; }
  .ap-portrait { width: 82%; }
  .ap-fin { padding-bottom: 112px; }
    .ap-lecture { width: 52px; height: 52px; }
  .ap-lecture svg { width: 22px; height: 22px; }
  .ap-reel-titre { left: calc(clamp(20px, 3vw, 40px) + 66px); bottom: calc(clamp(20px, 3vw, 40px) + 17px); font-size: 11px; }
  .ap-chiffres ul { grid-template-columns: 1fr; gap: 40px; }
}
.contact.sans-trait { margin-top: 0; background: none; box-shadow: none; }

/* ---------- Portfolio : un carrousel par catégorie ---------- */
.cat-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vh, 40px); }
.categorie .cat-tete h2 { font-size: clamp(26px, 2.6vw, 38px); }
.cat-phrase { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 52ch; }
.car { position: relative; --fl: clamp(40px, 4vw, 58px); --dec: calc(var(--fl) + clamp(16px, 2vw, 28px)); padding: 0 var(--dec); }
/* les flèches se posent dans la marge vide, de part et d'autre des images */
.car-fl { position: absolute; top: var(--mi, 30%); width: var(--fl); height: var(--fl); display: grid; place-items: center; font-size: calc(var(--fl) * .38); color: var(--ink); background: transparent; border: 1px solid rgba(236, 232, 224, .28); transition: background .2s, color .2s, border-color .2s; }
.car-fl:hover { border-color: var(--jaune); color: var(--jaune); }
.car-fl.g { left: 0; translate: 0 -50%; }
.car-fl.d { right: 0; translate: 0 -50%; }
.car-fl.g:active, .car-fl.d:active { translate: 0 calc(-50% + 1px); }
.car-piste { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-piste::-webkit-scrollbar { display: none; }
.car-diapo { flex: none; width: min(68%, 1080px); scroll-snap-align: start; opacity: .4; transition: opacity .4s var(--ease); }
.car-diapo.on, .car-diapo:hover, .car-diapo:focus-within { opacity: 1; }
.car-diapo .carte h3 { font-size: clamp(20px, 1.8vw, 26px); }
@media (max-width: 899px) {
  .cat-tete { flex-direction: column; align-items: flex-start; gap: 20px; }
  .car-diapo { width: 86%; }
  .car { display: grid; grid-template-columns: auto auto 1fr; gap: 20px 8px; padding: 0; }
  .car-piste { grid-column: 1 / -1; }
  .car-fl, .car-fl.g, .car-fl.d { position: static; translate: none; width: 48px; height: 48px; font-size: 18px; }
  .car-fl.g:active, .car-fl.d:active { translate: 0 1px; }
}

/* ---------- Boutons et flèches : survol et clic ----------
   Au survol, le jaune monte depuis le bas et la flèche avance d'un cran.
   Au clic, le bouton s'enfonce un peu, comme une touche. */
.touche, .car-fl, .tl-fin-fl { overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease), translate .3s var(--ease); }
.touche, .car-fl, .tl-fin-fl { position: relative; }
.car-fl { position: absolute; }
.touche::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--jaune); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .38s var(--ease); }
.touche:hover { background-color: transparent; color: var(--bg); border-color: var(--jaune); }
/* les flèches ne se remplissent pas : le cadre et la flèche passent en jaune */
.car-fl:hover, .tl-fin:hover .tl-fin-fl { color: var(--jaune); border-color: var(--jaune); }
.car-fl span, .tl-fin-fl span { display: block; transition: transform .3s var(--ease); }
.car-fl:hover span, .tl-fin:hover .tl-fin-fl span { transform: scale(1.18); }
.touche:hover { background: rgba(11, 11, 11, .35); }
.touche:hover::before { transform: scaleY(1); }
.touche:active, .car-fl:active, .tl-fin:active .tl-fin-fl { transform: translateY(2px) scale(.97); transition-duration: .3s, .3s, .06s, .3s; }
@media (max-width: 899px) { .car-fl { position: static; } }
@media (prefers-reduced-motion: reduce) {
  .touche::before { transition: none; }
}

/* ---------- Page Contact ----------
   Le formulaire à gauche, les coordonnées à droite, puis une photo avec un mot en plus. */
.ct-tete { max-width: 960px; }
.ct-tete h1 { font-size: clamp(48px, 7vw, 116px); }
.ct-chapo { margin-top: 24px; color: var(--muted); font-size: 19px; max-width: 52ch; }
.ct-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 120px); margin-top: clamp(56px, 9vh, 104px); align-items: start; }
.ct-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.ct-champ { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-champ.large, .ct-envoi.large { grid-column: 1 / -1; }
.ct-champ label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-obl { color: var(--jaune); }
.ct-champ input, .ct-champ select, .ct-champ textarea { width: 100%; font: 400 17px/1.4 var(--texte); color: var(--ink); background: var(--surface); border: 1px solid transparent; border-radius: 0; padding: 16px 18px; outline: none; transition: border-color .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
.ct-champ textarea { resize: vertical; min-height: 168px; }
.ct-champ input::placeholder { color: rgba(236, 232, 224, .32); }
.ct-champ input:hover, .ct-champ select:hover, .ct-champ textarea:hover { border-color: rgba(236, 232, 224, .18); }
.ct-champ input:focus, .ct-champ select:focus, .ct-champ textarea:focus { border-color: var(--jaune); }
.ct-champ [aria-invalid] { border-color: #ff6b5b; }
.ct-champ select { cursor: pointer; padding-right: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ece8e0' stroke-width='1.5'/%3E%3C/svg%3E") right 18px center / 12px 8px no-repeat; }
.ct-champ select.sans-choix { color: var(--muted); }
.ct-champ option { background: #161615; color: var(--ink); }
.ct-err { min-height: 0; font-size: 14px; color: #ff6b5b; }
.ct-err:empty { display: none; }
.ct-envoi { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.ct-etat { color: var(--muted); font-size: 15px; }
.ct-infos { display: grid; gap: 32px; position: sticky; top: calc(var(--nav) + 32px); }
.ct-infos .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ct-infos p:not(.mono) { font-size: 18px; }
.ct-copie { display: inline-flex; align-items: baseline; gap: 14px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 clamp(20px, 1.7vw, 26px)/1.2 var(--texte); cursor: pointer; text-align: left; }
.ct-copie-l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.ct-copie:hover .ct-copie-l, .ct-copie.ok .ct-copie-l { color: var(--jaune); }
.ct-dispo { display: flex; align-items: center; gap: 12px; font-size: 16px !important; }
.ct-dispo span { width: 8px; height: 8px; background: var(--jaune); flex: none; }
.ct-plus { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(440px, 62vh, 680px); margin-top: clamp(96px, 16vh, 180px); padding: clamp(40px, 6vw, 96px); background: var(--surface); }
.ct-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* voile sombre, plus dense côté texte */
.ct-plus::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 11, .88) 0%, rgba(11, 11, 11, .7) 40%, rgba(11, 11, 11, .35) 100%); }
.ct-plus-txt { max-width: 560px; }
.ct-plus-txt > * { text-shadow: 0 1px 16px rgba(0, 0, 0, .5); }
.ct-etiq { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--jaune); margin-bottom: 20px; }
.ct-plus-txt h2 { font-size: clamp(40px, 4.4vw, 72px); max-width: 12ch; margin-bottom: clamp(24px, 3vh, 36px); }
.ct-premier { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; max-width: 44ch; }
.ct-second { margin-top: 16px; font-size: 16px; line-height: 1.6; color: rgba(236, 232, 224, .72); max-width: 48ch; }
.ct-signe { margin-top: 40px !important; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 899px) {
  .ct-grille { grid-template-columns: 1fr; }
  .ct-plus { min-height: 0; padding: 72px 24px; }
  .ct-plus::before { background: rgba(11, 11, 11, .74); }
  .ct-form { grid-template-columns: 1fr; }
  .ct-infos { position: static; }
}
/* page Contact : le pied gris, sans le grand titre */
.ct-pied { padding-top: clamp(48px, 7vh, 72px); }
.ct-pied .coord { margin-top: 0; }
/* page Contact : le remerciement après l'envoi */
.ct-merci { padding: clamp(40px, 5vw, 72px); background: var(--surface); outline: none; animation: entre .7s var(--ease) both; }
.ct-merci h2 { font-size: clamp(40px, 4.4vw, 72px); max-width: 14ch; }
.ct-merci > p:not(.mono) { margin-top: 24px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.ct-merci-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.ct-merci .lien { background-color: transparent; border: 0; color: var(--ink); cursor: pointer; font: inherit; font-weight: 500; }
.ct-form[hidden] { display: none; }

/* ---------- Bas de page : liens légaux ---------- */
.pied { flex-wrap: wrap; align-items: baseline; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pied-liens a { color: var(--muted); transition: color .2s; }
.pied-liens a:hover, .pied-liens a[aria-current] { color: var(--ink); }

/* ---------- Pages légales ---------- */
.legal .page-tete h1 { font-size: clamp(48px, 7vw, 112px); max-width: 14ch; }
.legal-grille { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.legal-somm { position: sticky; top: calc(var(--nav) + 32px); display: grid; gap: 12px; font-size: 13px; }
.legal-somm a { color: var(--muted); transition: color .2s; }
.legal-somm a:hover { color: var(--jaune); }
.legal-corps { max-width: 70ch; }
.legal-corps h2 { font-family: var(--titre); font-weight: var(--titre-graisse); letter-spacing: -.025em; line-height: 1.1; font-size: clamp(24px, 2.2vw, 32px); margin: clamp(56px, 8vh, 80px) 0 20px; scroll-margin-top: calc(var(--nav) + 32px); }
.legal-corps h2:first-child { margin-top: 0; }
.legal-corps h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.legal-corps p, .legal-corps li { color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal-corps p + p { margin-top: 14px; }
.legal-corps strong { color: var(--ink); font-weight: 500; }
.legal-corps ul { padding-left: 0; list-style: none; margin: 14px 0; display: grid; gap: 8px; }
.legal-corps li { position: relative; padding-left: 22px; }
.legal-corps li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--jaune); }
.legal-corps dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 14px 0; }
.legal-corps dt { font: 400 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-corps dd { color: var(--ink); }
.legal-corps a:not(.lien) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--jaune); text-underline-offset: 3px; }
.legal-maj { font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 899px) {
  .legal-grille { grid-template-columns: 1fr; }
  .legal-somm { display: none; }
  .legal-corps dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-corps dd + dt { margin-top: 12px; }
}

/* ---------- Page 404 ---------- */
.erreur { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.erreur .page-tete { margin-bottom: 0; }
.erreur .page-tete h1 { font-size: clamp(56px, 9vw, 150px); max-width: 12ch; }
.erreur-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: clamp(32px, 5vh, 48px); }
.legal-corps .lien { padding-bottom: 2px; background-position: 0 100%; }

/* ---------- Portfolio : « Afficher plus » sous le mur de visuels ---------- */
.mur-plus { display: flex; justify-content: center; margin-top: clamp(32px, 5vh, 48px); }
.mur-item.apparait { animation: apparait .7s var(--ease) backwards; }
@keyframes apparait { from { opacity: 0; transform: translateY(24px); } }
.mur-cols { columns: auto; display: flex; align-items: flex-start; gap: 16px; }
.mur-col { flex: 1; min-width: 0; display: grid; gap: 16px; }
@media (max-width: 699px) { .mur-cols, .mur-col { gap: 10px; } }

/* ---------- Fenêtre « tous les visuels » (Afficher plus) ---------- */
.galerie { position: fixed; inset: 0; z-index: 90; }
.galerie-fond { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); opacity: 0; transition: opacity .4s ease; }
.galerie-panneau { position: absolute; left: clamp(12px, 3vw, 48px); right: clamp(12px, 3vw, 48px); top: clamp(16px, 5vh, 56px); bottom: clamp(16px, 5vh, 56px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); padding: 0 clamp(20px, 3vw, 48px) clamp(40px, 6vh, 72px); opacity: 0; transform: translateY(48px); transition: transform .55s var(--ease), opacity .35s ease; }
.galerie-panneau { scrollbar-width: none; -ms-overflow-style: none; }
.galerie-panneau::-webkit-scrollbar { display: none; }
.galerie.ouverte .galerie-fond { opacity: 1; }
.galerie.ouverte .galerie-panneau { opacity: 1; transform: none; }
.galerie-tete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vh, 44px) 0 clamp(20px, 3vh, 32px); background: var(--surface); }
.galerie-tete .ap-etiq { margin-bottom: 12px; }
.galerie-tete h2 { font-size: clamp(32px, 4vw, 60px); }
.galerie-droite { display: flex; align-items: center; gap: 16px; }
.galerie .fermer { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); transition: color .2s, transform .2s; }
.galerie .fermer:hover { color: var(--jaune); transform: rotate(90deg); }
.galerie .fermer svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 699px) {
  .galerie-panneau { left: 0; right: 0; top: 12px; bottom: 12px; padding: 0 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .galerie-fond, .galerie-panneau { transition: none; } }

/* Portfolio : chaque colonne du mur de la page a son décalage et sa largeur, pour une composition irrégulière */
.mur-decale .mur-col:nth-child(1) { flex: 1.16; }
.mur-decale .mur-col:nth-child(2) { flex: .9; margin-top: 11vw; }
.mur-decale .mur-col:nth-child(3) { flex: .96; margin-top: 1.5vw; }
.mur-decale .mur-col:nth-child(4) { flex: .94; margin-top: 15vw; }
@media (max-width: 699px) { .mur-decale .mur-col:nth-child(2) { margin-top: 14vw; } }

/* Portfolio : le bas du mur se fond dans le noir, et « Afficher plus » remonte dans ce fondu */
.mur-decale { position: relative; }
.mur-decale::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(320px, 48vh, 520px); background: linear-gradient(to bottom, rgba(11, 11, 11, 0), rgba(11, 11, 11, .6) 30%, rgba(11, 11, 11, .9) 60%, var(--bg) 85%); pointer-events: none; z-index: 1; }
.mur-decale + .mur-plus { position: relative; z-index: 2; margin-top: -28px; margin-bottom: clamp(40px, 6vh, 72px); }

/* petits téléphones : le menu tient sur une ligne */
@media (max-width: 400px) {
  .nav .wrap { gap: 12px; }
  .nav nav { gap: 14px; font-size: 13.5px; }
  .marque { gap: 10px; }
  .marque img { width: 32px; }
  .marque .nom { font-size: 19px; }
}
