/* Couleurs et typographies : charte graphique Comcube */
:root {
  --ink: #0f2240;
  --ink-2: #1b3358;
  --paper: #faf8f4;
  --mist: #f0eee7;
  --line: #dcd9d0;
  --text: #0f2240;
  --muted: #55616f;
  --accent: #0c7a74;
  --accent-graphic: #12a196;
  --accent-light: #6fd6cc;
  --radius: 20px;
  --max: 1180px;
  --nav: 72px;
  --serif: "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", Arial, Helvetica, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { font-family: var(--sans); background: var(--paper); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-graphic); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.accent { color: var(--accent); }
.hero .accent, .audience .accent, .closing .accent { color: var(--accent-light); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s, border-color .35s, color .35s; border-bottom: 1px solid transparent; color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav); }
.logo { display: block; position: relative; flex: none; }
.nav .logo { width: 176px; height: 36px; }
.nav .logo img { position: absolute; inset: 0; transition: opacity .35s; }
.logo-dark { opacity: 0; }
.nav.scrolled .logo-dark { opacity: 1; }
.nav.scrolled .logo-light { opacity: 0; }
.nav-links { display: flex; gap: 34px; font-size: 15px; }
.nav-links a:hover { color: var(--accent-light); }
.nav.scrolled .nav-links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: transform .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.nav.scrolled { background: rgba(250, 248, 244, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-color: var(--line); color: var(--text); }
.nav.scrolled .btn-light { background: var(--ink); color: #fff; }

/* Sélecteur de langue */
.nav-end { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang a { padding: 6px; opacity: .62; transition: opacity .2s; }
.lang a:hover { opacity: 1; }
.lang a[aria-current] { opacity: 1; text-decoration: underline 2px var(--accent-graphic); text-underline-offset: 6px; }
.btn .short { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: #fff; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 0; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 70% 30%, rgba(18, 161, 150, .24), transparent 70%),
  radial-gradient(50% 45% at 20% 80%, rgba(111, 214, 204, .12), transparent 70%),
  linear-gradient(180deg, transparent 60%, var(--ink) 100%); }
.hero-inner { padding-top: calc(var(--nav) + 3vh); padding-bottom: 72px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.hero .eyebrow { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--accent-light); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 12px var(--accent-light); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.3rem, min(4.8vw, 8.5vh), 4.6rem); line-height: 1.05; margin: clamp(16px, 3.4vh, 30px) auto clamp(14px, 3vh, 26px); max-width: 1000px; }
.hero p.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 640px; margin: 0 auto; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: clamp(20px, 4.4vh, 42px); }
.badges { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: clamp(24px, 6vh, 64px); font-size: 14px; color: rgba(255, 255, 255, .78); }
.badges span { display: flex; align-items: center; gap: 8px; }
.badges svg { width: 15px; height: 15px; stroke: var(--accent-light); }
.scroll-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto clamp(20px, 4.5vh, 56px); }
.sec-head .eyebrow { color: var(--accent); }
.sec-head h2 { font-size: clamp(1.9rem, min(3.3vw, 6vh), 3.2rem); line-height: 1.1; margin: clamp(6px, 1.4vh, 14px) 0 clamp(8px, 1.8vh, 18px); }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 2.3vh, 1.13rem); line-height: 1.45; }

/* Constat */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmp { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3.2vh, 34px) clamp(20px, 2.2vw, 30px); background: #fff; display: flex; flex-direction: column; }
.cmp .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp h3 { font-size: clamp(1.1rem, 2.6vh, 1.35rem); font-weight: 600; margin: 4px 0 clamp(10px, 2.4vh, 24px); line-height: 1.25; }
.cmp .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.cmp .before { color: var(--muted); font-size: 15px; line-height: 1.45; padding-left: 14px; border-left: 2px solid var(--line); margin-bottom: clamp(10px, 2.2vh, 22px); }
.cmp .after { font-size: 15px; line-height: 1.45; padding-left: 14px; border-left: 2px solid var(--accent-graphic); margin-top: auto; }
.cmp .after .tag { color: var(--accent); }

/* Offre */
.offer { background: var(--mist); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: #fff; border-radius: var(--radius); padding: clamp(16px, 3.4vh, 38px) clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 34, 64, .3); }
.card .ic { width: clamp(36px, 6vh, 52px); height: clamp(36px, 6vh, 52px); border-radius: 12px; display: grid; place-items: center; background: var(--mist); margin-bottom: clamp(8px, 2.4vh, 26px); }
.card .ic svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 { font-size: clamp(1.15rem, 2.9vh, 1.5rem); font-weight: 600; line-height: 1.2; margin-bottom: clamp(4px, 1.2vh, 12px); }
.card p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-bottom: clamp(8px, 2vh, 20px); }
.card ul { list-style: none; border-top: 1px solid var(--line); padding-top: clamp(8px, 1.8vh, 18px); display: grid; gap: clamp(2px, .9vh, 9px); }
.card li { font-size: 14.5px; line-height: 1.35; display: flex; gap: 10px; align-items: flex-start; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-graphic); margin-top: 7px; }
.card .big { position: absolute; right: 22px; top: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cards .card { border-color: var(--ink); border-top: 4px solid var(--accent-graphic); }
.cards .card .big { color: var(--accent); font-weight: 600; }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 1px; background: var(--accent-graphic); }
.step { text-align: center; padding: 0 18px; }
.step .bubble { width: 54px; height: 54px; margin: 0 auto clamp(12px, 3vh, 28px); border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 600; position: relative; box-shadow: 0 0 0 8px var(--paper); }
.step .bubble::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent-graphic); opacity: .6; }
.step h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; line-height: 1.25; }
.step .dur { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Pour qui */
.audience { background: var(--ink); color: #fff; }
.audience .sec-head .eyebrow { color: var(--accent-light); }
.audience .sec-head p { color: rgba(255, 255, 255, .78); }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); }
.aud { background: var(--ink-2); padding: clamp(22px, 5vh, 44px) clamp(22px, 2.6vw, 36px); transition: background .3s; }
.aud:hover { background: var(--accent); }
.aud .who { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: clamp(8px, 1.8vh, 18px); font-weight: 600; }
.aud:hover .who { color: #fff; }
.aud h3 { font-size: clamp(1.25rem, 2.9vh, 1.5rem); font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.aud p { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.45; }

/* Principes */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { padding: 30px 0; border-top: 1px solid var(--text); }
.pillar h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Closing */
.closing { position: relative; background: var(--ink); color: #fff; text-align: center; overflow: hidden; isolation: isolate; padding: 100px 0; }
.closing::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: conic-gradient(from 180deg at 50% 50%, rgba(18, 161, 150, .32), rgba(27, 51, 88, .5), rgba(111, 214, 204, .18), rgba(18, 161, 150, .32)); filter: blur(90px); animation: spin 24s linear infinite; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.closing blockquote { font-size: clamp(2rem, min(4vw, 7.5vh), 4rem); line-height: 1.1; max-width: 1000px; margin: 0 auto clamp(24px, 5vh, 50px); }
.closing .mail { display: block; margin-top: 22px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.closing .mail:hover { color: #fff; }

/* Footer */
footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 96px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer a:hover { color: #fff; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } * { animation: none !important; } html { scroll-behavior: auto; } }

/* Page légale */
.legal-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav); padding-inline: 24px; border-bottom: 1px solid var(--line); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.legal { max-width: 820px; margin-inline: auto; padding: 72px 24px; }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.legal h2 { margin: 40px 0 12px; font-size: 1.7rem; }
.legal p { margin-bottom: 12px; }
.legal a { text-decoration: underline; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 24px; }

/* Sur ordinateur, chaque section occupe exactement un écran */
@media (min-width: 961px) {
  html { scroll-padding-top: 0; scroll-snap-type: y proximity; }
  section { display: flex; flex-direction: column; justify-content: center; height: 100vh; height: 100svh; padding: calc(var(--nav) + 8px) 0 16px; scroll-snap-align: start; }
  .hero { flex-direction: row; align-items: center; padding: 0; }
  .closing { height: auto; min-height: calc(100vh - 97px); min-height: calc(100svh - 97px); }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .compare, .cards, .aud-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .cmp, .card { padding: 26px 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .nav .logo { width: 137px; height: 28px; }
  .nav .logo img { width: 137px; height: 28px; }
  .nav .btn { padding: 10px 14px; font-size: 13px; }
  .nav .btn .long, .legal-head .btn .long { display: none; }
  .nav .btn .short, .legal-head .btn .short { display: inline; }
  .legal-head .btn { padding: 10px 14px; font-size: 13px; }
  .nav-end { gap: 8px; }
  .lang a { padding: 6px 4px; }
  .legal-head { padding-inline: 16px; }
  .legal-head .logo-img { width: 137px; height: auto; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .08em; padding: 8px 12px; }
  .badges { gap: 10px 20px; }
  .btn { white-space: normal; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .nav .logo, .nav .logo img { width: 112px; height: 23px; }
  .legal-head .logo-img { width: 112px; }
  .lang { font-size: 12px; letter-spacing: .02em; }
  .lang a { padding: 6px 3px; }
  .nav .btn, .legal-head .btn { padding: 9px 11px; }
}
