:root{
  --esk-blue:#0A3D62;
  --esk-blue-2:#0B3558;
  --esk-gold:#C8A349;
  --esk-bg:#02172F;
}

/* RESET & BASE */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--esk-bg);
  color:#F5F7FB;
  line-height:1.6;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:var(--esk-gold);
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

h1,h2,h3,h4{
  font-family:'Cormorant Garamond','IBM Plex Serif',serif;
  margin:0 0 0.4em;
}

/* LAYOUT GÉNÉRAL */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 16px;
}

.section{
  padding:50px 0;
}

.two-col{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:32px;
  align-items:flex-start;
}
@media(max-width:900px){
  .two-col{
    grid-template-columns:1fr;
  }
}

/* NAVBAR */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:#02172F;
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nav-brand{
  font-family:'Cormorant Garamond','IBM Plex Serif',serif;
  font-size:1.35rem;
  letter-spacing:0.04em;
  color:#FFFFFF;
  white-space:nowrap;
}
.nav-brand span{
  color:var(--esk-gold);
  font-weight:700;
}

/* MENU PRINCIPAL */
.nav-menu{
  list-style:none;
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
}

.nav-menu a{
  color:#F5F7FB;
  font-size:.92rem;
  font-weight:500;
}
.nav-menu a:hover{
  color:var(--esk-gold);
}

/* Icône WhatsApp dans la nav */
.nav-wa img{
  width:32px;
  height:32px;
}

/* BURGER MOBILE */
.hb{
  display:none;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}
.hb span{
  width:20px;
  height:2px;
  background:#FFFFFF;
  border-radius:999px;
}

@media(max-width:768px){
  .hb{display:flex;}
  .nav{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .nav-menu{
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    margin-top:10px;
    display:none;
  }
  .nav.nav-open .nav-menu{
    display:flex;
  }
}

/* HERO – INDEX AVEC CARROUSEL */
.hero{
  position:relative;
  background:#02172F;
  color:#FFFFFF;
}

.hero .carousel{
  position:relative;
  height:520px;
  overflow:hidden;
}

.hero .slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity .7s ease;
}
.hero .slide.active{
  opacity:1;
}

.hero .overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.70),rgba(0,0,0,.25));
  z-index:1;
}

.hero .content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
}
.hero .content .container{
  padding-top:0;
  padding-bottom:0;
}

.hero .content h1{
  font-size:2.4rem;
  margin-bottom:10px;
}
.hero .content p{
  max-width:640px;
  font-size:.98rem;
}

/* BOUTONS */
.buttons,
.hero-actions,
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 18px;
  border-radius:999px;
  font-size:.9rem;
  font-weight:600;
  border:2px solid transparent;
  cursor:pointer;
  text-decoration:none;
}

.btn-primary{
  background:var(--esk-gold);
  color:#0A3D62;
  border-color:var(--esk-gold);
}
.btn-primary:hover{
  background:#E0B85A;
  border-color:#E0B85A;
}

.btn-gold{
  background:transparent;
  color:var(--esk-gold);
  border-color:var(--esk-gold);
}
.btn-gold:hover{
  background:rgba(200,163,73,.12);
}

.btn-ghost{
  background:transparent;
  color:#F5F7FB;
  border-color:rgba(245,247,251,.3);
}
.btn-ghost:hover{
  background:rgba(245,247,251,.08);
}

/* CONTRÔLES CARROUSEL */
.carousel-controls{
  position:absolute;
  bottom:14px;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  padding:0 16px;
  z-index:3;
}
.carousel-controls button{
  width:30px;
  height:30px;
  border-radius:50%;
  border:1px solid var(--esk-gold);
  background:rgba(1,18,38,.7);
  color:#FFFFFF;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.carousel-dots{
  position:absolute;
  bottom:10px;
  left:0;
  right:0;
  display:flex;
  gap:6px;
  justify-content:center;
  z-index:3;
}
.carousel-dots button{
  width:8px;
  height:8px;
  border-radius:999px;
  border:1px solid var(--esk-gold);
  background:transparent;
}
.carousel-dots button.active{
  background:var(--esk-gold);
}

/* HEROS DES PAGES SERVICES */
.hero.hero-bg-business,
.hero.hero-bg-ia,
.hero.hero-bg-frac,
.hero.hero-bg-coach,
.hero.hero-bg-patrim{
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}

.hero-bg-business{background-image:url("images/hero-business-growth.webp");}
.hero-bg-ia{background-image:url("images/hero-ia.webp");}
.hero-bg-frac{background-image:url("images/hero-fractional.webp");}
.hero-bg-coach{background-image:url("images/hero-coaching.webp");}
.hero-bg-patrim{background-image:url("images/hero-conseil.webp");}

.hero.hero-bg-business::before,
.hero.hero-bg-ia::before,
.hero.hero-bg-frac::before,
.hero.hero-bg-coach::before,
.hero.hero-bg-patrim::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.70),rgba(0,0,0,.25));
}

.hero-content{
  position:relative;
  z-index:2;
  padding:80px 0 70px;
}
.hero-kicker{
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:.75rem;
  color:var(--esk-gold);
  margin-bottom:6px;
}
.hero-lead{
  max-width:640px;
  margin-bottom:8px;
}

/* TITRES & BLOCS */
.accent-title{
  font-family:'Cormorant Garamond','IBM Plex Serif',serif;
  font-size:1.25rem;
  color:var(--esk-gold);
  margin-bottom:6px;
}

/* BANDE IMPACT */
.impact-band{
  background:#03152A;
  padding:42px 0;
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.04);
}

.impact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}

.impact-card{
  background:#04152B;
  border-radius:14px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.06);
}

.impact-metric{
  font-family:'Cormorant Garamond','IBM Plex Serif',serif;
  font-size:1.2rem;
  color:var(--esk-gold);
  margin-bottom:4px;
}

.impact-label{
  font-size:.9rem;
  color:#D1D6E3;
}

/* FAQ */
.faq-list details p{
  margin-top:8px;
}

/* CTA FOOTER */
.footer-cta{
  padding:40px 0 46px;
  background:#031423;
}
.footer-cta h2{
  font-size:1.8rem;
  margin-bottom:8px;
}
.footer-cta p{
  max-width:720px;
}

/* FOOTER */
footer{
  padding:14px 16px 18px;
  font-size:.8rem;
  color:#9CA4B7;
  background:#020B16;
  text-align:center;
}
footer a{
  color:#D1D6E3;
  margin:0 4px;
}
footer a:hover{
  color:var(--esk-gold);
}

/* CTA MOBILE STICKY */
.mobile-cta-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:8px 12px;
  background:rgba(2,11,22,.96);
  border-top:1px solid rgba(255,255,255,.08);
  display:none;
  justify-content:center;
  gap:8px;
  z-index:40;
}
@media(max-width:768px){
  .mobile-cta-bar{display:flex;}
}

/* MODAL LEAD / CALENDLY */
#lead-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:60;
}

.lead-modal-inner{
  background:#031423;
  border-radius:18px;
  padding:18px 18px 16px;
  max-width:620px;
  width:100%;
  border:1px solid rgba(200,163,73,.35);
}

.lead-modal-close{
  float:right;
  cursor:pointer;
  font-size:1.1rem;
  margin-top:-4px;
  margin-right:-2px;
}

.lead-form-grid{
  display:grid;
  gap:10px 12px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.lead-form-grid .full{
  grid-column:1 / -1;
}

.lead-form-grid label{
  display:block;
  font-size:.8rem;
  margin-bottom:2px;
}

.lead-form-grid input,
.lead-form-grid select,
.lead-form-grid textarea{
  width:100%;
  padding:6px 7px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.16);
  background:#020B16;
  color:#F5F7FB;
  font-size:.88rem;
}
.lead-form-grid textarea{
  resize:vertical;
  min-height:72px;
}

.lead-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}

/* RESPONSIVE HERO & FORM */
@media(max-width:640px){
  .hero .carousel{
    height:440px;
  }
  .hero .content{
    align-items:flex-end;
    padding-bottom:48px;
  }
  .hero .content h1{
    font-size:1.9rem;
  }
  .lead-form-grid{
    grid-template-columns:1fr;
  }
}

/* Réduit légèrement l’espace entre le HERO et la première section */
section.section:first-of-type{
  padding-top:25px;
}


/* ============================
   LANG SWITCH DROPDOWN — FINAL
   ============================ */

/* Le menu principal ne coupe pas ce qui déborde */
.nav-menu{
  overflow: visible;
}

/* Conteneur du switch */

/* Bouton 🌐 FR / EN / AR */

.lang-btn:hover{
  border-color: #F5F7FB;
  color: #F5F7FB;
}

/* Menu déroulant (PC + mobile) */

/* Neutraliser les puces éventuelles */

/* Liens FR / EN / AR */

/* Hover */
.lang-menu li a:hover{
  background: rgba(200,163,73,.18);
  color: #F5F7FB;
}

/* ADAPTATION MOBILE : on garde le dropdown, mais on le rend compact */

 /* ============================
   LANG SWITCH DROPDOWN – FINAL
   ============================ */

/* Pour éviter que la nav coupe le dropdown */
.nav-menu{
  overflow: visible;
}

/* Conteneur du bouton langue */
.lang-switch{
  position: relative;
}

/* Bouton 🌐 FR / EN / AR */
.lang-btn{
  background: transparent;
  border: 1px solid #C8A349;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #F5F7FB;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover{
  border-color: #F5F7FB;
  color: #F5F7FB;
}



/* MENU DÉROULANT — VERSION PAR DÉFAUT (PC) */
.lang-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: auto;                     /* largeur = contenu */
  background: #02101E;             /* bleu nuit */
  border: 1px solid #C8A349;       /* or */
  border-radius: 8px;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 9999;
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
  white-space: nowrap;             /* empêche les retours ligne */
}




/* Neutraliser les puces */
.lang-menu li{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Liens FR / EN / AR */
.lang-menu li a{
  display: block;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: #C8A349;                    /* texte or */
  text-decoration: none;
  white-space: nowrap;               /* pas de retour à la ligne */
}

/* Hover */
.lang-menu li a:hover{
  background: rgba(200,163,73,.18);
  color: #F5F7FB;
}

/* ----- ADAPTATION MOBILE ----- */
@media (max-width: 768px){

  /* Le bouton langue reste dans la colonne du menu */
  .nav-open .lang-switch{
    align-self: flex-start;
    margin-top: 8px;
  }

  /* En mobile, on garde un petit bloc juste sous le bouton,
     en largeur automatique (pas toute la largeur de l'écran) */
  .nav-open .lang-menu{
    position: static;                /* plus de absolute => plus de décalage */
    min-width: 0;
    max-width: none;
    width: auto;                     /* largeur = contenu */
    margin-top: 4px;
    background: #02101E;
    border: 1px solid #C8A349;
    border-radius: 8px;
    padding: 4px 6px;
  }

  .nav-open .lang-menu li a{
    padding: 4px 8px;
    font-size: 0.9rem;
  }
}






/* ===== Modal lead form : meilleure gestion mobile ===== */

#lead-modal{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;              /* affiché en JS */
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  overflow-y: auto;           /* permet de scroller sur mobile */
}

.lead-modal-inner{
  max-width: 640px;
  width: 100%;
  background: #021326;
  border-radius: 20px;
  padding: 20px 20px 96px;    /* gros padding bas pour dégager les boutons */
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* Boutons en bas du formulaire */
.lead-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
}

/* Ajustements spécifiques mobile */
@media (max-width: 768px){
  #lead-modal{
    align-items: flex-start;  /* modal attaché en haut, scroll possible */
  }

  .lead-modal-inner{
    margin-top: 40px;
    border-radius: 18px;
  }

  .lead-form-actions{
    flex-direction: column;
  }

  .lead-form-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* PATCH 2025-12-13: ensure language dropdown opens when JS toggles .lang-open */
.lang-switch.lang-open .lang-menu{ display:block; }
