/* Charlie on a Boat — feuille de style
   Polices hébergées localement (aucun appel à un service tiers). */

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

:root {
  --navy: #0A2E57;
  --ink: #33506E;
  --paper: #F4F7F9;
  --sea: #0B4578;
  --accent-hover: #C2410C;
  --M: clamp(24px, 8vw, 120px);   /* marges gauche/droite */
  --G: clamp(24px, 9.4vw, 120px); /* gouttière entre colonnes */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Haut de page : photo pleine largeur ---------- */
.hero {
  position: relative;
  height: clamp(560px, 100vh, 760px);
  height: clamp(560px, 100svh, 760px);
  overflow: hidden;
  container-type: size;
  background: var(--sea);
  color: #FFFFFF;
}
.hero__photo,
.hero__cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 0%;   /* la photo et le détourage doivent garder exactement le même cadrage */
}
.hero__cutout { pointer-events: none; }
.hero__shade { position: absolute; inset: 0; background: rgba(3, 20, 45, 0.16); }
.hero__fade-blur,
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; }
.hero__fade-blur {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 80%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 80%);
}
.hero__fade { background: linear-gradient(to bottom, rgba(244, 247, 249, 0) 0%, rgba(244, 247, 249, 0.25) 50%, var(--paper) 100%); }

.hero__text {
  position: absolute;
  top: clamp(24px, 6vh, 56px);
  top: clamp(24px, 6cqh, 56px);
  left: var(--M);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  /* filtre d'arrondi des angles : déclaré dans la page (balise <style>) */
}
.hero__desc {
  max-width: 300px;
  /* ne jamais déborder sur Charlie : largeur bornée par sa position sur la photo */
  max-width: min(300px, max(160px, calc((100cqw - max(100cqw, 170cqh)) * 0.3 + max(100cqw, 170cqh) * 0.3105 - var(--M) - 24px)));
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 14px rgba(0, 20, 50, 0.45);
}
.hero__desc p { margin: 0; }
.hero__desc p + p { margin-top: 10px; }
.hero__desc strong { font-weight: 700; }
.hero__down {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

/* ---------- Comment nous aider ---------- */
.help { background: var(--paper); padding: 48px 0 56px; }
.intro { display: none; margin: 0; padding: 0 var(--M) 32px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.intro strong { color: var(--navy); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--G);
  padding: 0 var(--M);
}
.help__item { border-top: 2px solid var(--navy); padding-top: 20px; }
.help__item h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.help__item p { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover { color: var(--accent-hover); }

/* ---------- Pied de page ---------- */
.band { height: 6px; background: linear-gradient(to bottom, var(--paper) 0%, var(--navy) 100%); }
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 40px 0 56px; font-size: 14px; line-height: 1.7; }
.footer .grid { row-gap: 24px; }
.footer p { margin: 0; }
.footer a { color: #FFFFFF; }
.footer__name { margin: 0 0 6px !important; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; color: #FFFFFF; }
.footer__label { margin: 0 0 6px !important; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }

/* ---------- Mentions légales ---------- */
.legal-top { background: var(--navy); color: #FFFFFF; }
.legal-top__in { max-width: 880px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.legal-top a { color: #FFFFFF; text-decoration: none; }
.legal-top__name { padding: 12px 0; font-weight: 700; font-size: 19px; letter-spacing: 0.03em; text-transform: uppercase; }
.legal-top__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; }
.legal { background: var(--paper); min-height: 100vh; }
.legal__in { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { margin: 0; font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.legal .legal__date { margin: 14px 0 48px; font-size: 14px; color: #4A6480; }
.legal section { padding: 28px 0; border-top: 1px solid #D5DEE7; }
.legal section:last-of-type { border-bottom: 1px solid #D5DEE7; }
.legal h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.legal p { margin: 0; font-size: 16px; line-height: 1.7; color: #23405F; }
.legal a { color: var(--navy); }

/* ---------- Écrans intermédiaires ---------- */
@media (max-width: 1100px) {
  :root { --G: clamp(24px, 5vw, 60px); }
}
@media (max-width: 1000px) {
  .hero__desc { display: none; }
  .intro { display: block; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .hero { height: clamp(560px, 100vh, 720px); height: clamp(560px, 100svh, 720px); }
  .hero__photo, .hero__cutout { object-position: 41.5% 0%; }
  .hero__text { top: auto; bottom: 56px; left: 20px; }
  .hero__title { font-size: 44px; }
  .hero__down { bottom: 8px; }
  .help { padding: 36px 0 40px; }
  .intro { padding: 0 20px 28px; font-size: 15px; }
  .grid { grid-template-columns: 1fr; row-gap: 32px; padding: 0 20px; }
  .help__item { padding-top: 16px; }
  .help__item h2 { font-size: 18px; }
  .help__item p { font-size: 15px; margin-bottom: 8px; }
  .link { font-size: 15px; }
  .footer { padding: 32px 0 44px; }
  .footer .grid { row-gap: 22px; }
}
