/* ============================================================
   Direx Connect — feuille de style principale
   ============================================================ */
:root {
  --bleu: #2fb0e8;
  --bleu-fonce: #1a94cc;
  --bleu-pale: #e8f6fd;
  --bleu-badge: #dceefb;
  --encre: #26272b;
  --encre-2: #3d3f47;
  --texte: #4a4d57;
  --texte-doux: #6d7079;
  --gris-ligne: #e6e9ee;
  --fond: #ffffff;
  --fond-doux: #f6f9fc;
  --vert: #2eaf62;
  --radius: 16px;
  --ombre: 0 10px 30px rgba(23, 62, 92, 0.10);
  --ombre-lg: 0 18px 50px rgba(23, 62, 92, 0.14);
  --police: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--police);
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--bleu-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--encre); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }

/* ---------- En-tête / navigation ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-ligne);
}
.entete-int {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 78px;
}
.logo img { height: 44px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav > ul { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav a.lien-nav {
  display: block; padding: 10px 16px; font-weight: 700; color: var(--encre-2);
  border-radius: 10px; text-decoration: none; font-size: 1.02rem;
}
.nav a.lien-nav:hover { color: var(--bleu-fonce); background: var(--bleu-pale); }
.nav li.actif > a.lien-nav { color: var(--bleu); box-shadow: inset 0 -3px 0 var(--bleu); border-radius: 10px 10px 0 0; }

/* Sous-menu Produits */
.a-sousmenu { position: relative; }
.a-sousmenu > a.lien-nav::after { content: " ▾"; font-size: 0.75em; color: var(--texte-doux); }
.sousmenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--gris-ligne); border-radius: 14px;
  box-shadow: var(--ombre-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.a-sousmenu:hover .sousmenu,
.a-sousmenu:focus-within .sousmenu { opacity: 1; visibility: visible; transform: translateY(0); }
.sousmenu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--encre-2); font-weight: 600; text-decoration: none;
}
.sousmenu a:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
.sousmenu .sous-note { display: block; font-size: 0.82rem; font-weight: 400; color: var(--texte-doux); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primaire { background: var(--bleu); color: #fff; box-shadow: 0 8px 20px rgba(47, 176, 232, 0.35); }
.btn-primaire:hover { background: var(--bleu-fonce); color: #fff; }
.btn-contour { background: #fff; color: var(--bleu-fonce); border: 2px solid var(--bleu); }
.btn-contour:hover { background: var(--bleu-pale); }
.btn-grand { padding: 17px 34px; font-size: 1.12rem; }

/* CTA du menu mobile (masqué sur desktop) */
.nav-cta { display: none; }

/* Menu mobile */
.burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.burger span { display: block; width: 26px; height: 3px; background: var(--encre); margin: 5px 0; border-radius: 3px; }

/* ---------- Sections génériques ---------- */
.section { padding: 72px 0; }
.section-douce { background: var(--fond-doux); }
.badge {
  display: inline-block; background: var(--bleu-badge); color: var(--bleu-fonce);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 10px; margin-bottom: 22px;
}
.sous-titre { font-size: 1.25rem; color: var(--texte); max-width: 640px; margin-top: 18px; }
.accent { color: var(--bleu); }

/* Héro */
.hero { padding: 80px 0 64px; background: linear-gradient(135deg, #ffffff 55%, #e4f4f6 100%); }
.hero-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-reassurance { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.hero-reassurance span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--encre-2); font-weight: 600; }
.coche-bouclier { color: var(--bleu); font-size: 1.1rem; }

/* Cartes */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 44px; }
.carte {
  background: #fff; border: 1px solid var(--gris-ligne); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--ombre);
}
.carte h3 { margin-bottom: 10px; }
.carte .icone { font-size: 2rem; margin-bottom: 14px; display: block; }
.carte-produit { display: flex; flex-direction: column; }
.carte-produit .btn { margin-top: auto; align-self: flex-start; margin-top: 22px; }
.etiquette-dispo { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; width: fit-content; }
.dispo { background: #e3f7ec; color: #1e7a45; }
.a-venir { background: #f1f2f6; color: var(--texte-doux); }

/* Listes à coches */
.liste-coches { list-style: none; margin-top: 14px; }
.liste-coches li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.liste-coches li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--vert); color: #fff;
  font-size: 0.8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* Schéma de flux (page produit) */
.panneau-flux {
  background: #fff; border: 1px solid var(--gris-ligne); border-radius: 22px;
  box-shadow: var(--ombre-lg); padding: 28px;
}
.flux-entetes { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 20px; }
.flux-entetes .noeud { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; font-weight: 700; color: var(--encre); }
.flux-entetes .noeud small { display: block; font-weight: 500; color: var(--texte-doux); }
.fleche { color: var(--bleu); font-size: 1.3rem; font-weight: 800; }
.flux-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-carte { border: 1.5px solid var(--gris-ligne); border-radius: 16px; padding: 18px; font-size: 0.88rem; }
.mini-carte h4 { font-size: 0.92rem; margin-bottom: 10px; letter-spacing: 0.4px; }
.mini-carte p { margin-bottom: 8px; color: var(--texte); }
.mini-carte .val { color: var(--encre); font-weight: 700; }
.mini-carte ul { list-style: none; }
.mini-carte ul li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--encre-2); font-weight: 600; }
.mini-carte ul li::before {
  content: "✓"; position: absolute; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--vert); color: #fff; font-size: 0.68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; top: 3px;
}
.mini-carte .btn { padding: 10px 20px; font-size: 0.92rem; margin-top: 6px; }
.bandeau-conformite {
  margin: 22px auto 0; width: fit-content; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--gris-ligne); border-radius: 14px; padding: 12px 22px;
  font-weight: 700; color: var(--encre); background: #fff; box-shadow: var(--ombre);
}
.pastille-verte {
  width: 30px; height: 30px; border-radius: 50%; background: var(--vert); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

/* Étapes numérotées */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 44px; }
.etape { position: relative; padding-top: 8px; }
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--bleu); color: #fff;
  font-weight: 800; font-size: 1.25rem; margin-bottom: 16px;
}

/* ---------- Tarifs ---------- */
.grille-tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 30px; margin-top: 48px; align-items: stretch; }
.carte-tarif { position: relative; display: flex; flex-direction: column; }
.carte-tarif.recommande { border: 2.5px solid var(--bleu); box-shadow: var(--ombre-lg); }
.ruban {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--bleu); color: #fff; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; padding: 6px 18px; border-radius: 999px; white-space: nowrap;
}
.prix { margin: 18px 0 4px; color: var(--encre); }
.prix .montant { font-size: 3rem; font-weight: 800; letter-spacing: -1px; }
.prix .periode { font-size: 1.05rem; color: var(--texte-doux); font-weight: 600; }
.prix-note { color: var(--texte-doux); font-size: 0.95rem; margin-bottom: 8px; }
.carte-tarif .btn { margin-top: auto; }
.carte-tarif .liste-coches { margin-bottom: 26px; }

/* ---------- Formulaire ---------- */
.panneau-formulaire {
  background: #fff; border: 1px solid var(--gris-ligne); border-radius: 20px;
  box-shadow: var(--ombre-lg); padding: 40px; max-width: 720px; margin: 44px auto 0;
}
.champ { margin-bottom: 22px; }
.champ label { display: block; font-weight: 700; color: var(--encre); margin-bottom: 8px; }
.champ .requis { color: #d84a4a; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--gris-ligne); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--encre); background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(47, 176, 232, 0.18);
}
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.note-confidentialite { font-size: 0.88rem; color: var(--texte-doux); margin-top: 16px; }
.hp-champ { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.message-form { padding: 16px 20px; border-radius: 12px; font-weight: 600; margin-bottom: 26px; }
.message-ok { background: #e3f7ec; color: #1e7a45; border: 1px solid #b8e6cc; }
.message-erreur { background: #fdeaea; color: #b03a3a; border: 1px solid #f2c5c5; }

/* Bloc CTA final */
.cta-final { text-align: center; background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 100%); border-radius: 24px; padding: 64px 32px; color: #fff; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #eaf7fd; max-width: 560px; margin: 14px auto 30px; font-size: 1.15rem; }
.cta-final .btn { background: #fff; color: var(--bleu-fonce); }

/* Vidéo / média */
.cadre-video {
  margin-top: 56px; background: #c9cdd3; border-radius: 20px; aspect-ratio: 16 / 7;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre);
}
.bouton-lecture {
  width: 110px; height: 110px; border-radius: 50%; border: 8px solid #fff; background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.bouton-lecture::after {
  content: ""; border-style: solid; border-width: 22px 0 22px 36px;
  border-color: transparent transparent transparent #fff; margin-left: 10px;
}

/* FAQ */
.faq details { border: 1px solid var(--gris-ligne); border-radius: 14px; padding: 18px 24px; margin-bottom: 14px; background: #fff; }
.faq summary { font-weight: 700; color: var(--encre); cursor: pointer; font-size: 1.05rem; }
.faq details[open] summary { margin-bottom: 10px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #b9bcc5; padding: 56px 0 28px; margin-top: 88px; }
.pied a { color: #dfe2e9; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.pied h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.pied ul { list-style: none; }
.pied li { margin-bottom: 10px; }
.pied .logo-pied img { height: 40px; margin-bottom: 14px; filter: brightness(1.15); }
.pied-bas { border-top: 1px solid #3c3e46; padding-top: 22px; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grille { grid-template-columns: 1fr; gap: 40px; }
  .flux-colonnes, .flux-entetes { grid-template-columns: 1fr; }
  .flux-entetes .fleche { transform: rotate(90deg); justify-self: center; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }

  .burger { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gris-ligne);
    box-shadow: var(--ombre-lg); display: none; padding: 16px 24px 24px;
  }
  .nav.ouvert { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a.lien-nav { padding: 14px 12px; }
  .nav li.actif > a.lien-nav { box-shadow: inset 4px 0 0 var(--bleu); border-radius: 0 10px 10px 0; }
  .sousmenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding-left: 20px;
  }
  .entete .btn-entete { display: none; }
  .nav-cta { display: block; margin-top: 14px; }
  .nav-cta .btn { width: 100%; }
  .champ-double { grid-template-columns: 1fr; }
}
