/* Voltys by CAMYnergie — site vitrine. Charte Voltys : bleu nuit #142A46, turquoise #86DED4, fonds #F3F8FA / #DCEFEE,
   ardoise #244663, Segoe UI, mascotte éclair, pictogrammes en tuiles turquoise, boutons pilule. */
:root {
  --nuit: #142A46; --turquoise: #86DED4; --fond: #F3F8FA; --menthe: #DCEFEE; --ardoise: #244663; --gris: #5B7085; --trait: #E1EAEE;
  --rouge: #D9534F; --orange: #F0A23B; --vert: #2E9E7A; --blanc: #fff;
  --rayon: 18px; --ombre: 0 10px 30px rgba(20,42,70,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--nuit); background: var(--fond); }
img { max-width: 100%; display: block; }
a { color: var(--ardoise); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.blanche { background: #fff; }
.section.nuit { background: var(--nuit); color: #fff; }
.section.nuit h2, .section.nuit h3 { color: #fff; }
.surtitre { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ardoise); background: var(--menthe); border-radius: 999px; padding: .3rem .8rem; margin-bottom: .9rem; }
.nuit .surtitre { background: rgba(134,222,212,.15); color: var(--turquoise); }
.chapeau { font-size: 1.15rem; color: var(--gris); max-width: 46rem; }
.nuit .chapeau { color: #C9D6E2; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--nuit); }
.entete .conteneur { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.entete .logo img { height: 36px; }
.menu { display: flex; gap: .2rem; margin-left: auto; }
.menu a { white-space: nowrap; color: #C9D6E2; text-decoration: none; padding: .5rem .85rem; border-radius: 10px; font-size: .95rem; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--ardoise); color: #fff; }
.by { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 10px; padding: 4px 10px; box-shadow: 0 2px 8px rgba(20,42,70,.12); text-decoration: none; }
.by span { font-size: 11px; font-style: italic; color: var(--gris); }
.by img { height: 24px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 10px; padding: .4rem .7rem; font-size: 1.1rem; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--nuit); flex-direction: column; padding: .5rem 16px 1rem; }
  .menu.ouvert { display: flex; }
  .entete .by { display: none; }
}

/* Boutons pilule */
.btn { display: inline-flex; align-items: center; gap: .6rem; border-radius: 999px; padding: .85rem 1.5rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn::after { content: "→"; color: var(--turquoise); font-size: 1.15em; }
.btn.plein { background: var(--nuit); color: #fff; }
.btn.plein:hover { background: var(--ardoise); }
.btn.clair { background: var(--turquoise); color: var(--nuit); }
.btn.clair::after { color: var(--nuit); }
.btn.clair:hover { background: #6fd0c5; }
.btn.contour { border-color: currentColor; color: inherit; background: transparent; }
.btn.petit { padding: .5rem 1rem; font-size: .9rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* Accueil */
.hero { background: var(--nuit) url('../img/fonds/bureau-sombre.png') center / cover no-repeat; color: #fff; overflow: hidden; }
.hero .conteneur { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 2rem; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--turquoise); }
.hero p { color: #C9D6E2; font-size: 1.2rem; max-width: 36rem; }
.hero .mascotte { width: min(340px, 100%); justify-self: center; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero .mascotte { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 800px) { .hero .conteneur { grid-template-columns: 1fr; text-align: left; } .hero .mascotte { width: 180px; order: -1; } }
.preuves { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.preuves span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; color: #E6EEF4; }
.preuves span::before { content: "✓ "; color: var(--turquoise); font-weight: 800; }

/* Tuiles et cartes */
.grille { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.4rem; box-shadow: var(--ombre); }
.nuit .carte { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.ico { width: 56px; height: 56px; border-radius: 14px; background: var(--turquoise); display: grid; place-items: center; margin-bottom: .9rem; flex: none; }
.ico img { width: 30px; }
.carte p { color: var(--gris); margin: 0; }
.nuit .carte p { color: #C9D6E2; }

/* Chemin en étapes (schéma) */
.chemin { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: e; position: relative; }
.chemin::before { content: ""; position: absolute; top: 40px; left: 12%; right: 12%; height: 4px; background: repeating-linear-gradient(90deg, var(--turquoise) 0 14px, transparent 14px 24px); z-index: 0; }
.chemin li { position: relative; z-index: 1; text-align: center; counter-increment: e; }
.chemin .rond { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 4px solid var(--turquoise); display: grid; place-items: center; margin: 0 auto .8rem; box-shadow: var(--ombre); position: relative; }
.chemin .rond img { width: 38px; }
.chemin .rond::after { content: counter(e); position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.chemin b { display: block; font-size: 1.05rem; }
.chemin small { color: var(--gris); font-size: .9rem; }
.nuit .chemin small { color: #C9D6E2; }
@media (max-width: 760px) {
  .chemin { grid-template-columns: 1fr; }
  .chemin::before { top: 0; bottom: 0; left: 39px; right: auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--turquoise) 0 14px, transparent 14px 24px); }
  .chemin li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; text-align: left; align-items: center; }
  .chemin .rond { margin: 0; }
}

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.chiffre { background: #fff; border-radius: var(--rayon); padding: 1.2rem 1.3rem; border: 1px solid var(--trait); }
.chiffre { min-width: 0; }
.chiffre .n { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .25rem; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.chiffre .n small { font-size: .42em; font-weight: 700; color: var(--gris); }
.chiffre .l { color: var(--gris); font-size: .92rem; margin-top: .35rem; }
.chiffre .t { display: inline-block; margin-top: .5rem; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; }
.t.hausse { background: #FDE7E6; color: #A3302C; }
.t.baisse { background: #DDF3EA; color: #1F6E55; }
.t.stable { background: var(--menthe); color: var(--ardoise); }

/* Graphiques (SVG dessinés par js/graphiques.js) */
.graphe { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.2rem 1.2rem .8rem; }
.graphe h3 { margin-bottom: .2rem; }
.graphe .sous { color: var(--gris); font-size: .9rem; margin-bottom: .6rem; }
.graphe svg { width: 100%; height: auto; display: block; }
.graphe .source { font-size: .75rem; color: var(--gris); margin-top: .4rem; }
.legende { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .85rem; color: var(--gris); margin: .2rem 0 .4rem; }
.legende i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: .35rem; }
.bulle-graphe { position: fixed; pointer-events: none; background: var(--nuit); color: #fff; font-size: .82rem; padding: .35rem .6rem; border-radius: 8px; transform: translate(-50%, -120%); white-space: nowrap; z-index: 100; display: none; }

/* Facture en morceaux */
.facture { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: center; }
.facture ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.facture li { display: grid; grid-template-columns: 18px 1fr auto; gap: .7rem; align-items: start; }
.facture li i { width: 18px; height: 18px; border-radius: 5px; margin-top: .2rem; }
.facture li b { display: block; }
.facture li span { color: var(--gris); font-size: .92rem; }
.facture li em { font-style: normal; font-weight: 800; }
.facture .on { outline: 2px solid var(--turquoise); border-radius: 10px; }
@media (max-width: 760px) { .facture { grid-template-columns: 1fr; } .facture svg { max-width: 240px; margin: auto; } }

/* Frise d'événements */
.frise { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 4px solid var(--turquoise); }
.frise li { position: relative; padding: 0 0 1.3rem 1.4rem; }
.frise li::before { content: ""; position: absolute; left: -12px; top: .2rem; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--nuit); }
.frise .date { font-weight: 800; color: var(--ardoise); font-size: .9rem; }
.frise p { color: var(--gris); margin: .1rem 0 0; }

/* Questions */
details.q { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: .9rem 1.1rem; }
details.q + details.q { margin-top: .6rem; }
details.q summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.q summary::after { content: "+"; color: var(--ardoise); font-size: 1.3rem; line-height: 1; }
details.q[open] summary::after { content: "–"; }
details.q div { color: var(--gris); margin-top: .6rem; }

/* Bandeau accès pro */
.acces-pro { background: linear-gradient(120deg, var(--nuit), var(--ardoise)); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; overflow: hidden; position: relative; }
.acces-pro h2 { color: #fff; }
.acces-pro p { color: #C9D6E2; margin: 0; }
.acces-pro img { width: 150px; }
@media (max-width: 700px) { .acces-pro { grid-template-columns: 1fr; } .acces-pro img { display: none; } }

/* Actualités */
.actu { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.actu .logo-f { width: 54px; height: 54px; border-radius: 14px; background: var(--menthe); display: grid; place-items: center; font-weight: 800; color: var(--nuit); flex: none; }
.actu b { display: block; }
.actu span { color: var(--gris); font-size: .9rem; }
.actu:hover b { text-decoration: underline; }

/* Pied */
.pied { background: var(--nuit); color: #C9D6E2; padding: 48px 0 28px; font-size: .92rem; }
.pied .conteneur { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }
@media (max-width: 760px) { .pied .conteneur { grid-template-columns: 1fr; } }

.avertissement { font-size: .82rem; color: var(--gris); }
.centre { text-align: center; }
.centre .chapeau { margin-inline: auto; }
.mt { margin-top: 2rem; }
.page-titre { background: var(--nuit) url('../img/fonds/bureau-sombre.png') center / cover; color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.page-titre h1 { color: #fff; }
.page-titre p { color: #C9D6E2; font-size: 1.15rem; max-width: 44rem; margin: 0; }
.page-titre .conteneur { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.page-titre img { width: 150px; }
@media (max-width: 700px) { .page-titre .conteneur { grid-template-columns: 1fr; } .page-titre img { display: none; } }
