/* =====================================================================
   digital-surface.fr — feuille de style unique (palette A, novembre 2026)
   Graphite #1B1F24 · Ardoise #2E343B · Vert signal #12B886 · Orange #FF6B35
   ===================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --graphite: #1B1F24;
  --ardoise: #2E343B;
  --vert: #12B886;
  --vert-texte: #0B7A59;
  --vert-pale: #E7F7F1;
  --orange: #FF6B35;
  --fond: #F4F5F2;
  --blanc: #FFFFFF;
  --texte: #1B1F24;
  --texte-2: #3A4048;
  --gris: #5C636E;
  --gris-clair: #C9CED4;
  --filet: #E2E5E8;
  --rayon: 12px;
  --titres: "Inter Tight", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 17px/1.6 Inter, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--vert-texte); }
a:hover { color: #086247; }
h1, h2, h3 { font-family: var(--titres); letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
h1 { font-size: 34px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }

.conteneur { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section--serre { padding-top: 24px; }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 10px; }
.chapo { color: var(--gris); margin: 8px 0 28px; }
.texte-2 { color: var(--texte-2); }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--blanc); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 8px; }
.icone { flex: none; }

/* ---- Boutons ---- */
.bouton { display: inline-block; background: var(--vert); color: var(--graphite); font-weight: 600; padding: 13px 22px; border-radius: 8px; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.bouton:hover { background: #0FA478; color: var(--graphite); transform: translateY(-1px); }
.bouton--secondaire { background: var(--blanc); border: 1px solid var(--gris-clair); padding: 12px 21px; }
.bouton--secondaire:hover { background: var(--blanc); border-color: var(--graphite); }
.bouton--petit { font-size: 15px; padding: 10px 16px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- En-tête ---- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 5; }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--graphite); text-decoration: none; font-family: var(--titres); font-weight: 700; font-size: 19px; }
.menu { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.menu a:not(.bouton) { color: var(--graphite); text-decoration: none; }
.menu a[aria-current="page"], .menu a:not(.bouton):hover { color: var(--vert-texte); }
.menu-bouton { display: none; background: none; border: 0; padding: 10px; margin: -10px; color: var(--graphite); cursor: pointer; }
@media (max-width: 900px) {
  .menu-bouton { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 1px solid var(--filet); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .menu--ouvert { display: flex; }
  .menu a:not(.bouton) { padding: 12px 0; border-bottom: 1px solid var(--filet); }
  .menu .bouton { margin-top: 14px; text-align: center; }
}

.fil { font-size: 14px; color: var(--gris); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.fil a { color: var(--gris); }

/* ---- Héros ---- */
.heros { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.heros__texte { flex: 1 1 480px; min-width: 0; position: relative; }
.heros__texte h1 { margin-bottom: 18px; }
.heros__texte .texte-2 { margin-bottom: 28px; max-width: 560px; }
.heros__visuel { flex: 1 1 440px; min-width: 0; position: relative; }
.heros--sombre { background: var(--graphite); color: var(--blanc); position: relative; overflow: hidden; }
.heros--sombre .texte-2 { color: var(--gris-clair); }
.heros--sombre .surtitre { color: var(--vert); }

.cadre-parallaxe { overflow: hidden; border-radius: var(--rayon); height: 400px; }
.cadre-parallaxe img { width: 100%; height: 125%; margin-top: -12%; object-fit: cover; }
.cadre-parallaxe--bas { height: 190px; border-radius: 10px; }

.carte-flottante { position: absolute; left: 20px; bottom: 20px; width: 250px; background: var(--blanc); border-radius: 10px; padding: 16px 18px; box-shadow: 0 6px 24px rgba(27,31,36,.14); }
.carte-flottante__libelle { font-size: 12px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.jauge { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.jauge__valeur { font-family: var(--titres); font-size: 24px; font-weight: 700; }
.jauge__legende { font-size: 13px; color: var(--gris); }

.deco { position: absolute; pointer-events: none; }
.deco--cercle { border-radius: 50%; border: 2px solid var(--vert); opacity: .35; }
.deco--carre { border-radius: 18px; background: var(--orange); opacity: .12; }

/* ---- Bandeau de repères ---- */
.reperes { background: var(--graphite); color: var(--blanc); }
.reperes__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.repere__chiffre { font-family: var(--titres); font-size: 28px; font-weight: 700; color: var(--vert); }
.repere__texte { font-size: 15px; color: var(--gris-clair); }

/* ---- Cartes ---- */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.carte { display: block; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 24px; color: var(--texte); text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
a.carte:hover, .carte:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(27,31,36,.14); border-color: var(--vert); color: var(--texte); }
.carte h3 { margin: 12px 0 8px; }
.carte h3:first-child { margin-top: 0; }
.carte p { font-size: 15px; color: var(--gris); }
.carte .icone { color: var(--vert-texte); width: 28px; height: 28px; }
.carte--accent { background: var(--graphite); border: 2px solid var(--vert); color: var(--blanc); }
.carte--accent:hover { color: var(--blanc); }
.carte--accent p { color: var(--gris-clair); }
.carte--accent .icone { color: var(--vert); }
.badge { font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; background: var(--vert); color: var(--graphite); padding: 2px 8px; border-radius: 20px; vertical-align: middle; }
.numero { font-family: var(--titres); font-size: 28px; font-weight: 700; color: var(--vert); }
.prix { font-family: var(--titres); font-size: 26px; font-weight: 700; margin-top: 4px; }
.carte--accent .prix { color: var(--vert); }
.prix small { font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; color: var(--gris-clair); }

/* ---- Parcours en étapes ---- */
.barre { height: 3px; background: var(--filet); border-radius: 2px; overflow: hidden; margin: 12px 0 20px; }
.barre span { display: block; height: 100%; background: var(--vert); }
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
.etape { padding: 24px; border-right: 1px solid var(--filet); }
.etape:last-child { border-right: 0; background: var(--vert-pale); }
.etape__num { font-size: 13px; font-weight: 600; color: var(--vert-texte); }
.etape h3 { font-size: 18px; margin: 6px 0 8px; }
.etape p { font-size: 15px; color: var(--gris); }

/* ---- Blocs image + texte ---- */
.bloc { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; display: flex; flex-wrap: wrap; }
.bloc__visuel { flex: 1 1 420px; min-width: 0; height: 380px; overflow: hidden; }
.bloc__visuel img { width: 100%; height: 125%; margin-top: -12%; object-fit: cover; }
.bloc__texte { flex: 1 1 420px; min-width: 0; padding: 36px; }
.bloc__texte h2 { margin-bottom: 14px; }
.bloc__texte ul { margin: 0 0 22px; padding-left: 20px; color: var(--texte-2); font-size: 16px; }
.lien-fleche { font-weight: 600; }
.duo { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.duo > * { flex: 1 1 380px; min-width: 0; }
.capture { border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--filet); width: 100%; height: auto; }
.encart { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.encart > div:first-child { flex: 1 1 440px; min-width: 0; }
.encart > .cadre-parallaxe { flex: 0 1 320px; min-width: 0; }
.encart h2 { font-size: 22px; margin-bottom: 10px; }

/* ---- Tableaux ---- */
.tableau-boite { overflow-x: auto; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); }
.tableau { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; padding: 14px 20px; background: var(--fond); font-weight: 600; }
.tableau td { padding: 14px 20px; border-top: 1px solid var(--filet); }
.tableau td:first-child { font-weight: 500; }
.tableau .col-accent { color: var(--vert-texte); }
.comparatif { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparatif th { padding: 8px 4px; border-bottom: 1px solid var(--filet); color: var(--gris); font-weight: 500; text-align: center; }
.comparatif th:first-child { text-align: left; }
.comparatif td { padding: 9px 4px; border-bottom: 1px solid #F0F1F2; text-align: center; }
.comparatif td:first-child { text-align: left; padding-left: 0; }
.comparatif tbody th { text-align: left; font-weight: 400; color: inherit; padding: 9px 0; border-bottom: 1px solid #F0F1F2; }
.comparatif tr:last-child td, .comparatif tr:last-child th { border-bottom: 0; }
.comparatif .non { color: var(--gris); }
.comparatif .oui { font-weight: 600; color: var(--vert-texte); }
.aparte { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 24px; flex: 1 1 340px; min-width: 0; position: relative; }
.aparte h2 { font-size: 18px; margin-bottom: 14px; }

/* ---- Exemple de suivi IA ---- */
.suivi { flex: 1 1 380px; min-width: 0; background: var(--ardoise); border-radius: var(--rayon); padding: 24px; }
.suivi__libelle { font-size: 13px; color: var(--gris-clair); margin-bottom: 10px; }
.suivi__question { background: var(--graphite); border-radius: 8px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.suivi__ligne { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #3E454D; }
.suivi__ligne:last-child { border-bottom: 0; }
.cite { color: var(--vert); font-weight: 600; }
.absent { color: #FF8A5C; font-weight: 600; }

/* ---- Offre et FAQ ---- */
.offre { position: relative; overflow: hidden; background: var(--ardoise); color: var(--blanc); border-radius: var(--rayon); padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.offre > div:first-child { flex: 1 1 420px; min-width: 0; }
.offre p { color: var(--gris-clair); }
.offre__prix { font-family: var(--titres); font-size: 30px; font-weight: 700; color: var(--vert); }
.offre__prix small { font-size: 16px; color: var(--gris-clair); font-weight: 500; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--gris); }

/* ---- Formulaire de diagnostic ---- */
.diagnostic { position: relative; overflow: hidden; background: var(--ardoise); color: var(--blanc); }
.diagnostic__ligne { position: relative; display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.diagnostic__ligne > div { flex: 1 1 360px; min-width: 0; }
.diagnostic__ligne h2 { margin-bottom: 12px; }
.diagnostic__ligne p { color: var(--gris-clair); }
.formulaire { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--gris-clair); }
.formulaire input, .formulaire select { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--gris); background: var(--graphite); color: var(--blanc); font: inherit; }
.formulaire .plein, .formulaire .bouton { grid-column: 1 / -1; }
.formulaire .bouton { padding: 13px; }
.piege { position: absolute !important; left: -9999px; }
.message { border-radius: 10px; padding: 18px 20px; background: var(--vert-pale); border: 1px solid var(--vert); }
.message--alerte { background: #FFF1EB; border-color: var(--orange); }

/* ---- Listes à coches, pastilles, liens sur fond sombre ---- */
.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.coches li { position: relative; padding-left: 28px; }
.coches li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--vert-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230B7A59' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles a { display: inline-block; background: var(--blanc); border: 1px solid var(--filet); border-radius: 30px; padding: 8px 16px; font-size: 15px; color: var(--texte); text-decoration: none; transition: border-color .2s; }
.pastilles a:hover { border-color: var(--vert); color: var(--vert-texte); }
.lien-clair { color: var(--vert); }
.lien-clair:hover { color: #3DD6A5; }

.formulaire textarea { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--gris); background: var(--graphite); color: var(--blanc); font: inherit; resize: vertical; }
.formulaire--clair label { color: var(--texte-2); }
.formulaire--clair input, .formulaire--clair select, .formulaire--clair textarea { background: var(--blanc); color: var(--texte); border-color: var(--gris-clair); }
.texte-long { max-width: 820px; }
.texte-long h2 { font-size: 21px; margin: 32px 0 10px; }
.texte-long p { margin-bottom: 12px; color: var(--texte-2); }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.fiche li { background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.fiche span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--filet); }
.galerie figcaption { font-size: 14px; color: var(--gris); margin-top: 8px; }
.galerie--mobile { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 720px; }

/* ---- Pied de page ---- */
.pied { background: var(--graphite); color: var(--gris-clair); font-size: 14px; }
.pied a { color: var(--gris-clair); text-decoration: none; }
.pied a:hover { color: var(--vert); }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.pied__titre { color: var(--blanc); font-weight: 600; margin-bottom: 8px; }
.pied li { margin-bottom: 4px; }
.pied__bas { border-top: 1px solid var(--ardoise); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .heros { padding-top: 40px; gap: 32px; }
  .cadre-parallaxe { height: 280px; }
  .bloc__visuel { height: 260px; }
  .bloc__texte { padding: 24px; }
  .etape { border-right: 0; border-bottom: 1px solid var(--filet); }
  .encart > .cadre-parallaxe { flex-basis: 100%; }
}

/* =====================================================================
   Animations (validées le 29/11/2026) : CSS uniquement, coupées si l'appareil
   demande moins d'animations. Le défilement pilote les effets là où le navigateur
   le permet ; ailleurs la page s'affiche simplement, sans effet.
   ===================================================================== */
@keyframes apparition { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes jauge { from { stroke-dasharray: 0 164; } }
@keyframes flotte { 50% { transform: translateY(-10px); } }
@keyframes trace { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes remplit { from { transform: scaleX(0); } }
@keyframes parallaxe { from { transform: translateY(-10%); } to { transform: translateY(10%); } }
@keyframes derive { from { transform: translateY(60px) rotate(0deg); } to { transform: translateY(-140px) rotate(25deg); } }

.entree { animation: apparition .9s cubic-bezier(.2,.7,.2,1) both; }
.entree--1 { animation-delay: .12s; }
.entree--2 { animation-delay: .24s; }
.entree--3 { animation-delay: .4s; }
.jauge__arc { animation: jauge 1.8s .6s cubic-bezier(.2,.7,.2,1) both; }
.carte-flottante { animation: flotte 6s ease-in-out infinite; }
.logo__trace { stroke-dasharray: 40; animation: trace 1.4s .2s ease-out both; }

@supports (animation-timeline: view()) {
  .revele { animation: apparition linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  .cadre-parallaxe img, .bloc__visuel img { animation: parallaxe linear both; animation-timeline: view(); animation-range: cover; }
  .deco { animation: derive linear both; animation-timeline: view(); animation-range: cover; }
  .barre span { transform-origin: left; animation: remplit linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
