/* JS ELEC — feuille de style unique, pensée d'abord pour le téléphone. Couleurs du logo : bleu pétrole (#3A82A4, décor)
   et sa version foncée pour le texte et les boutons (#245E7A, lisible sur blanc), avec l'ardoise pour le sérieux. */
:root {
	--fond: #f5f7f8;
	--carte: #ffffff;
	--encre: #1c2430;
	--doux: #566270;
	--petrole: #3a82a4;
	--petrole-fonce: #245e7a;
	--petrole-clair: #e6f1f6;
	--trait: #dfe5ea;
	--alerte: #8f2a20;
	--alerte-fond: #fbe9e6;
	--rayon: 14px;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bord: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrole-fonce); }
h1, h2, h3 { font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--encre); }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.petit { font-size: .9rem; color: var(--doux); }
.accroche { font-size: 1.12rem; color: var(--doux); max-width: 720px; }
.sur-titre { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--petrole-fonce); margin-bottom: .6em; }
.manque { background: #fff1a8; color: #6b5200; padding: 0 .3em; border-radius: 4px; font-weight: 600; font-size: .92em; }
.bandeau-brouillon { background: #6b5200; color: #fff; text-align: center; font-size: .85rem; padding: 6px var(--bord); }
[hidden] { display: none !important; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px var(--bord) 0;
	background: color-mix(in srgb, var(--carte) 92%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--trait); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); white-space: nowrap; }
.marque img { width: 46px; height: 46px; }
.marque span { display: flex; flex-direction: column; line-height: 1.1; }
.marque b { font-size: 1.15rem; letter-spacing: .02em; color: var(--petrole-fonce); }
.marque small { font-size: .74rem; color: var(--doux); letter-spacing: .03em; }
.entete-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.entete-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--trait);
	color: var(--encre); text-decoration: none; font-weight: 650; font-size: .92rem; background: var(--carte); }
.entete-tel span { display: none; }
/* « Demande » toujours visible (texte court sur téléphone) */
.petit-bouton .long { display: none; }
@media (min-width: 560px) { .petit-bouton .long { display: inline; } .petit-bouton .court { display: none; } }
@media (max-width: 380px) { .entete-actions .petit-bouton { padding: 0 12px; } .marque small { display: none; } }
.menu { order: 3; width: 100%; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.menu::-webkit-scrollbar { display: none; }
.menu a { white-space: nowrap; color: var(--encre); text-decoration: none; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--petrole-fonce); }
.menu a[aria-current] { border-bottom-color: var(--petrole); font-weight: 650; }
@media (min-width: 560px) { .entete-tel span { display: inline; } }
@media (min-width: 1080px) {
	.entete { flex-wrap: nowrap; padding: 10px var(--bord); }
	.menu { order: 0; width: auto; margin-left: auto; padding: 0; gap: 18px; }
	.entete-actions { margin-left: 8px; }
}

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px;
	background: var(--petrole-fonce); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; text-align: center;
	transition: transform .15s ease, background .15s ease; }
.bouton:hover { background: #1b4c64; }
.bouton:active { transform: scale(.97); }
.bouton.second { background: var(--carte); color: var(--encre); border: 1px solid var(--trait); }
.bouton.second:hover { background: var(--petrole-clair); }
.petit-bouton { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
@media (prefers-reduced-motion: reduce) { .bouton { transition: none; } .bouton:active { transform: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 44px var(--bord); max-width: 1180px; margin: 0 auto; }
.fond-doux { max-width: none; background: var(--petrole-clair); }
.fond-doux > * { max-width: 1132px; margin-left: auto; margin-right: auto; }
.deux-colonnes { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 48px; } }
.appel { text-align: center; }
.appel .bouton { margin-top: 6px; }
.alerte { background: var(--alerte-fond); color: var(--alerte); border-radius: 10px; padding: 10px 14px; font-weight: 600; max-width: 720px; }
.alerte a { color: inherit; }

/* Héros */
.heros { display: grid; gap: 28px; padding: 36px var(--bord) 28px; max-width: 1180px; margin: 0 auto; align-items: center; }
@media (min-width: 980px) { .heros { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 56px; } }
.bande { background: var(--encre); color: #fff; padding: 16px var(--bord); }
.preuves { list-style: none; margin: 0 auto; padding: 0; max-width: 1132px; display: grid; gap: 10px 22px; }
@media (min-width: 760px) { .preuves { grid-template-columns: repeat(4, 1fr); } }
.preuves li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
.preuves svg { flex: none; color: #8fd0ee; }
.preuves .manque { font-size: .8rem; }

/* Cartes */
.grille-cartes { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 720px) { .grille-cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grille-cartes { grid-template-columns: repeat(4, 1fr); } }
.grille-cartes article { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; }
.grille-cartes article p { color: var(--doux); font-size: .96rem; }
.carte-offre { display: flex; flex-direction: column; }
.carte-offre a { margin-top: auto; font-weight: 650; text-decoration: none; }
.pastille-icone { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--petrole-clair); color: var(--petrole-fonce); margin-bottom: 10px; }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.etapes li { display: flex; gap: 12px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px; }
.etapes .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--petrole-fonce); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.etapes p { margin: 0; color: var(--doux); font-size: .95rem; }

/* Maquette de la page de suivi (exemple fictif) */
.maquette { margin: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; padding: 16px; box-shadow: 0 18px 40px -22px rgba(28,36,48,.45); }
.maquette-tete { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--doux); border-bottom: 1px solid var(--trait); padding-bottom: 10px; }
.logo-mini { width: 26px; height: 26px; border-radius: 8px; background: var(--petrole-fonce); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.maquette-titre { font-weight: 700; margin: 12px 0; line-height: 1.3; }
.maquette-titre span { font-weight: 400; font-size: .88rem; color: var(--doux); }
.maquette-etapes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: .72rem; text-align: center; color: var(--doux); }
.maquette-etapes li { padding-top: 10px; border-top: 4px solid var(--trait); }
.maquette-etapes li.fait { border-top-color: var(--petrole); color: var(--encre); }
.maquette-etapes li.encours { font-weight: 700; }
.maquette-cr { background: var(--fond); border-radius: 12px; padding: 12px; font-size: .88rem; }
.maquette-cr p { margin: 4px 0; color: var(--doux); }
.maquette-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.maquette-photos span { aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(135deg, #cfdde5, #9fb8c6); color: #fff; font-size: .75rem; display: flex; align-items: flex-end; padding: 6px; }
.maquette figcaption { margin-top: 10px; font-size: .8rem; color: var(--doux); }

/* Références, zone, listes */
.references { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .references { grid-template-columns: repeat(3, 1fr); } }
.references li { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.references span { color: var(--doux); font-size: .95rem; }
.communes { font-size: .98rem; color: var(--encre); }
.liste-ok { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.liste-ok li { display: flex; gap: 8px; align-items: flex-start; }
.liste-ok svg { flex: none; color: var(--petrole-fonce); margin-top: 2px; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; }
.fiche dt { color: var(--doux); font-size: .92rem; }
.fiche dd { margin: 0; }
@media (max-width: 560px) { .fiche { grid-template-columns: 1fr; gap: 2px; } .fiche dd { margin-bottom: 10px; } }
.documents { margin: 0 0 1em; padding-left: 20px; display: grid; gap: 8px; }
.texte { max-width: 780px; }

/* Formulaires */
.formulaire { max-width: 860px; }
.formulaire > fieldset { border: 0; padding: 0; margin: 0 0 22px; background: var(--carte); border-radius: var(--rayon); padding: 18px; border: 1px solid var(--trait); }
.formulaire legend { font-weight: 750; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
.champs { display: grid; gap: 14px; }
@media (min-width: 720px) { .champs { grid-template-columns: 1fr 1fr; } }
.champ { display: flex; flex-direction: column; gap: 4px; font-size: .95rem; }
.champ.large, .large { grid-column: 1 / -1; }
.champ small { color: var(--doux); font-size: .82rem; }
.champ input, .champ textarea { font: inherit; color: var(--encre); background: #fff; border: 1px solid #c5ced6; border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
.champ textarea { resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--petrole); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--alerte) !important; }
abbr { text-decoration: none; color: var(--alerte); }
.choix { border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.choix legend { font-size: .95rem; font-weight: 600; padding: 0 4px; }
.choix label, .case { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.choix input, .case input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rgpd { margin: 14px 0; }
.erreur { color: var(--alerte); font-weight: 600; }
.merci { background: var(--carte); border: 2px solid var(--petrole); border-radius: var(--rayon); padding: 22px; }
.cf-turnstile { margin: 10px 0; }
.complements { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 18px; margin: 0 0 22px; }
.complements summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.complements[open] summary { margin-bottom: 12px; }
.retenir { margin-top: 12px; font-size: .88rem; color: var(--doux); }
.champ .erreur { font-size: .85rem; color: var(--alerte); font-weight: 600; }

/* Pied de page */
.pied { background: var(--encre); color: #d7dde3; padding: 34px var(--bord) 44px; margin-top: 20px; }
.pied a { color: #fff; }
.pied-grille { max-width: 1132px; margin: 0 auto; display: grid; gap: 18px; }
@media (min-width: 800px) { .pied-grille { grid-template-columns: repeat(3, 1fr); } }
.pied-marque { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.pied-marque img { background: #fff; border-radius: 50%; }
.pied .petit { color: #aab4be; }

/* André, l'assistant automatique : bulle et fenêtre (plein écran sur téléphone) */
.andre-bulle { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
	display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--petrole-fonce); color: #fff; font: 700 .95rem var(--sans); box-shadow: 0 10px 30px -10px rgba(28,36,48,.6); }
.andre-point { width: 10px; height: 10px; border-radius: 50%; background: #8fd0ee; }
.andre-panneau { position: fixed; z-index: 41; inset: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--carte);
	padding-bottom: env(safe-area-inset-bottom); }
/* téléphone : bulle ronde discrète, qui ne cache plus le bas des formulaires */
@media (max-width: 699px) {
	.andre-bulle { padding: 0; width: 52px; height: 52px; justify-content: center; border-radius: 50%; }
	.andre-bulle span:not(.andre-point) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.andre-bulle .andre-point { width: 18px; height: 18px; }
	main { padding-bottom: 72px; }
}
@media (min-width: 700px) { .andre-panneau { inset: auto 20px 20px auto; width: 380px; height: min(600px, calc(100vh - 40px)); border-radius: 18px; border: 1px solid var(--trait); box-shadow: 0 24px 60px -20px rgba(28,36,48,.55); overflow: hidden; } }
.andre-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--petrole-fonce); color: #fff; }
.andre-tete div { display: flex; flex-direction: column; line-height: 1.2; }
.andre-tete small { opacity: .85; font-size: .78rem; }
.andre-fermer { background: none; border: 0; color: #fff; font-size: 1.6rem; width: 44px; height: 44px; cursor: pointer; }
.andre-humain { margin: 0; padding: 8px 14px; font-size: .85rem; background: var(--petrole-clair); }
.andre-fil { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.andre-msg { margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 88%; white-space: pre-wrap; font-size: .95rem; line-height: 1.4; }
.andre-lui { background: var(--fond); align-self: flex-start; }
.andre-vous { background: var(--petrole-fonce); color: #fff; align-self: flex-end; }
.andre-attente { opacity: .6; }
.andre-carte { border: 2px solid var(--petrole); border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.andre-carte pre { margin: 0; white-space: pre-wrap; font: .88rem/1.4 var(--sans); }
.andre-saisie { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--trait); }
.andre-saisie textarea { flex: 1; font: inherit; font-size: 16px; border: 1px solid #c5ced6; border-radius: 10px; padding: 8px 10px; resize: none; }
.andre-mention { margin: 0; padding: 0 14px 10px; font-size: .75rem; color: var(--doux); }
