/* Datacartia : feuille de style unique.
   Pour changer les couleurs, modifie seulement les variables ci-dessous. */

/* Polices hébergées sur le site (pas d'appel à Google : conforme RGPD) */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Couleurs du logo Datacartia */
  --nuit: #001e19;        /* vert presque noir du logo (fond du bandeau et de l'animation) */
  --nuit-2: #022b24;      /* variante légèrement plus claire pour les blocs sur fond sombre */
  --vert: #00df56;        /* vert vif du logo */
  --vert-fonce: #007a3d;  /* vert lisible pour les liens sur fond blanc */
  --vert-pale: #e3faea;
  --fond-clair: #f3f7f5;
  --texte: #0d2420;
  --gris: #4f625d;
  --blanc: #ffffff;
  --bord: #dfe8e3;
  --rayon: 16px;
  --largeur: 1140px;
  --ombre: 0 1px 2px rgba(0,30,25,.04), 0 8px 24px rgba(0,30,25,.06);
  --ombre-forte: 0 2px 4px rgba(0,30,25,.06), 0 18px 40px rgba(0,30,25,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-fonce); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Manrope", "Inter", system-ui, sans-serif; line-height: 1.15; color: var(--nuit); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin: 0 0 1rem; }
h3 { font-size: 1.18rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -0.01em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.fond-clair { background: var(--fond-clair); }
.fond-nuit { background: var(--nuit); color: #d6e6df; }
.fond-nuit h2, .fond-nuit h3 { color: var(--blanc); }
.chapo { font-size: 1.15rem; color: var(--gris); max-width: 660px; margin: 0; }
.fond-nuit .chapo { color: #a9c4ba; }

/* Petit titre vert au-dessus des titres de section */
.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vert-fonce); margin: 0 0 14px;
}
.surtitre::before { content: ""; width: 22px; height: 2px; background: var(--vert); border-radius: 2px; }
.fond-nuit .surtitre, .hero .surtitre { color: var(--vert); }

/* En-tête */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,30,25,.07);
}
.barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; }
.logo { display: block; }
.logo img { height: 30px; width: auto; }
.pied .logo img { height: 26px; }
.droite { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--texte); font-size: .95rem; font-weight: 500; position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--vert); transform: scaleX(0); transition: transform .2s; }
nav a:hover::after { transform: scaleX(1); }
.langue { display: flex; border: 1px solid var(--bord); border-radius: 99px; overflow: hidden; font-size: .8rem; font-weight: 700; background: var(--blanc); }
.langue a, .langue span { padding: 5px 12px; text-decoration: none; color: var(--gris); }
.langue .actif { background: var(--nuit); color: var(--blanc); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px;
  background: var(--vert); color: var(--nuit); font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid var(--vert); cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.bouton::after { content: "→"; transition: transform .2s; }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,223,86,.28); }
.bouton:hover::after { transform: translateX(3px); }
.bouton.secondaire { background: transparent; color: var(--nuit); border-color: rgba(0,30,25,.25); }
.bouton.secondaire:hover { border-color: var(--nuit); box-shadow: none; }
.bouton.secondaire::after { content: none; }
.fond-nuit .bouton.secondaire, .hero .bouton.secondaire { color: var(--blanc); border-color: rgba(255,255,255,.35); }
.fond-nuit .bouton.secondaire:hover, .hero .bouton.secondaire:hover { border-color: var(--blanc); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Bandeau d'accueil */
.hero {
  /* fond uni : exactement la couleur de fond de l'animation (#001e19) */
  background: var(--nuit);
  color: #d6e6df;
  padding: 88px 0 0;
  overflow: hidden;
}
.hero h1 { color: var(--blanc); max-width: 620px; }
.hero h1 .accent { color: var(--vert); }
.hero .chapo { color: #c2d8cf; font-size: 1.2rem; }
.hero .petit { margin-top: 22px; font-size: .9rem; color: #93b2a7; }
.hero-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-carte { width: 100%; background: var(--nuit); }
.pastille {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600;
  color: #c2d8cf; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(0,223,86,.18); }

/* Chiffres clés sous le bandeau */
.chiffres {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.chiffres div { padding: 28px 24px 32px 0; }
.chiffres div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.chiffres strong { display: block; font-family: "Manrope", sans-serif; font-size: 2rem; font-weight: 800; color: var(--blanc); line-height: 1.1; letter-spacing: -0.02em; }
.chiffres span { color: #93b2a7; font-size: .92rem; }

/* Grilles et cartes */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 48px; }
.carte {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: transparent; }
.carte p { margin: 0; color: var(--gris); }
.icone {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--vert-pale); color: var(--vert-fonce); margin-bottom: 20px;
}
.icone svg { width: 24px; height: 24px; }

/* Offres */
.offres { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); margin-top: 48px; align-items: stretch; }
.offre { background: var(--blanc); border: 1px solid var(--bord); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; box-shadow: var(--ombre); }
.offre.phare { background: var(--nuit); color: #c2d8cf; border-color: var(--nuit); box-shadow: var(--ombre-forte); position: relative; overflow: hidden; }
.offre.phare::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--vert); }
.offre.phare h3, .offre.phare .prix { color: var(--blanc); }
.offre.phare .prix small { color: #93b2a7; }
.offre.phare .etiquette { background: rgba(0,223,86,.15); color: var(--vert); }
.etiquette { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; background: var(--vert-pale); color: #00612f; padding: 4px 12px; border-radius: 99px; margin-bottom: 16px; align-self: flex-start; }
.offre h3 { font-size: 1.4rem; }
.prix { font-family: "Manrope", sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--nuit); margin: 8px 0 4px; letter-spacing: -0.03em; line-height: 1.1; }
.prix small { font-family: "Inter", sans-serif; font-size: .9rem; font-weight: 500; color: var(--gris); letter-spacing: 0; }
.offre ul { list-style: none; padding: 0; margin: 22px 0 30px; flex: 1; }
.offre li { padding-left: 30px; margin-bottom: 10px; position: relative; }
.offre li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--vert-pale); color: var(--vert-fonce); font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.offre.phare li::before { background: rgba(0,223,86,.18); color: var(--vert); }
.offre .bouton { justify-content: center; }
.lancement { display: inline-block; align-self: flex-start; margin: 10px 0 14px; padding: 6px 12px; border-radius: 10px; font-size: .9rem; background: rgba(0,223,86,.14); color: #c2f5d3; }
.lancement strong { color: var(--vert); }

/* Étapes */
.etapes { counter-reset: etape; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 48px; padding: 0; list-style: none; position: relative; }
.etapes li { counter-increment: etape; position: relative; }
.etapes li::before {
  content: "0" counter(etape); display: block;
  font-family: "Manrope", sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--vert-fonce); margin-bottom: 16px;
}
.etapes li::after { content: ""; position: absolute; top: 18px; left: 72px; right: -14px; height: 1px; background: var(--bord); }
.etapes li:last-child::after { content: none; }
.etapes p { color: var(--gris); margin: 0; }

/* Cas / projets */
.cas { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 48px; }
.cas article { background: var(--blanc); border-radius: 20px; padding: 32px; border: 1px solid var(--bord); box-shadow: var(--ombre); }
.cas h3 { font-size: 1.25rem; margin-bottom: 4px; }
.cas dl { margin: 0; }
.cas dt { font-weight: 700; color: var(--vert-fonce); margin-top: 18px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.cas dd { margin: 4px 0 0; color: var(--gris); }

/* À propos */
.apropos { display: grid; gap: 56px; grid-template-columns: 1fr 1.6fr; align-items: center; }
.photo { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 24px; background: #dbe8e1; box-shadow: var(--ombre-forte); }
img.photo { padding: 0; display: block; }
.apropos p { color: var(--gris); }
.apropos p:last-child { margin-top: 24px; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-grille .actions { flex-direction: column; align-items: flex-start; }
form { display: grid; gap: 16px; background: var(--nuit-2); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 32px; }
label { font-weight: 600; font-size: .9rem; color: var(--blanc); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18); color: var(--blanc); font: inherit; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(0,223,86,.2); }
textarea { min-height: 130px; resize: vertical; }
form .bouton { justify-content: center; width: 100%; }

/* FAQ */
details { border-bottom: 1px solid var(--bord); padding: 20px 0; }
summary { cursor: pointer; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--vert-fonce); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--gris); margin: 12px 0 0; }

/* Pied de page */
footer { background: #00130f; color: #93b2a7; padding: 44px 0; font-size: .9rem; }
footer a { color: #c2d8cf; }
.pied { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pied .logo { margin-bottom: 10px; }

/* Pages de texte (mentions légales…) */
.page-texte { padding: 64px 24px 80px; max-width: 780px; }
.page-texte h2 { font-size: 1.3rem; margin-top: 2.2rem; }

/* Apparition douce des blocs au défilement */
.apparition { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparition.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparition { opacity: 1; transform: none; transition: none; }
  .carte, .bouton { transition: none; }
}

section[id] { scroll-margin-top: 72px; }

/* À compléter : repère visuel pour les textes à remplacer */
.a-completer { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

@media (max-width: 900px) {
  .hero-grille, .contact-grille { grid-template-columns: 1fr; gap: 32px; }
  .etapes li::after { content: none; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .conteneur { padding: 0 20px; }
  .hero { padding-top: 44px; }
  .apropos { grid-template-columns: 1fr; gap: 28px; }
  .photo { max-width: 260px; }
  nav ul { gap: 16px; }
  header { position: static; }
  .barre { position: relative; padding-top: 12px; padding-bottom: 10px; }
  .langue { position: absolute; top: 16px; right: 20px; }
  .droite { width: 100%; }
  .chiffres { grid-template-columns: 1fr; margin-top: 40px; }
  .chiffres div, .chiffres div + div { padding: 18px 0; border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .chiffres div:first-child { border-top: none; }
  .offre, .cas article, form { padding: 26px; }
}
