/* ==========================================================================
   SoftSMS — feuille de style
   Palette reprise de la charte SoftSMS (bleu encre, bleu, violet, turquoise).

   Parti pris : une page claire de bout en bout. Les seuls aplats sombres sont
   les coques des téléphones et la fenêtre de code — deux objets, pas des
   bandes. Le reste joue sur deux papiers et des cartes blanches.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --encre:        #272B6B;
  --encre-nuit:   #1B1F55;
  --encre-noir:   #141838;
  --bleu:         #4A5FC1;
  --bleu-fonce:   #3C47A8;
  --bleu-clair:   #7C9BFF;
  --violet:       #B9A3F5;
  --violet-f:     #7B5CC4;
  --turquoise:    #8FDCDC;
  --turquoise-f:  #1FA3B8;

  /* Surfaces */
  --papier:       #F8F7F2;
  --papier-pale:  #FBFAF7;
  --brume:        #EEF0FF;
  --brume-fonce:  #E3E7FB;
  --lavande:      #E8E6FA;
  --menthe:       #E3F4F5;
  --blanc:        #FFFFFF;
  --trait:        #E2E4F0;

  /* Textes */
  --texte:        #272B6B;
  --texte-doux:   #5A619C;
  --texte-pale:   #8C92C4;

  /* Ombres : toujours teintées encre, jamais du noir pur */
  --ombre-s:  0 1px 3px rgba(39, 43, 107, .05);
  --ombre-m:  0 10px 28px rgba(39, 43, 107, .09);
  --ombre-l:  0 24px 60px rgba(39, 43, 107, .14);

  --titre: "Quicksand", "Trebuchet MS", sans-serif;
  --corps: "Nunito Sans", "Segoe UI", sans-serif;

  --marge:  clamp(20px, 5vw, 56px);
  --section: clamp(68px, 9vw, 120px);
  --rayon:  20px;
}

/* --------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--papier);
  background-image: radial-gradient(rgba(39, 43, 107, .05) 1.3px, transparent 1.3px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--encre);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); }
h3 { font-size: 1.14rem; letter-spacing: -.005em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--encre); }

img { max-width: 100%; height: auto; display: block; }

code {
  font-family: "Courier New", monospace;
  font-size: .9em;
  background: var(--lavande);
  padding: 1px 6px;
  border-radius: 5px;
}

:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.saut-contenu {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; text-decoration: none; transition: top .2s;
}
.saut-contenu:focus { top: 0; color: #fff; }

/* --------------------------------------------------------- trame de page */
.enveloppe { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--marge); }
.enveloppe--etroite { max-width: 800px; }

/* Deux traitements de section seulement : papier, et papier pâle. */
.section { padding: var(--section) 0; }
.section--pale { background: var(--papier-pale); border-block: 1px solid var(--trait); }

.section__entete { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section__chapeau { color: var(--texte-doux); font-size: 1.07rem; margin-top: 16px; }

/* En-tête de section avec un lien aligné à droite */
.section__entete--ligne {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.surtitre {
  font-family: var(--titre);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bleu);
  margin: 0 0 14px;
}

.lien-fleche {
  font-family: var(--titre);
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
}
.lien-fleche::after { content: "→"; display: inline-block; margin-left: 7px; transition: transform .16s; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* Soulignement tracé à la main sous le titre du héros */
.souligne { position: relative; white-space: nowrap; }
.souligne::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .02em;
  height: .32em;
  background: linear-gradient(100deg, rgba(143, 220, 220, .85), rgba(185, 163, 245, .8));
  border-radius: 40% 60% 55% 45% / 100% 100% 100% 100%;
  z-index: -1;
}
@media (max-width: 600px) {
  .souligne { white-space: normal; }
  .souligne::after { display: none; }
}

/* --------------------------------------------------------- boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .97rem;
  line-height: 1;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bouton--petit { padding: 10px 18px; font-size: .9rem; }
.bouton--grand { padding: 16px 30px; font-size: 1.03rem; }
.bouton--large { width: 100%; }

.bouton--plein { background: var(--bleu); color: #fff; box-shadow: 0 5px 0 rgba(39, 43, 107, .2); }
.bouton--plein:hover { background: var(--bleu-fonce); color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 rgba(39, 43, 107, .2); }
.bouton--plein:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(39, 43, 107, .2); }

.bouton--contour { background: transparent; color: var(--encre); border-color: rgba(39, 43, 107, .22); }
.bouton--contour:hover { border-color: var(--encre); background: rgba(39, 43, 107, .04); color: var(--encre); }

/* --------------------------------------------------------- bandeau + en-tête */
.bandeau {
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
  color: var(--texte-doux);
  font-size: .85rem;
}
.bandeau__interieur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.bandeau__liens { display: flex; gap: 22px; flex-wrap: wrap; }
.bandeau a { color: var(--bleu); text-decoration: none; }
.bandeau a:hover { color: var(--encre); text-decoration: underline; }

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 242, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.entete.est-collee { border-bottom-color: var(--trait); box-shadow: var(--ombre-s); }
.entete__interieur { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); min-height: 72px; }

.marque { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.marque img { width: 44px; height: auto; }
.marque__nom { font-family: var(--titre); font-weight: 700; font-size: 1.38rem; letter-spacing: -.02em; color: var(--encre); }
.marque__nom em { font-style: normal; color: var(--bleu); }

.nav { display: flex; gap: clamp(14px, 1.9vw, 28px); }
.nav a {
  font-family: var(--titre);
  font-weight: 600;
  font-size: .97rem;
  color: var(--texte-doux);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.actif { color: var(--encre); border-bottom-color: var(--turquoise); }

/* L'accès à la plateforme est déjà en boutons à droite de l'en-tête : cette
   reprise ne sert qu'au menu replié, où ces boutons-là sont masqués. */
.nav__connexion { display: none; }

.entete__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 12px;
  cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--encre); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------- héros */
.heros { padding: clamp(48px, 6.5vw, 86px) 0 clamp(52px, 6.5vw, 80px); overflow: hidden; }
.heros__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.heros h1 { margin-bottom: 22px; }
.chapeau { font-size: clamp(1.06rem, 1.5vw, 1.19rem); color: var(--texte-doux); max-width: 32em; margin-bottom: 30px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.confiance {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: .92rem; color: var(--texte-doux);
}
.confiance li { position: relative; padding-left: 24px; }
.confiance li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 13px; height: 7px;
  border-left: 2.4px solid var(--turquoise-f);
  border-bottom: 2.4px solid var(--turquoise-f);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* --- les deux téléphones --- */
.heros__visuel { position: relative; display: flex; justify-content: center; }
.halo {
  position: absolute;
  inset: -10% -6% 6% -6%;
  background: radial-gradient(circle at 60% 40%, rgba(185, 163, 245, .36), transparent 62%),
              radial-gradient(circle at 25% 80%, rgba(143, 220, 220, .4), transparent 60%);
  filter: blur(26px);
  z-index: 0;
}

/* Les deux appareils se chevauchent de la seule épaisseur de la tranche :
   au-delà, le texte du téléphone de gauche serait coupé. */
.telephones { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; }

.telephone {
  --largeur-tel: clamp(170px, 40vw, 220px);
  position: relative;
  flex: none;
  width: var(--largeur-tel);
  padding: 10px;
  background: var(--encre);
  border-radius: 38px;
  box-shadow: var(--ombre-l), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.telephone--un   { z-index: 1; animation: flotte 6s ease-in-out infinite alternate; }
.telephone--deux { z-index: 2; margin: 46px 0 0 -18px; animation: flotte 6s ease-in-out .9s infinite alternate; }
@keyframes flotte { to { transform: translateY(-11px); } }

/* encoche, par-dessus la barre de statut */
.telephone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 13px;
  background: var(--encre);
  border-radius: 99px;
  z-index: 3;
}

.telephone__ecran { position: relative; background: var(--blanc); border-radius: 29px; overflow: hidden; padding-bottom: 11px; }

.statut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px 5px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .6rem;
  color: var(--encre);
}
.statut__icones { display: inline-flex; align-items: center; gap: 4px; }
/* Les pictogrammes suivent la couleur du texte. */
.ico-reseau { display: inline-flex; align-items: flex-end; gap: 1.3px; height: 8px; font-style: normal; }
.ico-reseau b { width: 2.2px; background: currentColor; border-radius: 1px; }
.ico-reseau b:nth-child(1) { height: 3.5px; }
.ico-reseau b:nth-child(2) { height: 5.8px; }
.ico-reseau b:nth-child(3) { height: 8px; }
.ico-batterie {
  position: relative; display: inline-block;
  width: 15px; height: 8px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
  font-style: normal;
}
.ico-batterie::before { content: ""; position: absolute; inset: 1.3px; right: 4.5px; background: currentColor; border-radius: 1px; }
.ico-batterie::after { content: ""; position: absolute; right: -3.1px; top: 2px; width: 1.8px; height: 3.2px; background: currentColor; border-radius: 0 2px 2px 0; }

/* application Messages */
.appli__entete { display: flex; align-items: center; gap: 7px; padding: 6px 12px 9px; border-bottom: 1px solid var(--trait); }
.appli__retour { flex: none; width: 6px; height: 6px; border-left: 1.8px solid var(--bleu); border-bottom: 1.8px solid var(--bleu); transform: rotate(45deg); }
.appli__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brume);
  color: var(--bleu);
  font-family: var(--titre); font-weight: 700; font-size: .7rem;
}
.appli__identite { display: grid; line-height: 1.22; min-width: 0; }
.appli__nom { font-family: var(--titre); font-weight: 700; font-size: .74rem; letter-spacing: .04em; color: var(--encre); }
.appli__sous { font-size: .55rem; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-pale); }

.appli__saisie {
  display: flex; align-items: center; gap: 7px;
  margin: 11px 10px 0;
  padding: 6px 6px 6px 12px;
  background: var(--papier-pale);
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: .67rem;
  color: var(--texte-pale);
}
.appli__saisie i { position: relative; margin-left: auto; flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--bleu); }
.appli__saisie i::after {
  content: ""; position: absolute;
  left: 6px; top: 6.5px; width: 5px; height: 5px;
  border-top: 1.8px solid #fff; border-right: 1.8px solid #fff;
  transform: rotate(45deg);
}

.fil { padding: 10px 11px 0; display: grid; gap: 7px; }
.fil__date { text-align: center; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-pale); margin: 0 0 2px; }

.bulle { max-width: 88%; background: var(--brume); border-radius: 13px 13px 13px 4px; padding: 8px 10px; font-size: .71rem; line-height: 1.42; }
.bulle p { margin: 0; }
.bulle__meta { margin-top: 4px !important; font-size: .58rem; color: var(--texte-pale); }
/* le SMS qui porte un code de validation */
.bulle--code { background: var(--lavande); }
.bulle--code b {
  font-family: "Courier New", monospace;
  font-size: 1.1em; font-weight: 700; letter-spacing: .1em;
  background: var(--blanc); border-radius: 4px; padding: 0 4px;
}

/* Le second appareil prend l'accent turquoise, pour qu'on voie d'un coup
   d'œil qu'il s'agit d'un autre expéditeur. */
.bulle--deux { background: var(--menthe); }
.appli__avatar--deux { background: var(--menthe); color: var(--turquoise-f); }
.telephone--deux .appli__retour { border-left-color: var(--turquoise-f); border-bottom-color: var(--turquoise-f); }
.telephone--deux .appli__saisie i { background: var(--turquoise-f); }

/* --------------------------------------------------------- grille produits */
.produits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }

.produit {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: clamp(24px, 2.6vw, 30px);
  box-shadow: var(--ombre-s);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.produit:hover { transform: translateY(-3px); box-shadow: var(--ombre-m); border-color: var(--bleu-clair); }

.produit__icone {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brume);
  color: var(--bleu);
}
.produit__icone svg { width: 24px; height: 24px; }
.produit h3 { margin-bottom: 9px; }
.produit p { font-size: .96rem; color: var(--texte-doux); margin: 0 0 20px; }

/* L'appel à l'action, collé en bas pour que les six boutons s'alignent. */
.produit__action {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .88rem;
  color: var(--bleu);
  text-decoration: none;
  padding: 9px 17px;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  transition: background-color .16s, border-color .16s, color .16s;
}
.produit__action::after { content: "→"; transition: transform .16s; }
.produit__action:hover { border-color: var(--bleu); background: var(--brume); color: var(--bleu); }
.produit__action:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------- blocs alternés */
.bloc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.bloc + .bloc { margin-top: clamp(56px, 7vw, 100px); }
.bloc--inverse .bloc__texte { order: 2; }
.bloc__texte p { color: var(--texte-doux); }
.bloc__texte h2 { margin-bottom: 16px; }

.puces { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; font-size: .96rem; }
.puces li { position: relative; padding-left: 26px; }
.puces li::before {
  content: "";
  position: absolute;
  left: 1px; top: .42em;
  width: 13px; height: 7px;
  border-left: 2.4px solid var(--bleu);
  border-bottom: 2.4px solid var(--bleu);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* --- fausse fenêtre d'application, pour les visuels des blocs --- */
.fenetre-appli {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--ombre-m);
}
.fenetre-appli__titre {
  font-family: var(--titre); font-weight: 700; font-size: .76rem;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--texte-pale); margin: 0 0 18px;
}
.fenetre-appli__pied {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--trait);
  font-size: .87rem; color: var(--texte-doux);
}
.faux-bouton {
  font-family: var(--titre); font-weight: 700; font-size: .87rem;
  color: #fff; background: var(--bleu);
  border-radius: 999px; padding: 10px 20px;
}
.faux-bouton--clair { background: var(--brume); color: var(--bleu); }

.champ-faux + .champ-faux { margin-top: 18px; }
.champ-faux__etiquette { display: block; font-family: var(--titre); font-weight: 700; font-size: .82rem; color: var(--encre); margin-bottom: 8px; }
.fichier {
  display: flex; align-items: center; gap: 10px;
  background: var(--papier-pale);
  border: 1px dashed var(--bleu-clair);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: .9rem; color: var(--encre);
}
.fichier__icone { flex: none; width: 18px; height: 22px; border: 1.6px solid var(--bleu); border-radius: 3px; position: relative; }
.fichier__icone::after {
  content: ""; position: absolute;
  left: 3px; right: 3px; top: 6px; height: 1.6px;
  background: var(--bleu);
  box-shadow: 0 4px 0 var(--bleu), 0 8px 0 var(--bleu);
}
.fichier__bilan { margin: 8px 0 0; font-size: .83rem; color: var(--texte-pale); }
.fichier__bilan strong { color: var(--encre); }

.zone-faux {
  background: var(--papier-pale);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .9rem; line-height: 1.55;
  color: var(--texte-doux);
}
.zone-faux em { font-style: normal; background: var(--lavande); color: var(--bleu); border-radius: 4px; padding: 0 5px; }

.rapport__chiffre {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1; color: var(--encre); margin: 0 0 12px;
}
.rapport__chiffre span { display: block; font-size: .82rem; font-weight: 600; color: var(--texte-pale); margin-top: 6px; }

.jauge { height: 8px; background: var(--brume); border-radius: 99px; overflow: hidden; }
.jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--bleu), var(--turquoise)); }

.statuts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.statuts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.statuts li span { position: relative; padding-left: 20px; color: var(--texte-doux); }
.statuts li span::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; border-radius: 50%; }
.statuts li strong { font-family: var(--titre); color: var(--encre); }
.statuts--ok    span::before { background: #12A05A; }
.statuts--cours span::before { background: var(--violet); }
.statuts--ko    span::before { background: #E8734A; }

/* --------------------------------------------------------- secteurs */
.etiquettes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.etiquettes li {
  font-family: var(--titre); font-weight: 600; font-size: .95rem;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 999px;
  padding: 9px 18px;
}
.etiquettes li:nth-child(3n+1) { border-color: rgba(74, 95, 193, .35); }
.etiquettes li:nth-child(3n+2) { border-color: rgba(31, 163, 184, .4); }
.etiquettes li:nth-child(3n+3) { border-color: rgba(185, 163, 245, .55); }

/* --------------------------------------------------------- calculateur */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(22px, 3vw, 36px); align-items: start; }

.calc__reglages {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: clamp(22px, 3.2vw, 36px);
  box-shadow: var(--ombre-s);
  display: grid;
  gap: 30px;
}

.champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.champ__titre { font-family: var(--titre); font-weight: 700; font-size: 1rem; color: var(--encre); padding: 0; margin-bottom: 14px; }
.champ__aide { font-size: .87rem; color: var(--texte-doux); margin: 11px 0 0; }

.segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: var(--brume); border-radius: 14px; padding: 5px; }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segment span {
  display: block; text-align: center;
  font-family: var(--titre); font-weight: 600; font-size: .94rem;
  padding: 11px 8px; border-radius: 10px;
  color: var(--texte-doux);
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.segment input:checked + span { background: var(--blanc); color: var(--encre); box-shadow: var(--ombre-s); }
.segment input:focus-visible + span { outline: 3px solid var(--bleu-clair); outline-offset: 2px; }
.segment:hover span { color: var(--encre); }

.volume {
  display: flex; align-items: baseline; gap: 10px;
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 10px 16px;
  background: var(--papier-pale);
  transition: border-color .18s, background-color .18s;
}
.volume:focus-within { border-color: var(--bleu-clair); background: var(--blanc); }
.volume input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font-family: var(--titre); font-weight: 700; font-size: 1.9rem;
  color: var(--encre); padding: 0;
}
.volume input:focus { outline: none; }
.volume input::-webkit-outer-spin-button,
.volume input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.volume input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.volume__unite { font-size: .93rem; color: var(--texte-pale); flex: none; }

.curseur { margin-top: 16px; }
.curseur input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
.curseur input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--bleu) var(--remplissage, 0%), var(--brume) var(--remplissage, 0%));
}
.curseur input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--brume); }
.curseur input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--bleu); }
.curseur input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; margin-top: -8px;
  border-radius: 50%; background: var(--blanc);
  border: 3px solid var(--bleu); box-shadow: var(--ombre-s);
}
.curseur input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--blanc); border: 3px solid var(--bleu); }

.raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.raccourcis button {
  font-family: var(--corps); font-size: .86rem; font-weight: 600;
  color: var(--texte-doux);
  background: var(--papier-pale);
  border: 1px solid var(--trait);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  transition: all .16s;
}
.raccourcis button:hover { border-color: var(--bleu-clair); color: var(--encre); background: var(--blanc); }
.raccourcis button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }

#message {
  width: 100%;
  font-family: var(--corps); font-size: .97rem; line-height: 1.6;
  color: var(--texte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--papier-pale);
  resize: vertical;
  transition: border-color .18s, background-color .18s;
}
#message:focus { outline: none; border-color: var(--bleu-clair); background: var(--blanc); }

.compteur { display: flex; gap: 8px; font-size: .87rem; color: var(--texte-doux); margin: 11px 0 0; }
.compteur strong { color: var(--encre); font-weight: 700; }
.compteur .drapeau {
  font-family: var(--titre); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px;
  background: var(--brume); color: var(--bleu);
}
/* --- devis : une carte claire, distinguée par son fond bleuté --- */
.calc__devis { position: sticky; top: 96px; }

.devis {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F1F4FF 0%, var(--blanc) 58%);
  border: 1px solid var(--brume-fonce);
  border-radius: var(--rayon);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--ombre-m);
  color: var(--texte-doux);
}
.devis::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--bleu), var(--violet), var(--turquoise)); }
.devis__etiquette {
  font-family: var(--titre); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bleu); margin: 0 0 12px;
}
.devis__total {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  line-height: 1; color: var(--encre); margin: 0;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
}
.devis__total em { font-style: normal; font-size: .95rem; font-weight: 600; color: var(--bleu); letter-spacing: .02em; }
.devis__rappel { font-size: .86rem; color: var(--texte-pale); margin: 6px 0 0; }
.devis__palier {
  display: inline-block;
  font-family: var(--titre); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  color: var(--bleu); background: var(--brume);
  border-radius: 999px; padding: 6px 15px; margin: 18px 0 0;
}

.devis__lignes {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--trait);
  display: grid; gap: 11px; font-size: .92rem;
}
.devis__lignes > div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.devis__lignes dt { color: var(--texte-doux); }
.devis__lignes dd { margin: 0; font-weight: 600; color: var(--encre); text-align: right; white-space: nowrap; }
.devis__lignes .ligne--separee { border-top: 1px solid var(--trait); padding-top: 13px; margin-top: 4px; }
.devis__lignes .ligne--option dt { color: var(--violet-f); }
.devis__lignes .ligne--total dt,
.devis__lignes .ligne--total dd { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; color: var(--encre); }

/* Le détail du barème : une ligne par tranche consommée. */
.devis__lignes .ligne--titre { margin-bottom: 2px; }
.devis__lignes .ligne--titre dt {
  font-family: var(--titre); font-weight: 700; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--bleu);
}
.devis__lignes .ligne--tranche { font-size: .88rem; }
.devis__lignes .ligne--tranche dt { display: flex; align-items: center; gap: 9px; color: var(--texte-doux); }
.puce-tranche { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

.devis__economie {
  margin: 16px 0 0;
  font-size: .87rem; line-height: 1.5;
  color: #15707E;
  background: var(--menthe);
  border-radius: 12px;
  padding: 11px 14px;
}
.devis__actions { display: grid; gap: 10px; margin-top: 24px; }
.devis__mention { margin: 18px 0 0; font-size: .78rem; line-height: 1.5; color: var(--texte-pale); }

/* --- barème --- */
.grille-tarifs { margin-top: clamp(44px, 6vw, 72px); }
.grille-tarifs h3 { font-size: 1.3rem; margin-bottom: 6px; }
.grille-tarifs__note { font-size: .88rem; color: var(--texte-doux); margin: 0 0 18px; }
.grille-tarifs__note:last-child { margin: 16px 0 0; }

.tableau-cadre { overflow-x: auto; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); }
.tableau { width: 100%; border-collapse: collapse; min-width: 380px; }
.tableau th, .tableau td { text-align: left; padding: 15px 22px; }
.tableau thead th {
  font-family: var(--titre); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--texte-pale); border-bottom: 1px solid var(--trait);
}
.tableau tbody tr + tr td { border-top: 1px solid var(--trait); }
.tableau td { font-size: .97rem; }
.tableau .cellule-prix { font-family: var(--titre); font-weight: 700; color: var(--encre); white-space: nowrap; }
.tableau .cellule-volume strong { display: block; font-family: var(--titre); }
.tableau tr.est-active { background: var(--brume); }
.tableau tr.est-active .cellule-prix { color: var(--bleu); }

/* --------------------------------------------------------- développeurs */
.api__cartes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-bottom: clamp(28px, 4vw, 42px);
}
.api__carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 20px 24px;
  box-shadow: var(--ombre-s);
}
.api__carte-titre {
  font-family: var(--titre); font-weight: 700; font-size: .76rem;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--texte-pale); margin: 0 0 10px;
}
.api__carte code {
  display: block;
  background: var(--papier-pale);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .88rem;
  color: var(--encre);
  overflow-x: auto;
  white-space: nowrap;
}

.api__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.api__texte h3 { font-size: 1.35rem; margin-bottom: 14px; }
.api__texte p { color: var(--texte-doux); }
.api__texte .bouton { margin-top: 28px; }

.fenetre {
  background: var(--encre-noir);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre-l);
  border: 1px solid rgba(39, 43, 107, .25);
}

/* onglets de langage */
.onglets {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow-x: auto;
}
.onglets button {
  flex: none;
  font-family: var(--titre); font-weight: 700; font-size: .85rem;
  color: rgba(255, 255, 255, .52);
  background: transparent;
  border: 0;
  border-radius: 10px 10px 0 0;
  padding: 10px 18px;
  cursor: pointer;
  transition: color .16s, background-color .16s;
}
.onglets button:hover { color: #fff; }
.onglets button[aria-selected="true"] { color: var(--turquoise); background: var(--encre-noir); }

.fenetre__code {
  margin: 0;
  padding: 24px 22px 26px;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: .84rem;
  line-height: 1.7;
  color: #E8E6FA;
}
.fenetre__code code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
.fenetre__code .c-kw  { color: #B9A3F5; }
.fenetre__code .c-fn  { color: #8FDCDC; }
.fenetre__code .c-str { color: #9BE8A8; }
.fenetre__code .c-cm  { color: #6B72A8; }

/* --------------------------------------------------------- questions */
.questions { display: grid; gap: 2px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.questions details { background: var(--blanc); }
.questions summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--titre); font-weight: 600; font-size: 1.04rem;
  color: var(--encre);
  padding: 20px 56px 20px 24px;
  position: relative;
  transition: background-color .16s;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { background: var(--papier-pale); }
.questions summary::after {
  content: "";
  position: absolute;
  right: 26px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2.5px solid var(--bleu);
  border-bottom: 2.5px solid var(--bleu);
  transform: rotate(45deg);
  transition: transform .2s;
}
.questions details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.questions details p { margin: 0; padding: 0 56px 22px 24px; font-size: .96rem; color: var(--texte-doux); }

/* --------------------------------------------------------- appel final */
.final { padding: var(--section) 0; }
.final__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(115deg, #5A6FD0 0%, #8278DE 52%, #35A9BE 100%);
  border-radius: 26px;
  padding: clamp(30px, 4.5vw, 50px);
  box-shadow: var(--ombre-l);
}
.final__interieur > div:first-child { flex: 1 1 380px; }
.final h2 { color: #fff; margin-bottom: 8px; }
.final p { color: rgba(255, 255, 255, .88); margin: 0; }
.final__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 1 auto; }
.final .bouton--plein { background: #fff; color: var(--encre); box-shadow: 0 5px 0 rgba(39, 43, 107, .22); }
.final .bouton--plein:hover { background: var(--papier-pale); color: var(--encre); }
.final .bouton--contour { color: #fff; border-color: rgba(255, 255, 255, .6); }
.final .bouton--contour:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }

/* --------------------------------------------------------- pied */
.pied {
  background: var(--papier-pale);
  border-top: 1px solid var(--trait);
  color: var(--texte-doux);
  padding: clamp(50px, 6vw, 76px) 0 24px;
  font-size: .94rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 46px);
  padding-bottom: 38px;
}
.pied__marque p { margin-top: 14px; max-width: 28ch; }
.pied__colonne h3 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--bleu); margin-bottom: 14px; }
.pied__colonne ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied a { color: var(--texte-doux); text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }

.pied__bas {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--trait);
  font-size: .85rem;
  color: var(--texte-pale);
}
.pied__bas p { margin: 0; }
.pied__editeur { display: inline-flex; align-items: center; gap: 10px; }
.pied__editeur img { width: 26px; flex: none; }
.pied__editeur strong { color: var(--encre); }

/* --------------------------------------------------------- adaptatif */
@media (max-width: 1080px) {
  .produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .calc__devis { position: static; }
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 76px; }
  .entete__actions { display: none; }
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--papier-pale);
    border-bottom: 1px solid var(--trait);
    box-shadow: var(--ombre-m);
    padding: 8px var(--marge) 18px;
    display: none;
  }
  .nav.est-ouvert { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--trait); font-size: 1.05rem; }
  .nav > a:last-of-type { border-bottom: 0; }

  .nav__connexion { display: grid; gap: 10px; margin-top: 16px; }
  .nav__connexion a { padding: 14px 24px; border-bottom: 0; font-size: 1rem; }
  .nav__connexion .bouton--plein,
  .nav__connexion .bouton--plein:hover { color: #fff; }
}

@media (max-width: 900px) {
  .heros__grille { grid-template-columns: 1fr; }
  .heros__visuel { margin-top: 18px; }
  .heros__texte { max-width: 40em; }
  .api__grille { grid-template-columns: 1fr; }
  .bloc { grid-template-columns: 1fr; gap: 30px; }
  .bloc--inverse .bloc__texte { order: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bandeau__interieur { justify-content: center; text-align: center; padding-block: 7px; }
  .bandeau__lieu { display: none; }
  .bandeau__liens { gap: 16px; }
  .heros__actions .bouton { flex: 1 1 100%; }
  .telephone { animation: none; }
  .produits { grid-template-columns: 1fr; }
  .api__cartes { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .volume input { font-size: 1.6rem; }
  .tableau th, .tableau td { padding: 13px 16px; }
  .pied__grille { grid-template-columns: 1fr; }
  .final__actions .bouton { flex: 1 1 100%; }
}

/* --------------------------------------------------------- impression */
@media print {
  .bandeau, .entete, .heros__visuel, .burger, .devis__actions, .final, .onglets { display: none; }
  body { background: #fff; }
  .devis { background: #fff; border: 1px solid #999; box-shadow: none; }
}
