/* bbb.nimag.net - une seule feuille, sans bibliothèque.
   Les couleurs et les polices sont celles de la charte Nimag (juin 2025) :
   Dark Root, Pulse Link, Copper Data, Clean Shell. Pulse Link est trop clair
   pour porter du texte blanc : les boutons prennent un sarcelle plus profond. */

@font-face { font-family: "Chillax"; src: url("fonts/Chillax-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("fonts/Chillax-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("fonts/Chillax-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Radix"; src: url("fonts/radix-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --encre: #1c2427;
  --encre-2: #232e32;
  --sarcelle: #95bfbe;
  --sarcelle-fonce: #3b6e6c;
  --sarcelle-tres-fonce: #2e5856;
  --cuivre: #bea486;
  --coquille: #fdf8ef;
  --brume: #f4f7f7;
  --trait: #dfe6e6;
  --texte: #1c2427;
  --texte-doux: #56676a;
  --rayon: 16px;
  --ombre: 0 1px 2px rgba(28, 36, 39, .06), 0 8px 24px rgba(28, 36, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Chillax", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: #fff;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Radix", "Chillax", ui-sans-serif, system-ui, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h3 { font-family: "Chillax", ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
a { color: var(--sarcelle-fonce); text-underline-offset: 3px; }
a:hover { color: var(--sarcelle-tres-fonce); }
:focus-visible { outline: 3px solid var(--sarcelle); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.conteneur-etroit { max-width: 800px; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* --- Boutons --- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.bouton:active { transform: translateY(1px); }
.bouton-plein { background: var(--sarcelle-fonce); color: #fff; }
.bouton-plein:hover { background: var(--sarcelle-tres-fonce); color: #fff; }
.bouton-clair { background: var(--sarcelle); color: var(--encre); }
.bouton-clair:hover { background: var(--coquille); color: var(--encre); }
.bouton-contour { border-color: rgba(253, 248, 239, .45); color: var(--coquille); }
.bouton-contour:hover { border-color: var(--sarcelle); color: var(--sarcelle); }
.bouton-contour-sombre { border-color: var(--sarcelle-fonce); color: var(--sarcelle-fonce); }
.bouton-contour-sombre:hover { background: var(--sarcelle-fonce); color: #fff; }
.bouton-large { width: 100%; padding: 14px 22px; }

/* --- En-tête --- */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(28, 36, 39, .96); backdrop-filter: blur(8px); color: var(--coquille); }
.entete-barre { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { height: 30px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: rgba(253, 248, 239, .8); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 16px; }
.menu a:hover { color: var(--coquille); background: rgba(253, 248, 239, .08); }
.entete .bouton { padding: 9px 18px; font-size: 15px; }

/* --- Hero --- */
.hero { background: var(--encre); color: var(--coquille); padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -55% 40%; height: 90%;
  background: radial-gradient(closest-side, rgba(149, 191, 190, .18), transparent); pointer-events: none;
}
.hero-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.surtitre { color: var(--sarcelle); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-top: 14px; }
.chapeau { margin-top: 20px; font-size: 1.15rem; color: rgba(253, 248, 239, .82); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .bouton-plein { background: var(--sarcelle); color: var(--encre); }
.hero .bouton-plein:hover { background: var(--coquille); color: var(--encre); }
.atouts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: rgba(253, 248, 239, .75); }
.atouts li { display: flex; align-items: center; gap: 8px; }
.atouts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cuivre); }
.apercu svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }

/* --- Sections --- */
.section { padding: 88px 0; }
.section-teintee { background: var(--brume); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sous-titre { margin-top: 12px; color: var(--texte-doux); font-size: 1.08rem; max-width: 40em; }

/* --- Fonctions --- */
.fonctions { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fonctions li { padding: 26px; border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; transition: box-shadow .2s, transform .2s; }
.fonctions li:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.fonctions svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #e0eeed; fill: none; stroke: var(--sarcelle-fonce); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fonctions svg .plein { fill: var(--sarcelle-fonce); stroke: none; }
.fonctions h3 { margin-top: 18px; font-size: 1.12rem; }
.fonctions p { margin-top: 6px; color: var(--texte-doux); font-size: 16px; }

/* --- Étapes --- */
.etapes { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding-top: 64px; }
.etapes li::before {
  content: counter(etape); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--encre); color: var(--sarcelle);
  font-family: "Radix", "Chillax", sans-serif; font-weight: 700; font-size: 1.2rem;
}
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 60px; right: -14px; height: 2px; background: var(--trait); }
.etapes h3 { font-size: 1.15rem; }
.etapes p { margin-top: 6px; color: var(--texte-doux); font-size: 16px; }

/* --- Offres --- */
.incluse {
  margin-top: 44px; padding: 28px 32px; border-radius: var(--rayon); background: var(--encre); color: var(--coquille);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.incluse h3 { font-size: 1.45rem; margin-top: 6px; }
.incluse p { color: rgba(253, 248, 239, .78); margin-top: 6px; max-width: 34em; font-size: 16px; }
.etiquette { color: var(--sarcelle) !important; font-size: 14px !important; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin: 0 !important; }
.incluse-prix { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.incluse .prix { color: var(--coquille); margin: 0; font-size: 2.2rem; }
.incluse .prix span { font-size: 1rem; }
.incluse .bouton-plein { background: var(--sarcelle); color: var(--encre); }
.incluse .bouton-plein:hover { background: var(--coquille); }

.prix { font-family: "Radix", "Chillax", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums; }
.prix span { font-size: 1rem; font-family: "Chillax", sans-serif; font-weight: 500; color: var(--cuivre); margin-right: 2px; }
.prix small { font-size: .95rem; font-family: "Chillax", sans-serif; font-weight: 400; color: var(--texte-doux); }

.plans-bloc { margin-top: 40px; }
/* Les deux boutons radio restent atteignables au clavier, sans se voir. */
.periode { position: absolute; opacity: 0; pointer-events: none; }
.bascule { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--brume); border: 1px solid var(--trait); }
.bascule label { padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--texte-doux); display: flex; align-items: center; gap: 8px; }
.bascule em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e0eeed; color: var(--sarcelle-tres-fonce); }
#p-mois:checked ~ .bascule label[for="p-mois"],
#p-an:checked ~ .bascule label[for="p-an"] { background: var(--encre); color: var(--coquille); }
#p-mois:focus-visible ~ .bascule label[for="p-mois"],
#p-an:focus-visible ~ .bascule label[for="p-an"] { outline: 3px solid var(--sarcelle); outline-offset: 2px; }
#p-mois:checked ~ .plans .prix-an,
#p-an:checked ~ .plans .prix-mois { display: none; }

.plans { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--rayon); border: 1px solid var(--trait); background: #fff; }
.plan-avant { border: 2px solid var(--sarcelle-fonce); box-shadow: var(--ombre); }
.plan h3 { font-family: "Radix", "Chillax", sans-serif; font-size: 1.5rem; }
.plan-pour { color: var(--texte-doux); font-size: 15px; margin-top: 4px; min-height: 3em; }
.plan .prix { margin-top: 18px; }
.plan-note { color: var(--texte-doux); font-size: 14px; margin-top: 6px; }
.plan .bouton { margin-top: auto; }
.plan .coches { margin: 22px 0 26px; }

.coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; }
.coches li { position: relative; padding-left: 28px; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: #e0eeed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%232e5856' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.coches-ligne { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }

.mention { margin-top: 16px; font-size: 14px; color: var(--texte-doux); }
.dans-tout { margin-top: 36px; padding: 26px 28px; border-radius: var(--rayon); background: var(--brume); }
.dans-tout h3 { font-size: 1.05rem; margin-bottom: 14px; }
.sur-mesure {
  margin-top: 20px; padding: 26px 28px; border-radius: var(--rayon); border: 1px dashed var(--cuivre); background: var(--coquille);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.sur-mesure h3 { font-size: 1.15rem; }
.sur-mesure p { color: var(--texte-doux); margin-top: 4px; font-size: 16px; max-width: 38em; }
.sur-mesure .bouton-clair { background: var(--encre); color: var(--coquille); }
.sur-mesure .bouton-clair:hover { background: var(--sarcelle-fonce); color: #fff; }

/* --- Questions --- */
.questions { margin-top: 32px; display: grid; gap: 10px; }
.questions details { background: #fff; border: 1px solid var(--trait); border-radius: 12px; }
.questions summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 500; position: relative; border-radius: 12px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--sarcelle-fonce); border-bottom: 2px solid var(--sarcelle-fonce); transform: rotate(45deg); transition: transform .2s;
}
.questions details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.questions details p { padding: 0 22px 20px; color: var(--texte-doux); font-size: 16px; }

/* --- Contact --- */
.contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-client { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--cuivre); background: var(--coquille); border-radius: 0 12px 12px 0; font-size: 16px; }
.carte-formulaire { padding: 32px; border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: var(--ombre); background: #fff; }
form { display: grid; gap: 16px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.facultatif { font-weight: 400; color: var(--texte-doux); font-size: 13px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c5d0d0; border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--texte);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sarcelle-fonce); box-shadow: 0 0 0 3px rgba(149, 191, 190, .45); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.erreur { color: #b3261e; font-size: 14px; font-weight: 400; }
.message { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 16px; }
.message strong { display: block; }
.message-ok { background: #e7f4ee; color: #17513a; }
.message-erreur { background: #fdecea; color: #8c1d18; }
.pas-pour-vous { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .mention { margin-top: 0; font-size: 13px; }

/* --- Pied --- */
.pied { background: var(--encre); color: rgba(253, 248, 239, .75); padding: 56px 0 28px; font-size: 15px; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.pied img { height: 25px; width: auto; }
.pied p { margin-top: 14px; }
.pied nav, .partenaires { display: grid; gap: 8px; align-content: start; }
.pied a { color: rgba(253, 248, 239, .85); text-decoration: none; }
.pied a:hover { color: var(--sarcelle); }
.partenaires p { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: rgba(253, 248, 239, .5); }
.partenaires img { height: 22px; filter: brightness(0) invert(1); opacity: .8; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(253, 248, 239, .12); font-size: 13px; color: rgba(253, 248, 239, .5); }

/* --- Écrans plus étroits --- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grille, .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .apercu { max-width: 520px; }
  .fonctions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .plan-pour { min-height: 0; }
  .section { padding: 64px 0; }
  .etapes { grid-template-columns: 1fr; gap: 28px; }
  .etapes li { padding: 0 0 0 64px; min-height: 46px; }
  .etapes li::after { display: none; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .menu { display: none; }
  .entete .bouton { margin-left: auto; }
  .fonctions { grid-template-columns: 1fr; }
  .champs-2 { grid-template-columns: 1fr; }
  .incluse, .carte-formulaire { padding: 24px 20px; }
  .incluse-prix { width: 100%; justify-content: space-between; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .bascule label { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
