/* Digital Reps SARL — ci.digitalreps.co.uk
   Aucune police externe, aucun script, aucun cookie. */

:root {
  --noir: #0b0d0a;
  --noir-2: #151a12;
  --vert: #2bff16;          /* début du dégradé du logo */
  --citron: #d4ff00;        /* fin du dégradé du logo */
  --vert-texte: #1f6e12;    /* vert lisible sur fond clair (contraste AA) */
  --encre: #1b1f19;
  --gris: #5a6156;
  --fond: #ffffff;
  --fond-2: #f4f7f1;
  --bord: #dde3d8;
  --rayon: 10px;
  --max: 1080px;
  --degrade: linear-gradient(120deg, var(--vert), var(--citron));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-texte); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* En-tête */
.entete { background: var(--noir); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #222; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.entete .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: #e9f2e4; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--citron); }

/* Bandeau principal */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1f3a0f 0%, transparent 60%), var(--noir); color: #f2f7ee; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 22ch; letter-spacing: -.01em; }
.hero h1 .accent { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.chapeau { font-size: 1.15rem; color: #c9d4c3; max-width: 60ch; }
.boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.bouton { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.bouton-principal { background: var(--degrade); color: #0b0d0a; }
.bouton-principal:hover { filter: brightness(1.05); }
.bouton-secondaire { border-color: #3b4a33; color: #f2f7ee; }
.bouton-secondaire:hover { border-color: var(--vert); }

/* Aperçu du rapport dans le bandeau */
.hero-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grille { grid-template-columns: 1fr; gap: 36px; } }
.rapport { background: #12170f; border: 1px solid #2c3626; border-radius: 14px; padding: 24px; }
.rapport-edition { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; color: #d9e4d3; margin: 0 0 6px; }
.rapport-edition strong { color: var(--citron); }
.point-direct { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(43,255,22,.18); flex: none; }
.rapport-titre { font-weight: 700; color: #fff; margin: 0 0 18px; font-size: 1.05rem; line-height: 1.3; }
.rapport-volets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mini-volet { background: #0b0d0a; border: 1px solid #222b1d; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mini-badge { align-self: flex-start; font-size: .68rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--degrade); color: #0b0d0a; margin-bottom: 4px; }
.mini-volet strong { color: #fff; font-size: .95rem; }
.mini-chiffre { font-weight: 700; font-size: 1rem; white-space: nowrap; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-detail { font-size: .76rem; color: #a9b6a2; line-height: 1.35; }
.rapport-graph { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
@media (max-width: 420px) { .rapport-graph { grid-template-columns: 1fr; justify-items: center; } }
.donut { width: 150px; height: 150px; transform: rotate(0deg); }
.donut-chiffre { fill: #fff; font-size: 8px; font-weight: 700; }
.donut-unite { fill: #a9b6a2; font-size: 3.4px; }
.legende { list-style: none; margin: 0; padding: 0; width: 100%; font-size: .88rem; }
.legende li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #222b1d; color: #d9e4d3; }
.legende li:last-child { border-bottom: 0; }
.pastille { width: 12px; height: 12px; border-radius: 3px; }
.pastille-0 { background: #2bff16; } .pastille-1 { background: #19c3a6; } .pastille-2 { background: #d4ff00; } .pastille-3 { background: #8fd3ff; } .pastille-4 { background: #f5a524; }
.leg-pts { font-weight: 700; color: #fff; }
.leg-note { font-size: .72rem; color: #a9b6a2; border: 1px solid #3b4a33; border-radius: 999px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.rapport-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; text-align: center; }
.rapport-chiffres div { background: #0b0d0a; border-radius: 10px; padding: 10px 6px; }
.rapport-chiffres strong { display: block; font-size: 1.4rem; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rapport-chiffres span { display: block; font-size: .78rem; line-height: 1.3; color: #a9b6a2; }
.rapport-secteurs { margin: 14px 0 0; font-size: .82rem; color: #a9b6a2; text-align: center; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--fond-2); }
.surtitre { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--vert-texte); margin-bottom: .5em; }
.intro { max-width: 68ch; color: var(--gris); font-size: 1.05rem; }

.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; display: flex; flex-direction: column; }
.carte .num { width: 36px; height: 36px; border-radius: 50%; background: var(--noir); color: var(--citron); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.carte ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--gris); }
.carte .lien-carte { margin-top: auto; font-weight: 600; }

.pressions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.pression { border-left: 4px solid var(--vert); background: #fff; padding: 14px 16px; border-radius: 0 var(--rayon) var(--rayon) 0; }
.pression strong { display: block; }
.pression span { color: var(--gris); font-size: .95rem; }

/* Baromètre */
.barometre { background: var(--noir-2); color: #eef4ea; }
.barometre .surtitre { color: var(--citron); }
.barometre .intro { color: #c3cfbd; }
.barometre a { color: var(--citron); }
.colonnes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .colonnes { grid-template-columns: 1fr; } }
.volets { display: grid; gap: 14px; margin-bottom: 28px; }
.volet { border: 1px solid #2c3626; border-radius: var(--rayon); padding: 18px 20px; }
.volet h3 { color: #fff; margin-bottom: .3em; }
.volet p { margin: 0; color: #c3cfbd; font-size: .97rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--degrade); color: #0b0d0a; margin-bottom: 8px; }

.formulaire { background: #fff; color: var(--encre); border-radius: var(--rayon); padding: 28px; }
.formulaire h3 { margin-bottom: .2em; }
.formulaire .aide { color: var(--gris); font-size: .95rem; }
.formulaire a { color: var(--vert-texte); }
.champ { margin-bottom: 14px; }
.champ label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.champ input, .champ select { width: 100%; padding: 11px 12px; border: 1px solid #c5cdbf; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.champ input:focus, .champ select:focus { outline: 3px solid #b8f59a; border-color: var(--vert-texte); }
.facultatif { font-weight: 400; color: var(--gris); }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--gris); margin: 16px 0; }
.consentement input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.notice { font-size: .8rem; color: var(--gris); margin: 12px 0 0; }
.cache { position: absolute; left: -9999px; }
.formulaire .bouton-principal { width: 100%; }

/* Méthodologie */
.tableau-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { background: var(--noir); color: #fff; font-weight: 600; }
td.pts { white-space: nowrap; font-weight: 700; color: var(--vert-texte); }
tr:last-child td { border-bottom: 0; }
.regles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.regle { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; }
.regle h3 { font-size: 1rem; }
.regle p { margin: 0; color: var(--gris); font-size: .95rem; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.contact-carte { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; background: #fff; }
.contact-carte.whatsapp { border: 2px solid var(--vert-texte); }
.bouton-whatsapp { background: #128c3e; color: #fff; }
.bouton-whatsapp:hover { background: #0f7834; }

.contact-whatsapp { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.contact-whatsapp h3, .contact-whatsapp p { margin: 0; }
.contact-colonnes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 860px) { .contact-colonnes { grid-template-columns: 1fr; } }
.contact-cotes { display: grid; gap: 20px; }
.formulaire-contact { border: 1px solid var(--bord); }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .champ-duo { grid-template-columns: 1fr; } }
.champ textarea { width: 100%; padding: 11px 12px; border: 1px solid #c5cdbf; border-radius: 8px; font: inherit; resize: vertical; }
.champ textarea:focus { outline: 3px solid #b8f59a; border-color: var(--vert-texte); }
.formulaire-contact .bouton-principal { width: auto; padding-left: 36px; padding-right: 36px; }
#formulaire-contact { scroll-margin-top: 90px; }

/* Champs à compléter — visibles tant qu'ils ne sont pas remplis */
.a-completer { background: #fff3b0; color: #5a4300; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* Pages légales */
.page-legale { padding: 56px 0 72px; }
.page-legale .conteneur { max-width: 820px; }
.page-legale h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-legale h2 { font-size: 1.3rem; margin-top: 1.8em; }
.page-legale ul { padding-left: 1.2em; }
.page-legale .maj { color: var(--gris); font-size: .95rem; }

/* Pied de page */
.pied { background: var(--noir); color: #bfc9b9; padding: 40px 0; font-size: .92rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.pied img { height: 34px; width: auto; }
.pied a { color: #e9f2e4; }
.pied nav { display: flex; gap: 16px; flex-wrap: wrap; }
.pied .signature { color: #e9f2e4; font-weight: 600; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .entete { position: static; }
  .nav { gap: 12px; }
  .nav a { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
