/* =========================================================
   iPhone / Safari iOS – Correctifs & Optimisations
   (À charger en DERNIER : après style.css, home.css, etc.)
   ========================================================= */

/* ---- Base viewport & typographie ---- */
html {
  /* Empêche le zoom automatique orientation / rotation */
  -webkit-text-size-adjust: 100%;
  /* Défilement fluide ancre */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none; /* évite rebond modales */
  overscroll-behavior-x: none;
  background: #000;
  color: #000000;
  /* Safe areas (encoches / Dynamic Island / home bar) */
  padding:
    env(safe-area-inset-top,0)
    env(safe-area-inset-right,0)
    env(safe-area-inset-bottom,0)
    env(safe-area-inset-left,0);
  min-height: 100dvh;
}

/* Limiter débordements horizontaux imprévus */
html, body {
  width: 100%;
  overflow-x: clip;
}

/* Désactivation highlight agressif + gestures indésirables */
a, button {
  -webkit-tap-highlight-color: rgba(255,255,255,0.08);
  touch-action: manipulation;
}

/* Médias */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  object-fit: cover;
}

/* Hero / Header plein écran fiable */
.hero-header,
#accueil {
  position: relative;
  width: 100%;
  /* Fallback + unités dynamiques */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(1.3) contrast(1.1);
  transform: translateZ(0);
  will-change: transform;
}

/* Contenu hero : centrage + padding adaptable */
/* Bloc hero principal */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;

  /* On remplace le padding top “aléatoire” par un offset précis */
  padding:
    calc(var(--nav-h) + clamp(8rem, 18vh, 15rem))
    clamp(1rem, 5vw, 3rem)
    clamp(1.8rem, 8vh, 4rem);

  display: flex;
  flex-direction: column;
  gap: clamp(.9rem, 2.4vw, 2rem);
  text-align: center;
}

/* Titres fluides (évite sur-zoom iOS) */
.hero-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2rem, 7.2vw, 5rem);
  text-shadow: 0 4px 22px rgba(0,0,0,.6);
}

.hero-tagline {
  margin: 0;
  font-size: clamp(1rem, 3.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: .6px;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
  transform: translateY(clamp(-52px, -6vw, -28px)) !important;
}

/* CTA principal */
.btn-primary-hero,
.btn-invest,
.btn-sf3d,
.btn-send,
.btn-primary {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(.85rem, 2.9vw, 1.15rem);
  letter-spacing: .5px;
  padding: clamp(.85rem, 1rem + .4vw, 1.25rem) clamp(1.6rem, 5.5vw, 2.8rem);
  border-radius: 30px;
  background: linear-gradient(to right,#0055A4,#ff1100);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,85,164,.6);
  transition: background .4s ease, transform .4s ease, box-shadow .4s ease;
  touch-action: manipulation;
}

.btn-primary-hero:hover,
.btn-invest:hover,
.btn-sf3d:hover,
.btn-send:hover,
.btn-primary:hover,
.btn-primary-hero:focus-visible,
.btn-invest:focus-visible,
.btn-sf3d:focus-visible,
.btn-send:focus-visible,
.btn-primary:focus-visible {
  background: #c00000;
  box-shadow: 0 0 16px #c00000;
  outline: none;
  transform: translateY(-3px);
}

.btn-primary-hero:active,
.btn-invest:active,
.btn-sf3d:active,
.btn-send:active,
.btn-primary:active {
  transform: translateY(-1px) scale(.97);
}

/* Navigation */
.main-nav,
nav.main-nav {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(10px) saturate(1.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.8rem,3vw,2.5rem);
  padding: .65rem clamp(1rem,5vw,2.5rem);
}

.main-nav .logo img {
  height: clamp(40px, 6vw, 54px);
  width: auto;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .45s, opacity .35s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem,3.2vw,2.6rem);
}

.nav-links a {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(.85rem, 1.1vw, 1rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: .5px;
  padding: 6px 2px;
}

.nav-links a::after {
  content:"";
  position:absolute;
  left:50%; bottom:0;
  width:0; height:2px;
  background: linear-gradient(to right,#0055A4,#ff1100);
  transform: translateX(-50%);
  transition: width .35s;
  border-radius:2px;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { width:90%; }



  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(8px) saturate(1.3);
    padding: clamp(1.4rem,5vw,2.2rem) clamp(1rem,6vw,2rem);
    gap: clamp(1rem,4vw,1.8rem);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
  }
  .nav-links.active {
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }
  .nav-links a {
    width:100%;
    text-align:center;
    font-size: clamp(.95rem, 4vw, 1.15rem);
  }


/* Sections génériques */
section {
  width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(1rem,5vw,3rem);
  padding-block: clamp(2.5rem, 10vh, 5rem);
}

/* A PROPOS (texte animable) */
.apropos--full {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 95dvh, 1100px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apropos--full .apropos-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.apropos--full .apropos-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7) contrast(1.15);
}

.apropos-full-text {
  position: relative;
  z-index: 2;
  width: min(100%, 1300px);
  display: flex;
  transform: translateY(clamp(-85px, -8vw, -90px));
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  padding: clamp(1.4rem,4vw,3rem) clamp(1.1rem,4vw,2.4rem);
  background: linear-gradient(135deg, rgba(0,0,0,.42), rgba(0,0,0,.55));
  backdrop-filter: blur(4px) saturate(1.15);
  border-radius: clamp(16px, 2vw, 26px);
}

.apropos-full-text p {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3.6vw, 1.4rem);
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* Produits (grille adaptative) */
.produits {
  padding-top: clamp(3rem, 10vh, 5.2rem);
}

.produits-title {
  margin: 0 0 clamp(2rem,5vh,3.2rem);
  text-align: center;
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.07;
}

.produits-grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(380px,100%),1fr));
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.prod-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  overflow: hidden;
  min-height: clamp(320px, 42vw, 520px);
  position: relative;
  box-shadow: 0 10px 34px -14px rgba(0,0,0,.7);
  transition: transform .6s cubic-bezier(.22,.8,.25,1), box-shadow .5s;
}

.prod-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 46px -18px rgba(0,0,0,.85), 0 0 0 1px rgba(0,255,255,.18);
}

.prod-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background:#000;
}

.prod-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.12);
  pointer-events: none;
}

.prod-title {
  margin: 0;
  padding: clamp(1rem, 2.2vw, 2rem);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .4px;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.prod-price {
  display: inline-block;
  font-size: clamp(.58rem, .75rem + .3vw, .85rem);
  color: #10d410;
  background: rgba(9,189,9,.12);
  border: 1px solid rgba(9,189,9,.4);
  padding: .45rem .65rem .4rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .4px;
  max-width: max-content;
}

/* Savoir-faire (carousel 3D simplifié mobile) */
.carousel-3d-container {
  perspective: 1200px;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: clamp(1rem,6vh,3rem) auto 0;
  height: clamp(260px, 48vh, 380px);
  overflow: hidden;
}

.carousel-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1s cubic-bezier(.22,.8,.25,1);
}

.carousel-cell {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(160px, 26vw, 240px);
  height: clamp(110px, 18vw, 160px);
  transform-style: preserve-3d;
  margin: calc(-1 * clamp(110px, 18vw, 160px) / 2) 0 0 calc(-1 * clamp(160px, 26vw, 240px) / 2);
  border-radius: 16px;
  overflow: hidden;
  background:#111;
  box-shadow: 0 8px 26px -10px rgba(0,0,0,.65),
              0 0 0 1px rgba(255,255,255,.05);
  transition: box-shadow .6s ease;
}

.carousel-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.94) contrast(1.08);
}

.nav.prev,
.nav.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  width: clamp(46px, 10vw, 58px);
  height: clamp(46px, 10vw, 58px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .4s, transform .4s;
}

.nav.prev { left: clamp(.5rem,1.5vw,1rem); }
.nav.next { right: clamp(.5rem,1.5vw,1rem); }

.nav.prev:hover,
.nav.next:hover,
.nav.prev:focus-visible,
.nav.next:focus-visible {
  background: linear-gradient(to right,#0055A4,#ff1100);
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

/* Invest section */
.invest-section {
  position: relative;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 18% 22%, rgba(0,85,164,.15), transparent 60%),
    radial-gradient(circle at 82% 70%, rgba(255,17,0,.18), transparent 65%),
    linear-gradient(155deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border-radius: clamp(16px,2.2vw,32px);
  backdrop-filter: blur(3px) saturate(1.15);
  padding: clamp(2.6rem, 9vh, 5.5rem) clamp(1rem,6vw,3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vh, 2.4rem);
}

.invest-title {
  margin: 0;
  font-size: clamp(2rem, 6.4vw, 3.8rem);
  line-height: 1.06;
}

.invest-paragraph {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3.2vw, 1.4rem);
  line-height: 1.55;
  font-weight: 500;
}

/* Contact */
.contact-section {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,85,164,.18), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,17,0,.2), transparent 65%),
    linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: clamp(16px,2.2vw,30px);
  padding: clamp(2.6rem, 9vh, 5rem) clamp(1rem,6vw,3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem,4vh,3.2rem);
  isolation: isolate;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  justify-content: space-between;
}

.contact-info,
.contact-form {
  flex: 1 1 340px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info p {
  margin: 0 0 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  line-height: 1.45;
  font-weight: 600;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: clamp(.9rem, 2.2vw, 1.3rem);
  background: #fff;
  color: #111;
  padding: clamp(1.5rem, 4.2vw, 2.2rem);
  border-radius: clamp(14px,1.8vw,22px);
  box-shadow: 0 10px 34px -14px rgba(0,0,0,.5);
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  border: 1.5px solid #d1d8df;
  border-radius: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(.95rem, 3.2vw, 1.15rem);
  padding: .85rem 1rem .8rem;
  outline: none;
  background: #f7f9fa;
  letter-spacing: .4px;
  transition: border-color .35s, box-shadow .35s, background .35s;
}

.contact-box textarea {
  min-height: clamp(140px, 28vh, 220px);
  resize: vertical;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #0055A4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,85,164,.15);
}

/* Map */
/* === CENTRAGE GLOBAL SECTION MAP === */
.map-image-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
  margin: 0 auto;
}

.dual-map-image {
  width: 100%;
  max-width: 1600px;            /* limite centrale */
  display: flex;
  justify-content: center;
  margin: 0 auto;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Conteneur unitaire de la carte */
.map-container {
  flex: 1 1 800px;               /* prend l’espace mais se réduit */
  max-width: 1200px;             /* largeur max de la map pour ne pas trop s’étirer */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;                /* centrage horizontal */
  box-sizing: border-box;
}

/* Wrapper de la map – centré */
.map-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;             /* tu peux augmenter ou enlever */
  aspect-ratio: 16 / 6;          /* desktop */
  margin: 0 auto;                /* centre si moins large que parent */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 34px -14px rgba(0,0,0,.75);
}

/* Map iframe */
.map-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: brightness(.95) contrast(1.08);
}

/* Supprimer éventuellement un ancien overlap desktop */
@media (min-width: 841px) {
  .overlap-map {
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
}

/* === Mobile : on garde la version agrandie que tu voulais === */
@media (max-width: 840px) {
  .map-embed-wrapper {
    aspect-ratio: auto;
    height: clamp(320px, 55dvh, 520px);
    border-radius: 14px;
  }
}
@media (max-width: 480px) {
  .map-embed-wrapper {
    height: clamp(340px, 60dvh, 560px);
    border-radius: 12px;
  }
}
@media (max-width: 360px) {
  .map-embed-wrapper {
    height: clamp(300px, 62dvh, 520px);
  }
}


/* Social */
.social-section {
  padding: clamp(3rem, 10vh, 5.5rem) clamp(1rem,6vw,3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem,4vh,3rem);
}

.social-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem,4vw,2rem);
}

.social-link {
  width: clamp(60px, 15vw, 90px);
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 26%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.7),
              0 0 0 1px rgba(0,0,0,.05);
  transition: transform .55s, box-shadow .5s;
}

.social-link img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-6px);
  outline: none;
  box-shadow: 0 18px 42px -16px rgba(0,0,0,.85),
              0 0 0 1px rgba(255,255,255,.07);
}

/* Footer */
.site-footer {
  width: 100%;
  padding: clamp(2.8rem, 10vh, 5rem) clamp(1rem,5vw,2.4rem);
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(.85rem, 2.8vw, 1.05rem);
  font-weight: 600;
  letter-spacing: .4px;
  line-height: 1.4;
  background:
    radial-gradient(circle at 28% 28%, rgba(0,85,164,.22), transparent 60%),
    radial-gradient(circle at 72% 70%, rgba(255,17,0,.22), transparent 65%),
    linear-gradient(165deg, #050607, #0d0e11);
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer a {
  color: #fff;
  font-weight: 700;
  position: relative;
  text-decoration: none;
}

.site-footer a::after {
  content:"";
  position:absolute;
  left:50%; bottom:-2px;
  width:0; height:2px;
  background: linear-gradient(to right,#0055A4,#ff1100);
  transform: translateX(-50%);
  transition: width .4s;
  border-radius:2px;
}
.site-footer a:hover::after,
.site-footer a:focus-visible::after { width: 90%; }

/* Bouton scroll top */
#scrollTopBtn {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom,0) + clamp(1.4rem,5vw,2.2rem));
  right: calc(env(safe-area-inset-right,0) + clamp(1.4rem,5vw,2.2rem));
  width: clamp(2.8rem, 14vw, 3.6rem);
  height: clamp(2.8rem, 14vw, 3.6rem);
  background: #c00000;
  border: none;
  border-radius: .8rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 12px 34px -16px rgba(0,0,0,.85);
  transition: background .4s, transform .4s;
}
#scrollTopBtn:hover,
#scrollTopBtn:focus-visible {
  background: #002060;
  transform: translateY(-6%);
  outline: none;
}

.arrow-icon {
  width: 62%;
  height: 62%;
}

/* RGPD / Overlay */
#rgpd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 8vw, 5rem);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
#rgpd-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rgpd-text {
  max-width: 900px;
  margin: 0 0 clamp(1.4rem,4vw,2.2rem);
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  line-height: 1.45;
}

.rgpd-accept {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(.9rem, 3.2vw, 1.15rem);
  padding: clamp(.85rem, 1rem + .4vw, 1.15rem) clamp(1.6rem,5.2vw,2.6rem);
  border-radius: 32px;
  border: none;
  background: #c00000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(192,0,0,.6);
  transition: background .4s, transform .4s;
}
.rgpd-accept:hover,
.rgpd-accept:focus-visible {
  background: #9f0000;
  transform: translateY(-3px);
  outline: none;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid #00f6ff;
  outline-offset: 3px;
}

/* Préférences utilisateur : réduire animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Petits appareils (iPhone SE / 375px et moins) */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .hero-tagline { font-size: clamp(.95rem, 4.6vw, 1.3rem); }
  .produits-grid { gap: 1.2rem; }
  .apropos-full-text { padding: 1.25rem 1rem; }
  .contact-wrapper { gap: 1.8rem; }
}

/* Sélecteur Safari / iOS pour fallback spécifique si besoin */
@supports (-webkit-touch-callout: none) {
  /* Fallback extrême vh legacy pour très vieux iOS (optionnel) */
  .hero-header { height: -webkit-fill-available; }
}

/* Vidéos full overlay / modales éventuelles */
.fullscreen,
.fullscreen-video {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.94);
  z-index: 999;
  padding:
    env(safe-area-inset-top,0)
    env(safe-area-inset-right,0)
    env(safe-area-inset-bottom,0)
    env(safe-area-inset-left,0);
}

/* Masquage scrollbar horizontale sur carrousels si glissement JS */
.usage-viewport,
.carousel-3d-container {
  -webkit-overflow-scrolling: touch;
}

/* Inputs (éviter zoom iOS) */
input, textarea, select { font-size: 16px; }

/* Sécurité pour éviter conteneurs scroll internes involontaires */
.apropos-full-text,
.produits,
.contact-section,
.invest-section,
.social-section {
  overflow: visible;
}


/* === HERO – MOBILE : MAX REMONTÉ JUSTE SOUS LA NAV === */
:root {
  --nav-h: 64px; /* ajuste à la hauteur réelle de .main-nav (mesure DevTools) */
}

@media (max-width: 840px) {

  .hero-header,
  #accueil {
    align-items: flex-start !important;
    padding: 0 !important;
    /* On réserve UNIQUEMENT la place de la nav */
    padding-top: var(--nav-h) !important;
    min-height: 100dvh; /* garde le plein écran */
  }

  .hero-content {
  margin: 0 !important;
  padding: 0 1rem 1.4rem !important;
  transform: none !important;
  gap: clamp(.6rem, 2.4vw, 1rem) !important;
  /* Bornes : au mini -320px sur petits écrans, “idéal” -46vh, max -470px sur grands */
  margin-top: clamp(-480px, -46dvh, -450px) !important;
}


  /* Remonter chaque élément encore si un interligne / marge parasite existe */
  .hero-title,
  .btn-primary-hero,
  .hero-tagline {
    margin: 0 !important;
    transform: none !important;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.2vw, 2.55rem) !important;
    line-height: 1.06 !important;
  }

  .btn-primary-hero {
    font-size: clamp(.82rem, 3.4vw, 1.05rem) !important;
    padding: .7rem 1.2rem !important;
    width: 100% !important;
  }

  .hero-tagline {
    font-size: clamp(.8rem, 3.6vw, 1rem) !important;
    line-height: 1.15 !important;
  }
}

/* Ultra serré petits écrans */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .hero-header, #accueil { padding-top: var(--nav-h) !important; }
  .hero-content { padding: 0 .85rem 1.2rem !important; gap: .55rem !important; }
  .hero-title { font-size: clamp(1.75rem, 8.2vw, 2.3rem) !important; }
  .btn-primary-hero { font-size: clamp(.78rem, 3.8vw, .95rem) !important; }
  .hero-tagline { font-size: clamp(.75rem, 4vw, .9rem) !important; }
}

/* iPhone SE / ≤ 360px */
@media (max-width: 360px) {
  :root { --nav-h: 56px; }
  .hero-header, #accueil { padding-top: var(--nav-h) !important; }
  .hero-content { gap: .5rem !important; }
  .hero-title { font-size: clamp(1.6rem, 8.8vw, 2.05rem) !important; }
  .btn-primary-hero { font-size: clamp(.72rem, 4.2vw, .85rem) !important; padding: .6rem 1rem !important; }
  .hero-tagline { font-size: clamp(.7rem, 4.4vw, .85rem) !important; }
}







