/* app.css — MonPoidsIdeal : les jetons du thème et les composants de l'interface.
   Chargé après assets/css/base.css (module BIW base-css : fond et typo depuis --app-*).

   DIRECTION ARTISTIQUE : « Accueil photographique V1 », décidée et dessinée par ChatGPT
   le 05/11/2026 (conversation « Critique du design »). Elle remplace définitivement
   l'ancienne direction « La Parenthèse ».

   Source : son pack « monpoidsideal_pack_accueil_photographique_v1 », rangé dans
   _design/pack-chatgpt-v1/ — maquette de référence 1672 × 941, fond photographique,
   28 icônes SVG, LIRE-MOI et design-tokens-accueil.css. Les valeurs ci-dessous sont
   les siennes, relevées dans ce fichier de jetons. Aucune n'a été choisie ni retouchée
   ici : toute modification visuelle se demande à ChatGPT.

   Ses cotes PC (viewport de référence 1920 × 1080) : gouttière 56 px, largeur utile
   1808 px, en-tête 64 px, hero 520 px, intro à gauche 765 px maxi, formulaire à droite
   516 px, bloc exemple 895 px maxi.

   Ses règles d'usage :
   • le bleu exprime la marque, jamais un état de santé ;
   • vert, orange et rouge sont exclusivement sémantiques, jamais décoratifs ;
   • la jauge de complétude est bleue ;
   • aucune photo de corps, aucune silhouette ; le fond est décoratif (alt vide) ;
   • la règle graduée est produite par le SVG du moteur, jamais lue sur l'image ;
   • contraste AA, focus visible, cibles tactiles portées à 44 px si besoin. */

/* --- 1. Jetons ----------------------------------------------------------- */

:root {
	/* Fonds et texte — jetons ChatGPT V1 */
	--app-bg:            #fffcf8;   /* papier */
	--app-surface:       #ffffff;
	--app-creux:         #eaf2ff;   /* bleu pâle, sections en retrait */
	--app-text:          #102650;   /* marine */
	--app-sourd:         #5d6c85;
	--app-sourd-clair:   #65758b;
	--app-ligne:         #dce4ef;
	--app-ligne-forte:   #c9d5e6;   /* bordure de champ */

	/* Marque : la structure du site */
	--app-marque:        #102650;
	--app-marque-fonce:  #0b1b3a;
	--app-marque-texte:  #eaf2ff;   /* texte sur aplat de marque */
	--app-marque-sourd:  #9fb0c6;

	/* Accent : cobalt. Couleur de marque, jamais un état de santé. */
	--app-accent:        #0863e9;
	--app-accent-fonce:  #064dc0;
	--app-accent-doux:   #eaf2ff;

	/* États — palette sémantique, strictement séparée de la marque */
	--app-ok:            #19734d;
	--app-ok-fonce:      #11583a;
	--app-ok-doux:       #dcebe3;
	--app-attention:     #975300;
	--app-attention-doux:#f6e9d4;
	--app-alerte:        #b42332;
	--app-alerte-doux:   #f8e2dc;

	/* Repère neutre : le poids actuel, tant que son état n'est pas établi */
	--app-repere:        #4d5a68;

	/* Typographie — Manrope, repli Inter puis police système */
	--app-font:          'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
	--app-font-lecture:  'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
	--app-titre:         'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
	--app-mono:          'Manrope', 'Inter', system-ui, sans-serif;

	/* Échelle de type. Les valeurs d'ordinateur sont celles de son fichier de jetons ;
	   les valeurs de téléphone sont celles de sa requête média « max-width: 767px ».
	   Les deux tailles qu'il n'a pas cotées (titre de page intérieure, valeur clé)
	   sont déduites de son échelle et restent à faire valider. */
	--t-geant:  clamp(2.25rem, 3.4vw, 3.375rem);   /* H1 accueil    36 → 54 px */
	--t-grand:  clamp(2rem, 3vw, 2.75rem);         /* H1 de page    32 → 44 px (déduit) */
	--t-h2:     clamp(1.5rem, 2vw, 1.625rem);      /* H2            24 → 26 px */
	--t-h3:     clamp(1.1875rem, 1.5vw, 1.375rem); /* H3            19 → 22 px */
	--t-moyen:  clamp(1.25rem, 1.6vw, 1.5rem);     /* titre carte   20 → 24 px */
	--t-valeur: clamp(1.875rem, 2.5vw, 2.5rem);    /* valeur clé    30 → 40 px */
	--t-valeur2:clamp(1.625rem, 2.2vw, 2.25rem);   /* valeur 2de    26 → 36 px */
	--t-sous:   1rem;                              /* accroche         16 px */
	--t-base:   .9375rem;                          /* texte            15 px */
	--t-onglet: 1.125rem;                          /* onglets          18 px */
	--t-bouton: 1rem;                              /* bouton           16 px */
	--t-nav:    .875rem;                           /* navigation       14 px */
	--t-petit:  .8125rem;                          /* légendes         13 px */
	--t-mini:   .75rem;                            /* petits labels    12 px */

	/* Échelle d'espacement — la sienne, de 4 à 64 px */
	--e-1:  4px;   --e-2:  8px;   --e-3: 12px;  --e-4: 16px;
	--e-5: 20px;   --e-6: 24px;   --e-8: 32px;  --e-10: 40px;
	--e-12: 48px;  --e-16: 64px;  --e-20: 80px; --e-24: 96px;

	/* Rayons */
	--rayon:          9px;    /* champ */
	--rayon-bouton:   12px;
	--rayon-onglet:   0px;    /* les onglets sont coupés par le rayon du panneau */
	--rayon-carte:    20px;
	--rayon-bloc:     24px;   /* panneau */
	--rayon-badge:     8px;
	--rayon-zone:     10px;   /* surlignage du mot « zone » */
	--rayon-pastille: 999px;

	/* Ombres */
	--ombre:        0 5px 18px rgba(18, 37, 74, .08);
	--ombre-survol: 0 14px 36px rgba(18, 37, 74, .15);
	--ombre-menu:   0 14px 36px rgba(18, 37, 74, .15);
	--anneau-focus: 0 0 0 3px rgba(8, 99, 233, .28);

	/* Trame */
	--touche:      44px;            /* cible tactile minimale */
	--gouttiere:   16px;            /* téléphone */
	--large:       113rem;          /* 1808 px, largeur utile */
	--lisible:     45rem;
	--entete-h:    64px;
	--hero-h:      520px;
	--formulaire:  516px;
	--intro-max:   820px;
	--exemple-max: 895px;
}

@media (min-width: 48rem) {  /* tablette : gouttière de 32 px */
	:root { --gouttiere: 32px; --formulaire: 420px; }
}
@media (min-width: 75rem) {  /* ordinateur : gouttière de 56 px */
	:root { --gouttiere: 56px; --formulaire: 516px; }
}

/* --- 2. Remise à plat ---------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* Un bloc caché par l'attribut « hidden » doit le rester, même si sa classe
   lui donne un display (flex, grid…) : la règle de la classe est plus forte
   que celle du navigateur. Sans cela, la carte « Vos mesures » s'affichait
   vide sur la page d'accueil avant le moindre calcul. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	font-family: var(--app-font-lecture);
	font-size: var(--t-base);
	line-height: 1.65;
	font-optical-sizing: auto;
}

h1, h2, h3, h4, .titre {
	font-family: var(--app-titre);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.025em;
	margin: 0 0 .6em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--app-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--app-accent-fonce); }

img, svg { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 2px; border-radius: 2px; }

.visuellement-cache {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

.evitement {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	background: var(--app-marque); color: #fff; padding: .7rem 1.1rem;
	font-family: var(--app-font); font-size: var(--t-petit);
	border-radius: var(--rayon);
}
.evitement:focus { left: 8px; }

/* --- 3. Trame ------------------------------------------------------------ */

/* Colonne utile de 1808 px entre deux gouttières de 56 px (cotes ChatGPT V1). */
.enveloppe {
	width: min(calc(100% - 2 * var(--gouttiere)), var(--large));
	margin-inline: auto;
}
.enveloppe--lisible { max-width: var(--lisible); }

.section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--creuse { background: var(--app-creux); }

/* --- 4. En-tête : une bande graduée, comme le bord d'une réglette -------- */

.entete {
	position: sticky; top: 0; z-index: 40;
	/* Fond ivoire OPAQUE et bordure inferieure : design system 6.1. */
	background: var(--app-bg);
	border-bottom: 1px solid var(--app-ligne);
}
.entete__corps {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--e-4); min-height: var(--entete-h);
}

/* Logo : « MonPoids » en marine, « Idéal » en cobalt souligné d'un trait incliné.
   Cotes ChatGPT V1 : graisse 800, corps 30 px, interlettrage -0,055 em. */
.marque {
	font-family: var(--app-titre); font-weight: 800;
	font-size: clamp(1.5rem, 1.9vw, 1.875rem);     /* 24 -> 30 px */
	letter-spacing: -.012em; color: var(--app-marque); text-decoration: none;
	display: inline-flex; align-items: baseline; white-space: nowrap; line-height: 1.1;
}
.marque b { font-weight: 800; }
.marque span { color: var(--app-accent); position: relative; }
.marque span::after {
	content: ''; position: absolute; height: 4px; width: 75%; left: 13%; bottom: -4px;
	background: var(--app-accent); border-radius: 8px; transform: rotate(-3deg);
}
.marque:hover { color: var(--app-marque); }

.nav { display: flex; gap: clamp(12px, 1.5vw, 30px); flex-wrap: wrap; align-items: center; }
.nav a {
	font-family: var(--app-font); font-size: var(--t-nav); font-weight: 700;
	color: var(--app-text); text-decoration: none;
	padding: .4rem .2rem; border-radius: var(--rayon-badge);
}
.nav a:hover { color: var(--app-accent); }
.nav a[aria-current="page"] { color: var(--app-accent); box-shadow: inset 0 -2px 0 var(--app-accent); }

.nav-bascule {
	display: none; background: none; border: 1px solid var(--app-ligne);
	border-radius: var(--rayon); padding: .5rem .7rem; min-height: var(--touche);
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 700;
	color: var(--app-text); cursor: pointer;
}

@media (max-width: 74.99rem) {
	.nav-bascule { display: block; }
	.nav {
		display: none; position: absolute; left: var(--gouttiere); right: var(--gouttiere);
		top: calc(100% + 4px); flex-direction: column; gap: 0; align-items: stretch;
		background: var(--app-surface); border: 1px solid var(--app-ligne);
		border-radius: var(--rayon-bloc); padding: .4rem; box-shadow: var(--ombre-menu);
		z-index: 20;
	}
	.nav[data-ouvert="oui"] { display: flex; }
	.nav a { padding: .8rem; min-height: var(--touche); display: flex; align-items: center; }
}

/* --- 5. Ouverture photographique ---------------------------------------- */

/* Le fond est décoratif : aucune information ne s'y trouve, et le voile clair
   de gauche garantit le contraste du texte (consigne ChatGPT V1). */
.these {
	position: relative; isolation: isolate;
	min-height: var(--hero-h);
	padding-block: var(--e-4) var(--e-6);
	background-color: var(--app-bg);
	background-image: image-set(
		url('../photos/accueil-1920.webp') type('image/webp'),
		url('../photos/accueil-1920.jpg')  type('image/jpeg'));
	background-size: cover; background-position: center 52%; background-repeat: no-repeat;
}
/* Voile ivoire progressif : les fruits et le mètre ruban ne doivent pas tirer
   l'œil plus que l'accroche (correction ChatGPT du 05/11/2026). */
.these::before {
	content: ''; position: absolute; z-index: -1; inset: 0;
	background: linear-gradient(90deg,
		rgba(255, 252, 248, .96) 0%, rgba(255, 252, 248, .80) 45%, transparent 75%);
}
.these__grille {
	display: grid; grid-template-columns: minmax(0, 1fr) var(--formulaire);
	gap: 28px; align-items: start;
}
.these__intro { max-width: var(--exemple-max); padding-top: var(--e-2); }

/* Le sourcil est une pastille bleu pâle, sur l'accueil comme en tête de section. */
.sourcil {
	display: inline-flex; align-items: center;
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 800;
	text-transform: uppercase; letter-spacing: .11em;
	color: var(--app-accent); background: var(--app-accent-doux);
	border-radius: var(--rayon-pastille); padding: .3rem .72rem;
	margin: 0 0 var(--e-2);
}

/* Bloc de titre large, deux lignes : il ne faut jamais réduire le corps pour
   le faire tenir, c'est la largeur qui donne sa force au titre. */
.these__titre {
	font-size: var(--t-geant); font-weight: 800;
	letter-spacing: -.045em; line-height: 1.08;
	max-width: 820px; margin: var(--e-2) 0 var(--e-3);
}
/* Le mot clé est posé sur un aplat cobalt, couleur de MARQUE : le vert, l'orange
   et le rouge restent réservés aux états de santé. */
.these__titre em {
	font-style: normal; color: #fff; background: var(--app-accent);
	border-radius: var(--rayon-zone); padding: .02em .22em .08em;
	box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.these__chapeau {
	font-size: var(--t-sous); font-weight: 600; color: var(--app-text); line-height: 1.48;
	max-width: 820px; margin: 0;
}

@media (max-width: 74.99rem) {
	.these__grille { grid-template-columns: minmax(0, 1fr) var(--formulaire); }
}
@media (max-width: 47.99rem) {
	.these { background-position: 60% top; min-height: auto; }
	.these::before { background: rgba(255, 253, 248, .80); }
	.these__grille { display: flex; flex-direction: column; gap: var(--e-4); }
	.these__intro { max-width: none; }
	.these__titre { max-width: none; }
}
}
.these__chapeau {
	font-size: var(--t-sous); color: var(--app-text); line-height: 1.45;
	max-width: 700px; margin-top: 0; margin-bottom: 0;
}

/* --- 6. Réglette : le bloc « exemple de lecture » ----------------------- */

/* Panneau blanc flottant, 895 px maxi, 198 px de haut minimum (cotes ChatGPT V1).
   Le tracé vient du SVG du moteur, jamais de l'image de fond. */
.reglette {
	background: var(--app-surface);
	border-radius: var(--rayon-bloc);
	padding: 18px var(--e-5);
	box-shadow: var(--ombre-survol);
	width: min(var(--exemple-max), 100%);
	min-height: 198px;
	margin-top: 18px;
}
@media (min-width: 75rem) {
	.reglette { padding: 16px 22px 14px; }
}
.reglette__titre {
	font-family: var(--app-font); font-size: 1.0625rem; font-weight: 800;
	letter-spacing: -.02em; color: var(--app-text); margin: 0 0 var(--e-2);
}
/* Composition horizontale : la valeur a gauche, la reglette a droite, la
   legende compacte en bas. La carte vise 895 x 200 px. */
.reglette__corps {
	display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: var(--e-5); align-items: center;
}
.reglette__label {
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 600;
	color: var(--app-sourd); margin: var(--e-2) 0 0;
}
/* La fourchette est posée sur l'aplat vert de la zone : ici le vert est bien
   l'état « poids-santé », pas une décoration. */
.reglette__valeur {
	display: inline-block;
	font-family: var(--app-titre); font-weight: 800;
	font-size: var(--t-valeur); letter-spacing: -.035em;
	color: var(--app-ok-fonce); line-height: 1.1; font-variant-numeric: tabular-nums;
	background: var(--app-ok-doux); border-radius: var(--rayon-badge);
	padding: .08em .3em; white-space: nowrap;
	/* Sans cela, la marge par defaut des paragraphes vaut 1 em, soit 40 px
	   a cette taille, et la carte gagne 40 px de haut pour rien. */
	margin-bottom: 0;
}
.reglette__valeur small { font-size: .5em; font-weight: 700; letter-spacing: 0; }
.reglette svg { display: block; width: 100%; height: auto; overflow: visible; }

.reglette__legende {
	display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-5);
	margin-top: var(--e-2); padding-top: var(--e-2); border-top: 1px solid var(--app-ligne);
	font-family: var(--app-font); font-size: .875rem; font-weight: 500; line-height: 1.4;
	color: var(--app-sourd);
}
.reglette__legende span { display: inline-flex; align-items: center; gap: .45rem; }
.reglette__legende i { width: 12px; height: 12px; border-radius: 2px; flex: none; font-style: normal; }
.pastille--zone    { background: var(--app-ok); }
.pastille--vous    { background: var(--app-repere); }
.pastille--formule { background: var(--app-sourd-clair); }

@media (max-width: 47.99rem) {
	.reglette__corps { grid-template-columns: 1fr; }
}

/* Tracé animé : les graduations, puis la zone, puis le curseur qui se pose. */
@media (prefers-reduced-motion: no-preference) {
	.reglette[data-anime="oui"] .r-graduations { animation: tracer 1s ease-out both; }
	.reglette[data-anime="oui"] .r-zone { animation: eclairer .55s ease-out .75s both; }
	.reglette[data-anime="oui"] .r-formules { animation: paraitre .5s ease-out 1.15s both; }
	.reglette[data-anime="oui"] .r-curseur { animation: poser .5s cubic-bezier(.3, 1.5, .6, 1) 1.3s both; }
}
@keyframes tracer   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes eclairer { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
@keyframes paraitre { from { opacity: 0; } to { opacity: 1; } }
@keyframes poser    { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

/* --- 7. Boutons --------------------------------------------------------- */

.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	font-family: var(--app-font); font-weight: 800; font-size: var(--t-bouton);
	padding: 0 var(--e-6); min-height: 50px;
	border-radius: var(--rayon-bouton); border: 1px solid transparent; cursor: pointer;
	text-decoration: none; text-align: center;
	transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.bouton:active { transform: translateY(1px); }
/* Bouton principal : bleu cobalt editorial, couleur de marque (maquettes 02 et 03). */
.bouton--plein { background: var(--app-accent); color: #fff; }
.bouton--plein:hover { background: var(--app-accent-fonce); color: #fff; }
.bouton--creux { background: var(--app-surface); color: var(--app-accent); border-color: var(--app-accent); }
.bouton--creux:hover { background: var(--app-accent-doux); color: var(--app-accent-fonce); }
.bouton--discret { background: none; color: var(--app-sourd); border-color: var(--app-ligne); }
.bouton--discret:hover { color: var(--app-text); border-color: var(--app-sourd); }
.bouton--large { width: 100%; }

.duo-boutons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- 8. Formulaire ------------------------------------------------------ */

/* Panneau du calculateur : 516 px de large, coins de 24 px, ombre flottante,
   onglets de 70 px coupés par le rayon du panneau (cotes ChatGPT V1). */
.outil {
	background: var(--app-surface);
	border-radius: var(--rayon-bloc); box-shadow: var(--ombre-survol); overflow: hidden;
}
.outil__onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--app-accent-doux); }

.onglet {
	background: var(--app-accent-doux); border: 0; cursor: pointer;
	padding: 10px 14px; min-height: 70px;
	font-family: var(--app-font); font-weight: 800; font-size: var(--t-onglet);
	color: var(--app-text);
	display: flex; flex-direction: column; gap: var(--e-1); align-items: center;
	justify-content: center; line-height: 1.2;
}
.onglet small {
	font-family: var(--app-font); font-size: var(--t-petit);
	font-weight: 600; letter-spacing: 0; color: var(--app-sourd);
}
.onglet[aria-selected="true"] { background: var(--app-accent); color: #fff; }
.onglet[aria-selected="true"] small { color: rgba(255, 255, 255, .88); }
.outil__corps { padding: var(--e-5); }

/* Une ligne par champ : colonne d'étiquettes de 108 px, écart de 12 px. */
.champs { display: grid; gap: 10px; grid-template-columns: 1fr; }
.champs--duo { gap: var(--e-4); }

.champ {
	display: grid; grid-template-columns: 108px minmax(0, 1fr);
	align-items: center; gap: 12px; min-width: 0;
}
.champ > label, .champ__titre {
	font-family: var(--app-font); font-weight: 700; font-size: var(--t-base);
	line-height: 1.3; color: var(--app-text);
}
/* Le libellé occupe la première colonne ; tout le reste la seconde. */
.champ > :not(label):not(.champ__titre) { grid-column: 2; }
/* Les mesures facultatives portent de longues explications : elles reprennent
   la disposition en colonne. */
.champs--duo .champ { grid-template-columns: 1fr; gap: var(--e-2); }
.champs--duo .champ > :not(label):not(.champ__titre) { grid-column: 1; }
.note-calcul {
	font-family: var(--app-font); font-size: var(--t-mini); font-weight: 500;
	color: var(--app-sourd); line-height: 1.45; text-align: center;
	margin: var(--e-2) 0 0;
}
/* Pas d'espace réservé tant qu'aucun résultat n'est affiché. */
.section--resultats:has(.resultats[hidden]) { padding-block: 0; }
@media (max-width: 29.99rem) {
	.champ { grid-template-columns: 1fr; gap: var(--e-2); }
	.champ > :not(label):not(.champ__titre) { grid-column: 1; }
}
.champ__aide {
	font-family: var(--app-font); font-weight: 400; font-size: var(--t-mini);
	color: var(--app-sourd); line-height: 1.45;
}
.champ__erreur {
	font-family: var(--app-font); font-size: var(--t-mini); font-weight: 500; color: var(--app-alerte);
}
/* Un message d'erreur vide ne doit pas reserver une ligne : c'est ce qui
   allongeait le formulaire d'environ 70 px. */
.champ__erreur:empty, .champ__aide:empty, #aide-precision:empty { display: none; }
.champ[data-invalide="oui"] input { border-color: var(--app-alerte); background: var(--app-alerte-doux); }

/* Champs de 42 px dessinés, zone cliquable portée à 44 px : sa consigne
   d'accessibilité autorise cet agrandissement sans dénaturer la composition. */
input[type="number"], input[type="text"], input[type="email"], select {
	font-family: var(--app-font); font-size: var(--t-base); font-weight: 500;
	color: var(--app-text);
	background: var(--app-surface); border: 1px solid var(--app-ligne-forte);
	border-radius: var(--rayon); padding: 8px 12px; min-height: 44px;
	width: 100%; min-width: 0; font-variant-numeric: tabular-nums;
	transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: var(--app-sourd); }
input:focus-visible, select:focus-visible, .bouton:focus-visible {
	outline: 3px solid var(--app-accent); outline-offset: 3px;
}
input:focus, select:focus { border-color: var(--app-accent); box-shadow: var(--anneau-focus); outline: none; }
input::placeholder { color: var(--app-sourd-clair); }

/* Le sexe en segments plutôt qu'en liste : deux choix, deux boutons. */
.segments { display: flex; gap: 0; border: 1px solid var(--app-ligne); border-radius: var(--rayon); overflow: hidden; }
.segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segments label {
	flex: 1; text-align: center; cursor: pointer;
	padding: .68rem .5rem; min-height: var(--touche);
	display: flex; align-items: center; justify-content: center;
	background: var(--app-surface); border-right: 1px solid var(--app-ligne);
	font-family: var(--app-font); font-weight: 600; font-size: var(--t-petit);
	color: var(--app-sourd);
}
.segments label:last-of-type { border-right: 0; }
.segments input:checked + label { background: var(--app-accent); color: #fff; }
.segments input:focus-visible + label { outline: 3px solid var(--app-accent); outline-offset: -3px; }

/* Bloc dépliable des mesures facultatives. Il reste accessible, mais
   visuellement secondaire : pas de cadre, pas d'aplat tant qu'il est fermé. */
.plus-precis {
	margin-top: var(--e-2); border: 1px solid var(--app-ligne);
	border-radius: var(--rayon); background: none;
}
.plus-precis[open] { background: var(--app-accent-doux); }
.plus-precis > summary {
	cursor: pointer; padding: .35rem .75rem; list-style: none; min-height: var(--touche);
	font-family: var(--app-font); font-weight: 700; font-size: var(--t-petit);
	display: flex; align-items: center; gap: .5rem;
}
.plus-precis > summary::-webkit-details-marker { display: none; }
.plus-precis > summary::before {
	content: '+'; font-family: var(--app-mono); font-size: 1.1rem;
	color: var(--app-accent); width: 1.2rem; text-align: center; flex: none;
}
.plus-precis[open] > summary::before { content: '–'; }
.plus-precis > summary span.gain { font-weight: 400; color: var(--app-sourd); font-size: var(--t-mini); }
.plus-precis__corps { padding: 0 .75rem .9rem; }

/* Jauge de complétude : texte centré au-dessus d'une barre de 10 px, bleue et
   jamais verte — l'avancement des mesures n'est pas un état de santé. */
.jauge-precision {
	display: flex; flex-direction: column; gap: var(--e-1);
	margin: 8px 0 6px;
}
.jauge-precision__barre {
	height: 10px; background: #dfe5ef; border-radius: var(--rayon-pastille); overflow: hidden;
}
.jauge-precision__plein {
	display: block; height: 100%; background: var(--app-accent); border-radius: inherit;
	transition: width .35s ease-out; width: 0;
}
.jauge-precision__texte {
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 700;
	color: var(--app-text); text-align: center;
}

/* Carte « Vos mesures » : ce que devient le calculateur une fois le calcul
   fait. 516 px de large, environ 130 px de haut (cotes ChatGPT, V3). */
.carte-mesures {
	width: var(--formulaire); max-width: 100%;
	background: var(--app-surface); border-radius: var(--rayon-bloc);
	box-shadow: var(--ombre-survol); padding: var(--e-5);
	display: flex; flex-direction: column; gap: var(--e-3);
}
.carte-mesures__titre {
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 800;
	text-transform: uppercase; letter-spacing: .11em; color: var(--app-accent); margin: 0;
}
.carte-mesures__liste {
	font-family: var(--app-font); font-size: var(--t-base); font-weight: 700;
	color: var(--app-text); line-height: 1.4; margin: 0;
}

/* --- 9. Résultats ------------------------------------------------------- */

.resultats { display: grid; gap: var(--e-6); }
.resultats[hidden] { display: none; }

.carte {
	background: var(--app-surface); border: 1px solid var(--app-ligne);
	border-radius: var(--rayon-carte); padding: var(--e-5);
	box-shadow: var(--ombre);
}
@media (min-width: 75rem) {
	.carte { padding: 28px; min-height: 220px; }
}
.carte__titre {
	font-family: var(--app-titre); font-weight: 700; font-size: var(--t-moyen);
	letter-spacing: -.015em; line-height: 1.15; margin-bottom: var(--e-2);
}
.carte__sourcil {
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em; color: var(--app-sourd);
	margin-bottom: var(--e-2);
}
.carte__note { font-size: var(--t-base); color: var(--app-sourd); margin-top: var(--e-3); }

/* Trois colonnes en PC, une seule sur telephone (design system 8). */
.grille-cartes { display: grid; gap: var(--e-4); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .grille-cartes { gap: var(--e-5); grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .grille-cartes { gap: var(--e-6); grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Chiffre mis en avant */
.mesure-cle { display: flex; flex-direction: column; gap: .1rem; }
/* Trois chiffres cles : 36 px, Manrope 800 (cote ChatGPT, V3). */
.mesure-cle__valeur {
	font-family: var(--app-titre); font-weight: 800; letter-spacing: -.03em;
	font-size: var(--t-valeur2); line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.mesure-cle__valeur small { font-size: .42em; font-weight: 600; color: var(--app-sourd); }
.mesure-cle__libelle { font-family: var(--app-font); font-size: var(--t-base); color: var(--app-sourd); }

.ton-ok        { color: var(--app-ok-fonce); }
.ton-attention { color: var(--app-attention); }
.ton-alerte    { color: var(--app-alerte); }

/* Bandeau d'avertissement : informe, ne dramatise pas. */
.avis {
	border-left: 3px solid var(--app-ligne-forte);
	background: var(--app-creux);
	padding: .95rem 1.1rem; border-radius: 0 var(--rayon) var(--rayon) 0;
}
.avis + .avis { margin-top: .7rem; }
.avis__titre { font-family: var(--app-font); font-weight: 700; font-size: var(--t-base); margin-bottom: .25rem; }
.avis p { font-size: var(--t-petit); margin: 0; }
.avis--medical { border-left-color: var(--app-alerte); background: var(--app-alerte-doux); }
.avis--info    { border-left-color: var(--app-attention); background: var(--app-attention-doux); }
.avis--bon     { border-left-color: var(--app-ok); background: var(--app-ok-doux); }

/* Tableau des formules : la transparence est l'argument du site. */
.tableau-formules { width: 100%; border-collapse: collapse; font-size: var(--t-petit); }
.tableau-formules th, .tableau-formules td {
	text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--app-ligne); vertical-align: top;
}
.tableau-formules th {
	font-family: var(--app-font); font-weight: 600; font-size: var(--t-mini);
	text-transform: uppercase; letter-spacing: .09em; color: var(--app-sourd);
}
.tableau-formules td:first-child { font-family: var(--app-font); font-weight: 600; }
.tableau-formules .valeur { font-family: var(--app-mono); white-space: nowrap; }
.tableau-formules .reserve { color: var(--app-sourd); font-size: var(--t-mini); line-height: 1.5; }
.tableau-formules tr[data-applicable="non"] td { opacity: .55; }
.tableau-enveloppe { overflow-x: auto; }

/* Jalons du plan */
.etapes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.etapes li {
	display: flex; align-items: baseline; gap: .8rem;
	padding: .6rem .8rem; background: var(--app-creux); border-radius: var(--rayon);
	font-size: var(--t-petit);
}
.etapes b { font-family: var(--app-mono); font-size: 1.05rem; color: var(--app-text); }
.etapes span { font-family: var(--app-font); color: var(--app-sourd); font-size: var(--t-mini); }
.etapes li[data-atteint="oui"] { background: var(--app-ok-doux); }

/* Liste de détails clé / valeur */
.liste-detail { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; }
.liste-detail dt {
	font-family: var(--app-font); font-size: var(--t-petit); color: var(--app-sourd);
	padding: .4rem 0; border-bottom: 1px solid var(--app-ligne);
}
.liste-detail dd {
	margin: 0; font-family: var(--app-mono); font-size: var(--t-petit);
	text-align: right; padding: .4rem 0; border-bottom: 1px solid var(--app-ligne);
}
.liste-detail dt:last-of-type, .liste-detail dd:last-of-type { border-bottom: 0; }
.liste-detail dt.courant { color: var(--app-text); font-weight: 600; }

/* --- 10. Garder son résultat ------------------------------------------- */

.garder {
	background: var(--app-marque); color: var(--app-marque-texte);
	border-radius: var(--rayon-bloc); padding: clamp(1.2rem, 3vw, 1.8rem);
}
.garder h3 { color: #fff; margin-bottom: .4rem; }
.garder p { font-size: var(--t-petit); color: var(--app-marque-sourd); }
.garder__ligne { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.garder__ligne input[type="email"] { flex: 1 1 15rem; }
.garder__accord {
	display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem;
	font-family: var(--app-font); font-size: var(--t-mini); color: var(--app-marque-sourd);
	line-height: 1.5;
}
.garder__accord input { margin-top: .2em; accent-color: var(--app-ok); flex: none; width: 18px; height: 18px; }
.garder__accord a { color: var(--app-marque-texte); }
.garder__retour { margin-top: .9rem; font-family: var(--app-font); font-size: var(--t-petit); display: none; }
.garder__retour[data-etat="succes"] { display: block; color: #a9d8bd; }
.garder__retour[data-etat="erreur"] { display: block; color: #f0b9ac; }

/* --- 11. Contenu éditorial --------------------------------------------- */

.prose { max-width: var(--lisible); }
.prose h2 { font-size: var(--t-grand); margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-moyen); margin-top: 1.9em; }
.prose p, .prose li { font-size: 1.12rem; line-height: 1.72; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
	margin: 1.6em 0; padding-left: 1.1em; border-left: 3px solid var(--app-accent);
	font-style: italic; color: var(--app-text);
}
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--app-font); font-size: var(--t-mini); color: var(--app-sourd); margin-top: .5rem; }
.prose code {
	font-family: var(--app-mono); font-size: .92em;
	background: var(--app-creux); padding: .12em .35em; border-radius: var(--rayon);
}

.sommaire { background: var(--app-creux); border-radius: var(--rayon-bloc); padding: 1.1rem 1.3rem; margin-bottom: 2.4rem; }
.sommaire p {
	font-family: var(--app-mono); font-size: var(--t-mini);
	text-transform: uppercase; letter-spacing: .12em; color: var(--app-sourd); margin-bottom: .6rem;
}
.sommaire ol { margin: 0; padding-left: 1.2em; }
.sommaire li { font-size: var(--t-petit); margin-bottom: .3em; }

/* Table de référence */
.table-ref { width: 100%; border-collapse: collapse; font-size: var(--t-petit); margin: 1.5em 0; }
.table-ref th, .table-ref td { padding: .55rem .6rem; border-bottom: 1px solid var(--app-ligne); text-align: left; }
.table-ref th {
	font-family: var(--app-font); font-size: var(--t-mini);
	text-transform: uppercase; letter-spacing: .09em; color: var(--app-sourd);
}
.table-ref td:first-child { font-family: var(--app-mono); white-space: nowrap; }
.table-ref tbody tr:hover { background: var(--app-creux); }

/* Appel à l'outil, posé au fil du contenu */
.rappel-outil {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap;
	background: var(--app-ok-doux); border-radius: var(--rayon-bloc);
	padding: 1.2rem 1.4rem; margin: 2.4em 0;
}
.rappel-outil p { margin: 0; font-family: var(--app-font); font-weight: 600; }
.rappel-outil small { display: block; font-weight: 400; color: var(--app-text); font-size: var(--t-petit); }

/* --- 12. Bandeau éditorial à quatre colonnes ---------------------------- */

/* Les quatre colonnes de sa maquette, dans ses proportions exactes. */
.editorial {
	display: grid; grid-template-columns: 1fr 1.07fr 1.15fr 1.25fr;
	gap: 28px; align-items: start;
}
.editorial__titre {
	font-size: var(--t-h2); font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
	margin: var(--e-2) 0 var(--e-3);
}
.editorial__sous-titre {
	font-size: var(--t-h3); font-weight: 800; letter-spacing: -.02em;
	margin: var(--e-6) 0 var(--e-3);
}
.editorial__col > p { font-size: var(--t-base); font-weight: 500; line-height: 1.5; }
.editorial__liste-numerotee {
	margin: 0; padding-left: 1.2em; font-size: var(--t-base); font-weight: 500; line-height: 1.5;
}
.editorial__liste-numerotee li { margin-bottom: .5em; }
.lien-suite {
	font-size: var(--t-base); font-weight: 700; color: var(--app-accent);
	text-decoration-thickness: 2px; text-underline-offset: 3px;
}

@media (max-width: 74.99rem) {
	.editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
	.editorial { grid-template-columns: 1fr; }
}

/* Icône au trait, dans une pastille bleu pâle : jeu de 28 SVG fourni par ChatGPT. */
.icone { width: 20px; height: 20px; display: block; }
.liste-icones__pastille, .carte-lien__pastille, .bandeau-legal__pastille {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; flex: none;
	border-radius: var(--rayon-badge);
	background: var(--app-surface); color: var(--app-accent);
	border: 1px solid var(--app-ligne);
}

.liste-icones { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e-4); }
.liste-icones li {
	display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--e-3);
	align-items: start;
	padding-bottom: var(--e-4); border-bottom: 1px solid var(--app-ligne);
}
.liste-icones li:last-child { border-bottom: 0; padding-bottom: 0; }
.liste-icones strong {
	display: block; font-size: var(--t-base); font-weight: 800; line-height: 1.3;
	margin-bottom: .25em;
}
.liste-icones span { font-size: var(--t-petit); font-weight: 500; color: var(--app-sourd); line-height: 1.5; }

/* Les questions fréquentes en accordéon : textes toujours dans la page,
   ouverture au clavier comme à la souris. */
.depliant {
	background: var(--app-surface); border: 1px solid var(--app-ligne);
	border-radius: var(--rayon-carte); margin-bottom: var(--e-3);
}
/* Le bleu pale est reserve aux petites surfaces : ici, l'accordeon ouvert. */
.depliant[open] { background: var(--app-accent-doux); border-color: var(--app-accent-doux); }
.depliant > summary {
	cursor: pointer; list-style: none; padding: var(--e-3) var(--e-4);
	min-height: var(--touche); display: flex; align-items: center; gap: var(--e-3);
}
.depliant > summary::-webkit-details-marker { display: none; }
.depliant > summary h3 {
	flex: 1; font-size: var(--t-base); font-weight: 800; letter-spacing: -.01em;
	line-height: 1.35; margin: 0;
}
.depliant > summary::after {
	content: ''; flex: none; width: 10px; height: 10px; margin-right: 2px;
	border-right: 2px solid var(--app-accent); border-bottom: 2px solid var(--app-accent);
	transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
.depliant[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.depliant > p {
	margin: 0; padding: 0 var(--e-4) var(--e-4);
	font-size: var(--t-petit); font-weight: 500; color: var(--app-sourd); line-height: 1.55;
}

.cartes-liens {
	display: grid; gap: var(--e-3); grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none; padding: 0; margin: 0;
}
.carte-lien {
	display: block; height: 100%;
	background: var(--app-surface); border: 1px solid var(--app-ligne);
	border-radius: var(--rayon-carte); padding: var(--e-4);
	text-decoration: none; color: var(--app-text);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.carte-lien:hover {
	border-color: var(--app-accent); transform: translateY(-2px);
	box-shadow: var(--ombre); color: var(--app-text);
}
.carte-lien__pastille { margin-bottom: var(--e-3); }
.carte-lien strong {
	font-family: var(--app-font); font-size: var(--t-petit); font-weight: 800;
	display: block; margin-bottom: .3rem; line-height: 1.3;
}
.carte-lien span:not(.carte-lien__pastille) {
	font-size: var(--t-mini); font-weight: 500; color: var(--app-sourd); line-height: 1.5;
}
@media (max-width: 74.99rem) {
	.cartes-liens { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}

/* Suite de la methode : fond ivoire continu, largeur de lecture confortable,
   separation discrete. Pas de grand aplat colore (consigne ChatGPT, V2). */
.suite-methode { border-top: 1px solid var(--app-ligne); }
.suite-methode .prose { max-width: var(--lisible); margin-inline: auto; }
.suite-methode .prose > h3 { margin-top: 2.2em; }

/* Bande d'information médicale, en pied de l'accueil. */
.bandeau-legal { background: #e8f1fe; padding: 18px 0; }
.bandeau-legal__corps { display: flex; align-items: flex-start; gap: var(--e-4); }
.bandeau-legal p {
	margin: 0; font-size: var(--t-petit); font-weight: 500; line-height: 1.45;
	color: var(--app-text);
}

/* --- 13. Pied de page -------------------------------------------------- */

.pied {
	background: var(--app-marque); color: var(--app-marque-sourd);
	padding-block: 3rem 2rem; margin-top: 4rem; font-size: var(--t-petit);
}
.pied__grille {
	display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.pied h4 {
	font-family: var(--app-font); font-size: var(--t-mini); color: #fff;
	text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem;
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .4rem; }
.pied a { color: var(--app-marque-sourd); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__bas {
	padding-top: 1.5rem; display: flex; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap; font-size: var(--t-mini); font-family: var(--app-font);
}

.mention-medicale {
	font-family: var(--app-font); font-size: var(--t-mini); color: var(--app-sourd);
	border-top: 1px solid var(--app-ligne); padding-top: 1rem; margin-top: 2rem; line-height: 1.6;
}

/* --- 14. Impression ---------------------------------------------------- */

@media print {
	.entete, .pied, .outil__onglets, .garder, .rappel-outil, .nav-bascule, .evitement { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.carte, .outil, .reglette { box-shadow: none; border-color: #bbb; break-inside: avoid; }
	.section { padding-block: 0; }
	a { text-decoration: none; color: #000; }
}

/* --- 15. Petits utilitaires d'espacement -------------------------------- */
/* Volontairement peu nombreux : tout le reste du style est porté par les
   composants ci-dessus. Ils évitent les styles en ligne dans app.js. */

.m-haut-sm  { margin-top: .6rem; }
.m-haut     { margin-top: 1rem; }
.m-haut-md  { margin-top: 1.2rem; }
.m-haut-lg  { margin-top: 1.4rem; }
.texte-petit { font-size: var(--t-petit); }
.liste-gains { padding-left: 1.2em; font-size: var(--t-petit); }
.reglette__aparte { max-width: 26ch; text-align: right; }
.m-haut-xl  { margin-top: 2rem; }
.m-haut-xxl { margin-top: 2.4rem; }
.m-bas      { margin-bottom: 2rem; }
.section--collee { padding-top: 0; }
.section--haut-court { padding-top: 1rem; }
.titre-section { font-size: var(--t-grand); margin-bottom: 1.4rem; }
.titre-page { font-size: var(--t-grand); }
.intro-mesures { font-size: var(--t-petit); color: var(--app-sourd); margin-bottom: 1.2rem; }
.liste-detail--lisible dt, .liste-detail--lisible dd { font-size: var(--t-base); }
.case-simple { color: var(--app-sourd); margin-top: 0; }

/* ============================================================================
   BILAN — résultats V2 (cotes de ChatGPT, 10/11/2026)
   ----------------------------------------------------------------------------
   Après un calcul, la page devient le bilan du visiteur : l'accroche, la
   photo et le formulaire s'effacent. Colonne résultat 1090 px, colonne
   courriel 688 px, gouttière 30 px sur un conteneur de 1808 px ; trois
   cartes de chiffres de 586,7 px séparées de 24 px ; 24 px entre rangées.
   Le résultat reste entièrement visible sans courriel.
   ========================================================================== */
:root {
	--b-encre: #102650;   --b-sourd: #5D6C85;  --b-filet: #DCE5F0;
	--b-fond: #F7FAFE;    --b-carte: #FFFFFF;
	--b-bleu: #155DFF;    --b-marqueur: #0755FF;
	--b-vert: #0E6B2D;    --b-vert-zone: #A2F17A; --b-vert-pale: #E4F4E8;
	--b-orange: #D96510;  --b-orange-texte: #B85408; --b-rouge: #B42332;
	--b-ombre: 0 10px 30px rgba(16, 38, 80, .08), 0 2px 4px rgba(16, 38, 80, .03);
	--b-ombre-survol: 0 15px 38px rgba(16, 38, 80, .12);
	--b-ecart: 24px;
}

/* La page change de nature : plus d'accroche, plus de photo, plus de formulaire */
.a-resultat .these { display: none; }
.a-resultat { background: var(--b-fond); }
.a-resultat .section--resultats { padding-block: 32px 56px; position: relative; isolation: isolate; }
/* Photographie du site derrière le haut du bilan (audit ChatGPT V6) : visible
   dans les marges, fondue vers le fond ; le texte reste sur des cartes opaques. */
.a-resultat .section--resultats::before {
	content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 760px;
	background-image:
		linear-gradient(180deg, rgba(247, 250, 254, .55) 0%, rgba(247, 250, 254, .72) 60%, var(--b-fond) 100%),
		image-set(url('../photos/accueil-1920.webp') type('image/webp'), url('../photos/accueil-1920.jpg') type('image/jpeg'));
	background-size: cover; background-position: center 52%; background-repeat: no-repeat;
}
@media (max-width: 767px) { .a-resultat .section--resultats::before { height: 420px; } }
.resultats:has(.bilan) { display: flex; flex-direction: column; gap: var(--b-ecart); }

.bilan, .bilan *, .resultats .bc, .resultats .bc * { font-family: 'Manrope', Arial, sans-serif; }

/* --- En-tête du bilan ----------------------------------------------------- */
.bilan__entete { margin-bottom: var(--b-ecart); }
.bilan__titre {
	font-size: 36px; font-weight: 800; line-height: 1.15; color: var(--b-encre);
	margin: 0 0 10px; padding-left: 16px; border-left: 5px solid var(--b-bleu);
	letter-spacing: -.02em;
}
.bilan__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-left: 21px; }
.bilan__mesures { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--b-encre); margin: 0; }
.bilan__completude { font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--b-sourd); margin: 0; }
.bilan__modifier {
	margin-left: auto; font: 700 18px/1.2 'Manrope', Arial, sans-serif; color: var(--b-bleu);
	background: transparent; border: 1px solid var(--b-filet); border-radius: 14px;
	padding: 10px 18px; cursor: pointer;
}
.bilan__modifier:hover { border-color: var(--b-bleu); }

/* --- Cartes --------------------------------------------------------------- */
.bc {
	background: var(--b-carte); border: 1px solid var(--b-filet);
	border-radius: 24px; box-shadow: var(--b-ombre); color: var(--b-encre);
	min-width: 0;
}
.bc p { margin: 0; }
.pastille {
	display: inline-grid; place-items: center; flex: none;
	width: 40px; height: 40px; border-radius: 10px;
}
.pastille .icone { width: 22px; height: 22px; }
.pastille--vert   { background: var(--b-vert-pale); color: var(--b-vert); }
.pastille--bleu   { background: #EAF2FF; color: var(--b-bleu); }
.pastille--orange { background: #FDEEE2; color: var(--b-orange-texte); }

/* --- Rangée du haut : zone et courriel ------------------------------------ */
.bilan__haut {
	display: grid; gap: 30px; align-items: stretch;
	grid-template-columns: minmax(0, 1090fr) minmax(0, 688fr);
}
.bc--zone { padding: 36px; min-height: 490px; display: flex; flex-direction: column; }
.bc-zone__titre {
	display: flex; align-items: center; gap: 14px;
	font-size: 34px; font-weight: 800; line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em;
}
.bc-zone__valeur {
	font-size: 104px; font-weight: 800; line-height: 1; letter-spacing: -.055em;
	color: var(--b-vert); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bc-zone__valeur span { font-size: 72px; letter-spacing: -.03em; }
.bc-zone__phrase { font-size: 21px; font-weight: 500; line-height: 1.4; color: var(--b-sourd); margin-top: 8px !important; }
.bc-zone__phrase b { color: var(--b-encre); font-weight: 800; }
.bc-zone__reglette { margin-top: 12px; width: 100%; max-width: 960px; }
.bc-zone__legende {
	list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px solid var(--b-filet);
	display: flex; flex-wrap: wrap; gap: 10px 28px;
	font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--b-sourd);
}
.bc-zone__legende li { display: flex; align-items: center; gap: 10px; }
.puce { display: inline-block; flex: none; }
.puce--zone    { width: 26px; height: 12px; border-radius: 6px; background: var(--b-vert-zone); }
.puce--vous    { width: 14px; height: 14px; border-radius: 50%; background: var(--b-marqueur); }
.puce--formule { width: 3px; height: 18px; border-radius: 2px; background: var(--b-encre); opacity: .6; }

/* La règle graduée */
.regle { display: block; overflow: visible; font-family: 'Manrope', Arial, sans-serif; font-variant-numeric: tabular-nums; }
.regle__axe { stroke: #B7C3D4; stroke-width: 2; }
.regle__grad { stroke: #8A99B0; stroke-width: 2; }
.regle__grad--fine { stroke: #C6D0DE; stroke-width: 1; }
.regle__chiffre { fill: var(--b-sourd); font-weight: 500; }
.regle__zone { fill: var(--b-vert-zone); }
.regle__formule { stroke: var(--b-encre); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.regle__tige { stroke-width: 3; }
.regle__tige--zone { stroke: var(--b-vert); stroke-width: 2; }
.regle__tige--vous { stroke: var(--b-marqueur); }
.regle__pastille--zone { fill: var(--b-vert); }
.regle__pastille--vous { fill: var(--b-marqueur); }
.regle__pastille-texte { fill: #fff; font-weight: 800; }
.regle__point { fill: var(--b-marqueur); stroke: #fff; stroke-width: 3; }

/* --- La carte courriel ---------------------------------------------------- */
.bc-courriel {
	border-radius: 24px; padding: 32px 38px; color: #fff; min-width: 0;
	background: linear-gradient(155deg, #1768F1 0%, #0E4DCB 42%, #061C6B 100%);
	box-shadow: 0 18px 44px rgba(6, 28, 107, .28);
	display: flex; flex-direction: column;
}
.bc-courriel p { margin: 0; }
.bc-courriel__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bc-courriel__icone {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	background: rgba(255, 255, 255, .14); color: #fff;
}
.bc-courriel__icone .icone { width: 28px; height: 28px; }
.bc-courriel__badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	background: #fff; color: var(--b-bleu); font-size: 18px; font-weight: 700; line-height: 1.25;
}
.bc-courriel__badge .icone { width: 18px; height: 18px; }
.bc-courriel__titre { font-size: 42px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; color: #fff; }
.bc-courriel__texte { font-size: 21px; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.bc-courriel__form { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 20px; }
.bc-courriel__champ { position: relative; }
.bc-courriel__champ .icone { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--b-sourd); pointer-events: none; }
.bc-courriel__champ input {
	width: 100%; height: 62px; padding: 0 18px 0 54px; border: 0; border-radius: 12px;
	background: #fff; color: var(--b-encre); font: 500 19px/1.3 'Manrope', Arial, sans-serif;
}
.bc-courriel__champ input:focus-visible { outline: 3px solid #A9C8FF; outline-offset: 2px; }
.bc-courriel__accord { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, .92); cursor: pointer; }
.bc-courriel__accord input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: #fff; }
.bc-courriel__accord a { color: #fff; text-decoration: underline; }
.bc-courriel__bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	height: 64px; border: 0; border-radius: 14px; cursor: pointer;
	background: #fff; color: var(--b-encre); font: 800 22px/1.2 'Manrope', Arial, sans-serif;
	transition: transform .15s ease, box-shadow .15s ease;
}
.bc-courriel__bouton .icone { width: 22px; height: 22px; }
.bc-courriel__bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.bc-courriel__bouton:disabled { opacity: .6; cursor: default; transform: none; }
.bc-courriel__retour { font-size: 18px; font-weight: 600; line-height: 1.4; display: none; }
.bc-courriel__retour[data-etat="succes"] { display: block; color: #C8F5B0; }
.bc-courriel__retour[data-etat="erreur"] { display: block; color: #FFD2CC; }

/* --- Les trois chiffres ---------------------------------------------------- */
.bilan__chiffres { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc--stat { padding: 32px; min-height: 255px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.bc-stat__libelle { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.bc-stat__valeur { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 8px !important; }
.bc-stat__valeur.ton-attention { color: var(--b-orange); }
.bc-stat__valeur.ton-alerte { color: var(--b-rouge); }
.bc-stat__valeur.ton-ok { color: var(--b-vert); }
.bc-stat__sous { font-size: 19px; font-weight: 700; line-height: 1.3; }
.bc-stat__note { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--b-sourd); }

/* --- Plan et mesures manquantes -------------------------------------------- */
.bilan__milieu { display: grid; gap: 30px; grid-template-columns: minmax(0, 1090fr) minmax(0, 688fr); align-items: start; }
.bilan__milieu--seul { grid-template-columns: minmax(0, 1fr); }
.bc--plan, .bc--manque { padding: 32px; }
.bc--plan { min-height: 420px; }
.bc-puce { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--b-bleu); }
.bc-puce--fond { background: #EAF2FF; border-radius: 999px; padding: 4px 16px 4px 4px; }
.bc-puce--fond .pastille { width: 32px; height: 32px; background: #fff; }
.bc-puce--fond .pastille .icone { width: 18px; height: 18px; }
.bc-plan__titre { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 18px 0 10px; }
.bc-plan__note { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--b-sourd); }
.bc-plan__indicateurs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin-top: 26px; border: 1px solid var(--b-filet); border-radius: 16px; overflow: hidden;
}
.bc-plan__indicateurs > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.bc-plan__indicateurs > div + div { border-left: 1px solid var(--b-filet); }
.bc-plan__indicateurs span { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--b-sourd); }
.bc-plan__indicateurs span .icone { width: 20px; height: 20px; color: var(--b-bleu); }
.bc-plan__indicateurs b { font-size: 27px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bc-plan__trajet {
	position: relative; display: flex; justify-content: space-between; align-items: flex-end;
	margin-top: 30px; padding-top: 26px; font-size: 16px; font-weight: 500; color: var(--b-sourd);
}
.bc-plan__trajet::before {
	content: ''; position: absolute; left: 9px; right: 9px; top: 8px; height: 3px; border-radius: 2px;
	background: linear-gradient(90deg, var(--b-marqueur), var(--b-vert));
}
.bc-plan__trajet i { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--b-filet); }
.bc-plan__depart i { left: 0; background: var(--b-marqueur); }
.bc-plan__arrivee i { right: 0; background: var(--b-vert); }
.bc-plan__depart, .bc-plan__arrivee { display: flex; flex-direction: column; }
.bc-plan__arrivee { text-align: right; }
.bc-plan__trajet b { font-size: 18px; font-weight: 800; color: var(--b-encre); }
.bc-plan__ecart { font-weight: 700; color: var(--b-encre); }
.bc--plan .avis { margin-top: 24px; }
.bc-plan__jalons-titre { font-size: 18px; font-weight: 700; margin-top: 26px !important; }
.bc-manque__titre { font-size: 29px; font-weight: 800; line-height: 1.2; margin: 18px 0 16px; }
.bc-manque__liste { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.bc-manque__liste li { display: flex; gap: 12px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.bc-manque__liste .icone { flex: none; width: 22px; height: 22px; color: var(--b-bleu); margin-top: 2px; }
.bc-bouton {
	display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px;
	border: 0; border-radius: 14px; cursor: pointer; background: var(--b-bleu); color: #fff;
	font: 700 18px/1.2 'Manrope', Arial, sans-serif;
}
.bc-bouton .icone { width: 20px; height: 20px; }
.bc-bouton:hover { background: #064DC0; }

/* --- Grandes cartes : tour de taille, formules, repères ------------------- */
.bc--large { padding: 28px 32px 32px; }
.bc-large__titre { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; margin: 18px 0 10px; }
.bc-large__note { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--b-sourd); margin-top: 14px !important; }
.bc--large .liste-detail { margin-top: 18px; font-size: 17px; }
.bc--large .tableau-enveloppe { margin-top: 22px; }
.bc--large .tableau-formules { font-size: 16px; font-weight: 500; line-height: 1.45; }
.bc--large .tableau-formules th { font-size: 17px; font-weight: 700; background: #F3F7FC; color: var(--b-encre); }
.bc--large .tableau-formules td:first-child { font-weight: 700; }
.bc--large .tableau-formules .valeur { font-family: 'Manrope', Arial, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.bc--large .tableau-formules .reserve { font-size: 16px; }
.bc--reperes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.bilan__avis { display: grid; gap: 12px; }
.bilan__avis .avis p { font-size: 17px; }

/* --- Liens et mention ------------------------------------------------------ */
.bilan__liens { display: grid; gap: 16px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bilan__liens a {
	display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px;
	background: var(--b-carte); border: 1px solid var(--b-filet); box-shadow: var(--b-ombre);
	color: var(--b-encre); text-decoration: none; font-size: 17px; font-weight: 700; line-height: 1.3;
	transition: box-shadow .15s ease, transform .15s ease;
}
.bilan__liens a > .icone { width: 18px; height: 18px; color: var(--b-bleu); margin-top: auto; }
.bilan__liens a:hover { box-shadow: var(--b-ombre-survol); transform: translateY(-2px); }
.bilan__mention {
	display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: 16px;
	background: #EEF3FA; color: var(--b-sourd); font-size: 16px; font-weight: 500; line-height: 1.45; margin: 0;
}
.bilan__mention > .icone { flex: none; width: 26px; height: 26px; color: var(--b-bleu); }

/* --- Tablette : 768 à 1199 px ---------------------------------------------- */
@media (max-width: 1199px) {
	.bilan__haut, .bilan__milieu { grid-template-columns: minmax(0, 1fr); }
	.bilan__chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bilan__liens { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bc--zone { min-height: 0; }
}

/* --- Téléphone : moins de 768 px ------------------------------------------- */
@media (max-width: 767px) {
	:root { --b-ecart: 16px; }
	.a-resultat .section--resultats { padding-block: 20px 40px; }
	.bc, .bc-courriel { border-radius: 18px; }
	.bc--zone, .bc--stat, .bc--plan, .bc--manque, .bc--large, .bc-courriel { padding: 20px; min-height: 0; }
	.bilan__titre { font-size: 28px; }
	.bilan__ligne { padding-left: 0; }
	.bilan__mesures { font-size: 16px; }
	.bilan__completude { font-size: 15px; }
	.bilan__modifier { margin-left: 0; font-size: 16px; }
	.bc-zone__titre { font-size: 22px; gap: 10px; }
	.bc-zone__titre .pastille { width: 34px; height: 34px; }
	.bc-zone__valeur { font-size: 49px; }
	.bc-zone__valeur span { font-size: 34px; }
	.bc-zone__phrase { font-size: 16px; }
	.bc-zone__legende { font-size: 13px; gap: 8px 16px; }
	.bc-courriel__titre { font-size: 27px; }
	.bc-courriel__texte { font-size: 16px; }
	.bc-courriel__badge { font-size: 14px; padding: 6px 12px; }
	.bc-courriel__icone { width: 46px; height: 46px; }
	.bc-courriel__champ input { height: 52px; font-size: 16px; }
	.bc-courriel__accord { font-size: 15px; }
	.bc-courriel__bouton { height: 54px; font-size: 18px; }
	.bilan__chiffres { grid-template-columns: minmax(0, 1fr); }
	.bc-stat__libelle { font-size: 18px; }
	.bc-stat__valeur { font-size: 38px; }
	.bc-stat__sous { font-size: 16px; }
	.bc-stat__note, .bc-plan__note, .bc-large__note { font-size: 15px; }
	.bc-plan__titre { font-size: 26px; }
	.bc-plan__indicateurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bc-plan__indicateurs > div:nth-child(3) { border-left: 0; }
	.bc-plan__indicateurs > div:nth-child(n+3) { border-top: 1px solid var(--b-filet); }
	.bc-plan__indicateurs span { font-size: 14px; }
	.bc-plan__indicateurs b { font-size: 20px; }
	.bc-manque__titre { font-size: 22px; }
	.bc-manque__liste li { font-size: 15px; }
	.bc-large__titre { font-size: 22px; }
	.bc--reperes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bilan__liens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
