/* Cavalou — site web. Couleurs et police de l'application. */
:root {
  --vert: #1f6f5c;
  --vert-clair: #2e8f74;
  --vert-nuit: #0e3a30;
  --menthe: #dcefe8;
  --mandarine: #f08a4b;
  --mandarine-fonce: #d96f2f;
  --creme: #f6f5f1;
  --fond: var(--creme);
  --surface: #ffffff;
  --texte: #14211c;
  --doux: #56645e;
  --bord: #e4e2da;
  --ombre: 0 1px 2px rgba(14, 58, 48, .06), 0 12px 32px rgba(14, 58, 48, .08);
  --rayon: 22px;
  --large: 1120px;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #101312;
    --surface: #191d1b;
    --texte: #eef1ef;
    --doux: #a4b0aa;
    --bord: #29302d;
    --menthe: #1c3a31;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.6 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vert-clair); }
:focus-visible { outline: 3px solid var(--mandarine); outline-offset: 3px; border-radius: 6px; }
.conteneur { max-width: var(--large); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .conteneur { padding: 0 16px; } }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--vert-nuit) 82%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.entete .conteneur { display: flex; align-items: center; gap: 20px; height: 66px; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.marque img { width: 34px; height: 34px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; }
.entete .bouton { white-space: nowrap; }
@media (max-width: 760px) {
  .nav { display: none; }
  .entete .bouton { margin-left: auto; padding: 9px 15px; font-size: 14px; box-shadow: none; }
}

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  background: var(--mandarine); color: #fff;
  box-shadow: 0 8px 24px rgba(240, 138, 75, .35);
  transition: transform .15s ease, background .15s ease;
}
.bouton:hover { background: var(--mandarine-fonce); transform: translateY(-1px); }
.bouton.discret { background: rgba(255, 255, 255, .12); box-shadow: none; color: #fff; }
.bouton.discret:hover { background: rgba(255, 255, 255, .2); }
.bouton svg { width: 18px; height: 18px; }

/* Héros */
.heros {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--vert-clair) 0%, var(--vert) 45%, var(--vert-nuit) 100%);
  border-radius: 0 0 44px 44px;
}
.heros .lignes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.heros .conteneur {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 0;
}
.heros h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -2px; margin: 0 0 20px; font-weight: 800; }
.heros h1 em { font-style: normal; color: #ffd2b5; }
.heros .chapeau { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 520px; margin: 0 0 28px; }
.saisie {
  background: #fff; color: #14211c; border-radius: 26px; padding: 18px 18px 18px 22px;
  display: flex; align-items: center; gap: 14px; max-width: 540px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.saisie p { margin: 0; flex: 1; font-size: 18px; font-weight: 600; min-height: 58px; display: flex; align-items: center; }
.saisie .curseur { display: inline-block; width: 2px; height: 1.1em; background: var(--vert); margin-left: 2px; vertical-align: -2px; animation: clignote 1s steps(1) infinite; }
.saisie .fleche { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--mandarine); display: grid; place-items: center; }
.saisie .fleche svg { width: 22px; height: 22px; color: #fff; }
@keyframes clignote { 50% { opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.preuves { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 72px; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; }
.preuves span::before { content: "✓"; color: #ffd2b5; margin-right: 7px; }

.telephone {
  width: min(330px, 78vw); margin: 0 auto;
  border-radius: 52px; padding: 11px; background: #0b0d0c;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35), inset 0 0 0 2px #2a2f2c;
}
/* L'image garde les proportions de l'écran : rien n'est rogné, quelle que soit la largeur. */
.telephone img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 42px; }
.heros .telephone { margin-bottom: -60px; transform: rotate(2deg); }
@media (max-width: 900px) {
  .heros .conteneur { grid-template-columns: 1fr; padding-top: 48px; }
  .heros .telephone { margin: 0 auto -40px; transform: none; }
  .preuves { margin-bottom: 36px; }
}

/* Sections */
section { padding: 110px 0 0; }
.surtitre { color: var(--mandarine); font-weight: 800; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 16px; font-weight: 800; }
.intro { color: var(--doux); font-size: 19px; max-width: 640px; margin: 0 0 44px; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.etape { background: var(--surface); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); }
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--menthe); color: var(--vert-clair); font-weight: 800; margin-bottom: 16px;
}
.etape h3 { margin: 0 0 6px; font-size: 20px; }
.etape p { margin: 0; color: var(--doux); }
.etape q { display: block; margin-top: 12px; font-weight: 600; color: var(--texte); quotes: "« " " »"; }

.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte { background: var(--surface); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); }
.carte .icone { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--menthe); margin-bottom: 18px; }
.carte .icone svg { width: 24px; height: 24px; color: var(--vert-clair); }
.carte h3 { margin: 0 0 8px; font-size: 19px; }
.carte p { margin: 0; color: var(--doux); font-size: 16px; }
@media (max-width: 900px) { .etapes, .grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .etapes, .grille { grid-template-columns: 1fr; } section { padding-top: 80px; } }

.vitrine { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vitrine .telephones { display: flex; justify-content: center; gap: 22px; }
.vitrine .telephone { width: min(260px, 42vw); border-radius: 42px; padding: 9px; }
.vitrine .telephone img { border-radius: 34px; }
@media (max-width: 600px) {
  .vitrine .telephone { border-radius: 30px; padding: 6px; }
  .vitrine .telephone img { border-radius: 25px; }
}
.vitrine .telephone:last-child { margin-top: 60px; }
.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.liste li { display: flex; gap: 14px; }
.liste li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--mandarine); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mandarine) 18%, transparent); }
.liste strong { display: block; }
.liste span { color: var(--doux); }
@media (max-width: 900px) { .vitrine { grid-template-columns: 1fr; gap: 40px; } }

.reseaux { margin-top: 56px; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.reseaux strong { font-size: 34px; letter-spacing: -1px; color: var(--vert-clair); }
.reseaux p { margin: 0; color: var(--doux); flex: 1; min-width: 240px; }

/* Cavalou+ */
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.offre { position: relative; background: var(--surface); border-radius: var(--rayon); padding: 30px 28px; box-shadow: var(--ombre); border: 2px solid transparent; }
.offre.vedette { border-color: var(--vert-clair); }
.offre .badge { position: absolute; top: -13px; left: 26px; background: var(--vert-clair); color: #fff; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.offre h3 { margin: 0; font-size: 18px; }
.offre .prix { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; margin: 8px 0 0; }
.offre .prix small { font-size: 17px; font-weight: 600; color: var(--doux); letter-spacing: 0; }
.offre .detail { color: var(--doux); margin: 4px 0 0; font-size: 15px; }
.inclus { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; color: var(--doux); }
.inclus span::before { content: "✓"; color: var(--vert-clair); font-weight: 800; margin-right: 9px; }
.gratuit { margin-top: 20px; color: var(--doux); font-size: 15px; }
@media (max-width: 900px) { .offres { grid-template-columns: 1fr; } .inclus { grid-template-columns: 1fr; } }

/* Questions */
.questions { max-width: 820px; }
.questions details { background: var(--surface); border-radius: 18px; box-shadow: var(--ombre); margin-bottom: 12px; }
.questions summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--vert-clair); transition: transform .2s; }
.questions details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.questions details p { margin: 0; padding: 0 24px 22px; color: var(--doux); }

/* Appel final */
.appel { margin-top: 110px; }
.appel .boite {
  position: relative; overflow: hidden; border-radius: 36px; color: #fff; text-align: center; padding: 72px 24px;
  background: linear-gradient(160deg, var(--vert-clair), var(--vert-nuit));
}
.appel h2 { color: #fff; }
.appel p { color: rgba(255, 255, 255, .8); font-size: 19px; margin: 0 auto 28px; max-width: 560px; }

/* Pied de page */
.pied { margin-top: 90px; padding: 44px 0 56px; border-top: 1px solid var(--bord); color: var(--doux); font-size: 15px; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.pied .marque { color: var(--texte); font-size: 18px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--texte); }

/* Pages de texte (confidentialité, conditions, sources) */
.page { padding: 64px 0 0; }
.page .conteneur { max-width: 820px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 8px; }
.page h2 { font-size: 23px; letter-spacing: -.3px; margin: 44px 0 10px; }
.page .maj { color: var(--doux); margin: 0 0 30px; }
.page p, .page li { color: var(--texte); }
.page .resume { background: var(--menthe); border-radius: var(--rayon); padding: 20px 24px; margin: 0 0 12px; }
.tableau { overflow-x: auto; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); margin: 18px 0; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.page th, .page td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.page tr:last-child td { border-bottom: 0; }
.page th { color: var(--doux); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .saisie .curseur { animation: none; }
  .bouton { transition: none; }
}
