/* redive.app — thème océan (couleurs de la marque REDive : corail #FF6B61, ivoire, bleus profonds) */
:root {
  --ocean-950: #0B141B; --ocean-900: #111D25; --ocean-850: #142430; --ocean-800: #182B35; --ocean-700: #21394A;
  --line: #27404F; --ivory: #EDF5F4; --text: #D9E5E6; --muted: #A7B9C3; --seafoam: #B9DED6; --sea: #4FB3C8;
  --coral: #FF6B61; --coral-text: #FF8F86; --coral-deep: #E2483F; --sun: #FFC66B;
  --radius: 20px; --wide: 1120px; --narrow: 740px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ocean-950); color: var(--text); font: 18px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--coral-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #FFB3AD; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ivory); line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; margin: 8px 0 12px; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 750; margin: 2.1em 0 .55em; }
h3 { font-size: 21px; font-weight: 700; margin: 1.7em 0 .4em; }
p { margin: 0 0 1em; }
b, strong { color: var(--ivory); }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: calc(var(--narrow) + 40px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ivory); color: var(--ocean-950); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 20, 27, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(39, 64, 79, .6); }
.top-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ivory); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.brand b { color: var(--coral); font-weight: 800; }
.brand img { width: 30px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--ivory); }
.top .btn-small { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--coral); color: #1B0B0A; font-weight: 750; text-decoration: none; border-radius: 999px; padding: 12px 22px; font-size: 16px; line-height: 1; border: 0; white-space: nowrap; box-shadow: 0 10px 28px -12px rgba(255, 107, 97, .7); }
.btn:hover { background: #FF857C; color: #1B0B0A; }
.btn-small { padding: 9px 16px; font-size: 14.5px; }
.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--ocean-800); color: var(--ivory); }
@media (max-width: 860px) { .nav { display: none; } }

/* Page article */
.page { padding-top: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 14px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }
.meta { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.prose > h2:first-child { margin-top: .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--coral); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--coral); color: var(--ivory); font-size: 20px; }
.prose code { background: var(--ocean-800); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose figure { margin: 1.8em 0; }
figcaption { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 10px; }

/* Encadrés */
.box { border-radius: 16px; padding: 18px 20px 4px; margin: 1.6em 0; background: var(--ocean-850); border: 1px solid var(--line); }
.box-label { font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 6px; }
.box-tldr { border-left: 4px solid var(--seafoam); background: linear-gradient(135deg, #12303A, var(--ocean-850) 70%); }
.box-tldr .box-label { color: var(--seafoam); }
.box-tldr p { color: var(--ivory); font-size: 19px; }
.box-tip .box-label { color: var(--sun); }
.box-tip { border-left: 4px solid var(--sun); }
.box-warning { border-left: 4px solid var(--coral); }
.box-warning .box-label { color: var(--coral-text); }
.box-example { border-left: 4px solid var(--sea); }
.box-example .box-label { color: var(--sea); }

/* Sommaire */
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px 8px; margin: 0 0 28px; background: var(--ocean-900); }
.toc-title { font-weight: 800; color: var(--ivory); margin: 0 0 6px; font-size: 15px; }
.toc ol { margin: 0 0 6px; padding-left: 1.2em; font-size: 15.5px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--coral-text); }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ocean-800); color: var(--ivory); font-weight: 700; white-space: nowrap; }
tbody th { color: var(--ivory); font-weight: 650; }
tbody tr:nth-child(even) { background: rgba(24, 43, 53, .45); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Encadré app */
.cta { display: flex; gap: 18px; align-items: flex-start; margin: 2.2em 0; padding: 22px; border-radius: var(--radius); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 107, 97, .22), transparent 55%), linear-gradient(160deg, #1A2F3B, #121F28); border: 1px solid #3A3F45; box-shadow: 0 24px 60px -36px rgba(255, 107, 97, .55); }
.cta-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.cta-title { font: 800 21px/1.2 var(--display); color: var(--ivory); margin: 2px 0 6px; letter-spacing: -0.015em; }
.cta-body p { margin-bottom: 12px; }
.cta-note { color: var(--muted); font-size: 14px; margin: 8px 0 0 !important; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge-link img { height: 50px; width: auto; }
.badges.big .badge-link img { height: 56px; }
@media (max-width: 520px) { .cta { flex-direction: column; } }

/* Avant / après */
.ba { margin: 1.8em 0; }
.ba-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ocean-800); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-frame picture, .ba-frame .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B141B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .x, .ba-frame:focus-within .ba-handle::after { outline: 3px solid var(--sun); outline-offset: 2px; }
.ba-tag { position: absolute; top: 14px; font-size: 13px; font-weight: 750; padding: 6px 11px; border-radius: 999px; background: rgba(11, 20, 27, .72); color: var(--ivory); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; color: #FFD9D6; }
.ba-hero .ba-frame { aspect-ratio: 16 / 9; border-radius: 26px; }

/* Vidéo */
.vid video { width: 100%; border-radius: var(--radius); background: var(--ocean-800); aspect-ratio: 3 / 2; object-fit: cover; }

/* Simulateur de profondeur */
.depth { border: 1px solid var(--line); border-radius: 24px; padding: 18px; background: var(--ocean-900); }
.depth-title { font: 800 19px/1.3 var(--display); color: var(--ivory); margin: 2px 4px 14px; }
.depth-frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.depth-frame picture, .depth-img { width: 100%; height: 100%; object-fit: cover; }
.depth-img { filter: url(#waterfilter); }
.depth-readout { position: absolute; left: 10px; bottom: 10px; display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(11, 20, 27, .72); backdrop-filter: blur(6px); }
.depth-m { font: 800 17px/1 var(--display); color: var(--ivory); margin-bottom: 2px; }
.bar { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ivory); }
.bar i { display: block; height: 6px; border-radius: 3px; width: calc(var(--v, 1) * 70px); min-width: 2px; transition: width .25s; }
.bar.r i { background: #FF5A4E; } .bar.g i { background: #4CD07D; } .bar.b i { background: #4C8DFF; }
.bar::after { content: attr(data-label); }
.depth-control { display: block; margin: 16px 4px 4px; }
.depth-control > span:first-child { font-weight: 700; color: var(--ivory); font-size: 15px; }
.depth-control input { width: 100%; margin: 10px 0 4px; accent-color: var(--coral); height: 28px; }
.depth-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* Cartes */
.cards { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 18px; background: var(--ocean-900); border: 1px solid var(--line); text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: #3B5A6B; }
.card-title { color: var(--ivory); font-weight: 750; font-size: 18px; line-height: 1.3; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.related { margin: 56px 0 10px; }
.related h2 { margin-top: 0; }
.sources { margin-top: 48px; font-size: 15px; color: var(--muted); }
.sources h2 { font-size: 20px; }
.sources a { color: var(--muted); }
.plain-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.plain-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ivory); }

/* Bande finale */
.final { position: relative; margin-top: 80px; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final-bg picture, .final-bg img { width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 20, 27, .92), rgba(11, 20, 27, .55) 45%, rgba(11, 20, 27, .9)); }
.final-in { padding-top: 110px; padding-bottom: 110px; text-align: center; }
.final h2 { font-size: clamp(34px, 6vw, 64px); margin: 0 0 14px; }
.final p { color: var(--ivory); font-size: 19px; max-width: 560px; margin: 0 auto 26px; }
.final .badges { justify-content: center; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); background: #091117; padding: 48px 0 110px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot p { color: var(--muted); }
.f-title { color: var(--ivory) !important; font-weight: 750; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ivory); }
.f-brand .brand { margin-bottom: 12px; }
.foot-legal { margin-top: 30px; font-size: 13px; }
.foot-legal p { color: #7F95A1; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* Barre fixe mobile */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky { display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; padding: 9px 10px 9px 12px; border-radius: 18px; background: rgba(17, 29, 37, .94); border: 1px solid #33414A; backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); transition: transform .3s, opacity .3s; }
  .sticky img { width: 40px; height: 40px; border-radius: 10px; }
  .sticky span { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; min-width: 0; }
  .sticky small { color: var(--muted); font-size: 12px; }
  .sticky .btn { margin-left: auto; padding: 10px 14px; font-size: 14px; }
  .sticky.hide { transform: translateY(140%); opacity: 0; }
  body { font-size: 17px; }
}

/* Accueil */
.home section { padding: 72px 0; }
.hero { padding: 40px 0 24px !important; }
.hero-text { max-width: 820px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--seafoam); font-weight: 750; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.hero h1 { font-size: clamp(40px, 7vw, 82px); letter-spacing: -0.035em; margin: 6px 0 16px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--text); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin: 22px 0 28px; }
.hero-actions .cta-note { margin: 0 !important; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-text); margin: 0 0 6px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li { padding: 22px; border-radius: 18px; background: var(--ocean-900); border: 1px solid var(--line); }
.features h3 { margin: 10px 0 6px; font-size: 19px; }
.features p { color: var(--muted); font-size: 16px; margin: 0; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 107, 97, .14); color: var(--coral); }
.ico svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.modes li { padding: 24px; border-radius: 20px; background: linear-gradient(180deg, var(--ocean-800), var(--ocean-900)); border: 1px solid var(--line); }
.modes .tag { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(185, 222, 214, .12); color: var(--seafoam); }
.modes h3 { margin: 12px 0 6px; font-size: 24px; }
.modes p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips a, .chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ocean-900); color: var(--ivory); text-decoration: none; font-weight: 650; font-size: 15.5px; }
.chips a:hover { border-color: var(--coral); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g-item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer; background: var(--ocean-800); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.g-item picture, .g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-before { opacity: 0; transition: opacity .18s; }
.g-item.show .g-before, .g-item:active .g-before { opacity: 1; }
.g-hint { position: absolute; left: 10px; bottom: 10px; font-size: 12.5px; font-weight: 700; color: var(--ivory); background: rgba(11, 20, 27, .7); padding: 5px 9px; border-radius: 999px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.screens { list-style: none; padding: 4px 2px 14px; margin: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.screens li { flex: none; width: 220px; scroll-snap-align: start; text-align: center; }
.screens img { width: 220px; border-radius: 28px; border: 1px solid #2D4452; box-shadow: 0 20px 40px -24px #000; }
.screens span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.pricing li { padding: 24px; border-radius: 20px; background: var(--ocean-900); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pricing .price { font: 800 34px/1 var(--display); color: var(--ivory); letter-spacing: -0.02em; }
.pricing .price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.pricing h3 { margin: 0; font-size: 19px; }
.pricing p { color: var(--muted); margin: 0; font-size: 16px; }
.pricing .best { border-color: var(--coral); background: linear-gradient(180deg, rgba(255, 107, 97, .12), var(--ocean-900) 60%); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.band-video { position: relative; border-radius: 26px; overflow: hidden; }
.band-video video { width: 100%; aspect-ratio: 1920 / 823; object-fit: cover; }
.faq-list h3 { font-size: 19px; }
.faq-list p { color: var(--text); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.final .cta-note { text-align: center; }
.home .hero .ba { margin-top: 6px; }
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: none; }
  .chips a, .chips span { font-size: 14px; padding: 7px 13px; }
  .sticky span b { font-size: 14.5px; white-space: nowrap; }
  .home section { padding: 52px 0; }
}
.hero-in { display: flex; flex-direction: column; }
.hero-text { order: 1; } .hero-copy { order: 2; } .hero-media { order: 3; } .hero .chips { order: 4; }
@media (max-width: 760px) {
  .hero-media { order: 2; margin: 4px 0 10px; } .hero-copy { order: 3; }
  .hero h1 { font-size: 38px; margin-bottom: 14px; }
  .eyebrow { font-size: 12.5px; }
  .lede { font-size: 18px; }
}
.langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 16px 0 0; }
.langs a { color: var(--muted); text-decoration: none; font-size: 14px; }
.langs a[aria-current] { color: var(--ivory); font-weight: 700; }
