/* ==================================================================
   CLE CANADA - SITE VITRINE

   Parti pris : les PHOTOS portent le site, le texte reste sobre. Le rouge
   du logo sert d'accent, jamais de fond degrade. Aucun degrade decoratif,
   aucun emoji : le logo et les photos suffisent.

   Un candidat ouest-africain consulte souvent depuis un telephone, avec
   une connexion lente et un forfait compte. Le site est donc construit
   MOBILE D'ABORD : une seule colonne par defaut, les grilles ne se
   deploient qu'a partir de 760 px.
   ================================================================== */

:root {
  --rouge: #d21f26;
  --rouge-fonce: #a3161c;
  --rouge-pale: #fdf0f0;
  --nuit: #101828;
  --encre: #1a2233;
  --gris: #5a6478;
  --gris-clair: #f2f4f7;
  --bord: #e3e7ee;
  --blanc: #fff;

  --r: 12px;
  --ombre: 0 1px 3px rgba(16,24,40,.06), 0 8px 28px rgba(16,24,40,.07);
  --ombre-forte: 0 18px 48px rgba(16,24,40,.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Sora', 'Manrope', sans-serif;
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .55em;
  font-weight: 800;
}
/* clamp() : le titre s'adapte a la largeur sans point de rupture brutal. */
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 2.6vw, 1.2rem); }
p  { margin: 0 0 1em; }
a  { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; border-radius: 3px; }

/* ---------- En-tete ---------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bord);
}
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo img { height: 38px; width: auto; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu a {
  color: var(--encre); font-size: 14.5px; font-weight: 600;
  padding: 9px 13px; border-radius: 8px; transition: background .18s, color .18s;
}
.menu a:hover { background: var(--gris-clair); text-decoration: none; }
.menu a.on { color: var(--rouge); background: var(--rouge-pale); }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; background: none; border: 0; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--encre); border-radius: 2px; transition: .22s; }
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 9px; font-weight: 700; font-size: 15px;
  font-family: inherit; cursor: pointer; border: 0; transition: .2s;
  white-space: nowrap; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-r { background: var(--rouge); color: #fff; }
.btn-r:hover { background: var(--rouge-fonce); }
.btn-b { background: var(--nuit); color: #fff; }
.btn-b:hover { background: #1d2939; }
.btn-blanc { background: #fff; color: var(--rouge); }
.btn-blanc:hover { background: var(--gris-clair); }
.btn-clair { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-clair:hover { background: rgba(255,255,255,.24); }
.btn-ligne { background: transparent; color: var(--encre); border: 1.5px solid var(--bord); }
.btn-ligne:hover { border-color: var(--rouge); color: var(--rouge); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-bloc { width: 100%; }

/* ---------- Heros avec photo ---------- */
.heros { position: relative; overflow: hidden; background: var(--nuit); }
.heros-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
/* Un voile sombre du cote du texte : sans lui, un titre blanc sur une
   photo claire devient illisible. */
.heros::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,24,40,.93) 0%, rgba(16,24,40,.78) 45%, rgba(16,24,40,.35) 100%);
}
.heros .wrap { position: relative; z-index: 2; padding-top: 68px; padding-bottom: 74px; }
.heros h1 { color: #fff; margin-bottom: .4em; }
.heros .chapeau { font-size: 17.5px; color: rgba(255,255,255,.86); max-width: 34em; margin-bottom: 26px; }
.heros-actions { display: flex; gap: 11px; flex-wrap: wrap; }

/* Carte de suivi posee dans le heros : c'est l'action la plus frequente
   d'un client existant, elle merite le premier ecran. */
.carte-suivi {
  margin-top: 34px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 24px; backdrop-filter: blur(8px);
}
.carte-suivi h3 { color: #fff; font-size: 1.05rem; margin-bottom: 5px; }
.carte-suivi p { color: rgba(255,255,255,.7); font-size: 13.5px; margin-bottom: 15px; }
.carte-suivi input {
  width: 100%; padding: 14px 16px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.1);
  color: #fff; font-size: 19px; font-family: inherit; letter-spacing: .12em;
  text-align: center; font-weight: 700; margin-bottom: 11px;
}
.carte-suivi input::placeholder { color: rgba(255,255,255,.36); letter-spacing: .08em; font-weight: 500; }
.carte-suivi input:focus { border-color: #fff; background: rgba(255,255,255,.16); outline: none; }
.carte-suivi .aide { font-size: 12px; color: rgba(255,255,255,.52); margin: 12px 0 0; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section.gris { background: var(--gris-clair); }
.section.nuit { background: var(--nuit); color: #fff; }
.section.nuit h2 { color: #fff; }

.titre { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.titre .sur {
  display: inline-block; color: var(--rouge); font-weight: 700; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 11px;
}
.titre p { color: var(--gris); font-size: 16.5px; margin: 0; }
.section.nuit .titre p { color: rgba(255,255,255,.72); }

/* Grilles : UNE COLONNE par defaut (mobile d'abord). */
.grille { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ---------- Cartes de profil, avec photo ---------- */
.profil {
  position: relative; overflow: hidden; border-radius: var(--r);
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff; background: var(--nuit);
  transition: transform .25s, box-shadow .25s;
}
.profil-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.profil::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,24,40,.92) 15%, rgba(16,24,40,.25) 75%);
}
.profil > * { position: relative; z-index: 2; }
.profil:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.profil:hover .profil-img { transform: scale(1.05); }
.profil h3 { color: #fff; margin-bottom: 6px; }
.profil p { color: rgba(255,255,255,.8); font-size: 14px; margin: 0 0 12px; }
.profil .lien { color: #fff; font-weight: 700; font-size: 14px; }

/* ---------- Cartes simples ---------- */
.carte {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r);
  padding: 26px; transition: box-shadow .25s, transform .25s;
}
.carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.carte h3 { margin-bottom: 8px; }
.carte p { color: var(--gris); font-size: 14.5px; margin: 0; }
.carte .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--rouge-pale); color: var(--rouge);
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}

/* ---------- Etapes ---------- */
.etapes { counter-reset: e; max-width: 780px; margin: 0 auto; }
.etape { position: relative; padding: 0 0 26px 56px; }
.etape::before {
  counter-increment: e; content: counter(e);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--rouge); color: #fff;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
}
/* Le trait qui relie les etapes : il montre un parcours, pas une liste. */
.etape::after {
  content: ''; position: absolute; left: 17.5px; top: 42px; bottom: 4px;
  width: 2px; background: var(--bord);
}
.etape:last-child { padding-bottom: 0; }
.etape:last-child::after { display: none; }
.etape h3 { margin-bottom: 5px; }
.etape p { color: var(--gris); font-size: 14.5px; margin: 0; }
.etape .note {
  display: inline-block; margin-top: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--rouge); background: var(--rouge-pale); padding: 5px 11px; border-radius: 6px;
}

/* ---------- Tarifs ---------- */
.tarif {
  background: var(--blanc); border: 1.5px solid var(--bord); border-radius: var(--r);
  padding: 30px 24px; text-align: center; transition: .25s;
}
.tarif:hover { border-color: var(--rouge); transform: translateY(-3px); box-shadow: var(--ombre); }
.tarif h3 { margin-bottom: 3px; }
.tarif .sous { color: var(--gris); font-size: 13.5px; margin-bottom: 18px; }
.tarif .prix {
  font-family: 'Sora', sans-serif; font-size: 1.95rem; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
}
.tarif .devise { font-size: .95rem; color: var(--gris); font-weight: 600; }
.tarif .apd { font-size: 12.5px; color: var(--gris); margin: 4px 0 20px; }

/* ---------- Temoignages ---------- */
.temoin {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--r);
  padding: 26px; display: flex; flex-direction: column;
}
.temoin .cit { font-size: 15px; line-height: 1.75; flex: 1; margin: 0 0 18px; }
.temoin .qui { display: flex; align-items: center; gap: 12px; }
.temoin .init {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--nuit); color: #fff; display: grid; place-items: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px;
}
.temoin .nom { font-weight: 700; font-size: 14.5px; }
.temoin .role { font-size: 12.5px; color: var(--gris); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; grid-template-columns: 1fr; }
.champ { display: flex; flex-direction: column; }
.champ label { font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.champ .indice { font-size: 12.5px; color: var(--gris); margin-top: 5px; }
.champ input, .champ select, .champ textarea {
  padding: 12px 14px; border: 1.5px solid var(--bord); border-radius: 9px;
  font-family: inherit; font-size: 15px; color: var(--encre); background: #fff;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-pale);
}
.champ textarea { resize: vertical; min-height: 110px; }
.obl { color: var(--rouge); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alerte { padding: 14px 18px; border-radius: 9px; font-size: 14.5px; margin-bottom: 22px; }
.alerte-ok { background: #e7f7ef; color: #05603a; border: 1px solid #a6f4c5; }
.alerte-ko { background: var(--rouge-pale); color: var(--rouge-fonce); border: 1px solid #fbc9c9; }
.alerte-info { background: #eff4ff; color: #1849a9; border: 1px solid #c7d7fe; }

/* ---------- Suivi de dossier ---------- */
.jauge { height: 8px; border-radius: 5px; background: var(--gris-clair); overflow: hidden; margin: 9px 0 5px; }
.jauge span { display: block; height: 100%; border-radius: 5px; background: var(--rouge); transition: width .8s ease; }

.jalons { position: relative; padding-left: 34px; }
.jalons::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--bord); }
.jalon { position: relative; padding-bottom: 26px; }
.jalon::before {
  content: ''; position: absolute; left: -29px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--bord);
}
.jalon.fait::before { background: #12b76a; border-color: #12b76a; }
.jalon.encours::before { background: var(--rouge); border-color: var(--rouge); box-shadow: 0 0 0 4px var(--rouge-pale); }
.jalon h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.jalon .date { font-size: 12.5px; color: var(--gris); }
.jalon.attente h4 { color: var(--gris); font-weight: 600; }
.jalon img {
  margin-top: 10px; border-radius: 8px; max-width: 260px;
  border: 1px solid var(--bord); cursor: zoom-in;
}

/* ---------- Bandeau d'appel ---------- */
.appel { background: var(--rouge); color: #fff; border-radius: 16px; padding: 44px 26px; text-align: center; }
.appel h2 { color: #fff; max-width: 18em; margin: 0 auto .45em; }
.appel p { color: rgba(255,255,255,.9); font-size: 16px; max-width: 34em; margin: 0 auto 22px; }
.appel .btns { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pied ---------- */
.pied { background: var(--nuit); color: rgba(255,255,255,.68); padding: 52px 0 0; font-size: 14.5px; }
.pied h4 { color: #fff; font-size: 14.5px; margin: 0 0 14px; font-weight: 700; }
.pied a { color: rgba(255,255,255,.74); }
.pied a:hover { color: #fff; }
.pied-grille { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 9px; }
.pied .logo img { height: 34px; margin-bottom: 14px; background: #fff; padding: 6px 9px; border-radius: 7px; }
.pied .agrement {
  border: 1px solid rgba(255,255,255,.16); border-radius: 9px;
  padding: 13px 15px; font-size: 12.5px; line-height: 1.6; margin-top: 14px;
}
.pied .agrement b { color: #fff; }
.pied-bas {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- Visionneuse d'image ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 200; background: rgba(16,24,40,.92);
  display: grid; place-items: center; padding: 20px; cursor: zoom-out;
}
.visionneuse img { max-width: 100%; max-height: 92vh; border-radius: 8px; }

/* ---------- Apparition au defilement ---------- */
.monte { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.monte.vu { opacity: 1; transform: none; }

/* Un mouvement qui derange doit pouvoir etre coupe. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .monte { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   A PARTIR DE 760 px : on deploie les grilles.
   Tout ce qui precede vaut pour le telephone.
   ================================================================== */
@media (min-width: 760px) {
  .wrap { padding: 0 26px; }
  .section { padding: 82px 0; }
  .heros .wrap { padding-top: 92px; padding-bottom: 100px; }

  .g2 { grid-template-columns: repeat(2, 1fr); }
  /* Deux colonnes sur tablette : a trois, les cartes deviennent si etroites
     qu'un prix ou un bouton deborde de sa colonne. Elles passent a trois
     plus loin, quand la place le permet vraiment. */
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: repeat(2, 1fr); }
  .champ.plein { grid-column: 1 / -1; }

  .appel { padding: 56px 44px; }
  .pied-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .carte-suivi { margin-top: 0; }
  .heros-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
  .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
}

/* Le menu devient une liste depliante en dessous de 900 px : sept entrees
   ne tiennent pas sur une barre etroite. */
@media (max-width: 899px) {
  .menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px; border-bottom: 1px solid var(--bord);
    box-shadow: var(--ombre); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .menu.ouvert { display: flex; }
  .menu a { padding: 13px 15px; }
  .menu .btn { margin-top: 6px; }
}
@media (min-width: 900px) { .burger { display: none; } }

/* Consentement du formulaire de preinscription. La case est large et
   toute la ligne est cliquable : sur telephone, viser une case de
   13 px au doigt est un obstacle de plus avant l'envoi. */
.consent {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 22px; padding: 15px 17px;
  background: var(--gris-clair); border-radius: 11px;
  font-size: 13.5px; line-height: 1.6; color: var(--gris);
  cursor: pointer;
}
.consent input { width: 19px; height: 19px; flex: none; margin-top: 1px; cursor: pointer; }
.consent a { color: var(--rouge); text-decoration: underline; }

/* Un bouton bloque doit SE VOIR bloque : sans cela le visiteur clique
   dans le vide et croit le site casse. */
.btn:disabled, .btn[disabled] {
  opacity: .45; cursor: not-allowed; box-shadow: none;
}

/* Bandeau illustre d'une section de contenu.

   La hauteur etait figee a 200 px pour une largeur d'environ 900 : un
   rapport de 4,5:1 qui rognait le haut du crane sur toute photo de
   personne. On lui donne un rapport tenable et on cadre sur le HAUT,
   la ou se trouvent les visages. */
.sect-img {
  aspect-ratio: 21 / 7;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 700px) {
  /* Sur telephone la bande est etroite : on la laisse un peu plus
     haute, sinon il ne reste qu'une tranche illisible. */
  .sect-img { aspect-ratio: 16 / 9; min-height: 170px; }
}
