/* L'Assureur Itinérant — maquette 13/10/2026 */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/baloo2-latin.woff2) format("woff2");
}

:root {
  --encre: #172235;
  --papier: #f7f9fa;
  --blanc: #ffffff;
  --sarcelle: #1f7a8c;        /* la 2 CV du logo */
  --sarcelle-fonce: #155a68;
  --coeur: #e81850;           /* les cœurs du logo (relevés sur la 2 CV « Just assuré »), avec parcimonie */
  --carte-grise: #e3ecdd;     /* fond du certificat d'immatriculation */
  --gris: #566273;
  --trait: #d5dde3;
  --mesure: 38rem;
  --rayon: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sarcelle-fonce); text-underline-offset: 3px; }
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--coeur);
  outline-offset: 3px;
}
.a-confirmer { background: #fff1b8; padding: 0 .25em; border-radius: 3px; }

.conteneur { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Titres : Archivo resserré, comme un panneau routier */
h1, h2, h3 { font-stretch: 85%; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 820; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 780; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 92%; }
p { margin: 0 0 1em; max-width: var(--mesure); }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--encre); flex: none; }
.logo-2cv { width: auto; height: 3.4rem; }
.logo-texte { display: grid; line-height: 1; text-align: center; }
.logo-nom { font-family: "Baloo 2", "Archivo", sans-serif; font-weight: 800; font-size: 1.62rem; line-height: 1.05; white-space: nowrap; }
.l-rose { color: var(--coeur); }
.logo-sous { font-style: italic; font-weight: 500; font-size: .8rem; color: var(--gris); margin-top: .2rem; white-space: nowrap; }
@media (max-width: 30rem) { .logo-2cv { height: 2.6rem; } .logo-nom { font-size: 1.22rem; } .logo-sous { font-size: .64rem; } }
.nav { display: none; gap: 1.15rem; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a { color: var(--encre); text-decoration: none; }
.nav a:hover { color: var(--sarcelle); }
.entete-tel { font-weight: 700; color: var(--encre); text-decoration: none; white-space: nowrap; }
@media (min-width: 80rem) { .nav { display: flex; } }

/* Boutons d'action */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.bouton {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3.25rem; padding: .8rem 1.3rem;
  border-radius: var(--rayon); border: 2px solid var(--sarcelle);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.bouton svg { width: 1.3rem; height: 1.3rem; flex: none; }
.bouton-plein { background: var(--sarcelle); color: var(--blanc); }
.bouton-plein:hover { background: var(--sarcelle-fonce); border-color: var(--sarcelle-fonce); }
.bouton-creux { background: transparent; color: var(--sarcelle-fonce); }
.bouton-creux:hover { background: var(--blanc); }

/* Accueil : la promesse et les deux pièces */
.une { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.une .conteneur { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .une .conteneur { grid-template-columns: 1.05fr 1fr; } }
.une .chapo { font-size: 1.2rem; color: var(--gris); }
.une .zone { margin-top: 1.25rem; font-size: .95rem; color: var(--gris); }

.pieces { position: relative; min-height: 25rem; max-width: 34rem; width: 100%; margin-inline: auto; }
.piece {
  position: absolute; width: 74%;
  border-radius: 8px; box-shadow: 0 1px 2px rgba(23,34,53,.12), 0 12px 28px -12px rgba(23,34,53,.35);
  font-size: .78rem; line-height: 1.35;
}
.piece-numero {
  position: absolute; top: -.9rem; left: -.9rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--coeur); color: var(--blanc); font-weight: 800; font-size: 1rem;
}
.carte-grise {
  top: 0; left: 0; transform: rotate(-4deg);
  padding: 1rem 1.1rem 1.2rem;
  background:
    repeating-linear-gradient(115deg, rgba(31,122,140,.06) 0 2px, transparent 2px 7px),
    var(--carte-grise);
  border: 1px solid #c7d6be;
}
.carte-grise .titre-piece { font-weight: 800; font-stretch: 80%; font-size: .95rem; letter-spacing: .02em; margin-bottom: .6rem; color: #2f4a3a; }
.champ { display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .5rem; padding: .22rem 0; border-top: 1px dashed #b9c9b0; }
.champ b { font-weight: 800; color: #2f4a3a; }
.champ span { color: #3e5246; }
.releve {
  right: 0; bottom: 0; transform: rotate(3deg);
  padding: 1rem 1.1rem 1.2rem; background: var(--blanc); border: 1px solid var(--trait);
}
.releve .titre-piece { font-weight: 800; font-stretch: 80%; font-size: .95rem; margin-bottom: .6rem; }
.releve .ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; border-top: 1px solid var(--trait); color: var(--gris); }
.releve .ligne strong { color: var(--encre); }
.releve .coef { font-size: 1.6rem; font-weight: 800; font-stretch: 85%; color: var(--sarcelle-fonce); }
@media (max-width: 30rem) { .pieces { min-height: 23rem; } .piece { width: 84%; font-size: .72rem; } }
@media (prefers-reduced-motion: no-preference) {
  .carte-grise { animation: pose-gauche .7s cubic-bezier(.2,.8,.2,1) both .1s; }
  .releve { animation: pose-droite .7s cubic-bezier(.2,.8,.2,1) both .35s; }
  @keyframes pose-gauche { from { opacity: 0; transform: translate(-12px, -18px) rotate(-9deg); } }
  @keyframes pose-droite { from { opacity: 0; transform: translate(14px, 22px) rotate(8deg); } }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-blanche { background: var(--blanc); border-block: 1px solid var(--trait); }
.intro { color: var(--gris); font-size: 1.1rem; }

/* Étapes : une vraie séquence */
.etapes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; counter-reset: etape; }
@media (min-width: 50rem) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.etapes li { counter-increment: etape; padding-top: 1rem; border-top: 3px solid var(--sarcelle); }
.etapes li::before { content: counter(etape); display: block; font-weight: 800; font-stretch: 80%; font-size: 2.6rem; line-height: 1; color: var(--sarcelle); margin-bottom: .5rem; }
.etapes p { color: var(--gris); margin: 0; }

/* Nos assurances : une liste, pas des cartes */
.produits { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0 3rem; }
@media (min-width: 50rem) { .produits { grid-template-columns: 1fr 1fr; } }
.produits li { border-top: 1px solid var(--trait); }
.produits a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.1rem 0; color: inherit; text-decoration: none; }
.produits a:hover h3 { color: var(--sarcelle); }
.produits h3 { margin: 0; }
.produits p { grid-column: 1; margin: 0; color: var(--gris); font-size: .98rem; }
.produits .fleche { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--sarcelle); font-size: 1.4rem; }

/* Le cabinet */
.cabinet { display: grid; gap: 2rem; }
@media (min-width: 55rem) { .cabinet { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.devise { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 650; font-stretch: 90%; line-height: 1.25; margin: 0 0 1rem; max-width: 30rem; }
.devise::before { content: "♥"; color: var(--coeur); margin-right: .4rem; }
.faits { list-style: none; margin: 0; padding: 0; }
.faits li { padding: .7rem 0; border-top: 1px solid var(--trait); }
.faits strong { display: block; font-stretch: 90%; }

/* Bandeau sinistre */
.sinistre { background: var(--encre); color: var(--blanc); padding: 2rem 0; }
.sinistre .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.sinistre h2 { margin: 0; font-size: 1.5rem; }
.sinistre p { margin: .3rem 0 0; color: #c5cfdb; }
.sinistre a { color: var(--blanc); font-weight: 800; font-size: 1.3rem; }

/* Formulaire de rappel */
.rappel { display: grid; gap: 1rem; max-width: 30rem; margin-top: 1.5rem; }
.rappel label { display: grid; gap: .3rem; font-weight: 600; }
.rappel input, .rappel select {
  font: inherit; padding: .75rem .9rem; min-height: 3rem;
  border: 1.5px solid #aab6c1; border-radius: 8px; background: var(--blanc); color: var(--encre);
}
.rappel .mention { font-size: .85rem; color: var(--gris); }

/* Pied de page légal, sur chaque page */
.pied { background: #eef2f4; border-top: 1px solid var(--trait); padding: 2.5rem 0 6.5rem; font-size: .88rem; color: var(--gris); }
@media (min-width: 60rem) { .pied { padding-bottom: 2.5rem; } }
.pied .conteneur { display: grid; gap: 1.5rem; }
@media (min-width: 55rem) { .pied .conteneur { grid-template-columns: 1fr 1.6fr; } }
.pied p { margin: 0 0 .5em; max-width: none; }
.pied strong { color: var(--encre); }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .8rem; }

/* Barre d'action fixe sur mobile */
.barre-mobile {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--blanc); border-top: 1px solid var(--trait);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
  gap: .4rem;
}
.barre-mobile a {
  display: grid; justify-items: center; gap: .15rem; padding: .45rem .2rem;
  border-radius: 8px; text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--sarcelle-fonce);
}
.barre-mobile a:first-child { background: var(--sarcelle); color: var(--blanc); }
.barre-mobile svg { width: 1.35rem; height: 1.35rem; }
@media (min-width: 60rem) { .barre-mobile { display: none; } }

/* Page d'atterrissage : sans menu */
.atterrissage .entete .conteneur { justify-content: space-between; }
.ou-trouver { background: var(--carte-grise); border-radius: var(--rayon); padding: 1.3rem 1.4rem; margin-top: 2rem; max-width: 40rem; }
.ou-trouver h3 { margin-bottom: .3rem; }
.ou-trouver p { margin: 0; color: #3e5246; }

/* ---- Pages intérieures ---- */
.nav a[aria-current="page"] { color: var(--sarcelle); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.titre-page { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.titre-page h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 22ch; }
.titre-page .chapo { font-size: 1.15rem; color: var(--gris); max-width: var(--mesure); }
.fil { font-size: .9rem; color: var(--gris); margin-bottom: 1rem; }
.fil a { color: var(--gris); }
.texte { padding-bottom: clamp(3rem, 6vw, 5rem); }
.texte h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2.2rem; }
.texte h3 { margin-top: 1.5rem; }
.texte ul { max-width: var(--mesure); padding-left: 1.2rem; margin: 0 0 1.2em; }
.texte li { margin-bottom: .35em; }
.colonnes { display: grid; gap: 2.5rem; }
@media (min-width: 55rem) { .colonnes { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.encart { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.4rem 1.5rem; }
.encart h2, .encart h3 { margin-top: 0; }
.encart .actions { margin-top: 1rem; }
.encart .bouton { width: 100%; justify-content: center; }
.liste-pieces { list-style: none; padding: 0 !important; }
.liste-pieces li { padding: .55rem 0 .55rem 1.8rem; border-top: 1px solid var(--trait); position: relative; margin: 0 !important; }
.liste-pieces li::before { content: "✓"; position: absolute; left: .2rem; color: var(--sarcelle); font-weight: 800; }
.cadre-externe { width: 100%; min-height: 900px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
.note-externe { font-size: .9rem; color: var(--gris); }
.legal h2 { font-size: 1.35rem; }
.legal p, .legal ul { font-size: 1rem; }
.merci { padding: clamp(3rem, 8vw, 6rem) 0; }
.merci h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.rappel textarea { font: inherit; padding: .75rem .9rem; min-height: 7rem; border: 1.5px solid #aab6c1; border-radius: 8px; background: var(--blanc); color: var(--encre); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Consentement cookies ---- */
.consentement {
  position: fixed; z-index: 20; left: 1rem; right: 1rem; bottom: 5.2rem;
  max-width: 34rem; margin-inline: auto;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 12px 32px -12px rgba(23,34,53,.4); padding: 1.1rem 1.2rem; font-size: .95rem;
}
@media (min-width: 60rem) { .consentement { bottom: 1.5rem; left: auto; right: 1.5rem; } }
.consentement p { margin: 0 0 .8rem; }
.consentement .actions { margin: 0; gap: .5rem; }
.consentement .bouton { min-height: 2.75rem; padding: .55rem 1rem; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--sarcelle-fonce); text-decoration: underline; cursor: pointer; }

/* ---- Menu du téléphone (et des écrans moyens) ---- */
.menu-mobile { position: relative; margin-left: auto; }
.menu-mobile summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--sarcelle-fonce);
  padding: .55rem .9rem; border: 2px solid var(--sarcelle); border-radius: 8px;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--sarcelle); color: var(--blanc); }
.menu-mobile nav {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; min-width: 14rem;
  display: grid; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 12px 32px -12px rgba(23,34,53,.4); padding: .4rem;
}
.menu-mobile nav a { padding: .7rem .9rem; border-radius: 6px; color: var(--encre); text-decoration: none; font-weight: 600; }
.menu-mobile nav a:hover, .menu-mobile nav a[aria-current="page"] { background: var(--papier); color: var(--sarcelle-fonce); }
@media (min-width: 80rem) { .menu-mobile { display: none; } }
@media (max-width: 30rem) { .entete-tel { display: none; } }

/* ---- Accueil : tarifs en ligne ---- */
.tarifs-en-ligne { padding-bottom: 0; }
.deux-tarifs { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 50rem) { .deux-tarifs { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.tarif { display: block; padding: 1.4rem 1.5rem; border: 1px solid var(--trait); border-left: 4px solid var(--sarcelle); border-radius: var(--rayon); background: var(--blanc); color: inherit; text-decoration: none; }
.tarif:hover { border-color: var(--sarcelle); }
.tarif h3 { margin-bottom: .3rem; }
.tarif p { color: var(--gris); margin-bottom: .8rem; }
.lien-fleche { font-weight: 700; color: var(--sarcelle-fonce); }
.lien-fleche::after { content: " ›"; }

/* ---- Réseaux sociaux (pied de page) ---- */
.pied .reseaux { gap: .7rem; margin-top: 1rem; }
.reseaux a { display: inline-block; border-radius: 50%; line-height: 0; transition: transform .15s ease; }
.reseaux a:hover { transform: translateY(-2px); }
.reseaux img { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) { .reseaux a { transition: none; } }
