:root{
  --bg: #07120b;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --green: #1b6f2f;
  --green2:#2fb24a;
  --line: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }

/* MODIF: on ajoute min-height pour éviter les "reprises" */
html,body{ height:100%; min-height: 100%; margin:0; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 70% 10%, rgba(47,178,74,.22), transparent 55%),
              radial-gradient(900px 600px at 20% 30%, rgba(27,111,47,.28), transparent 60%),
              var(--bg);

  /* MODIF: ne jamais répéter les gradients */
  background-repeat: no-repeat;

  /* MODIF: mobile-proof (Chrome Android barre d’URL) */
  min-height: 100svh;

  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
.container{ width:min(1100px, 92vw); margin:0 auto; }

/* Topbar (non sticky) */
.topbar{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(7,18,11,.95);
  pointer-events:none;
}
.topbar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(255,255,255,.06), transparent 55%);
  pointer-events:none;
  opacity: .35;
}
.topbar-inner{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Social icons (topbar) */
.topbar-social{
  display:flex;
  align-items:center;
  gap: 10px;
}
.social-icon{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  transition: background .2s ease, border-color .2s ease, transform .15s ease, color .2s ease;
}
.social-icon:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
  color: #fff;
}
.social-icon svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  display:block;
}

.lang-switcher{ display:flex; gap:8px; }
.lang-btn{
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  transition: all .2s ease;
}
.lang-btn:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.lang-btn.active{
  background: linear-gradient(135deg, var(--green), var(--green2));
  border-color: transparent;
  color: #fff;
}

/* Hero */
.hero{
  padding: 56px 0 60px;
}

.hero-content{
  max-width: 720px;
  margin: 0 auto;
}

.brandline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom: 12px;
}
.brand-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.kicker{
  letter-spacing:.18em;
  font-weight:800;
  font-size:.78rem;
  color: rgba(255,255,255,.72);
}

h1{
  margin:10px 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
.lead{
  margin:0 auto 32px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 48ch;
}

/* H1 + lead : même alignement à gauche, tout en gardant le bloc centré */
h1,
.lead{
  text-align: left;
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Carrousel (transform, plus de overflow-x) ===== */
.carousel-wrapper{
  margin: 0 auto 32px;
  max-width: 380px;
  isolation: isolate;
  position: relative;

  /* FIX Android Chrome: empêche de “défiler dans du vide” */
  overflow: hidden;

  touch-action: pan-y; /* si besoin on passera à none */
  user-select: none;
}

.carousel-track{
  display:flex;
  gap: 20px;
  padding: 0 0 14px;

  /* FIX sizing: le track ne doit pas “déborder” par intrinsic width */
  width: 100%;

  overflow: visible;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: auto;
  scrollbar-width: none;

  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1);
}
.carousel-track::-webkit-scrollbar{ display:none; }

/* Slides invisibles sauf active */
.carousel-slide{
  flex: 0 0 100%;
  min-width: 100%;

  display:flex;
  justify-content:center;
  align-items:center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.carousel-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* Téléphone */
.phone{
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.10);
  padding: 4px;
  overflow: hidden;

  box-shadow: var(--shadow);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  position: relative;
}
.phone img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 18px;
  display:block;
}

/* Texte sous carrousel */
.carousel-caption{
  margin-top: 20px;
  min-height: 110px;
  transition: opacity 0.3s ease;
}
.carousel-caption h3{
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: #fff;
}
.carousel-caption p{
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  max-width: 44ch;
  line-height: 1.5;
}

/* Indicateurs */
.carousel-indicators{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin: 12px 0;
}
.indicator{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.indicator.is-active{
  background: var(--green2);
  transform: scale(1.3);
}

/* Boutons */
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin:0 0 20px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
}
.btn.primary{
  background: linear-gradient(135deg, var(--green), var(--green2));
  border-color: transparent;
  color: #fff;
}
.btn.disabled{
  pointer-events: none;
  opacity: .65;
}

/* Footer */
.footer{
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

/* Base (si ton HTML a encore plusieurs blocs, on stabilise quand même) */
.footer-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 0;
  flex-wrap: nowrap;
  text-align:center;
}

/* On masque tout sauf le lien “Mentions légales” pour garantir un rendu clean */
.footer-grid .brand,
.footer-grid .legal a[href^="mailto:"],
.footer-grid .footer-social{
  display:none !important;
}

/* On garde le lien legal */
.footer-grid #legal-link{
  display:inline-block;
  color: rgba(255,255,255,.72);
  font-weight: 600;
}
.footer-grid #legal-link:hover{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 700px){
  /* Réduit l’espace perçu (Chrome Android) */
  .topbar{ padding: 10px 0; }
  .hero{ padding: 34px 0 54px; }

  .brandline{ margin-bottom: 8px; }
  .lead{ margin-bottom: 22px; }

  h1{ font-size: 2rem; }

  .carousel-wrapper{
    width: 70vw;
    max-width: 70vw;
  }

  .phone{
    max-width: 100%;
  }

  .social-icon{
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .social-icon svg{
    width: 17px;
    height: 17px;
  }
}
