/* Site Resafit pour les clubs (programme Lancement, lot 6a).
   Charte Resafit : marine #1A1A2E, corail #E94560, Inter (woff2 servies par
   le site, licence OFL, aucun service tiers). Mobile d'abord, contrastes WCAG AA. */

@font-face { font-family: "Inter"; src: url("/pro/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/pro/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/pro/fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

:root {
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;
  --coral: #e94560;
  --coral-ink: #c0283f; /* corail lisible sur blanc (contraste ≥ 4,5:1) */
  --ink: #1a1a2e;
  --muted: #545b66;
  --bg: #f8f9fa;
  --card: #ffffff;
  --line: #e4e6eb;
  --green: #1b7a43;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(26, 26, 46, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(26, 26, 46, .96);
  backdrop-filter: saturate(140%) blur(8px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.top img { height: 30px; width: auto; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.top nav a:hover { opacity: 1; }
.top nav .links { display: none; gap: 18px; }
@media (min-width: 860px) { .top nav .links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #ff6b6b, var(--coral) 55%, #c2185b);
  color: #fff !important; font-weight: 800; text-decoration: none; border: 0;
  padding: 14px 22px; border-radius: 14px; font-size: 16px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(233, 69, 96, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(233, 69, 96, .45); }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 11px; box-shadow: none; }
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }

/* Héros */
.hero {
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(233,69,96,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb3bf; margin-bottom: 14px; }
h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; }
h1 em { font-style: normal; color: #ff8a9c; }
.lead { font-size: 19px; color: rgba(255,255,255,.86); margin: 0 0 28px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero small { display: block; margin-top: 14px; color: rgba(255,255,255,.7); font-size: 14px; }

/* Téléphone (maquette en CSS : pas une capture) */
.phone {
  justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 18.5;
  background: #0b0b16; border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-2deg);
}
.screen { height: 100%; border-radius: 32px; background: #f4f5f8; overflow: hidden; color: var(--ink); font-size: 13px; }
.screen .bar { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 22px 16px 16px; }
.screen .bar b { display: block; font-size: 17px; }
.screen .bar span { opacity: .75; font-size: 12px; }
.screen .item { margin: 10px 12px; background: #fff; border-radius: 14px; padding: 11px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; gap: 10px; align-items: center; }
.screen .dot { width: 34px; height: 34px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #ff6b6b, var(--coral)); }
.screen .dot.g { background: linear-gradient(135deg, #2ecc71, #1b7a43); }
.screen .dot.b { background: linear-gradient(135deg, #5b8def, var(--navy-3)); }
.screen .item b { display: block; font-size: 13px; }
.screen .item span { color: var(--muted); font-size: 11.5px; }
.screen .pill { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--green); background: #e7f6ee; padding: 3px 8px; border-radius: 99px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: #fff; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 42em; }
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
a.card { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(26, 26, 46, .12); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: #fdecef; }
.ico.g { background: #e7f6ee; } .ico.b { background: #e8eefb; } .ico.y { background: #fff4e0; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--coral-ink); background: #fdecef; border-radius: 99px; padding: 3px 10px; margin-top: 10px; }

/* Preuves */
.proof { display: grid; gap: 14px; }
@media (min-width: 800px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof div { border-left: 4px solid var(--coral); padding: 6px 0 6px 16px; }
.proof b { display: block; font-size: 18px; }
.proof span { color: var(--muted); }

/* Témoignage */
.story { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .story { grid-template-columns: .8fr 1.2fr; } }
.story .badge { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 24px; padding: 32px; }
.story .badge b { font-size: 26px; display: block; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--coral-ink); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Formulaire */
.formcard { background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cta-band { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #fff; }
.cta-band .sub { color: rgba(255,255,255,.8); }
.cta-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: .9fr 1.1fr; } }
form .row { display: grid; gap: 14px; }
@media (min-width: 600px) { form .row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #cfd3da; background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.status { margin-top: 12px; font-weight: 600; min-height: 1.6em; }
.status.ok { color: var(--green); } .status.err { color: var(--coral-ink); }

/* Pied */
footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 40px 0; font-size: 15px; }
footer a { color: #fff; }
footer .cols { display: grid; gap: 20px; }
@media (min-width: 800px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }

/* Pages simples (mentions, métiers) */
.page { padding: 56px 0; }
.page h1 { color: var(--ink); font-size: clamp(30px, 4.4vw, 44px); }
.page .lead { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p, .prose li { color: #2c3140; }

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