/* =========================================================
   VOLEAN — site vitrine
   Charte reprise de l'application : bleu VOLEAN, police Outfit,
   palette des 6 types de parc, couleurs d'état de la timeline.
   ========================================================= */

:root {
  --blue:        #036db3;
  --blue-light:  #0585d6;
  --blue-dark:   #025a93;
  --blue-header: #0a4f80;
  --blue-deep:   #06365a;
  --blue-soft:   #e0f2fe;
  --blue-tint:   rgba(3, 109, 179, 0.10);

  --ink:     #0f172a;
  --ink-2:   #334155;
  --muted:   #64748b;
  --line:    #e2e8f0;
  --bg:      #ffffff;
  --bg-alt:  #f6f9fc;

  /* Types de parc (charte applicative) */
  --vo-bg: #d1fae5; --vo-fg: #065f46;
  --vm-bg: #ffedd5; --vm-fg: #9a3412;
  --vd-bg: #dbeafe; --vd-fg: #1e40af;
  --vg-bg: #fce7f3; --vg-fg: #9d174d;
  --vr-bg: #fef9c3; --vr-fg: #92400e;
  --vn-bg: #ede9fe; --vn-fg: #5b21b6;

  /* États timeline */
  --st-red:    #ef4444;
  --st-orange: #f97316;
  --st-yellow: #eab308;
  --st-green:  #22c55e;

  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -10px rgba(3, 109, 179, .25), 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -20px rgba(6, 54, 90, .35);
  --container: 1140px;
  --header-h: 68px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#i-play path { fill: currentColor; stroke: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .7em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(3, 109, 179, .6); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: rgba(3, 109, 179, .35); }
.btn-ghost:hover { background: var(--blue-tint); border-color: var(--blue); }
.btn .ico { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .2); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { width: 36px; height: 36px; }
.brand-word { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand-vo { color: #333; }
.brand-lean { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.btn) { color: var(--ink-2); font-weight: 500; position: relative; }
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav > a:not(.btn):hover { color: var(--blue); }
.site-nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(3, 109, 179, .10), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, rgba(5, 133, 214, .10), transparent 70%),
    linear-gradient(180deg, #f3f8fc 0%, #fff 70%);
  overflow: hidden;
}
.hero-text { max-width: 820px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: .35em .9em; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 .accent { color: var(--blue); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 720px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.video-frame {
  position: relative; margin: 0 auto; max-width: 980px;
  border-radius: 18px; overflow: hidden; background: #0a1a2a;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame.is-playing video { object-fit: contain; background: #000; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
  background: linear-gradient(180deg, rgba(6, 54, 90, 0) 40%, rgba(6, 54, 90, .55) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: #fff; transition: background .2s;
}
.video-play:hover { background: linear-gradient(180deg, rgba(6, 54, 90, .1) 40%, rgba(6, 54, 90, .65) 100%); }
.video-play:hover .video-play-btn { transform: scale(1.06); }
.video-play-btn {
  width: 88px; height: 88px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(3, 109, 179, .8), 0 0 0 10px rgba(255, 255, 255, .18);
  transition: transform .2s;
}
.video-play-btn .ico { width: 40px; height: 40px; margin-left: 4px; }
.video-play-label { font-weight: 600; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.video-frame.is-playing .video-play { display: none; }


/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto 2.8rem; text-align: center; }
.section-head .sub { color: var(--ink-2); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card p { margin: 0; color: var(--ink-2); }
.card h3 { margin-bottom: .5em; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 1.1rem;
}
.card-icon .ico { width: 24px; height: 24px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(3, 109, 179, .3); }
}
.pain .card-icon { background: #fee2e2; color: #b91c1c; }
.pivot {
  max-width: 720px; margin: 2.6rem auto 0; text-align: center;
  font-size: 1.2rem; font-weight: 500; color: var(--ink);
  padding: 1.2rem 1.5rem; border-left: 4px solid var(--blue); background: #fff; border-radius: 0 12px 12px 0;
}

/* ---------- Parcours (fond bleu foncé) ---------- */
.section-dark {
  background: linear-gradient(160deg, var(--blue-header) 0%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, .85);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.section-dark .section-head .sub { color: rgba(255, 255, 255, .8); }

.timeline { display: flex; gap: 6px; max-width: 1000px; margin: 0 auto; }
.chev {
  --c: var(--st-red);
  position: relative; flex: 1 1 0; min-width: 0; height: 64px;
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 1.6rem 0 2rem;
  background: var(--c); color: #fff; font-weight: 600; font-size: .95rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
.chev:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); border-radius: 8px 0 0 8px; padding-left: 1.4rem; }
.chev:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); border-radius: 0 8px 8px 0; }
.chev-num { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: .85rem; flex: none; }
.chev-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-red    { --c: var(--st-red); }
.is-orange { --c: var(--st-orange); }
.is-yellow { --c: var(--st-yellow); color: #1f2937; }
.is-yellow .chev-num { background: rgba(0, 0, 0, .12); }
.is-green  { --c: var(--st-green); }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; margin: 1.4rem auto 0; font-size: .95rem; }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--st-red); } .dot-orange { background: var(--st-orange); }
.dot-yellow { background: var(--st-yellow); } .dot-green { background: var(--st-green); }

.types { margin-top: 3.2rem; text-align: center; }
.types-title { color: #fff; font-weight: 600; font-size: 1.15rem; margin-bottom: 1rem; }
.type-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.type-badges li { padding: .45em .95em; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.type-badges b { font-weight: 700; margin-right: .35em; }
.t-vo { background: var(--vo-bg); color: var(--vo-fg); }
.t-vm { background: var(--vm-bg); color: var(--vm-fg); }
.t-vd { background: var(--vd-bg); color: var(--vd-fg); }
.t-vg { background: var(--vg-bg); color: var(--vg-fg); }
.t-vr { background: var(--vr-bg); color: var(--vr-fg); }
.t-vn { background: var(--vn-bg); color: var(--vn-fg); }

/* ---------- L'application (captures) ---------- */
.showcase { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; }
.showcase:last-child { margin-bottom: 0; }
.showcase-rev .shot { order: 2; }
.shot {
  position: relative; margin: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--bg-alt);
  min-height: 220px;
}
.shot img { width: 100%; position: relative; z-index: 1; }
/* Placeholder visible tant que la capture n'est pas déposée */
.shot::before {
  content: "Capture à déposer : " attr(data-file);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem;
  color: var(--muted); font-size: .9rem; text-align: center;
  background: repeating-linear-gradient(45deg, #f1f5f9 0 12px, #f8fafc 12px 24px);
}
.showcase-text h3 { font-size: 1.45rem; }
.checks li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .55rem; color: var(--ink-2); }
.checks .ico { color: var(--st-green); stroke-width: 2.5; margin-top: .2em; }

/* ---------- Témoignages ---------- */
.quote {
  margin: 0; padding: 1.8rem 1.8rem 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: -.1em; left: 1.1rem; font-size: 4.5rem; line-height: 1;
  color: var(--blue-soft); font-weight: 700;
}
.quote p { position: relative; font-size: 1.1rem; color: var(--ink); margin-bottom: 1rem; }
.quote footer { color: var(--muted); font-size: .92rem; }
.quote footer strong { color: var(--ink-2); }

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(180deg, #fff 0%, #eef6fc 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-text .sub { font-size: 1.08rem; }
.contact-direct { margin-top: 1.6rem; display: grid; gap: .7rem; }
.contact-direct li { display: flex; align-items: center; gap: .7rem; color: var(--ink-2); }
.contact-direct .ico { color: var(--blue); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field em { color: #dc2626; font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: .7em .85em; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #fff;
  font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover { border-color: #94a3b8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3, 109, 179, .2); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #dc2626; }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.consent input { margin-top: .3em; accent-color: var(--blue); }
.form-actions { display: flex; justify-content: flex-end; }
.form-actions .btn { width: 100%; justify-content: center; }
.form-status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.is-ok { color: #166534; }
.form-status.is-err { color: #b91c1c; }
.contact-form.is-sending { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .75); padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 3rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.footer-brand .brand-vo { color: #fff; }
.footer-brand .brand-lean { color: #7cc4f5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; }
.footer-nav a { color: rgba(255, 255, 255, .8); }
.footer-nav a:hover { color: #fff; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.grid-3 .reveal:nth-child(2), .grid-2 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 1.5rem; }
  .showcase-rev .shot { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .chev { font-size: .85rem; padding: 0 1.2rem 0 1.6rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .3);
    padding: .5rem 1.25rem 1rem; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1rem; justify-content: center; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .video-play-btn { width: 68px; height: 68px; }
  .video-play-btn .ico { width: 30px; height: 30px; }
  .video-play-label { font-size: .95rem; }

  /* Timeline : chevrons empilés verticalement */
  .timeline { flex-direction: column; gap: 4px; }
  .chev, .chev:first-child, .chev:last-child {
    clip-path: none; border-radius: 10px; height: 52px; justify-content: flex-start; padding: 0 1rem;
  }
  .chev-label { white-space: normal; }
}
