/* Hauteur du header, pour calculer la pleine page */
:root{
  --header-h: 64px;
}

/* Header fixed (comme tu as déjà) */
.header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(10,14,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Compense le header fixe */
main{ padding-top: var(--header-h); }

/* SECTION VIDEO = pleine hauteur d’écran (moins le header) */
.video-hero{
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background:#000;
}

/* Conteneur vidéo */
.bg-video{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

/* IMPORTANT: "cover" façon YouTube (zoom + centrage) */
.bg-video iframe{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);

  /* On force une taille plus grande que l’écran */
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);

  /* évite interaction */
  pointer-events:none;
}

/* voile sombre + contenu */
.video-overlay{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  align-items:center;
  background: rgba(0,0,0,.35);
}


:root{
  --bg:#0b0f14;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --brand:#16a34a;
  --brand-2:#22c55e;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --max:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}
a{color:inherit}


/* Style de la souris */
.mouse {
  width: 22px;
  height: 35px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

/* La molette qui bouge */
.wheel {
  width: 3px;
  height: 6px;
  background: white;
  border-radius: 2px;
  animation: scroll-mouse 1.5s infinite;
}

/* Animation de la molette */
@keyframes scroll-mouse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* On ajuste le scroll-hint pour aligner verticalement la souris */
.scroll-hint {
  margin-top: 30px;
  display: flex;
  flex-direction: column; /* Texte au dessus de la souris */
  gap: 12px;
  align-items: center;
  opacity: .85;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===============================
   MENU (sticky)
   =============================== */
.header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(10,14,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav{display:flex; justify-content:space-between; align-items:center; padding:14px 0}
.brand{display:flex; gap:12px; align-items:center; text-decoration:none}
.brand-name{font-weight:900; letter-spacing:.5px}
.badge{
  display:inline-block; padding:4px 10px; border-radius:999px;
  background:#0a1b12; border:1px solid #1f8f47; color:#a7f3d0;
  font-size:12px;
}
.menu{display:flex; gap:18px}
.menu a{text-decoration:none; opacity:.85}
.menu a:hover{opacity:1}

/* Pour compenser le header fixed */
main{padding-top:64px}

/* ===============================
   VIDEO HERO (1ère page)
   =============================== */
.video-hero{
  position: relative;
  height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  overflow: hidden;
  background:#000;
}

.bg-video{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.bg-video iframe{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);

  /* cover: on remplit l’écran, quitte à rogner */
  width: max(100vw, 177.78vh);   /* 16/9 */
  height: max(100vh, 56.25vw);   /* 9/16 */

  pointer-events:none;
}


.video-hero{
  position: relative;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  background:#000;
}

.bg-video iframe{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);

  width: max(100vw, 177.78vh);
  height: max(calc(100vh - var(--header-h)), calc(56.25vw));

  pointer-events:none;
}



/* voile + contenu */
.video-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;      /* Centre verticalement */
  justify-content: center; /* AJOUT : Centre horizontalement */
  text-align: center;      /* AJOUT : Aligne le texte au milieu */
  background: rgba(0, 0, 0, .35);
}


.video-title {
  /* Ancien : clamp(34px, 5vw, 64px) */
  font-size: clamp(45px, 8vw, 90px); /* Plus gros sur desktop et mobile */
  font-weight: 900;
  text-transform: uppercase; /* Optionnel : pour plus de force */
  letter-spacing: -1px;      /* Resserrer un peu les lettres donne un aspect plus pro */
  line-height: 1;
  margin: 0 0 15px;
}

.video-sub {
  color: rgba(255, 255, 255, .95);
  font-size: clamp(18px, 2vw, 24px); /* Taille adaptative */
  max-width: 850px;                 /* On élargit un peu pour accommoder le texte plus gros */
  margin: 0 auto 30px;              /* Le "auto" aide au centrage horizontal */
  line-height: 1.5;
}

.video-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center; /* AJOUT : Centre les boutons horizontalement */
}

.scroll-hint{
  margin-top: 30px;
  display:inline-flex;
  gap:10px;
  align-items:center;
  opacity:.85;
  font-size: 14px;
}
.scroll-hint .chev{
  font-size: 20px;
  animation: bob 1.2s infinite ease-in-out;
}
@keyframes bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}

/* ===============================
   BOUTONS
   =============================== */
.button{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 20px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color:#041006;
  box-shadow: var(--shadow);
}
.button.outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  box-shadow: none;
}

/* ===============================
   SECTIONS
   =============================== */
.section{padding:70px 0}
.section h2{margin:0 0 8px}
.lead{color:var(--muted); margin-top:0}

.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:22px}
.card{
  background:#0d1520;
  border:1px solid #1f2937;
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
}
.icon{
  width:42px;height:42px;border-radius:10px;
  display:grid;place-items:center;
  background:#0a1b12;border:1px solid #1f8f47;
  font-weight:800;
}

.assurances{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:18px}
.notice{border:1px dashed #334155; border-radius:14px; padding:16px; color:#cbd5e1}

.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px}
.tile{border-radius:14px; overflow:hidden; border:1px solid #1f2937; background:#0c1520}
.tile img{width:100%; aspect-ratio:4/3; object-fit:cover; display:block}
.cap{padding:12px; color:var(--muted); font-size:14px}

.contact{display:grid; grid-template-columns:1.2fr .8fr; gap:18px; margin-top:18px}
.form{background:#0d1520;border:1px solid #1f2937;border-radius:16px;padding:18px;box-shadow:var(--shadow)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.input{width:100%;padding:12px 14px;border-radius:10px;border:1px solid #1f2937;background:#0a0f15;color:var(--text)}
textarea.input{min-height:120px; resize:vertical}

/* Footer */
.footer{border-top:1px solid rgba(255,255,255,.08); color:var(--muted); padding:28px 0; text-align:center}

/* Responsive */
@media (max-width: 960px){
  .menu{display:none}
  .cards{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
}



/* ===============================
   VIDEO HERO – MOBILE FULLSCREEN
   =============================== */
@media (max-width: 768px) {

  .video-hero{
    height: 100svh; /* vrai plein écran mobile (iOS / Android) */
    min-height: 100svh;
  }

  .bg-video iframe{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* COVER MOBILE : aucun espace vide */
    width: max(100vw, 100svh * 1.7778); /* 16/9 */
    height: max(100svh, 100vw * 0.5625);

    pointer-events: none;
  }
}



/* ===============================
   CONTACT : FORMULAIRE CENTRÉ
   =============================== */

.contact-grid{
  display:grid;
  grid-template-columns: 1.7fr 1fr; /* formulaire plus grand */
  gap: 32px;
  margin: 30px auto 0;              /* centré */
  max-width: 1100px;                /* limite la largeur pour un centrage propre */
}

.contact-form{ width: 100%; }

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

