/* ==========================================================================
   Candidature Express — feuille de style unique
   Pas de framework : le site doit charger instantanément, y compris sur
   un téléphone en 4G, parce que la majorité du trafic viendra des petites
   annonces consultées sur mobile.
   ========================================================================== */

:root {
  --encre:      #10203a;  /* bleu nuit : sérieux, bancaire, suisse */
  --encre-doux: #4a5a72;  /* texte secondaire */
  --rouge:      #d8232a;  /* rouge suisse : accent, boutons, urgence */
  --rouge-fonce:#b31b21;
  --fond:       #ffffff;
  --fond-doux:  #f5f7fa;
  --bordure:    #dfe5ec;
  --vert:       #0f7b52;  /* validations, garanties */
  --rayon:      12px;
  --ombre:      0 2px 8px rgba(16, 32, 58, .06);
  --ombre-forte:0 12px 32px rgba(16, 32, 58, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.conteneur { width: min(1080px, 100% - 40px); margin-inline: auto; }
.conteneur-etroit { width: min(760px, 100% - 40px); margin-inline: auto; }

section { padding: 72px 0; }
section.dense { padding: 56px 0; }
.fond-doux { background: var(--fond-doux); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
p  { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--rouge); }

.sous-titre {
  font-size: 1.12rem;
  color: var(--encre-doux);
  max-width: 62ch;
  margin-bottom: 28px;
}
.centre { text-align: center; }
.centre .sous-titre { margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
  color: var(--encre); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--rouge); }
.entete nav { display: flex; align-items: center; gap: 24px; }
.entete nav a {
  color: var(--encre-doux); text-decoration: none;
  font-size: .94rem; font-weight: 600;
}
.entete nav a:hover { color: var(--encre); }
@media (max-width: 720px) { .lien-nav { display: none; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--rouge); color: #fff;
  padding: 15px 30px; border-radius: var(--rayon);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  box-shadow: 0 4px 14px rgba(216, 35, 42, .26);
}
.bouton:hover { background: var(--rouge-fonce); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(216,35,42,.32); }
.bouton.petit { padding: 11px 20px; font-size: .94rem; }
.bouton.large { width: 100%; }
.bouton.secondaire {
  background: #fff; color: var(--encre);
  border: 1.5px solid var(--bordure); box-shadow: none;
}
.bouton.secondaire:hover { background: var(--fond-doux); border-color: var(--encre-doux); }

/* ---------- Bandeau du haut ---------- */
.bandeau {
  background: var(--encre); color: #fff;
  text-align: center; font-size: .9rem; font-weight: 600;
  padding: 9px 20px;
}

/* ---------- Héros ---------- */
.heros { padding: 64px 0 56px; }
.heros-grille {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .heros-grille { grid-template-columns: 1fr; gap: 36px; } }

.etiquette {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fdeaea; color: var(--rouge-fonce);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; margin-bottom: 20px;
}
.heros h1 { margin-bottom: 18px; }
.heros h1 em { font-style: normal; color: var(--rouge); }

.points-cles { list-style: none; margin: 26px 0 30px; }
.points-cles li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 11px; font-size: 1.02rem;
}
.points-cles li::before {
  content: "✓"; flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 3px;
  background: var(--vert); color: #fff;
  border-radius: 50%; font-size: .78rem; font-weight: 700;
  display: grid; place-items: center;
}

.rassurance {
  font-size: .9rem; color: var(--encre-doux); margin-top: 16px;
}

/* Carte visuelle du héros : aperçu du livrable */
.apercu {
  background: #fff; border: 1px solid var(--bordure);
  border-radius: 16px; box-shadow: var(--ombre-forte);
  padding: 26px; transform: rotate(-1.2deg);
}
.apercu-entete {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--encre); padding-bottom: 10px; margin-bottom: 14px;
}
.apercu-nom { font-weight: 800; font-size: 1.05rem; }
.apercu-role { font-size: .78rem; color: var(--encre-doux); text-transform: uppercase; letter-spacing: .08em; }
.ligne-fictive { height: 8px; background: #e8edf3; border-radius: 4px; margin-bottom: 9px; }
.ligne-fictive.courte { width: 58%; }
.ligne-fictive.moyenne { width: 82%; }
.ligne-fictive.accent { background: #fcdcdd; width: 44%; }
.apercu-pied {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--bordure);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.jeton {
  background: var(--fond-doux); border: 1px solid var(--bordure);
  border-radius: 6px; padding: 4px 10px; font-size: .76rem; font-weight: 600;
  color: var(--encre-doux);
}

/* ---------- Bande de confiance ---------- */
.bande-confiance {
  border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure);
  background: var(--fond-doux); padding: 22px 0;
}
.bande-confiance ul {
  list-style: none; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px 40px;
}
.bande-confiance li {
  font-size: .92rem; font-weight: 600; color: var(--encre-doux);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Problème ---------- */
.grille-problemes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  margin-top: 34px;
}
.carte-probleme {
  background: #fff; border: 1px solid var(--bordure);
  border-left: 3px solid var(--rouge);
  border-radius: var(--rayon); padding: 22px;
}
.carte-probleme p { color: var(--encre-doux); font-size: .97rem; }

/* ---------- Étapes ---------- */
.grille-etapes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px;
  margin-top: 38px; counter-reset: etape;
}
.etape { position: relative; padding-top: 52px; }
.etape::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--encre); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.etape p { color: var(--encre-doux); font-size: .97rem; }

/* ---------- Offres ---------- */
.grille-offres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px; margin-top: 40px; align-items: start;
}
.offre {
  background: #fff; border: 1.5px solid var(--bordure);
  border-radius: 16px; padding: 30px 26px 26px;
  display: flex; flex-direction: column; height: 100%;
  position: relative; box-shadow: var(--ombre);
}
.offre.vedette {
  border-color: var(--rouge); border-width: 2px;
  box-shadow: var(--ombre-forte);
}
.ruban {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--rouge); color: #fff;
  font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.offre h3 { font-size: 1.22rem; margin-bottom: 6px; }
.offre-pour { font-size: .88rem; color: var(--encre-doux); margin-bottom: 18px; min-height: 40px; }
.prix { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.prix .montant { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; }
.prix .devise { font-size: 1.05rem; font-weight: 700; color: var(--encre-doux); }
.prix-note { font-size: .84rem; color: var(--encre-doux); margin-bottom: 20px; }
.prix-barre { text-decoration: line-through; opacity: .55; }
.offre ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.offre ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .95rem; margin-bottom: 10px;
}
.offre ul li::before {
  content: "✓"; color: var(--vert); font-weight: 800; flex-shrink: 0;
}
.offre ul li.absent { color: #9aa6b6; }
.offre ul li.absent::before { content: "—"; color: #c3cdd9; }

.options {
  margin-top: 36px; background: #fff; border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 22px 26px;
}
.options h3 { margin-bottom: 14px; }
.options ul { list-style: none; }
.options li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 9px 0; border-bottom: 1px dashed var(--bordure); font-size: .96rem;
}
.options li:last-child { border-bottom: none; }
.options li strong { white-space: nowrap; }

/* ---------- Garantie ---------- */
.garantie {
  background: #eaf6f1; border: 1px solid #b9ded0;
  border-radius: var(--rayon); padding: 26px 28px;
  display: flex; gap: 20px; align-items: flex-start; margin-top: 40px;
}
.garantie .icone { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.garantie h3 { color: var(--vert); }
.garantie p { color: #235b47; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 34px; }
.faq details {
  background: #fff; border: 1px solid var(--bordure);
  border-radius: var(--rayon); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 18px 22px; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font-size: 1.01rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rouge); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--bordure); }
.faq .reponse { padding: 18px 22px; color: var(--encre-doux); font-size: .97rem; }

/* ---------- Bloc auteur ---------- */
.auteur {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border: 1px solid var(--bordure);
  border-radius: 16px; padding: 30px; box-shadow: var(--ombre);
}
@media (max-width: 620px) { .auteur { flex-direction: column; gap: 16px; } }
.auteur .initiales {
  width: 66px; height: 66px; flex-shrink: 0; border-radius: 50%;
  background: var(--encre); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
}
.auteur p { color: var(--encre-doux); font-size: .99rem; }

/* ---------- Appel final ---------- */
.final { background: var(--encre); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #b7c3d4; max-width: 56ch; margin-inline: auto; }
.final .bouton { margin-top: 26px; }
.final .rassurance { color: #8d9cb2; }

/* ---------- Pied de page ---------- */
.pied {
  border-top: 1px solid var(--bordure); padding: 34px 0;
  font-size: .9rem; color: var(--encre-doux);
}
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.pied a { color: var(--encre-doux); text-decoration: none; }
.pied a:hover { color: var(--rouge); text-decoration: underline; }
.pied nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Pages de contenu (CGV, mentions, merci) ---------- */
.page-texte { padding: 56px 0 72px; }
.page-texte h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-texte .maj { color: var(--encre-doux); font-size: .9rem; margin-bottom: 34px; }
.page-texte h2 { font-size: 1.28rem; margin-top: 34px; margin-bottom: 10px; }
.page-texte ul, .page-texte ol { margin: 0 0 16px 22px; }
.page-texte li { margin-bottom: 7px; }
.page-texte table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: .95rem; }
.page-texte th, .page-texte td { border: 1px solid var(--bordure); padding: 9px 12px; text-align: left; }
.page-texte th { background: var(--fond-doux); font-weight: 700; }

/* ---------- Page de confirmation ---------- */
.confirmation { text-align: center; padding: 72px 0; }
.confirmation .coche {
  width: 76px; height: 76px; margin: 0 auto 24px;
  background: var(--vert); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.4rem;
}
.encadre-action {
  background: #fff8e6; border: 1.5px solid #f0d089;
  border-radius: var(--rayon); padding: 26px 28px;
  text-align: left; margin: 34px 0;
}
.encadre-action h3 { color: #8a6314; }
