/* IduFacile : charte direction A (bleu nuit, ocre, papier) */
:root {
  --encre: #17233B;
  --encre-fonce: #0B1424;
  --ardoise: #46526A;
  --gris: #5C667A;
  --ocre: #E0A33E;
  --ocre-texte: #8A5A10;
  --ocre-clair: #FBF1DF;
  --papier: #F8F6F1;
  --blanc: #FFFFFF;
  --bord: #E4E0D6;
  --bord-champ: #C9C3B5;
  --vert: #1F6B4F;
  --vert-clair: #EEF6F1;
  --orange: #B45309;
  --orange-clair: #FBE7CC;
  --rouge: #B42318;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2 { font-family: Manrope, system-ui, sans-serif; letter-spacing: -0.5px; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 10px; }
a { color: var(--encre); }
a:hover { color: var(--encre-fonce); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 760px; }
main { flex-grow: 1; padding: 40px 0 56px; }
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: 18px; padding: 24px; }

/* En-tête et pied */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.entete-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-texte { font-family: Manrope, sans-serif; font-size: 21px; font-weight: 500; letter-spacing: -0.4px; }
.logo-texte b { font-weight: 800; }
.entete-note { font-size: 14px; color: var(--gris); }
.pied { background: var(--blanc); border-top: 1px solid var(--bord); font-size: 13px; color: var(--gris); }
.pied-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.pied p { margin: 0; }
.pied nav { display: flex; gap: 16px; }
.pied a { color: var(--gris); }

/* Textes communs */
.surtitre { font-size: 14px; font-weight: 600; color: var(--ocre-texte); text-transform: uppercase; letter-spacing: 1px; }
.surtitre.clair { color: var(--ocre); }
.chapo { font-size: 18px; color: var(--ardoise); max-width: 640px; }
.petit { font-size: 14px; color: var(--gris); margin: 0; }
.facultatif { font-weight: 400; color: var(--gris); }
.erreur { color: var(--rouge); font-size: 14px; font-weight: 600; margin: 8px 0 0; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 10px; border: 0; font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.bouton-principal { background: var(--encre); color: var(--blanc); }
.bouton-principal:hover { background: var(--encre-fonce); color: var(--blanc); }
.bouton-secondaire { background: var(--blanc); color: var(--encre); border: 1.5px solid var(--bord-champ); }
.bouton-ocre { background: var(--ocre); color: var(--encre); width: 100%; }
.bouton-ocre:hover { background: #D39530; }
.lien-bouton { background: none; border: 0; padding: 12px 0; margin-top: 16px; font: inherit; font-weight: 600; color: var(--encre); text-decoration: underline; cursor: pointer; }

/* Accueil */
.accueil { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.accueil-texte { flex: 999 1 480px; min-width: 0; }
.accueil-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-siren { margin-top: 20px; max-width: 580px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(23, 35, 59, 0.06); }
.form-siren label { font-weight: 600; }
.ligne-champ { display: flex; flex-wrap: wrap; gap: 10px; }
input[type="text"], input[type="email"] { flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 14px; border: 1.5px solid var(--bord-champ); border-radius: 10px; font: inherit; font-size: 17px; color: var(--encre); background: var(--blanc); }
.aside-titre { font-size: 13px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: 0.8px; }
.puce-ligne { display: flex; gap: 14px; align-items: flex-start; }
.puce-ligne p { font-size: 15px; color: var(--ardoise); margin: 0; }
.puce-ligne .puce-titre { font-weight: 700; color: var(--encre); margin-bottom: 2px; }
.puce { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--ocre-clair); font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Questions */
.bandeau-entreprise { margin-bottom: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.bandeau-entreprise strong { font-size: 16px; }
.question { display: flex; flex-direction: column; gap: 12px; }
.progression-texte { font-size: 14px; font-weight: 600; color: var(--gris); }
.progression { height: 8px; border-radius: 999px; background: #ECE8DF; overflow: hidden; }
.progression-barre { height: 8px; width: 0; background: var(--encre); border-radius: 999px; transition: width 0.25s ease; }
.question-titre { font-size: clamp(24px, 4vw, 30px); margin-top: 8px; }
.question-aide { color: var(--ardoise); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 2px solid #DDD8CC; border-radius: 12px; background: var(--blanc); cursor: pointer; text-align: left; font: inherit; color: var(--encre); width: 100%; }
.option:hover { border-color: var(--ardoise); }
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: var(--encre); background: var(--ocre-clair); }
.option-case { flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid #A39C8C; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.option-rond { border-radius: 50%; }
.option[aria-pressed="true"] .option-case, .option[aria-checked="true"] .option-case { background: var(--encre); border-color: var(--encre); }
.option-case svg { display: none; }
.option[aria-pressed="true"] .option-case svg, .option[aria-checked="true"] .option-case svg { display: block; }
.option-texte { display: flex; flex-direction: column; }
.option-label { font-weight: 700; }
.option-hint { font-size: 13px; color: var(--gris); }
.navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #ECE8DF; padding-top: 18px; margin-top: 6px; }

/* Résultat */
.resultat-grille { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 24px; }
.resultat-liste { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.colonne-offres { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.filiere { background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.filiere.afaire { border: 2px solid var(--orange); }
.filiere.preciser { border: 2px dashed #B7791F; }
.filiere-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.filiere h2 { font-size: 18px; margin: 0; }
.filiere p { margin: 0; color: var(--ardoise); font-size: 15px; }
.statut { padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.statut-regle { background: var(--vert); color: var(--blanc); }
.statut-afaire { background: var(--orange); color: var(--blanc); }
.statut-preciser { background: #FBEBD3; color: #7A3E06; }
.encadre { background: var(--ocre-clair); border-radius: 14px; padding: 16px 18px; font-size: 15px; }
.encadre p:last-child { margin: 0; }
.form-email { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.form-email label { font-weight: 600; font-size: 15px; }
.form-email input[type="email"] { flex: 0 0 auto; width: 100%; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--ardoise); }
.case input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.offre-prix { background: var(--encre); color: var(--blanc); border: 0; }
.offre-prix p { color: #D5DAE3; }
.offre-prix .case { color: #D5DAE3; }
.offre-prix input[type="email"] { border-color: var(--encre); }
.liste-coches { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.liste-coches li { padding-left: 26px; position: relative; }
.liste-coches li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 3px solid var(--ocre); border-bottom: 3px solid var(--ocre); transform: rotate(-45deg); }

/* Rapport */
.barre-rapport { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.rapport { background: var(--blanc); border: 1px solid var(--bord); border-radius: 18px; padding: 32px; margin-top: 16px; }
.rapport h1 { font-size: 30px; }
.rapport h2 { margin-top: 28px; }
.rapport ol { padding-left: 22px; }
.rapport li { margin-bottom: 6px; }
.mention-cgv { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--papier); border: 1px dashed var(--bord-champ); border-radius: 10px; padding: 14px; white-space: pre-wrap; }

@media print {
  body { background: #FFFFFF; }
  .entete, .pied, .non-imprime { display: none !important; }
  main { padding: 0; }
  .rapport { border: 0; padding: 0; }
  a { color: #17233B; }
}
