/* Neon : feuille de style principale (thème clair, mise en page en tuiles centrées) */

/* Polices hébergées sur le site (licences : voir assets/fonts/LICENCES.txt) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/permanent-marker-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --tile: #f5f3ef;
  --tile-2: #ebe7e0;
  --ink: #0f0f10;
  --ink-2: #2b2a28;
  --muted: #6a655d;
  --subtle: #958f86;
  --line: rgba(15, 15, 16, .1);
  --line-2: rgba(15, 15, 16, .2);
  --pink: #ff075d;
  --red: #ff392a;
  --orange: #fd6801;
  --yellow: #fba400;
  --grad: linear-gradient(90deg, var(--pink), var(--red) 33%, var(--orange) 66%, var(--yellow));
  /* Dégradé lisible sur fond clair (texte) */
  --grad-text: linear-gradient(90deg, #ff075d, #ff392a 50%, #e25800);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-marker: "Permanent Marker", "Outfit", cursive;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --gap: 12px;
  --nav-h: 56px;
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--ink); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
p { margin: 0; }
em { font-style: normal; }
/* Mots en couleur des titres : écrits au feutre */
/* Permanent Marker : minuscules = petites capitales (0,60 em), ponctuation = capitales (0,74 em).
   Dans les titres en capitales, on passe le mot en capitales a 0,975 em : hauteur de capitale identique a Outfit Black (0,712 em). */
h1 em, h2 em, .statement em, .error-page h1 em { font-family: var(--font-marker); font-weight: 400; letter-spacing: 0; text-transform: uppercase; font-size: .975em; line-height: 1; padding-right: .06em; margin-left: .08em; }
.statement p em { text-transform: none; font-size: .9em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Degrade fixe : un degrade de texte anime force un re-dessin a chaque image. */
.grad-anim { background-size: 100% 100%; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Libellés */
.label { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.label.plain::before { display: none; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* Boutons */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .35s var(--ease-out), color .3s, border-color .3s, background-color .3s;
}
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.btn-primary:hover { color: var(--ink); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Lien souligné animé */
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); padding-bottom: 1px; }
.ulink:hover { background-size: 100% 1px; }

/* Navigation principale */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav-bar { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; justify-self: start; color: var(--ink); }
.logo .logo-icon { width: 28px; height: 28px; transition: transform .6s var(--ease-out); }
.logo:hover .logo-icon { transform: rotate(-14deg); }
.logo-word { display: block; width: 66px; height: 17px; margin-top: 3px; background: currentColor; -webkit-mask: url("/assets/img/logo-wordmark.svg") center / contain no-repeat; mask: url("/assets/img/logo-wordmark.svg") center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { background-size: 100% 1px; }
.nav-cta { display: flex; align-items: center; gap: 10px; justify-self: end; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; position: relative; }
.burger span, .burger span::before { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger span { top: 15px; }
.burger span::before { content: ""; left: 0; right: 0; top: 8px; }
.menu-open .burger span { top: 19px; transform: rotate(45deg); }
.menu-open .burger span::before { top: 0; transform: rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 55; display: flex; flex-direction: column; gap: 28px;
  padding: 24px var(--gutter) 36px; background: #fff; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, visibility .3s, transform .3s var(--ease-out);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.mobile-menu li a .i { width: 22px; height: 22px; color: var(--muted); }
.mobile-menu .mm-meta { display: grid; gap: 4px; color: var(--muted); font-size: .95rem; }
.mobile-menu .mm-meta a { color: var(--ink); }
body.menu-open { overflow: hidden; }

/* Sous-navigation des pages projet */
.subnav { position: sticky; top: var(--nav-h); z-index: 50; margin-top: var(--nav-h); height: 52px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.subnav-links { display: flex; align-items: center; gap: 20px; font-size: .88rem; color: var(--ink-2); }

/* Animations d'entrée */
.ln { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.fade-up { animation: fade-up .8s var(--ease-out) both; animation-delay: var(--d, .25s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Hero (accueil) */
.hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(24px, 3vw, 40px); text-align: center; }
.hero-title { margin-top: 22px; font-size: clamp(3rem, 9.6vw, 10.5rem); line-height: .9; letter-spacing: -.065em; text-transform: uppercase; font-weight: 900; }
.hero-sub { max-width: 40rem; margin: 26px auto 0; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; color: var(--ink-2); }
.hero .actions { margin-top: 30px; }
.hero-visual { width: min(100%, 980px); margin: clamp(28px, 4vw, 56px) auto 0; }
/* L'ombre reste sur l'image, l'animation sur son conteneur : l'ombre est calculee une fois, le mouvement reste sur le GPU. */
.hero-visual .float { display: block; animation: float 7s ease-in-out infinite; will-change: transform; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(255, 57, 42, .22)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(.8deg); } }

/* Tuiles */
.tiles { display: grid; gap: var(--gap); padding: 0 var(--gap); }
.tile { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(44px, 5.5vw, 64px) var(--gutter) 0; background: var(--tile); min-height: clamp(560px, 50vw, 700px); }
.tile.white { background: #fff; }
.tile .label { margin-bottom: 14px; }
.tile-title { font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; font-weight: 900; }
.tile-sub { max-width: 36rem; margin-top: 14px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.4; color: var(--ink-2); }
.tile .actions { margin-top: 22px; }
.tile-media { width: min(100%, 980px); margin: auto 0 0; padding-top: clamp(24px, 3vw, 40px); }
.letters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; width: min(100%, 560px); }
.tile-media img { width: 100%; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile-media img { transform: scale(1.025); }
.tile-media.pad { padding-bottom: clamp(32px, 4vw, 56px); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile-grid .tile { min-height: clamp(520px, 44vw, 620px); }
.tile-grid .tile-title { font-size: clamp(2rem, 3.4vw, 3.3rem); }
.tile-grid .tile-sub { font-size: clamp(1.02rem, 1.3vw, 1.2rem); }
.tile-grid .tile-media { width: min(100%, 620px); }

/* Tuile couleur de marque */
/* Degrade anime par translation d'un calque (GPU) plutot que par background-position (re-dessin a chaque image). */
.tile.brand { background: var(--grad); }
.tile.brand::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 160%; z-index: -1; background: var(--grad); animation: grad-slide 10s ease-in-out infinite alternate; will-change: transform; }
@keyframes grad-slide { to { transform: translateX(-37.5%); } }
.tile.brand .label { color: var(--ink); }
.tile.brand .label::before { background: var(--ink); }
.tile.brand .grad-text { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.tile.brand .tile-sub { color: var(--ink); }
.tile.brand .btn-primary:hover { background: #fff; color: var(--ink); }
.tile.brand .btn-primary:hover::before { opacity: 0; }
.tile.brand .btn-ghost:hover { background: var(--ink); color: #fff; }
.tile-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: auto; padding: 40px 0 36px; font-size: .95rem; }
.tile-info strong { font-weight: 600; }
.tile.brand .tile-media { width: min(100%, 360px); }
.tile.brand .tile-media img { animation: float 8s ease-in-out infinite; will-change: transform; }

/* Outils (barres) dans une tuile */
.tools { width: min(100%, 480px); margin: auto 0; padding: 32px 0 48px; display: grid; gap: 16px; text-align: left; }
.tool { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 3.6rem; align-items: center; gap: 16px; }
.tool h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }
.bar-track { height: 6px; border-radius: 6px; background: var(--tile-2); overflow: hidden; }
.bar { height: 100%; border-radius: 6px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out); }
.tool b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }

/* Sections centrées */
.section { padding: var(--section) 0; }
.center-head { max-width: 54rem; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.center-head h2 { margin-top: 16px; font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; font-weight: 900; }
.center-head p { max-width: 36rem; margin: 18px auto 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }

/* Déclaration (mots révélés au défilement) */
.statement { text-align: center; }
.statement p { max-width: 1080px; margin: 22px auto 0; font-size: clamp(1.8rem, 3.8vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.statement .w { opacity: .14; transition: opacity .25s; }
.statement .w.on { opacity: 1; }

/* Compétences (cartes) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--tile); padding: 32px 30px 0; }
.card-num { font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { margin-top: 10px; font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -.04em; font-weight: 900; text-transform: uppercase; }
.card p { margin-top: 12px; font-size: 1rem; color: var(--ink-2); }
.card .tags { justify-content: flex-start; margin-top: 18px; }
.card-art { margin: auto -30px 0; padding-top: 24px; }
.card-art img { width: 100%; transform: translateY(6%); transition: transform .8s var(--ease-out); }
.card:hover .card-art img { transform: translateY(0) scale(1.03); }

/* Pied de page compact */
.footer { margin-top: var(--gap); padding: 40px 0 24px; background: var(--tile); font-size: .82rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.footer-top p { max-width: 34rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 24px 0; }
.footer h4 { font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* Pages projet */
.p-hero { padding: clamp(48px, 7vw, 96px) 0 0; text-align: center; }
.p-hero .p-icon { width: 68px; height: 68px; margin: 0 auto; border-radius: 18px; }
.p-title { margin-top: 22px; font-size: clamp(3rem, 9.2vw, 10rem); line-height: .9; letter-spacing: -.065em; text-transform: uppercase; font-weight: 900; }
.p-intro { max-width: 46rem; margin: 26px auto 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.p-hero .tags { margin-top: 22px; }
.ribbon { margin-top: clamp(36px, 5vw, 64px); }
.ribbon img { width: 100%; }
.shot-title { max-width: 52rem; margin-top: 4px; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 900; }
.tile.shot { min-height: 0; }
.tile.shot .tile-media { width: min(100%, 1100px); padding-bottom: clamp(24px, 3vw, 40px); }
.tile.shot .tile-media img { border-radius: var(--radius); }
.tile.shot .tile-media.cover img { box-shadow: 0 20px 50px -30px rgba(15, 15, 16, .4); }

/* Formulaires */
.f-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(32px, 4vw, 48px); text-align: center; }
.f-title { margin-top: 20px; font-size: clamp(2.8rem, 7.4vw, 7.6rem); line-height: .92; letter-spacing: -.06em; text-transform: uppercase; font-weight: 900; }
.f-lead { max-width: 40rem; margin: 24px auto 0; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--ink-2); }
.info-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); max-width: 980px; margin: 0 auto var(--gap); }
.info-item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--tile); text-align: left; }
.info-item .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: var(--red); }
.info-item small { display: block; font-size: .8rem; color: var(--muted); }
.info-item strong { font-weight: 600; font-size: .96rem; }
a.info-item:hover strong { color: var(--red); }
.form-card { max-width: 980px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--tile); }
.form-head { text-align: center; }
.form-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; font-weight: 900; text-transform: uppercase; }
.form-head p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.field { display: grid; gap: 8px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label, .legend { font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.opt { color: var(--subtle); font-weight: 400; }
.input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--subtle); }
.input:hover { border-color: rgba(15, 15, 16, .4); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 57, 42, .14); }
textarea.input { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a655d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .93rem; color: var(--ink-2); transition: background-color .2s, border-color .2s, color .2s; }
.chip input:hover + span { border-color: rgba(15, 15, 16, .45); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-foot small { max-width: 26rem; font-size: .82rem; color: var(--muted); }
.form-foot small a { text-decoration: underline; text-underline-offset: 2px; }
.form-msg { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-msg.error { background: #fff0f3; border: 1px solid rgba(255, 7, 93, .35); color: #b0003a; }
.form-success { text-align: center; padding: clamp(28px, 5vw, 56px) 8px; }
.form-success .ok { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); }
.form-success .ok .i { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; }
.form-success p { margin: 14px auto 28px; max-width: 26rem; color: var(--muted); }

/* Pages légales */
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 clamp(32px, 4vw, 48px); list-style: none; }
.legal-toc a { display: block; padding: 7px 14px; border-radius: 999px; background: var(--tile); font-size: .88rem; color: var(--ink-2); transition: background-color .2s; }
.legal-toc a:hover { background: var(--tile-2); }
.legal-body article { padding: 30px 0; border-top: 1px solid var(--line-2); }
.legal-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.04em; line-height: 1.15; font-weight: 900; margin-bottom: 14px; }
.legal-body h2 small { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 1rem; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 14px; }
.legal-body ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.updated { margin-top: 16px; font-size: .92rem; color: var(--muted); }

/* Page d'erreur */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.error-code { font-size: clamp(8rem, 30vw, 22rem); font-weight: 900; line-height: .82; letter-spacing: -.08em; }
.error-page h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 18px; letter-spacing: -.05em; font-weight: 900; text-transform: uppercase; }
.error-page p { margin: 18px auto 32px; max-width: 30rem; color: var(--muted); font-size: 1.08rem; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-bar { grid-template-columns: 1fr auto; }
  .nav-links-wrap, .nav-cta .btn { display: none; }
  .burger { display: inline-block; }
  .tile-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .subnav-links .ulink { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gap: 8px; }
  .tile { min-height: 0; padding-top: 44px; }
  .tile-grid .tile { min-height: 0; }

  .actions .btn { flex: 1 1 auto; }
  .tool { grid-template-columns: 6.6rem minmax(0, 1fr) 3.2rem; gap: 12px; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 13vw; }
}
