/* ============================================================
   Otteryx — vitrine
   Direction : éditorial sombre & chaleureux, studio indépendant
   Display : Fraunces · Texte : Hanken Grotesk
   ============================================================ */

:root {
  /* Base sombre (warm near-black) */
  --bg:        #14110d;
  --bg-2:      #1b1711;
  --surface:   #211c15;
  --surface-2: #2a241b;
  --line:      #3a3328;
  --line-soft: #2c261d;

  --ink:       #f4ede0;   /* crème principal */
  --ink-2:     #d8cdba;
  --muted:     #a89c88;
  --faint:     #6f6655;

  /* Accent studio (ambre chaud) */
  --ember:     #e0a455;
  --ember-2:   #c98838;

  /* Accents par app */
  --selfi:     #c7cdd6;   /* argent */
  --selfi-2:   #8f97a3;
  --thyro:     #ff5da2;   /* rose magenta */
  --thyro-2:   #ff8fc0;
  --zephyr:    #6f9460;   /* vert forêt */
  --zephyr-2:  #d98a4b;   /* point orange */
  --aviary:    #4fa595;   /* teal AviarySoft */
  --aviary-2:  #7cc7b8;
  --otterclip:   #9a6bf2; /* violet */
  --otterscreen: #3f8df0; /* bleu */
  --ottersplit:  #34c06a; /* vert */

  /* Ambiance dynamique (pilotée au scroll) */
  --aura: var(--ember);

  --radius:    18px;
  --radius-lg: 28px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --bg:        #f4ede0;
  --bg-2:      #efe6d5;
  --surface:   #fbf6ec;
  --surface-2: #f3ead9;
  --line:      #e0d4bf;
  --line-soft: #ebe1cf;

  --ink:       #1c1813;
  --ink-2:     #3a3328;
  --muted:     #6f6655;
  --faint:     #a89c88;

  --ember:     #b9772a;
  --ember-2:   #9a5f1d;
  --selfi-2:   #5d6470;
  --zephyr:    #4f6e44;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Grain + lueur d'ambiance globale */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% -5%, color-mix(in srgb, var(--aura) 22%, transparent), transparent 70%),
    radial-gradient(50% 45% at 95% 8%, color-mix(in srgb, var(--aura) 14%, transparent), transparent 70%);
  transition: background 1.2s var(--ease);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: color-mix(in srgb, var(--aura) 35%, transparent); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typo helpers ---------- */
.kicker {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: color-mix(in srgb, var(--aura) 70%, var(--line));
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 380; line-height: 1.04; letter-spacing: -.02em; }
.serif-i { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.01em;
  font-weight: 420;
}
.brand .dot {
  width: 27px; height: 25px;
  background: var(--aura);
  -webkit-mask: url("../brand/otter-mark.png") center / contain no-repeat;
          mask: url("../brand/otter-mark.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .2));
  transition: background 1s var(--ease);
}
.site-footer .brand .dot { background: var(--ember); transition: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; color: var(--ink-2); font-weight: 500;
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--aura); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-tools { display: flex; align-items: center; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2); font-size: .82rem; font-weight: 600;
  height: 38px; padding: 0 .55rem;
  transition: border-color .25s, color .25s, background .25s;
}
.pill:hover { border-color: color-mix(in srgb, var(--aura) 60%, var(--line)); color: var(--ink); }
.lang-toggle button {
  background: none; border: none; color: var(--faint);
  font-size: .82rem; font-weight: 700; padding: .15rem .35rem; border-radius: 7px;
  transition: color .2s, background .2s;
}
.lang-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); transition: border-color .25s, color .25s, transform .25s;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--aura) 60%, var(--line)); color: var(--ink); transform: rotate(-12deg); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: clamp(4rem, 12vh, 9rem) 0 clamp(3rem, 7vh, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-kicker { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.hero h1 em { color: var(--ember); }
.hero-lede {
  margin-top: 1.6rem; max-width: 30ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted);
}
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 50%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--aura) 60%, transparent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-2px); }
.btn-accent { background: var(--accent, var(--ember)); color: #fff; box-shadow: none; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--accent, var(--ember)) 70%, transparent); }

/* Orbe d'icônes apps */
.hero-art { position: relative; height: 360px; }
.orb {
  position: absolute; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7), 0 0 0 1px var(--line-soft);
  animation: float 7s ease-in-out infinite;
}
.orb img { width: 100%; height: 100%; object-fit: cover; }
.orb-1 { width: 176px; height: 176px; top: 4%; left: 8%; animation-delay: 0s; }
.orb-2 { width: 130px; height: 130px; top: 38%; right: 4%; animation-delay: -2.1s; }
.orb-3 { width: 112px; height: 112px; bottom: 2%; left: 26%; animation-delay: -4.2s; }
.orb-4 { width: 96px;  height: 96px;  top: 6%;  right: 22%; animation-delay: -5.7s; }
.orb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0, rgba(255,255,255,.18), transparent 60%); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }

/* Bandeau confiance */
.trust {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; align-items: center;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 2rem; border-top: 1px solid var(--line-soft);
}
.trust-item { display: flex; align-items: baseline; gap: .6rem; }
.trust-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); font-variation-settings: "opsz" 40; }
.trust-label { font-size: .9rem; color: var(--muted); max-width: 16ch; line-height: 1.3; }

/* ============================================================
   Sections génériques
   ============================================================ */
section { position: relative; }
.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 1.1rem; }
.section-head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.08rem; }
.apps { padding: clamp(3rem, 8vh, 7rem) 0; }

/* ---------- Carte app (lignes alternées) ---------- */
.app-row {
  --accent: var(--ember);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vh, 5rem) 0;
  border-top: 1px solid var(--line-soft);
}
.app-row:nth-child(even) .app-media { order: -1; }
.app-info { max-width: 46ch; }
.app-eyebrow { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; }
.app-logo {
  width: 62px; height: 62px; border-radius: 16px; overflow: hidden; flex: none;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6), 0 0 0 1px var(--line-soft);
}
.app-eyebrow .meta { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.app-info h3 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.app-tagline { margin-top: .5rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink-2); font-weight: 360; }
.app-desc { margin-top: 1.2rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip {
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  transition: border-color .25s, color .25s;
}
.chip:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--ink); }

.app-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* Badges stores */
.store {
  display: inline-flex; align-items: center; gap: .65rem;
  height: 50px; padding: 0 1.05rem; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.store:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--surface-2); }
.store svg { width: 24px; height: 24px; flex: none; }
.store .store-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store .store-txt small { font-size: .62rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.store .store-txt span { font-size: .98rem; font-weight: 600; }
.store.soon { opacity: .5; cursor: not-allowed; pointer-events: none; filter: grayscale(.4); }
.store.soon::after { content: ""; }

.privacy-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .86rem; color: var(--muted); font-weight: 600;
  border-bottom: 1px dashed var(--line); padding-bottom: 1px;
  transition: color .25s, border-color .25s;
}
.privacy-link:hover { color: var(--ink); border-color: var(--accent); }
.privacy-link svg { width: 14px; height: 14px; }

/* Badges stores officiels (Apple / Google) */
.store-badge { display: inline-flex; align-items: center; transition: transform .25s var(--ease), opacity .25s, filter .25s; }
.store-badge img { height: 46px; width: auto; display: block; }
.store-badge--play img { height: 56px; }   /* compense le padding interne du badge Google */
.store-badge:hover { transform: translateY(-2px); }
.store-badge.soon { opacity: .55; filter: grayscale(.65); cursor: not-allowed; pointer-events: none; }

/* ---------- Mockups iPhone ---------- */
.app-media { display: flex; gap: 1.1rem; justify-content: center; perspective: 1400px; }
.phone {
  position: relative; width: 232px; aspect-ratio: 9 / 19.5;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(150deg, #4a4a52 0%, #1c1c20 38%, #0b0b0d 100%);
  box-shadow:
    0 44px 84px -30px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 0 3px #050506,
    inset 0 1px 2px rgba(255,255,255,.18);
  flex: none; transition: transform .5s var(--ease);
}
.phone:nth-child(2) { transform: translateY(28px) rotate(2.5deg); }
.app-row:nth-child(even) .phone:nth-child(2) { transform: translateY(28px) rotate(-2.5deg); }
.app-media:hover .phone:nth-child(1) { transform: translateY(-6px) rotate(-1.5deg); }
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden; background: #000;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 23px; background: #000; border-radius: 999px; z-index: 3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}
/* écran placeholder */
.phone-ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  color: var(--ink-2); padding: 1.5rem;
}
.phone-ph .ph-icon { width: 76px; height: 76px; border-radius: 20px; overflow: hidden; margin: 0 auto 1.2rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.phone-ph .ph-label { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.phone-ph .ph-sub { font-size: .76rem; color: var(--muted); margin-top: .35rem; letter-spacing: .04em; }

/* Tuile de fond pour icône transparente (AviarySoft) */
.icon-tile { background: linear-gradient(150deg, #eaf7f3, #cdeae3); }
.icon-tile img { object-fit: contain !important; padding: 14%; }
.orb.icon-tile img { padding: 16%; }

/* Cadre navigateur (web app / PWA) */
.browser {
  width: 100%; max-width: 480px; align-self: center;
  border-radius: 16px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 40px 80px -34px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .5s var(--ease);
}
.app-media:hover .browser { transform: translateY(-6px); }
.browser-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--faint); opacity: .6; flex: none; }
.browser-bar .url {
  margin-left: 10px; flex: 1; font-size: .72rem; color: var(--muted);
  background: var(--bg-2); border-radius: 7px; padding: 4px 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-screen { aspect-ratio: 16 / 10; position: relative; }
.browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* AviarySoft : desktop + mobile (PWA) en surimpression */
.app-media--aviary { position: relative; display: block; padding-bottom: 18px; }
.app-media--aviary .browser { max-width: 100%; }
.app-media--aviary .browser-screen { aspect-ratio: 16 / 9; }
.phone--float {
  position: absolute; right: -8px; bottom: -18px; width: 142px; z-index: 4;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.05);
}
.phone--float .notch { width: 52px; height: 15px; top: 11px; }

/* Bouton « lancer la web app » (variante store accentuée) */
.store.launch { background: var(--ink); color: var(--bg); border-color: transparent; }
.store.launch:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.store.launch .store-txt small { color: color-mix(in srgb, var(--bg) 55%, var(--muted)); }

/* ============================================================
   OtterTools (suite desktop)
   ============================================================ */
.tools { padding: clamp(1rem, 3vh, 3rem) 0 clamp(3rem, 7vh, 6rem); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tool-card {
  --accent: var(--ember);
  position: relative; display: flex; flex-direction: column; gap: .45rem;
  padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.tool-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: .85; }
.tool-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface-2); }
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.tool-icon { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px -10px rgba(0,0,0,.5), 0 0 0 1px var(--line-soft); }
.tool-icon img { width: 100%; height: 100%; object-fit: cover; }
.tool-plat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tool-card h3 { font-size: 1.5rem; }
.tool-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.tool-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--accent); margin-top: .5rem; transition: gap .25s; }
.tool-card:hover .tool-cta { gap: .7rem; }
.tools-all { text-align: center; margin-top: 2.2rem; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Devices — mockups Mockuuups (PNG transparents)
   ============================================================ */
.app-media--phones { gap: 1.2rem; align-items: flex-start; }
.device-shot {
  width: 216px; height: auto; display: block;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .5));
  transition: transform .5s var(--ease);
}
.device-shot--2 { transform: translateY(32px); }
.app-media--phones:hover .device-shot:first-child { transform: translateY(-6px); }

.app-media--aviary { position: relative; display: block; padding-bottom: 8px; }
.laptop { position: relative; width: 100%; max-width: 580px; margin: 0 auto; }
.laptop-frame { width: 100%; display: block; position: relative; z-index: 2; filter: drop-shadow(0 32px 56px rgba(0, 0, 0, .5)); }
.laptop-screen {
  position: absolute; z-index: 1; left: 10%; top: 1.6%; width: 80%; height: 88%;
  overflow: hidden; background: #000;
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-shot--float {
  position: absolute; right: -6px; bottom: -26px; width: 122px; z-index: 5;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, .6));
  transition: transform .5s var(--ease);
}
.laptop:hover .device-shot--float { transform: translateY(-5px); }

@media (max-width: 680px) {
  .device-shot { width: 158px; }
  .app-media--phones .device-shot--2 { display: none; }
  .app-media--aviary { display: flex; flex-direction: column; align-items: center; }
  .device-shot--float { position: static; width: 152px; margin-top: -32px; }
}

/* ============================================================
   À propos
   ============================================================ */
.about { padding: clamp(4rem, 9vh, 8rem) 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-statement { font-family: var(--font-display); font-weight: 360; font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.18; letter-spacing: -.015em; }
.about-statement em { color: var(--ember); }
.about-body p { color: var(--muted); margin-bottom: 1.1rem; }
.about-facts { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 1.3rem 1.4rem; }
.fact dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: .4rem; }
.fact dd { font-size: .98rem; color: var(--ink-2); font-weight: 600; }

/* ============================================================
   Contact / Footer
   ============================================================ */
.contact { padding: clamp(3rem, 7vh, 6rem) 0; }
.contact-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.contact-card::before {
  content: ""; position: absolute; inset: -1px; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0, color-mix(in srgb, var(--ember) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.contact-card p { color: var(--muted); margin: 1rem auto 2rem; max-width: 44ch; }
.mail-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); font-style: italic;
  color: var(--ink); border-bottom: 2px solid color-mix(in srgb, var(--ember) 70%, transparent);
  padding-bottom: 4px; transition: color .25s, border-color .25s;
}
.mail-btn:hover { color: var(--ember); }

.site-footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 2.5rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { font-size: 1.5rem; margin-bottom: .8rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-col h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 700; font-family: var(--font-body); }
.footer-col a { display: block; color: var(--ink-2); font-size: .92rem; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--ember); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: var(--faint); font-size: .82rem; }

/* ============================================================
   Reveal au scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Page légale
   ============================================================ */
.legal-page { padding: clamp(3rem, 8vh, 6rem) 0 6rem; }
.legal-page .back { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; font-weight: 600; }
.legal-page .back:hover { color: var(--ink); }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .6rem; }
.legal-page .updated { color: var(--faint); font-size: .88rem; margin-bottom: 3rem; }
.legal-content { max-width: 70ch; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2.6rem 0 .9rem; }
.legal-content p, .legal-content li { color: var(--ink-2); margin-bottom: .7rem; }
.legal-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: .35rem; }
.legal-content a { color: var(--ember); border-bottom: 1px solid color-mix(in srgb, var(--ember) 40%, transparent); }
.legal-note { font-style: italic; color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }

/* Sommaire apps (page confidentialité) */
.legal-toc { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.legal-toc a {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface); transition: border-color .25s, color .25s, background .25s;
}
.legal-toc a:hover { border-color: color-mix(in srgb, var(--ember) 55%, var(--line)); color: var(--ink); background: var(--surface-2); }
.legal-toc a img { width: 22px; height: 22px; border-radius: 6px; }
.legal-toc a.active { border-color: color-mix(in srgb, var(--ember) 60%, var(--line)); background: color-mix(in srgb, var(--ember) 14%, var(--surface)); color: var(--ink); cursor: default; }
.legal-toc a.active::after { content: ""; }

/* Bloc article par app */
.legal-app { padding-top: 2.5rem; margin-top: 3rem; border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.legal-app:first-of-type { border-top: none; }
.legal-app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.legal-app-head img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.5); }
.legal-app-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0; }

/* Tableaux des politiques */
.legal-content table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.legal-content thead th {
  text-align: left; background: var(--surface-2); color: var(--ink);
  font-weight: 700; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase;
  padding: .7rem .9rem;
}
.legal-content tbody td { padding: .7rem .9rem; border-top: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
.legal-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.legal-content h3 { font-family: var(--font-display); font-size: 1.18rem; margin: 1.8rem 0 .6rem; color: var(--ink); }

/* i18n : montrer/cacher selon langue */
[data-lang-fr], [data-lang-en] { display: none; }
html[lang="fr"] [data-lang-fr] { display: revert; }
html[lang="en"] [data-lang-en] { display: revert; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 280px; order: -1; }
  .app-row { grid-template-columns: 1fr; }
  .app-row .app-media { order: -1 !important; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1.5rem 20px;
  }
  .app-media { gap: .6rem; }
  .phone { width: 168px; }
  .phone:nth-child(2) { display: none; }
  .app-media--aviary { display: flex; flex-direction: column; align-items: center; }
  .app-media--aviary .phone--float { display: block; position: static; width: 150px; margin-top: -28px; }
  .about-facts { grid-template-columns: 1fr; }
  .trust { gap: 1rem 1.6rem; }
}
