/* styles.css - Dark chic / Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0B0F14;
  --surface: rgba(17, 24, 39, .72);
  --surface-2: rgba(15, 23, 42, .72);
  --border: rgba(255, 255, 255, .10);

  --text: #E5E7EB;
  --muted: #9CA3AF;

  --accent: #22D3EE;   /* cyan chic */
  --accent-2: #A78BFA; /* violet optionnel */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(167, 139, 250, .10), transparent 55%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.btn-primary {
  border-color: rgba(34, 211, 238, .35);
  background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(167, 139, 250, .16));
}

.btn-primary:hover { border-color: rgba(34, 211, 238, .55); }

/* Boutons: glow chic au hover */
.btn:before{
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(167, 139, 250, .14), transparent 55%);
  opacity: 0;
  transition: opacity .25s ease;
}
.btn:hover:before{ opacity: 1; }
.btn > * { position: relative; }

/* --- Navbar --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 20, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* IMPORTANT: cacher le menu mobile par défaut (fix du texte brut sur desktop) */
.mobile-panel { display: none; }

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 600;
  letter-spacing: .2px;
  min-width: 220px;
}

.brand span:last-child {
  line-height: 1.1;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 10px 25px rgba(34, 211, 238, .12);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .95rem;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}

.nav-links a {
  padding: .55rem .9rem;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.nav-links a.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(167, 139, 250, .12));
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .10);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: flex-end;
}

/* Mobile */
.burger { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }

  .burger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
  }

  .mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: .9rem 0 1.2rem;
  }

  .mobile-panel.is-open { display: block; }

  .mobile-panel a {
    display: block;
    padding: .75rem 0;
    color: var(--muted);
  }

  .mobile-panel a:hover { color: var(--text); }
}

/* --- Hero --- */
.hero { padding: 92px 0 60px; position: relative; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.kicker {
  color: rgba(34, 211, 238, .95);
  font-weight: 500;
  letter-spacing: .2px;
}

h1 {
  margin: .6rem 0 1rem;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(17, 24, 39, .55), rgba(15, 23, 42, .38));
  box-shadow: var(--shadow);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(167, 139, 250, .16), transparent 50%);
  filter: blur(10px);
}

.hero-card > * { position: relative; }

.pill {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  padding: .45rem .75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
}

.mini {
  margin-top: 1rem;
  display: grid;
  gap: .75rem;
}

.mini .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
}

.mini .row strong {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section { padding: 64px 0; }

.section h2 {
  margin: 0 0 .7rem;
  font-size: 1.6rem;
}

.section .sub {
  margin: 0 0 1.6rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 75ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  padding: 1.1rem;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
}

/* Cards: glow + micro “shimmer” */
.card:before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 25% 25%, rgba(34, 211, 238, .12), transparent 55%),
    radial-gradient(circle at 75% 55%, rgba(167, 139, 250, .10), transparent 55%);
  opacity: 0;
  transition: opacity .25s ease;
}

.card:after {
  content: "";
  position: absolute;
  top: -120%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, .06) 50%, transparent 55%);
  transform: rotate(8deg);
  opacity: 0;
}

.card:hover:before { opacity: 1; }
.card:hover:after { opacity: 1; animation: shimmer 1.2s ease forwards; }

@keyframes shimmer {
  0% { transform: translateY(0) rotate(8deg); }
  100% { transform: translateY(55%) rotate(8deg); opacity: 0; }
}

.card > * { position: relative; }

.card h3 { margin: .1rem 0 .4rem; font-size: 1.1rem; }
.card p { margin: .2rem 0 0; color: var(--muted); line-height: 1.7; }

.tags {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: .82rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 32px 0;
  color: var(--muted);
  font-size: .95rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================
   WOW: gradients + underline
   ================================ */
.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradMove 6s ease-in-out infinite;
}

@keyframes gradMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hover-underline { position: relative; }

.hover-underline:after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .0), rgba(34, 211, 238, .8), rgba(167, 139, 250, .75), rgba(34, 211, 238, .0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.hover-underline:hover:after { transform: scaleX(1); }

/* =====================
   Timeline (fix propre)
   ===================== */
.timeline{
  margin-top: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding: 1.6rem 1.6rem 1.6rem 1.8rem;
  display: grid;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.timeline:before{
  content:"";
  position:absolute;
  left: 26px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(34,211,238,.0),
    rgba(34,211,238,.6),
    rgba(167,139,250,.6),
    rgba(34,211,238,.0)
  );
  opacity:.7;
}

.step{
  display:grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items:flex-start;
}

.step-dot{
  width: 14px;
  height: 14px;
  margin-top: .45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(34,211,238,.08);
  position: relative;
  left: 12px;
}

.step-content h3{ margin:0 0 .25rem; font-size: 1.05rem; }
.step-content p{ margin:0; color: var(--muted); line-height:1.7; }

/* =========================
   Pricing (tabs + cards)
   ========================= */

/* Tabs switch (Web/Cyber) */
.pricing-switch{
  display:flex;
  gap:.5rem;
  padding:.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  width: fit-content;
  margin: 0 0 1.1rem;
}

.switch-btn{
  appearance:none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .6rem .95rem;
  border-radius: 999px;
  cursor:pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.switch-btn:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.switch-btn.is-active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(167,139,250,.12));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.pricing-panel{ display:none; }
.pricing-panel.is-active{ display:block; }

/* Pricing layout */
.cards.pricing{ align-items: stretch; }

.pricing-card{
  display:flex;
  flex-direction:column;
  position: relative;
  padding-top: 2.35rem; /* réserve une zone badge pour TOUTES les cards => alignement parfait */
}

/* zone contenu */
.pricing-card .pricing-top{
  flex: 1;
  display:flex;
  flex-direction:column;
}

/* 2 lignes max réservées => prix au même niveau */
.pricing-card .pricing-top > p{
  min-height: 3.4em; /* ajuste 3.2–4.2em si tu changes les textes */
}

/* Pricing price box */
.pricing-card .price{
  margin-top: .9rem;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}

.pricing-card .amount{
  font-size: 1.15rem;
  font-weight: 600;
}

.pricing-card .note{
  color: var(--muted);
  font-size: .9rem;
}

/* checklist */
.checklist{
  list-style: none;
  padding: 0;
  margin: .9rem 0 0;
  display:grid;
  gap: .5rem;
  color: var(--muted);
}
.checklist li{
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.6;
}
.checklist li:before{
  content:"✓";
  position:absolute;
  left: 0;
  top: 0;
  color: rgba(34,211,238,.95);
}

/* Badge populaire */
.pricing-card.popular{
  border-color: rgba(34,211,238,.28);
  background: linear-gradient(180deg, rgba(34,211,238,.06), rgba(255,255,255,.03));
}

.badge{
  position:absolute;
  top: 14px;
  right: 14px;
  display:inline-flex;
  width: fit-content;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.35);
  background: rgba(34,211,238,.10);
  color: rgba(229,231,235,.98);
  font-size: .85rem;
  z-index: 2;
}

/* Actions en bas */
.card .card-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* Comparatif */
.compare{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow:hidden;
}

.compare-row{
  display:grid;
  grid-template-columns: 1.2fr .7fr .7fr .7fr;
  gap: .75rem;
  padding: .9rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}

.compare-row:first-child{ border-top: 0; }

.compare-head{
  color: var(--text);
  background: rgba(255,255,255,.03);
  font-weight: 600;
}

.compare-row > div:first-child{ color: var(--text); }

/* Comparatif — mobile clean (cartes avec labels) */
@media (max-width: 860px){

  /* on cache l'en-tête "tableau" */
  .compare-head{ display:none; }

  /* chaque ligne devient une carte */
  .compare-row{
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .95rem 1rem;
  }

  /* séparateur doux entre cartes */
  .compare-row + .compare-row{
    border-top: 1px solid rgba(255,255,255,.06);
  }

  /* le libellé (1ère colonne) devient un titre */
  .compare-row > div:first-child{
    color: var(--text);
    font-weight: 600;
    padding-bottom: .45rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  /* les valeurs deviennent des lignes "label / valeur" */
  .compare-row > div:nth-child(n+2){
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .25rem 0;
    color: var(--muted);
  }

  /* Labels des colonnes */
  .compare-row > div:nth-child(2)::before{
    content: "Start";
    color: var(--muted);
    font-weight: 500;
  }
  .compare-row > div:nth-child(3)::before{
    content: "Pro";
    color: var(--muted);
    font-weight: 500;
  }
  .compare-row > div:nth-child(4)::before{
    content: "Web App";
    color: var(--muted);
    font-weight: 500;
  }

  /* la valeur (à droite) ressort un peu */
  .compare-row > div:nth-child(n+2){
    color: rgba(229,231,235,.92);
  }
}

/* =========================
   Contact page (layout + form)
   ========================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-card{
  padding: 1.2rem;
}

.contact-head p{
  margin-top: .2rem;
}

.contact-form{
  margin-top: 1rem;
  display: grid;
  gap: .9rem;
}

.field-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

@media (max-width: 680px){
  .field-row{ grid-template-columns: 1fr; }
}

.field{
  display: grid;
  gap: .35rem;
}

label{
  font-size: .9rem;
  color: rgba(229,231,235,.92);
}

input, select, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: .85rem .9rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea{ resize: vertical; min-height: 140px; }

input::placeholder, textarea::placeholder{
  color: rgba(156,163,175,.8);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
  background: rgba(255,255,255,.04);
}

.hint{
  color: rgba(156,163,175,.9);
  font-size: .8rem;
}

.form-actions{
  margin-top: .2rem;
  display:flex;
  gap:.6rem;
  flex-wrap: wrap;
}

.form-status{
  margin-top: .2rem;
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: var(--muted);
}

.form-status.success{
  border-color: rgba(34,211,238,.28);
  background: rgba(34,211,238,.06);
  color: rgba(229,231,235,.95);
}

.form-status.error{
  border-color: rgba(244,63,94,.25);
  background: rgba(244,63,94,.06);
  color: rgba(229,231,235,.95);
}

.micro{
  margin: .2rem 0 0;
  color: rgba(156,163,175,.9);
  font-size: .85rem;
  line-height: 1.6;
}

.contact-side-cards{
  grid-template-columns: 1fr;
}

/* =========================
   FIX CLICS (overlay glow/shimmer)
   ========================= */

/* Tous les calques décoratifs ne doivent jamais capter la souris */
.card::before,
.card::after,
.btn::before,
.hero::before,
.hero::after,
.hero-card::before,
.nav::before,
.nav::after {
  pointer-events: none;
}

/* Sécurité supplémentaire : les éléments interactifs restent au-dessus */
input, select, textarea, button, a {
  position: relative;
  z-index: 2;
}

/* =========================
   FORM GRID
   ========================= */

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
select,
input,
textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
  background: rgba(255,255,255,.06);
}
select option {
  background: #0B0F14;
  color: #E5E7EB;
}

/* Option hover / sélection (Chrome, Edge) */
select option:checked {
  background: linear-gradient(
    135deg,
    rgba(34,211,238,.35),
    rgba(167,139,250,.35)
  );
  color: #0B0F14;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 4px),
    calc(100% - 14px) calc(50% - 4px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.feature-top{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-bottom:.35rem;
}

.icon-badge{
  width: 40px;
  height: 40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(167,139,250,.10));
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  font-size: 1.05rem;
}

.feature h3{
  margin:0;
  font-size: 1.05rem;
}

.feature p{
  margin: .2rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px){
  .features{ grid-template-columns: 1fr; }
}
/* =========================
   About (petits plus)
   ========================= */
.hero-card .mini .row {
  backdrop-filter: blur(8px);
}

.section#benefices .features .feature {
  min-height: 140px;
}
/* Language switch (FR | EN) */
.lang-switch{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.lang-link{
  color: var(--muted);
  font-size: .9rem;
  padding: .25rem .35rem;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}

.lang-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.lang-link.is-active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(167,139,250,.12));
  border: 1px solid rgba(255,255,255,.10);
}

.lang-sep{
  color: rgba(156,163,175,.55);
}
/* =========================
   Navbar CTA fix (bouton écrasé)
   ========================= */
.nav-cta { 
  flex-wrap: nowrap; 
}

.nav-cta .btn.btn-primary{
  white-space: nowrap;     /* empêche "Réserver un appel" de se couper */
  line-height: 1;          /* évite l'effet "écrasé" vertical */
  padding: .7rem 1rem;     /* un peu plus compact que .btn global */
  font-size: .95rem;       /* légèrement plus petit */
}

/* Optionnel : encore plus compact sur écrans moyens */
@media (max-width: 1100px){
  .nav-cta .btn.btn-primary{
    padding: .65rem .9rem;
    font-size: .92rem;
  }
}
/* =========================================
   FIX MOBILE NAV: overflow + burger visible
   ========================================= */

/* Empêche le scroll horizontal global */
html, body {
  overflow-x: hidden;
}

/* La navbar ne doit pas dépasser */
.nav, .nav * {
  max-width: 100%;
}

/* Mobile: on compacte la barre et on évite le débordement */
@media (max-width: 860px) {
  .nav-inner {
    gap: .6rem;
  }

  /* IMPORTANT: retire le min-width qui casse tout en mobile */
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* Si le nom est trop long, on ellipsis au lieu de déborder */
  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw; /* ajuste 38-55vw si besoin */
  }

  /* La zone CTA ne doit pas pousser hors écran */
  .nav-cta {
    flex: 0 0 auto;
    gap: .5rem;
  }

  /* Le bouton "Réserver un appel" est trop large en mobile -> on le compacte */
  .nav-cta .btn.btn-primary {
    padding: .55rem .8rem;
    font-size: .9rem;
    white-space: nowrap;
  }

  /* Switch langue plus compact */
  .lang-switch {
    padding: .25rem .45rem;
    gap: .4rem;
  }

  .lang-link {
    font-size: .85rem;
    padding: .2rem .3rem;
  }
}

/* Très petit mobile: on cache le CTA pour laisser place au burger */
@media (max-width: 420px) {
  .nav-cta .btn.btn-primary {
    display: none;
  }

  .brand span:last-child {
    max-width: 55vw;
  }
}
/* Mobile menu: active link highlight */
@media (max-width: 860px) {
  .mobile-panel a {
    padding: .75rem 0;
    display: block;
    color: var(--muted);
  }

  .mobile-panel a.is-active {
    color: var(--text);
    font-weight: 600;
  }

  .mobile-panel a.is-active::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: .6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    vertical-align: middle;
  }

  .mobile-divider{
    margin: .8rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .mobile-lang{
    display: flex;
    gap: .9rem;
  }

  .mobile-lang a{
    padding: .5rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    color: var(--muted);
  }

  .mobile-lang a.is-active{
    color: var(--text);
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(167,139,250,.10));
  }
}

.mini .row{
    text-align: end;
}
#bg-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;         /* derrière tout */
  pointer-events: none; /* ne gêne pas les clics */
  opacity: .55;
}
/* =========================
   404 FULL HEIGHT FIX
   ========================= */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* le main prend tout l’espace restant */
.page-404 main {
  flex: 1;
  display: flex;
}

/* la section 404 remplit la hauteur */
.page-404 .error-hero {
  flex: 1;
  display: flex;
  align-items: center;     /* centrage vertical */
}

/* footer toujours en bas */
.page-404 footer {
  margin-top: auto;
}
.page-404 footer {
  background: linear-gradient(
    180deg,
    rgba(11,15,20,0),
    rgba(11,15,20,.45)
  );
}
