@import url(https://fonts.cdnfonts.com/css/ethnocentric);
@media (max-width:768px) {
   
  html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        max-width: 100vw !important
    }
    *,
    *::before,
    *::after {
        box-sizing: inherit
    }
   
    
    }
   
    


body {
    background-color: #000;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    margin: 0;
    overflow-x: hidden
}



header#accueil {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1
}



main {
    position: relative;
    margin-top: -100vh;
    z-index: 2;
    background: rgb(0 0 0 / .8);
    padding-top: 100vh
}



nav {
    background-color: #111;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

nav .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #00f6ff
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 600
}

nav a:hover {
    text-decoration: underline
}

main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px
}

h1 {
    margin-bottom: 20px;
    text-align: center
}




.btn-primary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(to right, #0055A4, #ff1100);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgb(0 85 164 / .7)
}

.btn-primary:hover {
    background: #c00000;
    color: #fff;
    box-shadow: 0 0 15px #c00000
}


footer {
    text-align: center;
    color: #666;
    padding: 20px;
    border-top: 1px solid #fff0;
    margin-top: 60px;
    font-size: .9rem
}


.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / .95);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    transition: opacity 0.3s ease
}

.fullscreen.active {
    visibility: visible;
    opacity: 1
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 40px #fff
}

.fullscreen span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: 700
}



.fullscreen-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%
}

.fullscreen-content img,
.fullscreen-content video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 40px #fff;
    object-fit: contain
}



.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0 0 0 / .95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.fullscreen-video video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 30px #fff
}

.fullscreen-video span {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer
}




#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #C00000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.3s, transform 0.3s
}

#scrollTopBtn:hover {
    background-color: #002060;
    transform: translateY(-3px)
}


.arrow-icon {
    width: 32px;
    height: 32px
}


#video_1 {
    filter: brightness(1.25) contrast(1.12)
}






/*Nouvelles classes CSS*/



/* ====== HERO INVEST HEADER ====== */

.invest-header {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-family: 'Orbitron', sans-serif;
}

.invest-header > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.85) contrast(1.12);
  pointer-events: none;
}

.invest-header .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
  z-index: 1;
}

.invest-header .content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;
  padding: clamp(1rem, 3vw, 2.5rem);
  text-align: center;
  color: #fff;
  perspective: 1000px;
  margin-top:-18%;
}

.hero-headings * {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.63), 4px 4px 12px rgba(0,0,0,0.56);
  transform: translateZ(40px);
}

/* Titre principal */
.hero-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.02;
  /* Taille fluid responsive proche de 100px desktop */
  font-size: clamp(2.2rem, 7vw, 6.25rem);
  letter-spacing: .5px;
  position: relative;
  display: inline-block;
}

/* Symbole ® */
.hero-title .hero-reg {
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  vertical-align: super;
  margin-left: .25rem;
}

/* Ligne prix */
.hero-title .hero-price {
  display: block;
  margin-top: .6rem;
  font-size: clamp(1rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: rgb(9,189,9);
  letter-spacing: .5px;
}

/* Sous‑titre (ex second H1 inline => H2) */
.hero-sub {
  margin: clamp(.4rem, 1.2vw, .9rem) 0 clamp(1.1rem, 2.4vw, 1.8rem);
  font-size: clamp(1.4rem, 3.3vw, 3.45rem); /* ~55px max */
  font-weight: 600;
  letter-spacing: .5px;
}

/* CTA */
.hero-cta {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(.9rem, 1.3vw, 1.2rem);
  padding: clamp(.75rem, 1.2vw, 1rem) clamp(1.6rem, 2.2vw, 2.4rem);
  border-radius: 30px;
  background: linear-gradient(to right, #0055A4, #ff1100);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,85,164,0.65);
  transition: background .35s, box-shadow .35s, transform .35s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: linear-gradient(to right, #004080, #d00000);
  box-shadow: 0 0 15px #c00000;
  transform: translateY(-2px);
}

/* ====== GRAND ÉCRAN (Optionnel ajustement centrage horizontal) ====== */
@media (min-width: 1400px) {
  .hero-title,
  .hero-sub,
  .hero-cta {
    /* Tu avais un décalage négatif; au lieu de margin-left négatif on centre proprement */
    max-width: 100%;
  }
}

/* ====== TABLETTES ====== */
@media (max-width: 992px) {
  .invest-header {
    min-height: 560px;
  }
  .hero-title {
    line-height: 1.05;
  }
}

/* ====== MOBILES ====== */
@media (max-width: 640px) {
  .invest-header {
    height: auto;
    padding-top: clamp(4rem, 18vh, 9rem);
    padding-bottom: clamp(3rem, 14vh, 7rem);
  }
  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
  }
  .hero-title .hero-price {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
  .hero-sub {
    font-size: clamp(1.1rem, 6.5vw, 2rem);
    margin-top: .6rem;
  }
  .hero-cta {
    font-size: clamp(.85rem, 3.6vw, 1rem);
    width: auto;
  }
}

/* ====== TRES PETITS (<420px) ====== */
@media (max-width: 420px) {
  .hero-title {
    word-break: break-word;
  }
}


/*circles*/

/* Circles */

/* ========== SPEC CIRCLES GRID ========== */

.spec-circles {
  width: 100%;
  max-width: 1400px;
  margin: clamp(2rem,5vw,4rem) auto 0;
  padding: 0 clamp(1rem,3vw,2rem);
  box-sizing: border-box;
}

.circle-grid {
  --circle-size: 140px;
  --gap: clamp(1.2rem,2.2vw,2.2rem);
  display: grid;
  justify-content: center;        /* centre la grille */
  gap: var(--gap);
  /* Grille desktop : 3 colonnes max pour imposer 3/3/2 */
  grid-template-columns: repeat(3, var(--circle-size));
}



/* Pour s'assurer que la dernière ligne (2 items) est centrée,
   on laisse 'justify-content:center' et EXACTEMENT 3 colonnes fixes. */

.circle {
  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--circle-size);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
  overflow: hidden;
  font-family: 'Barlow Condensed', sans-serif;
}

.circle-svg,
.circle-svg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* départ en haut */
}

.progress-ring__circle--bg {
  fill: none;
  stroke: #d7d7d7;
  stroke-width: 10;
  stroke-linecap: round;
  opacity: .55;
}

.progress-ring__circle {
  fill: none;
  stroke: #c00000;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.5s ease-out;
}

.circle-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.12;
  padding: 0 .6rem;
}

.circle-content span {
  font-size: .95rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.63);
  margin: 0;
}

.circle-content small {
  margin-top: 4px;
  font-size: .75rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.57);
  letter-spacing: .3px;
}

/* ====== Tablettes : conserver 3 colonnes si possible ====== */
@media (max-width: 900px) {
  .circle-grid {
    --circle-size: 132px;
    gap: clamp(1rem,2vw,1.6rem);
  }
}

/* ====== Entre 640px et 899px : 3 colonnes adaptatives (toujours 3/3/2) ====== */
@media (max-width: 640px) {
  .circle-grid {
    --circle-size: 120px;
    gap: 1.2rem;
    grid-template-columns: repeat(2, var(--circle-size)); /* 2 colonnes => 4 lignes de 2 */
  }
}

/* ====== Petits mobiles <480px : 1 colonne ====== */
@media (max-width: 480px) {
  .circle-grid {
    --circle-size: 118px;
    gap: 1rem;
    grid-template-columns: repeat(1, var(--circle-size));
  }
  .circle-content span   { font-size: .9rem; }
  .circle-content small  { font-size: .65rem; }
}

/*circle span + small 900px*/

@media (max-width: 900px) {
  .circle-content span   { font-size: .80rem !important;}
  .circle-content small  { font-size: .55rem !important; }
}

/* Option : animation quand le cercle entre dans la vue */
.circle.reveal .progress-ring__circle {
  stroke-dashoffset: var(--target, 0);
}


/*description container*/

/* ===== DESCRIPTION BLOCK (ex inline) ===== */

.description-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: clamp(1.5rem, 5vw, 3.5rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
  max-width: 1600px;
}

.description-text {
  box-sizing: border-box;
  width: clamp(280px, 90%, 550px);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
  font-family: 'Barlow Condensed', sans-serif;
  position: relative;
}

.desc-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin: 0 0 clamp(1rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: .5px;
  /* Remplace les marges négatives par centrage naturel */
  width: 100%;
  text-shadow:
    2px 2px 8px rgba(0,0,0,0.63),
    4px 4px 12px rgba(0,0,0,0.57);
  transform: translateZ(40px);
  perspective: 1000px;
}

.desc-paragraph {
  font-size: clamp(1.1rem, 3.6vw, 1.9rem); /* proche de ton clamp 1.25→2rem, mais un peu plus fluide */
  line-height: 1.45;
  margin: 0 0 clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  width: 100%;
  color: #fff;
  text-shadow:
    2px 2px 8px rgba(0,0,0,0.63),
    4px 4px 12px rgba(0,0,0,0.57);
  transform: translateZ(40px);
  perspective: 1000px;
}

.desc-paragraph:last-child {
  margin-bottom: 0;
}

.desc-list {
  max-width: min(80vw, 100%);
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 3.4vw, 1.55rem);
  line-height: 1.42;
}

.reg-symbol {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  vertical-align: super;
  line-height: 1;
  display: inline-block;
  transform: translateY(-4px);
}

/* ===== LARGER SCREENS: augmenter largeur texte si souhaité ===== */
@media (min-width: 1100px) {
  .description-text {
    width: clamp(480px, 60%, 880px);
  }
  .desc-paragraph {
    line-height: 1.48;
  }
}

/* ===== OPTIONAL VERY WIDE (éviter lignes trop longues) ===== */
@media (min-width: 1600px) {
  .description-text {
    width: clamp(560px, 50%, 960px);
  }
}

/* ===== TABLETTES ===== */
@media (max-width: 900px) {
  .desc-paragraph {
    font-size: clamp(1rem, 4.4vw, 1.6rem);
  }
  .desc-list {
    font-size: clamp(.95rem, 4vw, 1.4rem);
  }
}

/* ===== MOBILES ===== */
@media (max-width: 640px) {
  .description-container {
    margin-top: clamp(1rem, 6vh, 3rem);
    padding: 0 clamp(.8rem, 5vw, 1.4rem);
  }
  .description-text {
    width: 100%;
    padding: clamp(.9rem, 4.5vw, 1.4rem);
  }
  .desc-title {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }
  .desc-paragraph,
  .desc-list {
    font-size: clamp(.95rem, 4.8vw, 1.25rem);
    line-height: 1.46;
  }
  .reg-symbol {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    transform: translateY(-2px);
  }
}

/* ===== TRES PETITS ÉCRANS (<400px) ===== */
@media (max-width: 400px) {
  .desc-paragraph,
  .desc-list {
    word-break: break-word;
    hyphens: auto;
  }
}


.description-text.fade-in { animation: fadeIn .9s ease both; }
@keyframes fadeIn {
  from { opacity:0; transform: translateY(18px); }
  to { opacity:1; transform: translateY(0); }
} 


/* ================== MEDIA SECTION (DOMAINES D'UTILISATION) ================== */

/* ====== SECTION ====== */
.usage-section {
  width: 100%;
  max-width: 1600px;
  margin: clamp(2.5rem,6vw,5rem) auto;
  padding: 0 clamp(1rem,5vw,3rem);
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

.usage-title {
  margin: 0 0 clamp(1.8rem,4vw,3rem);
  text-align: center;
  font-size: clamp(1.7rem,4.6vw,2.7rem);
  font-weight: 700;
  letter-spacing: .6px;
  text-shadow:
    2px 2px 8px rgba(0,0,0,.63),
    4px 4px 12px rgba(0,0,0,.57);
}

/* ====== CAROUSEL STRUCTURE ====== */
.usage-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(.6rem,1.4vw,1rem);
  max-width: 1100px;
  margin: 0 auto;
}

.usage-viewport {
  overflow: hidden;
  flex: 1 1 auto;
  border-radius: 16px;
  position: relative;
  background: linear-gradient(150deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 4px 18px -6px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,0.05);
}

.usage-track {
  display: flex;
  width: 100%;
  transition: transform .65s cubic-bezier(.22,.8,.25,1);
  will-change: transform;
  touch-action: pan-y;
}

/* ====== SLIDE ====== */
.usage-slide {
  flex: 0 0 100%;
  padding: clamp(.8rem,2vw,1.5rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(.9rem,2.2vw,1.4rem);
}

.usage-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background:#000;
  box-shadow: 0 6px 22px -8px rgba(0,0,0,.7);
}

.usage-media video,
.usage-media img {
  position: absolute;
  inset:0;
  width:100%; height:100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.12);
  transition: filter .55s, transform .55s;
}

.usage-media:hover video,
.usage-media:hover img {
  filter: brightness(1.16) contrast(1.2) saturate(1.05);
  transform: scale(1.03);
}

.usage-caption {
  margin: 0;
  font-size: clamp(1.05rem,2.6vw,1.55rem);
  text-align: center;
  font-weight: 700;
  text-shadow:
    2px 2px 8px rgba(0,0,0,.63),
    4px 4px 12px rgba(0,0,0,.57);
}

.usage-text {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(.95rem,2.4vw,1.15rem);
  line-height: 1.45;
  text-align: center;
  text-shadow:
    2px 2px 6px rgba(0,0,0,.55),
    4px 4px 10px rgba(0,0,0,.4);
}

/* ====== NAV BUTTONS ====== */
.usage-nav {
  flex: 0 0 auto;
  align-self: center;
  width: clamp(48px,5vw,62px);
  height: clamp(48px,5vw,62px);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.15);
  color:#fff;
  font-size: clamp(1.4rem,3vw,2.2rem);
  font-weight: 600;
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter: blur(6px);
  transition: background .35s, transform .35s, border-color .35s, color .35s;
  z-index: 2;
}

.usage-nav:hover,
.usage-nav:focus-visible {
  background: rgba(255,255,255,.7);
  color:#000;
  border-color:#fff;
  transform: scale(1.08);
}

.usage-nav:active {
  transform: scale(.9);
}

/* ====== DOTS ====== */
.usage-dots {
  margin: clamp(1.3rem,3vw,2rem) auto 0;
  display:flex;
  gap:.75rem;
  justify-content:center;
  flex-wrap:wrap;
}

.usage-dots button {
  width:15px; height:15px;
  padding:0;
  border:none;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #fff, #666 70%);
  opacity:.35;
  cursor:pointer;
  transition:opacity .35s, transform .35s, box-shadow .35s;
}

.usage-dots button.is-active {
  opacity:1;
  transform:scale(1.45);
  background:radial-gradient(circle at 35% 35%, #fff, #00f6ff 70%);
  box-shadow:0 0 0 6px rgba(0,246,255,.22);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 880px) {
  .usage-slide { padding: clamp(.8rem,3vw,1.2rem); }
}

@media (max-width: 640px) {
  .usage-carousel { gap:.5rem; }
  .usage-nav { width:46px; height:46px; font-size:1.5rem; }
  .usage-text { font-size: clamp(.9rem,3.6vw,1.05rem); }
}

@media (max-width: 440px) {
  .usage-caption { font-size: clamp(1rem,4.4vw,1.3rem); }
  .usage-text { font-size: clamp(.85rem,4vw,1rem); }
  .usage-nav { width:42px; height:42px; font-size:1.35rem; }
}


/*particles*/

#particles-js,
#dronesCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* Ajuste : 0 = derrière tout, >0 si besoin */
}

/* Option : un léger voile pour futurisme (désactive si trop) */
.flag-glow-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,#0055A430 0%,#ffffff26 50%,#EF413530 100%);
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Pour que ton header / contenu passe au-dessus */
.invest-header,
main,
footer {
  position: relative;
  z-index: 2;
}






/* =========================
   FIX & OPTI SPÉCIAL iPhone
   À placer APRÈS tout le reste
   ========================= */

/* 1) Base Safari iOS : lissage, safe-area, empêcher zoom auto sur inputs */
html {
  -webkit-text-size-adjust: 100%; /* pas de zoom auto sur orientation */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain; /* évite le "rebond" sur modales */
  overscroll-behavior-x: none;
  margin: 0;
  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);
  /* verrouille le léger déplacement horizontal Safari */
  position: relative;
  max-width: 100%;
}

/* 2) Désactive le surlignage bleu au tap + sélection gênante sur éléments interactifs */
a, button, .hero-cta, .btn-primary {
  -webkit-tap-highlight-color: rgba(255,255,255,0.08);
  touch-action: manipulation;
}

img, video {
  -webkit-user-drag: none;
  user-select: none;
}

/* 3) Conteneur général : éviter scroll horizontal fantôme */
html, body, main {
  width: 100%;
  overflow-x: hidden;
}

/* 4) Viewport units modernes (iOS 15+ supporte déjà) 
   Remplace usages sensibles (ex: 100vh dans .invest-header) par fallback + dvh/ svh/ lvh */
.invest-header,
header#accueil {
  /* Fallback legacy */
  min-height: 100vh;
  height: 100vh;
  /* Units dynamiques modernes : */
  min-height: 100dvh;
  height: 100dvh;
  /* Pour très vieux iOS (<15) on passera par JS plus bas si besoin */
}

/* Pour ton main qui compensait avec padding top 100vh */
main {
  /* On assure cohérence avec unités dynamiques */
  padding-top: 100dvh;
}

/* 5) Gestion notch / dynamic island pour éléments fixés (fullscreen, boutons) */
.fullscreen,
.fullscreen-video,
#scrollTopBtn {
  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);
}

#scrollTopBtn {
  /* recalé pour éviter d’être collé à l’indicateur d’accueil */
  bottom: calc(env(safe-area-inset-bottom,0) + 24px);
  right: calc(env(safe-area-inset-right,0) + 20px);
}

/* 6) Fix video object-fit + gestures Safari */
.invest-header > video,
.usage-media video {
  -webkit-transform: translateZ(0); /* trigger compositing */
  object-fit: cover;
  /* Empêche zoom / rotation pinch sur vidéo dans certains cas */
  touch-action: none;
}

/* 7) Scroll inertiel doux dans conteneurs si tu en ajoutes (ex carousel) */
.usage-viewport,
.usage-track {
  -webkit-overflow-scrolling: touch;
}

/* 8) Carrousel touch : éviter sélection de texte involontaire */
.usage-slide {
  -webkit-user-select: none;
  user-select: none;
}

/* 9) Amélioration boutons circulaires : aire touch minimum */
/*.usage-nav {
  min-width: 48px;
  min-height: 48px;
}*/

/* 10) Ajustements typographiques iPhone petits écrans (évite sur‑zoom) */
@media screen and (max-device-width: 430px) {
  .hero-title { letter-spacing: .3px; }
  .hero-sub   { letter-spacing: .3px; }
  .desc-paragraph,
  .desc-list  { word-wrap: break-word; }
}

/* 11) Spécifique Safari (feature detection) : 
   @supports (-webkit-touch-callout: none) ≈ iOS / Safari */
@supports (-webkit-touch-callout: none) and (not (display: grid)) {
  /* mini fallback si un bug de grid improbable survient */
  .circle-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .circle-grid .circle { margin: .6rem; }
}

/* 12) Résolution haute densité (améliorer netteté des cercles / svg) */
@media (-webkit-min-device-pixel-ratio: 2) {
  .circle,
  .usage-media {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* 13) Animation friendly (réduit effets si user préfère) */
@media (prefers-reduced-motion: reduce) {
  .progress-ring__circle,
  .usage-track,
  .hero-cta,
  .fullscreen,
  .fullscreen-video,
  .description-text.fade-in {
    transition: none !important;
    animation: none !important;
  }
}

/* 14) Défilement fluide ancre (Safari supporte maintenant) */
html {
  scroll-behavior: smooth;
}

/* 15) Empêcher la barre d'adresse de forcer reflow sur modales fullscreen */
.fullscreen,
.fullscreen-video {
  min-height: 100dvh;
}

/* 16) Couleur de remplissage derrière WebView (PWA iOS) */
:root {
  color-scheme: dark;
}

/* 17) Sécurité : évite double tap zoom sur CTA répétitifs */
.hero-cta, .btn-primary {
  touch-action: manipulation;
}

/* 18) Amélioration focus visible (accessibilité clavier / switch control) */
.hero-cta:focus-visible,
.btn-primary:focus-visible,
.usage-nav:focus-visible,
.usage-dots button:focus-visible {
  outline: 2px solid #00f6ff;
  outline-offset: 3px;
}

/* 19) Fix potentiel "input zoom" (si tu ajoutes des formulaires plus tard) */
input, select, textarea {
  font-size: 16px; /* seuil pour empêcher zoom auto iOS */
}

/* 20) Prévention du flash de police (si Ethnocentric / Orbitron en @import) */
@font-face {
  font-family: 'Ethnocentric'; /* si déjà chargé, ignore duplication */
  font-display: swap;
}

/* 21) Assure pas de double barre scroll horizontale sur iOS 17+ */
* {
  max-width: 100%;
}

/* 22) Parfois Safari ajoute un espace sous le video (ligne baseline) */
video { display: block; }

/* Masquer scrollbar sur les navigateurs modernes desktop */
@media (pointer: fine) {
  html {
    scrollbar-width: none;            /* Firefox */
  }
  html::-webkit-scrollbar {           /* Chrome / Edge / Safari */
    width: 0;
    height: 0;
  }
}


/* === RESTAURATION SCROLLBAR À DROITE === */

/* 1. Enlève la règle globale qui rétrécit des conteneurs */
* {
  /* max-width: 100%;  <-- SUPPRIMER cette ligne si encore présente */
}

/* Conserve la protection anti débordement SEULEMENT sur les médias */
img, video, svg, canvas { max-width:100%; height:auto; }

/* 2. Assure que la page entière (html/body) gère le scroll */
html, body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: clip; /* ou hidden si tu préfères */
}

/* 3. Empêche main d'être le scroll principal.
      Si ton header occupe déjà 100dvh, enlève le gros padding-top. */
main {
  padding-top: 0 !important;
  overflow: visible !important;
}

/* 4. S’assurer qu’aucun wrapper central (ex: max-width:1000px) n’a overflow auto */
main, .invest-header, header#accueil {
  overflow: visible;
}

/* 5. Désactiver tout overflow vertical sur les composants pleins écran */
.fullscreen,
.fullscreen-video {
  overflow-y: hidden;
}

/* 6. Si tu avais mis scrollbars cachées sur html, retire ce bloc 
   (OU garde-le mais alors c’est normal que tu ne voies pas la barre globale)
   ==> Pour revoir la scrollbar native, neutralise :
*/
@media (pointer: fine) {
  html {
    scrollbar-width: auto;          /* rétablit Firefox */
  }
  html::-webkit-scrollbar {
    width: 12px;                    /* valeur normale */
    height: 12px;
  }
  html::-webkit-scrollbar-track {
    background: #000;
  }
  html::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
  }
  html::-webkit-scrollbar-thumb:hover {
    background: #444;
  }
}

/* 7. S’il reste un conteneur interne qui scrolle : forcer son overflow visible */
.usage-viewport,
.usage-track,
.description-container,
.description-text {
  overflow: visible;
}


/* ====== BOUTON SON COMPACT & 100% RESPONSIVE ====== */

.sound-toggle-wrapper {
  position: absolute;
  top: clamp(4px, 1vw, 8px);         /* bien haut sans coller au bord */
  right: clamp(6px, 2vw, 12px);      /* marge dynamique à droite */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

#sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 6vw, 38px);     /* taille fluide adaptée */
  height: clamp(30px, 6vw, 38px);
  font-size: clamp(1rem, 3vw, 1.4rem); /* symbole 🔊 bien visible */
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* iOS Safari */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
  
  /* Compatibilité mobile */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

#sound-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

#sound-toggle:active {
  transform: scale(0.92);
}












