/* ============================================================
   AL MAKHTOUM ASSURANCE — DESIGN SYSTEM
   Palette : bleu foncé / blanc / doré / gris clair
   Display : Fraunces (headlines, caractère, confiance)
   Corps   : Manrope (lisibilité, modernité)
   Signature : timeline "route" (pointillés type marquage au sol)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --navy-950:#050e21;
  --navy-900:#0a1c38;
  --navy-800:#0f2a4d;
  --navy-700:#173a66;
  --gold:#c6992e;
  --gold-light:#e3c064;
  --gold-dim:#a97f22;
  --white:#ffffff;
  --grey-50:#f5f7fa;
  --grey-100:#eceff4;
  --grey-300:#c9d1de;
  --text:#132038;
  --text-muted:#5b6b85;
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:26px;
  --shadow-sm:0 4px 14px rgba(10,28,56,0.08);
  --shadow-md:0 14px 40px rgba(10,28,56,0.14);
  --shadow-gold:0 10px 30px rgba(198,153,46,0.28);
  --ease:cubic-bezier(.22,1,.36,1);
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;overflow-x:hidden;}

body{
  font-family:'Manrope', sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  font-weight:600;
  line-height:1.15;
  color:var(--navy-900);
}

a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;}

.container{
  width:92%;
  max-width:1220px;
  margin:0 auto;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-dim);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px;height:2px;
  background:var(--gold);
  display:inline-block;
}

.section{padding:90px 0;}
.section-grey{background:var(--grey-50);}
.section-head{
  max-width:640px;
  margin-bottom:52px;
}
.section-head p{color:var(--text-muted);font-size:16.5px;margin-top:14px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}
}

/* reveal-on-scroll utility (JS toggles .is-visible) */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.is-visible{opacity:1;transform:translateY(0);}

:focus-visible{outline:3px solid var(--gold);outline-offset:3px;}

/* ============================================================
   HEADER
============================================================ */
header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(10,28,56,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(198,153,46,0.18);
}

.header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.logo{display:flex;align-items:center;gap:12px;}
.logo img{height:36px;width:auto;border-radius:6px;background:var(--white);padding:4px 10px;box-sizing:content-box;}
.logo h1{
  font-size:19px;
  color:var(--white);
  letter-spacing:.01em;
}

nav.main-nav{display:flex;align-items:center;gap:34px;}
nav.main-nav a{
  color:var(--grey-100);
  font-weight:600;
  font-size:14.5px;
  transition:color .2s;
  position:relative;
}
nav.main-nav a:hover{color:var(--gold-light);}

.header-actions{display:flex;align-items:center;gap:16px;}

.btn-inscription{
  background:linear-gradient(135deg,var(--gold-light),var(--gold-dim));
  color:var(--navy-950);
  padding:11px 22px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  letter-spacing:.01em;
  box-shadow:var(--shadow-gold);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space:nowrap;
}
.btn-inscription:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(198,153,46,0.4);}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid rgba(255,255,255,0.25);
  border-radius:8px;
  width:42px;height:38px;
  color:var(--white);
  font-size:18px;
}

@media(max-width:880px){
  nav.main-nav{
    position:absolute;
    top:100%;left:0;right:0;
    background:var(--navy-900);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 6%;
    box-shadow:var(--shadow-md);
    max-height:0;
    overflow:hidden;
    transition:max-height .35s var(--ease);
  }
  nav.main-nav.open{max-height:320px;}
  nav.main-nav a{padding:13px 0;width:100%;border-bottom:1px solid rgba(255,255,255,0.08);}
  .nav-toggle{display:block;}
}

/* ============================================================
   HERO
============================================================ */
.hero{
  position:relative;
  background:radial-gradient(1200px 600px at 85% -10%, rgba(198,153,46,0.18), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color:var(--white);
  overflow:hidden;
  padding:96px 0 110px;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -30% auto;
  width:520px;height:520px;
  background:radial-gradient(circle, rgba(198,153,46,0.16), transparent 70%);
  pointer-events:none;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
  position:relative;
  z-index:1;
}

.hero h2{
  font-size:clamp(32px,4.4vw,54px);
  color:var(--white);
  margin-bottom:20px;
}
.hero h2 em{
  font-style:normal;
  background:linear-gradient(120deg,var(--gold-light),var(--gold));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  color:var(--grey-300);
  font-size:17.5px;
  max-width:520px;
  margin-bottom:34px;
}

.hero-actions{display:flex;flex-wrap:wrap;gap:16px;}

.btn-primary{
  background:linear-gradient(135deg,var(--gold-light),var(--gold-dim));
  color:var(--navy-950);
  padding:15px 28px;
  border-radius:999px;
  font-weight:800;
  font-size:15px;
  border:none;
  box-shadow:var(--shadow-gold);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover{transform:translateY(-2px);}

.btn-ghost{
  background:transparent;
  border:1.5px solid rgba(255,255,255,0.35);
  color:var(--white);
  padding:14px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  transition:border-color .25s, background .25s;
}
.btn-ghost:hover{border-color:var(--gold-light);background:rgba(255,255,255,0.06);}

.hero-visual{
  position:relative;
  border-radius:var(--radius-lg);
  padding:44px 34px;
  background:linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 30px 70px rgba(0,0,0,0.45);
}

/* signature visual : maquette d'attestation numérique */
.id-card{
  position:relative;
  border-radius:20px;
  padding:30px 26px;
  background:linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border:1px solid rgba(198,153,46,0.4);
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}
.id-card::before{
  content:"";
  position:absolute;
  top:-40%;right:-20%;
  width:220px;height:220px;
  background:radial-gradient(circle, rgba(198,153,46,0.35), transparent 70%);
}
.id-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:26px;
}
.id-card-top img{height:26px;filter:none;background:var(--white);padding:4px 8px;border-radius:6px;}
.id-chip{
  width:38px;height:28px;
  border-radius:6px;
  background:linear-gradient(135deg,var(--gold-light),var(--gold-dim));
}
.id-card-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--grey-300);margin-bottom:4px;}
.id-card-value{font-family:'Fraunces',serif;font-size:19px;color:var(--white);margin-bottom:18px;}
.id-card-row{display:flex;justify-content:space-between;gap:16px;}
.id-card-row .id-card-label{margin-bottom:2px;}
.id-card-row .id-card-value{font-size:15px;margin-bottom:0;}
.id-card-foot{
  margin-top:24px;
  padding-top:16px;
  border-top:1px dashed rgba(255,255,255,0.2);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.id-status{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12.5px;font-weight:700;color:var(--gold-light);
}
.id-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--gold-light);box-shadow:0 0 8px var(--gold-light);}

.hero-badge{
  position:absolute;
  left:-14px;bottom:-18px;
  background:rgba(10,28,56,0.92);
  backdrop-filter:blur(6px);
  border:1px solid rgba(198,153,46,0.4);
  border-radius:var(--radius-sm);
  padding:14px 18px;
  z-index:2;
}
.hero-badge strong{display:block;font-family:'Fraunces',serif;font-size:20px;color:var(--gold-light);}
.hero-badge span{font-size:12.5px;color:var(--grey-300);}

@media(max-width:960px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{order:-1;}
}

/* ============================================================
   STATS STRIP
============================================================ */
.stats-strip{
  background:var(--navy-900);
  border-top:1px solid rgba(198,153,46,0.2);
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:34px 0;
}
.stat-item{
  text-align:center;
  padding:0 10px;
  border-right:1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child{border-right:none;}
.stat-item .num{
  font-family:'Fraunces',serif;
  font-size:clamp(24px,3vw,36px);
  color:var(--gold-light);
  font-weight:600;
}
.stat-item .label{font-size:13px;color:var(--grey-300);margin-top:4px;}

@media(max-width:700px){
  .stats-grid{grid-template-columns:repeat(2,1fr);row-gap:24px;}
  .stat-item:nth-child(2){border-right:none;}
}

/* ============================================================
   POURQUOI NOUS — CARDS
============================================================ */
.why-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.why-card{
  background:var(--white);
  border:1px solid var(--grey-100);
  border-radius:var(--radius-md);
  padding:30px 26px;
  box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.why-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:rgba(198,153,46,0.4);
}
.why-icon{
  width:52px;height:52px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  color:var(--gold-light);
  margin-bottom:18px;
}
.why-card h3{font-size:19px;margin-bottom:10px;}
.why-card p{color:var(--text-muted);font-size:15px;}

@media(max-width:880px){.why-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.why-grid{grid-template-columns:1fr;}}

/* ============================================================
   COMMENT ÇA MARCHE — signature "route" timeline
============================================================ */
.road{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  padding-top:10px;
}
.road::before{
  content:"";
  position:absolute;
  top:27px;left:0;right:0;
  height:3px;
  background-image:repeating-linear-gradient(90deg, var(--gold) 0 22px, transparent 22px 40px);
  opacity:.55;
}
.road-step{position:relative;padding-top:70px;text-align:left;}
.road-step .marker{
  position:absolute;
  top:0;left:0;
  width:54px;height:54px;
  border-radius:50%;
  background:var(--navy-900);
  color:var(--gold-light);
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;
  font-size:20px;
  border:3px solid var(--gold);
  box-shadow:var(--shadow-sm);
}
.road-step h4{font-size:17px;margin-bottom:8px;}
.road-step p{color:var(--text-muted);font-size:14.5px;}

@media(max-width:880px){
  .road{grid-template-columns:1fr 1fr;row-gap:44px;}
  .road::before{display:none;}
}
@media(max-width:560px){
  .road{grid-template-columns:1fr;}
}

/* ============================================================
   FORMULAIRE DE COMMANDE
============================================================ */
.assurance-section{background:var(--navy-950);position:relative;}
.assurance-section .section-head h2,
.assurance-section .section-head p{color:var(--white);}
.assurance-section .section-head p{color:var(--grey-300);}

.form-card{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:44px;
  box-shadow:0 30px 70px rgba(0,0,0,0.35);
}
.form-card h2{font-size:24px;margin-bottom:26px;}

#assuranceForm{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px 22px;
}
.form-group{display:flex;flex-direction:column;gap:7px;}
.form-group label{font-size:13.5px;font-weight:700;color:var(--text-muted);}
.form-group input,
.form-group select{
  padding:13px 14px;
  border:1.5px solid var(--grey-300);
  border-radius:var(--radius-sm);
  font-size:15px;
  font-family:inherit;
  color:var(--text);
  background:var(--grey-50);
  transition:border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(198,153,46,0.15);
  outline:none;
  background:var(--white);
}
.checkbox-group{grid-column:1/-1;}
.checkbox-group > label{display:block;margin-bottom:10px;}
.checkbox-row{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 0;
  font-size:14.5px;
}
.checkbox-row input{width:17px;height:17px;accent-color:var(--gold-dim);}

.result-box{
  grid-column:1/-1;
  margin-top:10px;
  padding:26px;
  background:var(--grey-50);
  border-radius:var(--radius-md);
  border:1px dashed var(--grey-300);
  text-align:center;
}
.result-box h3{font-size:26px;color:var(--navy-900);margin-bottom:6px;}
.result-box p{color:var(--text-muted);font-size:14px;margin-bottom:18px;}

.result-box button{
  border:none;
  border-radius:999px;
  padding:14px 24px;
  font-weight:800;
  font-size:14.5px;
  margin:6px 8px 0;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:transform .2s var(--ease), opacity .2s;
}
.result-box button:disabled{opacity:.45;cursor:not-allowed;}
.result-box button:not(:disabled):hover{transform:translateY(-2px);}
#waveBtn{background:var(--white);border:1.5px solid var(--grey-300);color:var(--text);}
#waveBtn img{height:20px;}
#whatsappBtn{background:#25D366;color:var(--white);}

@media(max-width:760px){
  .form-card{padding:26px;}
  #assuranceForm{grid-template-columns:1fr;}
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-list{max-width:780px;margin:0 auto;}
.faq-item{
  border-bottom:1px solid var(--grey-100);
}
.faq-question{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  padding:22px 4px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-family:'Fraunces',serif;
  font-size:17.5px;
  color:var(--navy-900);
}
.faq-question .plus{
  flex:none;
  width:30px;height:30px;
  border-radius:50%;
  border:1.5px solid var(--gold);
  color:var(--gold-dim);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;
  transition:transform .3s var(--ease);
}
.faq-item.open .faq-question .plus{transform:rotate(135deg);}
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s var(--ease);
}
.faq-answer p{padding:0 4px 22px;color:var(--text-muted);font-size:15px;max-width:680px;}

/* ============================================================
   TÉMOIGNAGES — SLIDER
============================================================ */
.testimonials{background:var(--navy-900);color:var(--white);}
.testimonials .section-head h2,
.testimonials .section-head p{color:var(--white);}
.testimonials .section-head p{color:var(--grey-300);}

.testi-slider{position:relative;max-width:760px;margin:0 auto;}
.testi-track{overflow:hidden;}
.testi-slides{display:flex;transition:transform .5s var(--ease);}
.testi-slide{flex:0 0 100%;padding:6px;}
.testi-card{
  background:var(--navy-800);
  border:1px solid rgba(198,153,46,0.25);
  border-radius:var(--radius-lg);
  padding:38px;
  text-align:center;
}
.testi-card .stars{color:var(--gold-light);letter-spacing:3px;margin-bottom:16px;font-size:15px;}
.testi-card p.quote{font-family:'Fraunces',serif;font-size:19px;line-height:1.5;margin-bottom:20px;}
.testi-card .author{font-weight:700;color:var(--gold-light);font-size:14px;}
.testi-card .role{font-size:13px;color:var(--grey-300);}

.testi-nav{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:26px;
}
.testi-dot{
  width:9px;height:9px;
  border-radius:50%;
  background:rgba(255,255,255,0.25);
  border:none;
  padding:0;
}
.testi-dot.active{background:var(--gold);width:24px;border-radius:6px;transition:width .3s var(--ease);}

/* ============================================================
   FOOTER
============================================================ */
footer{background:var(--navy-950);color:var(--grey-300);padding:70px 0 24px;}
.footer-container{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.footer-container h3{color:var(--white);font-size:16px;margin-bottom:16px;}
.footer-container p{font-size:14px;line-height:1.7;color:var(--grey-300);}

.social-icons{display:flex;gap:14px;margin-top:6px;}
.social-icons a{
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,0.07);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s, transform .2s;
}
.social-icons a:hover{background:var(--gold);transform:translateY(-3px);}
.social-icons img{width:18px;height:18px;filter:brightness(0) invert(1);}

.copyright{
  text-align:center;
  font-size:12.5px;
  color:var(--grey-300);
  opacity:.7;
  padding-top:20px;
}

@media(max-width:820px){
  .footer-container{grid-template-columns:1fr 1fr;}
}
@media(max-width:520px){
  .footer-container{grid-template-columns:1fr;}
}

/* ============================================================
   TÉLÉPHONE — corrections dédiées petits écrans (≤540px)
============================================================ */
@media(max-width:540px){

  .container{width:94%;}
  .section{padding:56px 0;}

  /* HEADER : évite le débordement logo + bouton + burger */
  .header-container{padding:11px 0;gap:8px;}
  .logo{gap:8px;min-width:0;}
  .logo img{height:36px;flex:none;}
  .logo h1{font-size:15px;line-height:1.2;}
  .header-actions{gap:8px;}
  .btn-inscription{padding:9px 14px;font-size:12.5px;}
  .nav-toggle{width:38px;height:34px;font-size:16px;}

  /* HERO */
  .hero{padding:48px 0 60px;}
  .hero h2{font-size:clamp(24px,7vw,32px);}
  .hero p{font-size:15.5px;}
  .hero-actions{flex-direction:column;align-items:stretch;}
  .hero-actions a{text-align:center;}
  .hero-visual{padding:26px 20px;}
  .hero-badge{left:8px;right:8px;bottom:-16px;text-align:center;}

  /* STATS */
  .stats-grid{grid-template-columns:1fr 1fr;padding:24px 0;row-gap:20px;}
  .stat-item{border-right:none !important;padding:0 6px;}

  /* WHY / ROAD CARDS */
  .why-card{padding:22px 18px;}
  .road-step{padding-top:58px;}

  /* FORMULAIRE DE COMMANDE */
  .form-card{padding:18px;}
  .form-card h2{font-size:19px;}
  #assuranceForm{gap:14px;}
  .form-group input,
  .form-group select{padding:12px;font-size:16px;} /* 16px = évite le zoom auto iOS */
  .result-box{padding:18px 14px;}
  .result-box button{width:100%;justify-content:center;margin:6px 0 0;}
  .checkbox-row{flex-wrap:wrap;}

  /* TÉMOIGNAGES */
  .testi-card{padding:26px 20px;}
  .testi-card p.quote{font-size:16.5px;}

  /* FOOTER */
  footer{padding:50px 0 20px;}
  .footer-container{gap:28px;}
}
