/* Polices hébergées sur le site (fichiers latins de Google Fonts, licence SIL OFL) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }

/* ProxiMap · palette chaude et lisible : crème, vert forêt, ambre (la couleur des étoiles d'avis). */
:root {
  --fond: #fbf8f3;
  --fond-alt: #f3eee5;
  --surface: #ffffff;
  --encre: #1d2a26;
  --texte: #3b4743;
  --texte-pale: #5c6661;
  --bord: #e6e0d6;
  --vert: #1f5c46;
  --vert-fonce: #16352b;
  --vert-doux: #e3efe8;
  --ambre: #f0a23b;
  --ambre-clair: #f7b85e;
  --rouge: #a8402b;
  --rayon: 10px;
  --rayon-carte: 16px;
  --ombre: 0 1px 2px rgba(29, 42, 38, .04), 0 8px 24px rgba(29, 42, 38, .06);
  --largeur: 1140px;
  --titres: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vert); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--titres); color: var(--encre); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
strong { color: var(--encre); }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--fond-alt); }
.etiquette { display: inline-block; color: var(--vert); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.intro { max-width: 680px; margin-top: 14px; font-size: 1.1rem; }
.centre { text-align: center; }
.centre .intro { margin-inline: auto; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: var(--rayon); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; font-family: inherit; }
.bouton:hover { transform: translateY(-1px); }
.bouton-action { background: var(--ambre); color: var(--encre); }
.bouton-action:hover { background: var(--ambre-clair); }
.bouton-vert { background: var(--vert); color: #fff; }
.bouton-vert:hover { background: var(--vert-fonce); }
.bouton-contour { border-color: var(--bord); color: var(--encre); background: var(--surface); }
.bouton-contour:hover { border-color: #cfc6b8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.centre .actions { justify-content: center; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bord); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { font-family: var(--titres); font-weight: 800; font-size: 1.3rem; color: var(--encre); text-decoration: none; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.logo .pastille { width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--vert); transform: rotate(-45deg); display: inline-block; position: relative; }
.logo .pastille::after { content: ""; position: absolute; inset: 8px; background: var(--ambre); border-radius: 50%; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--texte); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--vert); }
.nav a[aria-current="page"] { font-weight: 600; }
.entete .bouton { padding: 10px 16px; font-size: .93rem; }
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1.5px solid var(--bord); border-radius: var(--rayon); font-weight: 600; color: var(--encre); background: var(--surface); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile nav { position: absolute; right: 0; top: 48px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); box-shadow: var(--ombre); padding: 10px; display: grid; min-width: 230px; }
.menu-mobile nav a { padding: 10px 12px; text-decoration: none; color: var(--encre); border-radius: 8px; }
.menu-mobile nav a:hover { background: var(--fond-alt); }

/* Ouverture */
.ouverture { padding: 72px 0 88px; }
.ouverture .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.ouverture .conteneur > * { min-width: 0; }
.chapeau { margin-top: 20px; font-size: 1.15rem; max-width: 560px; }
.reassurance { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--texte-pale); font-size: .93rem; list-style: none; }
.reassurance li::before { content: "✓"; color: var(--vert); font-weight: 700; margin-right: 8px; }
.entete-page { padding: 64px 0 56px; border-bottom: 1px solid var(--bord); }
.fil { font-size: .88rem; color: var(--texte-pale); margin-bottom: 14px; }
.fil a { color: var(--texte-pale); }

/* Illustration : fiche Google + grille */
.illustration { position: relative; }
.fiche-mock { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); box-shadow: var(--ombre); padding: 20px 22px; }
.fiche-mock .nom { font-family: var(--titres); font-weight: 700; color: var(--encre); font-size: 1.1rem; }
.fiche-mock .etoiles { color: var(--ambre); letter-spacing: 1px; font-size: .95rem; }
.fiche-mock .meta { color: var(--texte-pale); font-size: .85rem; }
.fiche-mock .boutons { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fiche-mock .boutons span { font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--vert-doux); color: var(--vert); }
.grille-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); box-shadow: var(--ombre); padding: 20px; margin-top: 16px; }
.grille-carte .titre { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; color: var(--encre); font-weight: 600; font-size: .92rem; }
.grille-carte .titre small { color: var(--texte-pale); font-weight: 500; }
.grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 16px 0 12px; }
.point { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.p-haut { background: var(--vert); color: #fff; }
.p-moyen { background: #a9cbb9; color: var(--vert-fonce); }
.p-bas { background: #f6ddd5; color: var(--rouge); }
.legende { display: flex; gap: 14px; font-size: .78rem; color: var(--texte-pale); flex-wrap: wrap; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.note { margin-top: 10px; font-size: .78rem; color: var(--texte-pale); }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.cartes-2 { grid-template-columns: repeat(2, 1fr); }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 26px; box-shadow: var(--ombre); }
.carte h3 { margin-bottom: 8px; }
.carte p { font-size: .97rem; color: var(--texte); }
.carte .num { color: var(--vert); font-weight: 800; font-size: .85rem; display: block; margin-bottom: 10px; font-family: var(--titres); }
.carte-lien { text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.carte-lien:hover { transform: translateY(-2px); border-color: #cfc6b8; }
.carte-lien .prix-mini { margin-top: 14px; color: var(--encre); font-weight: 600; font-size: .95rem; }
.carte-lien .suite { margin-top: auto; padding-top: 16px; color: var(--vert); font-weight: 600; }

/* Liste à icônes */
.liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-top: 40px; list-style: none; }
.liste li { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); }
.liste li b { color: var(--encre); display: block; margin-bottom: 2px; }
.liste li span { font-size: .95rem; }
.liste .ic { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--vert-doux); color: var(--vert); display: grid; place-items: center; font-weight: 800; font-family: var(--titres); }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; counter-reset: e; list-style: none; }
.etapes li { counter-increment: e; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 24px; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ambre); color: var(--encre); font-weight: 800; margin-bottom: 14px; font-family: var(--titres); }
.etapes b { color: var(--encre); display: block; margin-bottom: 4px; }
.etapes span { font-size: .95rem; }

/* Bloc « notre règle » */
.regle { background: var(--vert-fonce); color: #e8efe9; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.regle h2, .regle strong { color: #fff; }
.regle .etiquette { color: var(--ambre-clair); }
.regle ul { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.regle li::before { content: "✓"; color: var(--ambre-clair); margin-right: 10px; font-weight: 700; }

/* Prix */
.prix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.offre { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--ombre); }
.offre.vedette { border: 2px solid var(--vert); }
.offre .badge { align-self: flex-start; background: var(--vert-doux); color: var(--vert); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.offre .montant { font-family: var(--titres); color: var(--encre); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.offre .montant small { font-size: 1rem; font-weight: 500; color: var(--texte-pale); font-family: "Inter", sans-serif; }
.offre .cond { color: var(--vert); font-weight: 600; font-size: .92rem; }
.offre ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; font-size: .95rem; }
.offre li::before { content: "✓"; color: var(--vert); font-weight: 700; margin-right: 10px; }
.offre .bouton { margin-top: auto; }

/* Formulaire */
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.formulaire { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 28px; display: grid; gap: 14px; box-shadow: var(--ombre); }
.formulaire label { display: grid; gap: 6px; font-size: .92rem; color: var(--encre); font-weight: 600; }
.formulaire label small { color: var(--texte-pale); font-weight: 400; }
.formulaire input, .formulaire textarea, .formulaire select { background: var(--fond); border: 1.5px solid var(--bord); border-radius: var(--rayon); padding: 12px 14px; color: var(--encre); font: inherit; font-size: .97rem; }
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--vert); outline-offset: 1px; border-color: transparent; }
.mention { font-size: .82rem; color: var(--texte-pale); }
.numerotee { list-style: none; counter-reset: a; display: grid; gap: 16px; margin-top: 24px; }
.numerotee li { counter-increment: a; display: flex; gap: 14px; }
.numerotee li::before { content: counter(a); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.numerotee b { color: var(--encre); display: block; }

/* Équipe */
.membre { display: flex; gap: 20px; align-items: center; }
.photo { flex: 0 0 96px; height: 96px; border-radius: 50%; }

/* À compléter (maquette) */
.a-completer { border: 1.5px dashed #c9a25e; background: #fdf4e4; color: #8a5a12; display: grid; place-items: center; text-align: center; font-size: .82rem; font-weight: 600; padding: 12px; border-radius: var(--rayon-carte); }

/* Questions */
.questions { margin-top: 36px; display: grid; gap: 10px; max-width: 820px; }
.centre .questions { margin-inline: auto; text-align: left; }
.questions details { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 18px 22px; }
.questions summary { cursor: pointer; color: var(--encre); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--vert); font-size: 1.3rem; line-height: 1; }
.questions details[open] summary::after { content: "–"; }
.questions details p { margin-top: 12px; font-size: .97rem; }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.article-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 24px; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--ombre); transition: transform .15s; }
.article-carte:hover { transform: translateY(-2px); }
.article-carte .cat { font-size: .78rem; font-weight: 700; color: var(--vert); text-transform: uppercase; letter-spacing: .08em; }
.article-carte h3 { margin: 10px 0 8px; }
.article-carte p { font-size: .95rem; color: var(--texte); }
.article-carte time { margin-top: auto; padding-top: 14px; font-size: .85rem; color: var(--texte-pale); }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose .encadre { background: var(--vert-doux); border-radius: var(--rayon-carte); padding: 20px 22px; margin-top: 24px; }
.prose .sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bord); font-size: .9rem; color: var(--texte-pale); }
.article-meta { color: var(--texte-pale); font-size: .92rem; margin-top: 14px; }

/* Appel final */
.final { background: var(--vert); color: #e8efe9; border-radius: 24px; padding: 64px 32px; text-align: center; }
.final h2 { color: #fff; }
.final .intro { margin-inline: auto; }
.final .actions { justify-content: center; }
.final .bouton-contour { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* Pied de page */
.pied { background: var(--vert-fonce); color: #c9d6cf; padding: 56px 0 28px; margin-top: 88px; font-size: .94rem; }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.pied a { color: #c9d6cf; text-decoration: none; display: block; margin-top: 8px; }
.pied a:hover { color: #fff; }
.pied .logo { color: #fff; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.pied .bas a { display: inline; margin: 0 0 0 16px; }

/* Tablette et téléphone */
@media (max-width: 960px) {
  .nav, .entete .bouton { display: none; }
  .menu-mobile { display: block; }
  .ouverture .conteneur, .regle, .deux-col { grid-template-columns: 1fr; }
  .cartes, .prix, .articles { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .liste, .cartes-2 { grid-template-columns: 1fr; }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .regle { padding: 36px 24px; }
}
@media (max-width: 520px) {
  .etapes, .pied .colonnes { grid-template-columns: 1fr; }
  .grille { gap: 4px; }
  .point { font-size: .6rem; }
  .actions .bouton { width: 100%; }
  .carte, .offre, .formulaire { padding: 22px 18px; }
  .membre { flex-direction: column; align-items: flex-start; }
  .final { padding: 44px 20px; }
}

/* Bandeau urgence (fiche suspendue) */
.bandeau-urgence { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: #fdf1e2; border: 1px solid #f3d3a6; border-radius: var(--rayon-carte); padding: 16px 20px; margin-bottom: 40px; text-decoration: none; color: var(--encre); }
.bandeau-urgence span { color: var(--vert); font-weight: 600; margin-left: auto; }
.bandeau-urgence:hover { border-color: var(--ambre); }

/* Menu : 7 entrées, on passe au menu déroulant plus tôt pour éviter les retours à la ligne */
.nav a, .entete .bouton { white-space: nowrap; }
@media (max-width: 1140px) {
  .nav, .entete .bouton { display: none; }
  .menu-mobile { display: block; }
}

/* Logo : l'épingle de ProxiMap, redessinée en vectoriel */
.logo-pin { width: 30px; height: 30px; color: var(--vert); flex: 0 0 auto; }
.pied .logo-pin { color: var(--ambre-clair); }

/* Un seul bouton principal : l'action secondaire devient un lien */
.lien-secondaire { align-self: center; font-weight: 600; color: var(--vert); text-decoration: underline; text-underline-offset: 4px; padding: 6px 4px; }
.lien-secondaire:hover { color: var(--vert-fonce); }
.final .lien-secondaire { color: #fff; }
.reassurance-ligne { margin-top: 20px; color: var(--texte-pale); font-size: .95rem; }

/* Initiale à la place d'une photo d'équipe */
.initiale { display: grid; place-items: center; background: var(--vert-doux); color: var(--vert); font-family: var(--titres); font-weight: 800; font-size: 2.2rem; }
