/* Charte reprise de monimpotzen.fr : Satoshi, bleu nuit, crème, sable */
:root {
  --nuit: #2D4A61; --nuit-2: #1A2F3F; --nuit-3: #0F1C26;
  --encre: #1F2D3A; --texte: #3A3A3A; --gris: #666666;
  --ardoise: #8B9DB1; --sable: #C4B5A0; --sable-clair: #D4C5B0; --sable-fonce: #B8A690;
  --creme: #FAFAF8; --creme-2: #F7F2EC; --creme-3: #F5EDE5; --blanc: #FFFFFF;
  --ombre: 0 10px 40px rgba(31, 45, 58, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(var(--creme), #F8F7F5 50%, var(--creme)); color: var(--texte); font: 400 18px/1.7 Satoshi, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--nuit); text-decoration-color: var(--sable); text-underline-offset: 3px; }
a:hover { color: var(--nuit-3); }
.conteneur { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 760px; margin: 0 auto; }

/* En-tête bleu nuit aux coins arrondis, comme le site */
.entete { position: sticky; top: 0; z-index: 5; background: var(--nuit); border-radius: 0 0 28px 28px; box-shadow: 0 6px 24px rgba(15, 28, 38, .25); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--blanc); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.marque img { width: 62px; height: 62px; display: block; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--blanc); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--sable), var(--sable-fonce)); color: var(--nuit-3) !important; text-decoration: none; font-weight: 700; padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(196, 181, 160, .45); transition: transform .15s ease, box-shadow .15s ease; }
.bouton:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(196, 181, 160, .6); }
.bouton.clair { background: var(--blanc); color: var(--nuit) !important; box-shadow: 0 0 18px rgba(139, 157, 177, .55); }
.bouton.petit { padding: 9px 18px; font-size: 15px; }
.bouton.secondaire { background: transparent; color: var(--nuit) !important; border: 2px solid var(--nuit); box-shadow: none; }

/* Typographie */
main { padding: 36px 16px 64px; }
h1, h2, h3 { font-family: Satoshi, system-ui, sans-serif; color: var(--encre); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.12; font-weight: 700; margin: 0 0 18px; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.25; font-weight: 700; margin: 48px 0 14px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 26px 0 8px; }
.titre-section { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 64px 0 8px; background: linear-gradient(90deg, var(--ardoise), var(--sable)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.filet { width: 80px; height: 3px; border-radius: 3px; margin: 10px auto 28px; background: linear-gradient(90deg, var(--ardoise), var(--sable)); }
.sous-titre { text-align: center; color: var(--gris); margin: 0 0 28px; }
.chapo { font-size: 1.15rem; color: var(--gris); }
.meta { color: var(--ardoise); font-size: .9rem; font-weight: 500; margin: 0 0 10px; }
strong { color: var(--encre); }

/* Héros : dégradé bleu nuit et cercles discrets */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--nuit), var(--nuit-2) 50%, var(--nuit-3)); color: var(--blanc); border-radius: 32px; padding: 64px 48px; margin-bottom: 8px; box-shadow: 0 20px 60px rgba(15, 28, 38, .25); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero::before { width: 320px; height: 320px; right: -90px; top: -110px; }
.hero::after { width: 160px; height: 160px; right: 18%; bottom: -60px; }
.hero > * { position: relative; }
.hero h1 { color: var(--blanc); max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--sable-clair); }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero .bouton.secondaire { color: var(--blanc) !important; border-color: rgba(255, 255, 255, .5); }
.chiffre { display: inline-block; margin-top: 30px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .95rem; color: rgba(255, 255, 255, .85); }

/* Cartes crème */
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .cartes { grid-template-columns: 1fr; } }
.carte { background: linear-gradient(135deg, var(--blanc), var(--creme-2)); border-radius: 26px; padding: 30px 30px 26px; box-shadow: var(--ombre); border: 1px solid rgba(212, 197, 176, .35); }
.carte h3 { margin: 14px 0 10px; font-size: 1.3rem; }
.carte p { margin: 0; color: var(--gris); font-size: 1rem; }
.carte .filet-carte { width: 70px; height: 3px; border-radius: 3px; margin-top: 18px; background: linear-gradient(90deg, var(--ardoise), var(--sable)); }
.etiquette { display: block; background: rgba(196, 181, 160, .2); color: var(--nuit); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; }
.etiquette.courte { display: inline-block; }

/* Étapes */
.etapes { display: grid; gap: 22px; counter-reset: etape; }
.etape { position: relative; overflow: hidden; background: linear-gradient(135deg, #F9F5F0, var(--creme-3)); border-radius: 30px; padding: 34px 36px; box-shadow: var(--ombre); }
.etape::after { counter-increment: etape; content: counter(etape); position: absolute; right: 26px; bottom: -40px; font-size: 220px; font-weight: 700; line-height: 1; color: rgba(196, 181, 160, .18); }
.etape h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 14px 0 8px; position: relative; }
.etape p { margin: 0; color: var(--gris); position: relative; max-width: 640px; }
.coches { list-style: none; padding: 0; margin: 18px 0 0; }
.coches li { position: relative; padding-left: 40px; margin: 10px 0; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--sable); color: var(--blanc); font-size: 14px; font-weight: 700; display: grid; place-items: center; }

/* Articles */
.liste-articles { list-style: none; padding: 0; display: grid; gap: 18px; }
.liste-articles li { background: linear-gradient(135deg, var(--blanc), var(--creme-2)); border-radius: 22px; padding: 26px 28px; box-shadow: var(--ombre); border: 1px solid rgba(212, 197, 176, .35); }
.liste-articles a { color: var(--encre); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.liste-articles a:hover { color: var(--nuit); }
.liste-articles p { margin: 6px 0 0; color: var(--gris); font-size: 1rem; }
.article { background: var(--blanc); border-radius: 30px; padding: 44px 48px; box-shadow: var(--ombre); }
.article h2 { padding-top: 6px; }
.article h2::before { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-bottom: 14px; background: linear-gradient(90deg, var(--ardoise), var(--sable)); }
.article li { margin: 6px 0; }

/* Appel à l'action */
.cta { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--nuit), var(--nuit-2)); color: rgba(255, 255, 255, .85); border-radius: 28px; padding: 36px 36px; margin: 48px 0 24px; box-shadow: 0 16px 48px rgba(15, 28, 38, .22); }
.cta::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -80px; background: rgba(255, 255, 255, .06); }
.cta-titre { position: relative; font-weight: 700; color: var(--blanc); font-size: 1.45rem; margin: 0 0 8px; }
.cta p { position: relative; }
.cta .bouton { position: relative; margin-top: 8px; }
.avertissement { font-size: .85rem; color: var(--gris); }

/* Tableaux */
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 12px 0; }
th, td { border-bottom: 1px solid rgba(212, 197, 176, .5); padding: 10px 12px; text-align: left; vertical-align: top; }
th { color: var(--nuit); font-weight: 700; background: rgba(196, 181, 160, .15); }

/* Pied de page */
.pied { background: linear-gradient(135deg, var(--nuit), var(--nuit-2) 60%, var(--nuit-3)); color: rgba(255, 255, 255, .7); font-size: .92rem; padding: 44px 0 36px; border-radius: 28px 28px 0 0; margin-top: 24px; }
.pied a { color: var(--blanc); }
.pied .marque img { width: 72px; height: 72px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Bandeau cookies */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--blanc); border: 1px solid rgba(212, 197, 176, .6); border-radius: 22px; padding: 18px 22px; box-shadow: 0 16px 48px rgba(15, 28, 38, .2); font-size: .95rem; z-index: 10; }
.cookies-boutons { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 40px 24px; border-radius: 26px; }
  .article { padding: 28px 22px; border-radius: 24px; }
  .etape, .carte { padding: 26px 22px; }
  .cta { padding: 28px 22px; }
  nav a:not(.bouton) { display: none; }
  .marque span { display: none; }
}

/* Pré-diagnostic */
.diag-hero { padding: 44px 40px; margin-bottom: 22px; }
.diag { padding: 34px 36px; margin-bottom: 22px; }
.diag-progression { height: 6px; border-radius: 6px; background: rgba(196, 181, 160, .25); overflow: hidden; margin-bottom: 18px; }
#diag-barre { height: 100%; width: 0; background: linear-gradient(90deg, var(--ardoise), var(--sable)); transition: width .3s ease; }
.diag-question { margin: 6px 0 10px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.diag-aide { color: var(--gris); font-size: .95rem; margin: 0 0 6px; }
.diag-reponses { display: grid; gap: 12px; margin-top: 18px; }
.diag-choix { font: inherit; font-weight: 500; text-align: left; padding: 16px 20px; border-radius: 16px; border: 1.5px solid rgba(196, 181, 160, .6); background: var(--blanc); color: var(--encre); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.diag-choix:hover { border-color: var(--nuit); background: #F9F5F0; }
.diag-choix:active { transform: scale(.99); }
.diag-choix.choisi { border-color: var(--nuit); background: rgba(196, 181, 160, .18); }
.diag-retour { margin-top: 18px; font: inherit; font-size: .92rem; color: var(--ardoise); background: none; border: 0; cursor: pointer; padding: 0; }
.diag-retour:hover { color: var(--nuit); }
.diag-encart { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: rgba(196, 181, 160, .15); border: 1px solid rgba(196, 181, 160, .4); font-size: .97rem; }
.diag-encart p { margin: 0; }
@media (max-width: 640px) { .diag, .diag-hero { padding: 26px 20px; } }
