/* BuildGreen Analytics — feuille de style unique.
   Structure de mise en page dérivée du gabarit Landed (HTML5 UP, @ajlkn, licence CC BY 3.0) :
   bannière, spotlights, grille de fonctions, bande d'appel à l'action, pied de page.
   Palette du kit : Navy #1a2332, Teal #2d8a7a, Stone #f5f6f8. Polices : DM Sans (titres), Inter (corps).
   Aucun JavaScript. */

:root {
  --navy: #1a2332;
  --teal: #2d8a7a;
  --teal-dark: #236b5e;
  --stone: #f5f6f8;
  --white: #fff;
  --ink-soft: #4b5563;
  --line: #dde1e7;
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 17px/1.65 var(--font-body); color: var(--navy); background: var(--stone); -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 500; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

/* En-tête */
#header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
#header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
#logo { display: block; line-height: 0; }
#logo svg { height: 44px; width: auto; display: block; }
#logo .brand-name { font: 700 44px var(--font-heading); fill: var(--navy); }
#logo .brand-sub { font: 400 15px var(--font-body); fill: #6b7280; letter-spacing: 5px; }
#nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
#nav a { display: block; padding: 8px 12px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 6px; }
#nav a:hover { background: var(--stone); }
#nav a.button { color: var(--white); margin-left: 8px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 24px; top: 64px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px; list-style: none; margin: 0; min-width: 220px; box-shadow: 0 8px 24px rgba(26, 35, 50, .12); }
.menu a { display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; font-weight: 500; }
@media (max-width: 860px) { #nav { display: none; } .menu { display: block; } }

/* Boutons */
.button, button.button { display: inline-block; font: 500 1rem var(--font-body); background: var(--teal); color: var(--white); border: 2px solid var(--teal); border-radius: 8px; padding: 12px 24px; text-decoration: none; cursor: pointer; text-align: center; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.button.alt { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.button.alt:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.button.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.button.outline:hover { background: var(--navy); color: var(--white); }
.button.disabled, .button[aria-disabled="true"] { background: #e8ebef; border-color: #e8ebef; color: #5b6472; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }

/* Bannière */
#banner { background: var(--navy); color: var(--white); padding: 72px 0 80px; }
#banner h1 { color: var(--white); max-width: 18ch; }
#banner .grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
#banner .lead { font-size: 1.15rem; color: #d5dbe3; max-width: 52ch; }
#banner .state { display: inline-block; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 14px; font-size: .875rem; color: #d5dbe3; margin-bottom: 20px; }
@media (max-width: 900px) { #banner .grid { grid-template-columns: 1fr; gap: 36px; } #banner { padding: 48px 0 56px; } }

/* Panneaux de données */
.panel { background: var(--white); color: var(--navy); border-radius: 12px; padding: 28px; }
.panel h2, .panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.panel .source { font-size: .8rem; color: #5b6472; margin: 16px 0 0; }
.bars { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.bars li { display: grid; gap: 6px; }
.bars .row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.bars .row strong { font: 700 1.05rem var(--font-heading); }
.bar { height: 14px; background: #e8ebef; border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); }
.bar > span.navy { background: var(--navy); }

/* Sections */
.section { padding: 80px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a { color: #9fdccf; }
.section header.major { max-width: 760px; margin-bottom: 40px; }
.section header.major p { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.section.dark header.major p { color: #d5dbe3; }
.eyebrow { font: 500 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; }
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight.right .content { order: 2; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; gap: 32px; } .spotlight.right .content { order: 0; } .section { padding: 56px 0; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; padding-left: 48px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1rem/34px var(--font-heading); text-align: center; }
.steps strong { display: block; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 .85rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: #5b6472; background: var(--stone); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; }
td.center, th.center { text-align: center; }
.yes { color: var(--teal-dark); font-weight: 700; }
.no { color: #8a93a0; }

/* Échéances */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.timeline li { background: var(--white); border-radius: 12px; border-top: 6px solid var(--teal); padding: 22px; color: var(--navy); }
.timeline li:nth-child(1) { border-top-color: var(--navy); }
.timeline .year { font: 700 2.4rem/1 var(--font-heading); display: block; margin-bottom: 8px; }
.timeline .rule { font-weight: 500; display: block; margin-bottom: 6px; }
.timeline p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.figure { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 32px 0 0; }
.figure .num { font: 700 3rem/1 var(--font-heading); color: #9fdccf; }

/* Fonctions */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--stone); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.tag { display: inline-block; font-size: .78rem; font-weight: 500; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; color: var(--ink-soft); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; display: flex; flex-direction: column; }
.offer.featured { border: 2px solid var(--teal); }
.offer .for { font-size: .9rem; color: var(--ink-soft); min-height: 3.2em; }
.offer .price { font: 700 2.2rem/1.1 var(--font-heading); margin: 12px 0 2px; }
.offer .price small { font: 400 .9rem var(--font-body); color: #5b6472; }
.offer .vat { font-size: .8rem; color: #5b6472; margin-bottom: 14px; }
.offer ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.offer li { padding: 6px 0 6px 24px; position: relative; font-size: .93rem; border-top: 1px solid #eef0f3; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.offer li.soon::before { border-color: #a0a8b4; }
.offer .badge { font-size: .75rem; font-weight: 500; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.offer .alt-link { display: block; text-align: center; font-size: .85rem; margin-top: 10px; }
.notice { background: var(--white); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 0 0 28px; font-size: .95rem; }
@media (max-width: 1100px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offers { grid-template-columns: 1fr; } }

/* Appel à l'action */
.cta-band { background: var(--navy); color: var(--white); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #d5dbe3; margin: 0; max-width: 60ch; }

/* Sources */
.sources { padding: 36px 0; background: var(--stone); border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.sources p { margin: 0 0 6px; }

/* Pages internes, formulaires */
main.page { padding: 56px 0 72px; }
.prose { max-width: 780px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 12px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; color: var(--teal-dark); }
.prose li { margin-bottom: .4em; }
.form { max-width: 720px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 12px; }
.form label, .form legend { display: block; font-weight: 500; margin: 20px 0 6px; padding: 0; }
.form .hint { font-size: .875rem; color: var(--ink-soft); margin: 0 0 6px; }
.form input[type=text], .form input[type=email], .form textarea { width: 100%; font: 400 1rem var(--font-body); padding: 12px; border: 1px solid #b9c0ca; border-radius: 8px; background: var(--white); color: var(--navy); }
.form textarea { min-height: 160px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.form .check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.form .error { color: #a1281d; font-size: .9rem; margin: 6px 0 0; }
.form .errors { border: 1px solid #a1281d; border-radius: 8px; padding: 12px 16px; color: #7a1d15; background: #fdf3f2; margin-bottom: 8px; }
.form .errors ul { margin: 6px 0 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { margin-top: 28px; }
.confirm { max-width: 640px; margin: 0 auto; background: var(--white); padding: 48px 40px; border-radius: 12px; text-align: center; }
@media (max-width: 620px) { .prose, .form, .confirm { padding: 24px 18px; } }

/* Pied de page */
#footer { background: var(--navy); color: #b7c0cc; padding: 48px 0 36px; font-size: .92rem; }
#footer a { color: #e6ebf1; }
#footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
#footer h2 { font: 500 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: #8d98a8; margin-bottom: 12px; }
#footer ul { list-style: none; margin: 0; padding: 0; }
#footer li { margin-bottom: 6px; }
#footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .82rem; }
@media (max-width: 760px) { #footer .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { #header, #footer, .cta-band { display: none; } }
