/* Afrique Antilles Connexions — landing page
   Palette officielle : Encre #171719 · Ivoire #F6F0E7 · Corail #E85D4A · Or mat #B7924B
   Typographies : Nimbus Roman (titres) · Nimbus Sans (texte, formulaire, boutons) */

@font-face { font-family: "Nimbus Roman"; src: url("../fonts/NimbusRoman-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nimbus Roman"; src: url("../fonts/NimbusRoman-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nimbus Roman"; src: url("../fonts/NimbusRoman-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Nimbus Sans"; src: url("../fonts/NimbusSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nimbus Sans"; src: url("../fonts/NimbusSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "AAC Script"; src: url("../fonts/Hurricane-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --encre: #171719;
  --ivoire: #F6F0E7;
  --corail: #E85D4A;
  --or: #B7924B;

  --encre-80: #3a3936;
  --encre-60: #5f5c57;
  --encre-45: #7d7870;
  --ligne: rgba(23, 23, 25, .14);
  --ligne-forte: rgba(23, 23, 25, .28);
  --papier: #FBF8F2;
  --corail-fonce: #D44B39;
  --or-clair: #D9B574;
  --erreur: #B3321F;

  --serif: "Nimbus Roman", "Nimbus Roman No9 L", "Times New Roman", Times, serif;
  --sans: "Nimbus Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "AAC Script", "Snell Roundhand", cursive;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--ivoire);
  background-image:
    radial-gradient(120% 90% at 78% 38%, rgba(255, 252, 246, .95) 0%, rgba(255, 252, 246, 0) 58%),
    radial-gradient(80% 60% at 0% 100%, rgba(183, 146, 75, .07) 0%, rgba(183, 146, 75, 0) 70%);
  color: var(--encre);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* grain de papier, très discret */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.18  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(183, 146, 75, .28); }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--encre); color: var(--ivoire);
  font-size: .875rem; text-decoration: none; border-radius: 3px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- décor */
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.decor__palm {
  position: absolute;
  top: -6%;
  right: -9%;
  width: min(64vw, 820px);
  height: auto;
  opacity: .085;
  transform: rotate(4deg);
  transform-origin: top right;
  animation: sway 14s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(3deg); } to { transform: rotate(5.5deg) translateY(6px); } }

/* ---------------------------------------------------------------- en-tête */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px) var(--gutter) 0;
}
.brand { display: inline-block; line-height: 0; border-radius: 2px; }
.brand img { width: clamp(176px, 19vw, 262px); height: auto; }
.brand:focus-visible { outline: 2px solid var(--or); outline-offset: 8px; }
.issue {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--encre-60);
  display: flex;
  align-items: center;
  gap: 14px;
}
.issue::before { content: ""; width: 44px; height: 1px; background: var(--or); }
.issue strong { font-weight: 700; color: var(--encre); letter-spacing: .18em; }

/* ---------------------------------------------------------------- héros */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vh, 56px) var(--gutter) clamp(32px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  column-gap: clamp(40px, 5vw, 96px);
}

.pitch { max-width: 720px; container-type: inline-size; }

.eyebrow {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--encre-60);
}
.eyebrow::after { content: ""; flex: 0 0 clamp(48px, 7vw, 92px); height: 1px; background: var(--or); }

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 11.9cqi, 6.4rem); /* « Recevez gratuitement » tient sur une ligne */
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--encre);
  font-kerning: normal;
}

.lead {
  margin: clamp(18px, 2vw, 26px) 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.3rem);
  line-height: 1.5;
  color: var(--encre-80);
}

.assurance {
  list-style: none;
  margin: clamp(16px, 1.8vw, 22px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--encre);
}
.assurance li { display: inline-flex; align-items: center; }
.assurance li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin: 0 16px;
  border-radius: 50%;
  background: var(--or);
}

/* ---------------------------------------------------------------- formulaire */
.signup { margin-top: clamp(24px, 2.6vw, 34px); max-width: 520px; position: relative; }
.form { display: grid; gap: 16px; }

.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid rgba(183, 146, 75, .55);
  border-radius: 8px;
  background: rgba(255, 255, 255, .35);
}
.channel { position: relative; }
.channel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.channel span {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  border-radius: 5px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--encre);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.channel svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.channel input:checked + span { background: var(--or); color: #fff; box-shadow: 0 6px 16px -8px rgba(122, 90, 30, .7); }
.channel input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }

.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; color: var(--encre); }
.field label > span[aria-hidden] { color: var(--or); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  font: 400 1.0625rem/1.2 var(--sans); /* ≥ 16 px : pas de zoom sur iPhone */
  color: var(--encre);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--ligne);
  border-radius: 6px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(23, 23, 25, .04);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #9d978d; opacity: 1; }
.field input:hover { border-color: var(--ligne-forte); }
.field input:focus {
  background: #fff;
  border-color: var(--or);
  box-shadow: 0 0 0 4px rgba(183, 146, 75, .18);
}
.field.is-invalid input { border-color: var(--erreur); box-shadow: 0 0 0 4px rgba(179, 50, 31, .1); }
.field__error { margin: 0; min-height: 0; font-size: .875rem; color: var(--erreur); }
.field__error:empty { display: none; }
.field__hint { margin: 0; font-size: .875rem; color: var(--encre-60); }
.field__hint button {
  font: inherit; color: var(--encre); background: none; border: 0; padding: 0;
  text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; cursor: pointer;
}

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.45; color: var(--encre-80); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--or); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cta {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%;
  min-height: 62px;
  margin-top: 6px;
  padding: 0 28px;
  font: 400 1.125rem/1 var(--sans);
  letter-spacing: .01em;
  color: #fff;
  background: var(--corail);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -14px rgba(196, 64, 44, .75);
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cta::after { /* reflet au survol */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.cta:hover { background: var(--corail-fonce); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 20px 36px -16px rgba(196, 64, 44, .85); }
.cta:hover::after { transform: translateX(120%); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.cta__arrow { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cta:hover .cta__arrow { transform: translateX(5px); }
.cta__spinner {
  display: none;
  width: 22px; height: 22px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.cta.is-loading { pointer-events: none; }
.cta.is-loading .cta__arrow { display: none; }
.cta.is-loading .cta__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.note { margin: -4px 0 0; font-size: .9375rem; color: var(--encre-60); }
.form__error {
  margin: 0;
  padding: 12px 16px;
  font-size: .9375rem;
  color: var(--erreur);
  background: rgba(179, 50, 31, .06);
  border-left: 2px solid var(--erreur);
  border-radius: 2px;
}
.legal { margin: 2px 0 0; font-size: .8125rem; line-height: 1.55; color: var(--encre-45); max-width: 46em; }
.legal a { color: var(--encre-60); text-decoration-color: rgba(183, 146, 75, .7); text-underline-offset: 2px; }
.legal a:hover { color: var(--encre); }

/* succès */
.success {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3.4vw, 40px);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(183, 146, 75, .45);
  border-radius: 8px;
  box-shadow: 0 30px 60px -40px rgba(80, 55, 20, .5);
  outline: none;
  animation: rise .7s var(--ease) both;
}
.success__mark { width: 52px; height: 52px; margin-bottom: 22px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.success__mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s .1s var(--ease) forwards; }
.success__mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__kicker { margin: 0 0 10px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--or); }
.success__title { margin: 0; font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.1rem)/1 var(--serif); letter-spacing: -.03em; }
.success__text { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--encre-80); }
.success__text strong { font-weight: 700; color: var(--encre); overflow-wrap: anywhere; }
.success__script { margin: 18px 0 0; font: 400 2.3rem/1 var(--script); color: var(--or); }

/* ---------------------------------------------------------------- scène / couverture */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  padding: 24px clamp(0px, 7vw, 118px) 128px 0;
  perspective: 1600px;
}
.stage__arc { position: absolute; inset: -6% -12% auto -10%; pointer-events: none; }
.stage__arc path { fill: none; stroke: var(--or); stroke-width: 1; opacity: .38; }

.cover {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  margin: 0;
  width: min(420px, 30vw);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(4deg);
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
  will-change: transform;
}
.cover::before { /* ombre portée diffuse, décalée comme une lumière venue d'en haut à gauche */
  content: "";
  position: absolute;
  inset: 6% -3% -4% 5%;
  background: rgba(58, 40, 14, .5);
  filter: blur(34px);
  border-radius: 8px;
  transform: translate(14px, 26px) translateZ(-1px);
  z-index: -1;
}
.cover__book {
  position: relative;
  border-radius: 2px 3px 3px 2px;
  background: var(--papier);
  box-shadow:
    0 0 0 1px rgba(23, 23, 25, .05),
    1px 1px 0 rgba(255, 255, 255, .6) inset,
    3px 3px 0 -1px #efe9de,
    5px 5px 0 -2px #e4ddcf,
    7px 7px 0 -3px #ede7db,
    0 2px 4px rgba(23, 23, 25, .08),
    0 12px 24px -8px rgba(23, 23, 25, .22);
}
.cover__book img { width: 100%; height: auto; border-radius: inherit; }
.cover__book::after { /* dos, reflet papier couché */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 23, 25, .16) 0, rgba(255, 255, 255, .22) 1.3%, rgba(23, 23, 25, .05) 2.6%, transparent 5%),
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .16) 47%, transparent 58%);
  mix-blend-mode: soft-light;
}

.aside {
  position: absolute;
  right: 0;
  top: 57%;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--encre-80);
}
.aside::after { content: ""; width: 56px; height: 1px; margin-top: 12px; background: var(--or); }

.script {
  position: absolute;
  right: -1%;
  bottom: 0;
  margin: 0;
  font: 400 clamp(2.1rem, 1.3rem + 1.9vw, 3.1rem)/.9 var(--script);
  color: var(--or);
  transform: rotate(-7deg);
  text-align: left;
}
.script span { display: block; padding-left: .7em; }
.script::after { content: ""; display: block; width: 60px; height: 1px; margin: 14px 0 0 auto; background: var(--or); opacity: .7; }

/* ---------------------------------------------------------------- pied de page */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .8125rem;
  color: var(--encre-45);
  border-top: 1px solid rgba(183, 146, 75, .25);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--encre); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- apparitions */
.reveal { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.cover.reveal { animation-name: cover-in; animation-duration: 1.3s; animation-fill-mode: backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes cover-in {
  from { opacity: 0; transform: translateY(28px) rotate(9deg) scale(.97); }
  to { opacity: 1; }
}
.script.reveal { animation-name: fade; animation-duration: 1.6s; }
@keyframes fade { from { opacity: 0; } }

/* écrans d'ordinateur peu hauts : le bouton reste au-dessus de la ligne de flottaison */
@media (min-width: 881px) and (max-height: 820px) {
  .brand img { width: 214px; }
  .title { font-size: clamp(3rem, 10.6cqi, 5.4rem); }
  .field input[type="text"], .field input[type="email"], .field input[type="tel"] { min-height: 52px; }
  .cta { min-height: 58px; }
  .cover { width: min(380px, 28vw); }
}

/* ---------------------------------------------------------------- tablette */
@media (max-width: 1100px) {
  .aside { display: none; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .cover { width: min(380px, 34vw); }
  .stage { padding-right: 0; }
}

/* ---------------------------------------------------------------- mobile : une colonne
   Ordre : logo, sur-titre, titre, texte, réassurance, formulaire, bouton, couverture */
@media (max-width: 880px) {
  .site-header { padding-top: 22px; }
  .issue { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: clamp(30px, 7vw, 48px); }
  .pitch { max-width: 600px; }
  .title { font-size: clamp(2.8rem, 11.6vw, 4.6rem); line-height: .94; }
  .signup { max-width: none; }
  .stage { min-height: 0; margin-top: clamp(44px, 10vw, 72px); padding: 10px 0 8px; flex-direction: column; }
  .stage__arc { inset: 0 0 auto 0; }
  .cover { width: min(76vw, 400px); transform: rotate(3deg); }
  .script { position: relative; right: auto; bottom: auto; margin-top: 44px; white-space: nowrap; transform: rotate(-6deg); font-size: clamp(2.3rem, 10vw, 3rem); }
  .decor__palm { width: 92vw; right: -30vw; top: -2%; opacity: .07; }
}

@media (max-width: 520px) {
  .eyebrow { font-size: .6875rem; letter-spacing: .2em; gap: 12px; white-space: nowrap; }
  .eyebrow::after { flex: 1 1 24px; max-width: 56px; }
  .title { font-size: clamp(2.6rem, 13.4vw, 3.7rem); }
  .assurance { font-size: .6875rem; letter-spacing: .16em; column-gap: 18px; }
  .assurance li::before, .assurance li + li::before {
    content: ""; width: 5px; height: 5px; margin: 0 9px 0 0; border-radius: 50%; background: var(--or);
  }
  .site-footer { justify-content: center; text-align: center; }
}

@media (max-width: 360px) {
  .assurance { letter-spacing: .1em; column-gap: 14px; }
}

@media (hover: none) {
  .cta::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- pages de texte (légal, désinscription) */
.doc {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 72px;
}
.doc h1 { margin: 0 0 12px; font: 700 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--serif); letter-spacing: -.035em; }
.doc .eyebrow { margin-bottom: 20px; }
.doc h2 { margin: 44px 0 10px; font: 700 1.5rem/1.15 var(--serif); letter-spacing: -.01em; }
.doc p, .doc li { color: var(--encre-80); font-size: 1.0625rem; line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--or); }
.doc a { text-decoration-color: var(--or); text-underline-offset: 3px; }
.doc .todo { background: rgba(232, 93, 74, .12); padding: 0 4px; border-radius: 2px; color: var(--encre); }
.doc .updated { color: var(--encre-45); font-size: .875rem; }
.doc .back { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; font-size: .9375rem; text-decoration: none; border-bottom: 1px solid var(--or); padding-bottom: 3px; }
.doc .cta { max-width: 360px; margin-top: 28px; }
