/* Site vitrine Humelio : feuille unique, sans dépendance. Couleurs de la marque (docs/marque). */
@font-face {
  font-family: 'Manrope';
  src: url('polices/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ambre: #e8a317;
  --ambre-fonce: #a86f00;
  --ambre-doux: #fdf3dc;
  --nuit: #14121f;
  --encre: #1d1b2b;
  --doux: #5c5a6b;
  --trait: #e6e3ea;
  --fond: #faf8f4;
  --surface: #ffffff;
  --succes: #1b6e3a;
  --rayon: 14px;
  --largeur: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.surtitre { color: var(--ambre-fonce); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.8em; }
.chapo { font-size: 1.15rem; color: var(--doux); max-width: 46em; }

/* Boutons */
.bouton {
  display: inline-block; padding: 0.8em 1.4em; border-radius: 10px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--nuit); background: var(--nuit); color: #fff; transition: transform 0.15s, background 0.15s;
}
.bouton:hover { transform: translateY(-1px); background: #2a2740; }
.bouton.secondaire { background: transparent; color: var(--nuit); }
.bouton.secondaire:hover { background: var(--surface); }
.bouton.ambre { background: var(--ambre); border-color: var(--ambre); color: var(--nuit); }
.bouton.ambre:hover { background: #f2b53a; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.entete .logo img { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { text-decoration: none; font-weight: 600; color: var(--doux); }
.menu a:hover { color: var(--encre); }
.menu .bouton { color: #fff; padding: 0.55em 1.1em; }
@media (max-width: 860px) {
  .menu a:not(.bouton) { display: none; }
}

/* Accroche */
.accroche { padding: 72px 0 56px; }
.accroche .grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.accroche h1 em { font-style: normal; color: var(--ambre-fonce); }
.accroche .boutons { margin-top: 28px; }
.accroche .note { margin-top: 16px; font-size: 0.92rem; color: var(--doux); }
.capture { border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: 0 20px 50px -20px rgba(20, 18, 31, 0.35); background: var(--surface); overflow: hidden; }
@media (max-width: 860px) {
  .accroche { padding: 40px 0 32px; }
  .accroche .grille { grid-template-columns: 1fr; gap: 32px; }
}

/* Bandeau de réassurance */
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 8px 0 56px; }
.atout { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; font-size: 0.95rem; color: var(--doux); }
.atout strong { display: block; color: var(--encre); font-size: 1.05rem; }
@media (max-width: 860px) { .atouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .atouts { grid-template-columns: 1fr; } }

/* Sections */
section.bloc { padding: 80px 0; }
section.bloc.sombre { background: var(--nuit); color: #f3f1f7; }
section.bloc.sombre .chapo, section.bloc.sombre p { color: #c9c5d6; }
section.bloc.sombre .surtitre { color: var(--ambre); }
section.bloc.clair { background: var(--surface); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
@media (max-width: 860px) { section.bloc { padding: 56px 0; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.duo.inverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .duo.inverse > :first-child { order: 0; }
}

.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { position: relative; padding-left: 30px; margin-bottom: 0.7em; }
.liste-coches li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ambre-doux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23a86f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
section.bloc.sombre .liste-coches li::before { background-color: rgba(232, 163, 23, 0.18); }

/* Obligation légale */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.chiffre { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--rayon); padding: 24px; }
.chiffre .valeur { font-size: 2.2rem; font-weight: 800; color: var(--ambre); line-height: 1.1; margin-bottom: 8px; }
.chiffre p { margin: 0; }
@media (max-width: 860px) { .chiffres { grid-template-columns: 1fr; } }

/* Modules */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.carte p { color: var(--doux); margin: 0; }
.carte .pastille { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 12px; background: #e7f5ec; color: var(--succes); }
.carte .pastille.bientot { background: var(--ambre-doux); color: var(--ambre-fonce); }
.carte.a-venir { background: transparent; border-style: dashed; }
@media (max-width: 860px) { .cartes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cartes { grid-template-columns: 1fr; } }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.tarif { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; }
.tarif table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.tarif td { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.tarif td.prix { text-align: right; font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.tarif td.prix small { font-weight: 600; font-size: 0.8rem; color: var(--doux); }
.tarif .mention { font-size: 0.9rem; color: var(--doux); margin: 0; }
.simulateur { background: var(--nuit); color: #f3f1f7; border-radius: var(--rayon); padding: 28px; }
.simulateur label { display: block; font-weight: 600; margin-bottom: 6px; }
.simulateur input[type='number'] {
  width: 100%; font: inherit; font-size: 1.2rem; padding: 10px 12px; border-radius: 10px; border: 1px solid #3b3752;
  background: #211e33; color: #fff; margin-bottom: 16px;
}
.simulateur .case { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-bottom: 20px; }
.simulateur .case input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--ambre); }
.simulateur .total { font-size: 2.4rem; font-weight: 800; color: var(--ambre); line-height: 1.1; }
.simulateur .detail { color: #c9c5d6; font-size: 0.92rem; margin: 6px 0 20px; min-height: 1.4em; }
@media (max-width: 860px) { .tarifs { grid-template-columns: 1fr; } }

/* Questions */
.questions { max-width: 780px; margin-top: 32px; }
.questions details { border-bottom: 1px solid var(--trait); padding: 18px 0; }
.questions summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--ambre-fonce); font-size: 1.4rem; line-height: 1; }
.questions details[open] summary::after { content: '–'; }
.questions details p { margin: 12px 0 0; color: var(--doux); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.formulaire { background: var(--surface); color: var(--encre); border-radius: var(--rayon); padding: 28px; }
.formulaire label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; margin-bottom: 14px; background: #fff; color: var(--encre);
}
.formulaire textarea { min-height: 110px; resize: vertical; }
.formulaire .bouton { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.formulaire .mention { font-size: 0.82rem; color: var(--doux); margin: 12px 0 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 28px; } }

/* Pied de page */
.pied { padding: 40px 0; font-size: 0.92rem; color: var(--doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Pages de texte (mentions légales) */
.texte { max-width: 760px; padding: 56px 20px 80px; }
.texte h2 { font-size: 1.3rem; margin-top: 2em; }
.texte .a-completer { background: var(--ambre-doux); padding: 0 4px; border-radius: 4px; }
section.bloc.sombre .formulaire p.mention { color: var(--doux); }
