/* Defilo — site vitrine. Palette et polices reprises de l'app. */

@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f1efed;
  --surface: #ffffff;
  --surface-muted: #f7f6f5;
  --ink: #1c1c1c;
  --ink-soft: #2a2a2a;
  --text: #1c1c1c;
  --text-2: #5f5f5f;
  --text-3: #9a9a9a;
  --on-ink: #ffffff;
  --on-ink-2: rgba(255, 255, 255, 0.66);
  --accent-start: #c2412d;
  --accent-end: #e0703a;
  --accent: #d25a33;
  --accent-soft: #fbe9e2;
  --divider: #e4e1de;
  --gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));

  --display: "Clash Display", ui-sans-serif, system-ui, sans-serif;
  --body: "Clash Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --shadow: 0 1px 2px rgba(28, 28, 28, 0.04), 0 12px 40px -12px rgba(28, 28, 28, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--divider); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(28, 28, 28, 0.06); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--text); }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 500 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #000; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5); }
.btn-ghost { background: rgba(28, 28, 28, 0.06); color: var(--text); }
.btn-ghost:hover { background: rgba(28, 28, 28, 0.1); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.store-btn { min-height: 56px; padding: 0 24px 0 20px; text-align: left; }
.store-btn small { display: block; font-size: 11px; letter-spacing: 0.02em; opacity: 0.72; margin-bottom: 3px; }
.store-btn strong { display: block; font: 600 18px/1 var(--display); }
.store-btn svg { width: 26px; height: 26px; }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%;
  background: radial-gradient(closest-side, rgba(224, 112, 58, 0.32), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 22px 0 22px; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--text-2); max-width: 34ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* Téléphone */
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 1320 / 2868; margin: 0 auto;
  border-radius: 54px; padding: 11px; background: #0d0d0d;
  box-shadow: 0 0 0 1.5px #2e2e2e inset, 0 50px 90px -30px rgba(80, 30, 10, 0.55), 0 20px 40px -20px rgba(0, 0, 0, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 31%; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.hero-visual { position: relative; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.float-chip .ico svg { width: 18px; height: 18px; }
.float-chip span small { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; }
.chip-a { top: 16%; left: -4%; }
.chip-b { bottom: 14%; right: -6%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(34px, 4.6vw, 58px); }
.section-head p { color: var(--text-2); font-size: 19px; margin: 18px 0 0; }

/* Bento des fonctionnalités */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 28px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; flex: none; }
.card .ico svg { width: 22px; height: 22px; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.span-4 { grid-column: span 4; }
.card.dark { background: var(--ink); color: var(--on-ink); }
.card.dark p { color: var(--on-ink-2); }
.card.dark .ico { background: rgba(255, 255, 255, 0.1); color: #f39a6c; }
.card.accent { background: var(--gradient); color: #fff; }
.card.accent p { color: rgba(255, 255, 255, 0.85); }
.card.accent .ico { background: rgba(255, 255, 255, 0.18); color: #fff; }
.card .shot {
  margin: 28px auto -120px; width: 62%; max-width: 260px; aspect-ratio: 1320 / 2868;
  border-radius: 30px; padding: 7px; background: #0d0d0d; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.card.has-shot { padding-bottom: 0; min-height: 520px; }
.stat { font: 600 clamp(48px, 6vw, 72px)/1 var(--display); letter-spacing: -0.03em; margin-bottom: 8px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); background: var(--surface-muted); border: 1px solid var(--divider); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 600 15px/1 var(--display); color: var(--accent); margin-bottom: 40px;
}
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--text-2); }

/* Galerie défilante */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 30px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 236px; scroll-snap-align: center; }
.gallery .shot { aspect-ratio: 1320 / 2868; border-radius: 34px; padding: 7px; background: #0d0d0d; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.45); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.gallery figcaption { margin-top: 14px; font-weight: 500; font-size: 15px; text-align: center; color: var(--text-2); }

/* Bloc confidentialité (sombre) */
.privacy-band { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.privacy-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(224, 112, 58, 0.35), transparent 70%); }
.privacy-band .grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.privacy-band h2 { font-size: clamp(32px, 4.2vw, 52px); }
.privacy-band p { color: var(--on-ink-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.checks li svg { width: 22px; height: 22px; flex: none; color: #f39a6c; margin-top: 1px; }
.checks strong { display: block; font-weight: 500; }
.checks span { color: var(--on-ink-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 0 24px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-2); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* Appel final */
.cta-band { text-align: center; background: var(--gradient); color: #fff; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 96px) var(--gutter); position: relative; overflow: hidden; }
.cta-band img.app-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.4); }
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 19px; margin: 0 auto 32px; max-width: 46ch; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 64px 0 40px; margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--divider); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--text-2); font-size: 15px; max-width: 32ch; margin: 14px 0 0; }
.footer-grid h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-3); }

/* ---------- Pages juridiques ---------- */
.doc-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 40px); }
.doc-hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 16px 0 18px; }
.doc-hero p { color: var(--text-2); font-size: 19px; max-width: 60ch; margin: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text-2); box-shadow: var(--shadow); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 92px; }
.toc h2 { font: 500 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--divider); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--text-2); font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }
.prose { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow); max-width: 820px; }
.prose section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--divider); }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.015em; margin-bottom: 16px; scroll-margin-top: 96px; }
.prose h3 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 10px; }
.prose p, .prose li { color: #3d3d3d; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-start); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 500; }
.summary-box { background: var(--accent-soft); border-radius: 20px; padding: 22px 24px; margin-bottom: 40px; }
.summary-box h2 { font-size: 20px !important; margin-bottom: 12px !important; }
.summary-box ul { margin: 0; }
.summary-box li { color: #4a2a20; }
.table-wrap { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--divider); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--divider); }
th { font-weight: 500; background: var(--surface-muted); color: var(--text); }
tr:last-child td { border-bottom: 0; }
td { color: #3d3d3d; }
.todo { background: #fff4c2; color: #6b5300; padding: 1px 6px; border-radius: 6px; font-weight: 500; }

/* Support */
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(48px, 6vw, 72px); }
.support-cards .card h3 { font-size: 22px; }
.support-cards .card a.more { margin-top: 18px; font-weight: 500; text-decoration: none; color: var(--accent-start); }
.support-cards .card.dark a.more { color: #f39a6c; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px/26px var(--display); text-align: center; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font: 600 clamp(110px, 20vw, 220px)/0.9 var(--display); letter-spacing: -0.05em; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .eyebrow .dot::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-2, .card.span-3, .card.span-4 { grid-column: span 1; }
  .card.wide-md { grid-column: span 2; }
  .support-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links, .nav > .btn { display: none; }
  .site-header.open .nav-links {
    display: grid; position: absolute; top: 68px; left: 0; right: 0;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--divider); gap: 2px;
  }
  .site-header.open .nav-links a { font-size: 18px; padding: 12px; }
  .hero-grid, .privacy-band .grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .steps { grid-template-columns: 1fr; }
  .step::before { margin-bottom: 20px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide-md { grid-column: span 1; }
  .card.has-shot { min-height: 0; }
  .float-chip { display: none; }
  .prose { border-radius: 20px; }
  .gallery figure { width: 200px; }
}
