/* CDAdvisory — site statique */
:root{
  --navy:#384152;
  --navy-dark:#2c3341;
  --red:#ea433b;
  --text:#4e5354;
  --muted:#7a8088;
  --light:#f5f6f7;
  --white:#fff;
  --header-h:78px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body{font-family:"IBM Plex Sans",Helvetica,Arial,sans-serif;font-weight:300;font-size:16px;line-height:1.6;color:var(--text);background:#fff}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}

/* ---------- Header ---------- */
.header{position:fixed;inset:0 0 auto 0;height:var(--header-h);background:#fff;z-index:50;box-shadow:0 1px 12px rgba(0,0,0,.06)}
.header .bar{display:flex;align-items:center;justify-content:space-between;height:100%;padding:0 24px;max-width:1600px;margin:0 auto}
.logo img{height:52px;width:auto}
.nav{display:flex;align-items:center}
.nav a{font-family:"Montserrat Alternates",sans-serif;font-weight:400;font-size:15px;color:var(--navy);padding:0 24px;position:relative;transition:color .2s}
.nav a+a::before{content:"";position:absolute;left:0;top:50%;height:14px;margin-top:-7px;border-left:1px solid #dfe2e6}
.nav a:hover,.nav a.active{color:var(--red)}
.burger{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer}
.burger span{display:block;width:24px;height:2px;background:var(--navy);margin:5px auto;transition:.3s}

/* ---------- Hero slider ---------- */
.hero{position:relative;height:100vh;min-height:520px;max-height:900px;margin-top:var(--header-h);overflow:hidden;background:var(--navy)}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease}
.slide::after{content:"";position:absolute;inset:0;background:rgba(30,36,48,.45)}
.slide.active{opacity:1}
.slide .caption{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;z-index:2;padding:0 60px}
.slide .l1{font-weight:700;font-size:clamp(28px,4.5vw,58px);line-height:1.15;text-transform:uppercase;letter-spacing:.5px;transform:translateY(20px);opacity:0;transition:all .9s .3s}
.slide .l2{font-weight:200;font-size:clamp(22px,3.2vw,42px);line-height:1.3;margin-top:10px;transform:translateY(20px);opacity:0;transition:all .9s .6s}
.slide.active .l1,.slide.active .l2{transform:none;opacity:1}
.hero .arrow{position:absolute;top:50%;margin-top:-20px;width:40px;height:40px;background:rgba(0,0,0,.55);border:0;color:#fff;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center}
.hero .arrow:hover{background:var(--red)}
.hero .prev{left:28px}.hero .next{right:28px}
.hero .down{position:absolute;left:50%;bottom:34px;margin-left:-22px;z-index:5;width:44px;height:44px;border:2px solid #fff;border-radius:50%;display:flex;align-items:center;justify-content:center;animation:bounce 2s infinite}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}

/* ---------- Section titles ---------- */
section{padding:100px 0}
.title{display:flex;align-items:center;justify-content:center;gap:34px;margin-bottom:60px}
.title::before,.title::after{content:"";width:66px;height:4px;background:var(--red)}
.title h2{font-weight:700;font-size:36px;color:var(--navy);text-transform:uppercase;letter-spacing:.5px;line-height:1.2}
.dark .title h2{color:#fff}

/* ---------- Présentation ---------- */
.pres .cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:50px;max-width:1170px;margin:0 auto}
.pres .lead{font-size:30px;font-weight:300;line-height:1.45;color:var(--navy)}
.pres .body p{font-size:16px;color:var(--muted);margin-bottom:12px;line-height:1.6}

/* ---------- Étapes ---------- */
.steps{position:relative;padding-bottom:120px}
.steps .skyline{position:absolute;left:0;right:0;bottom:0;height:420px;background-position:center bottom;background-size:cover;background-repeat:no-repeat;opacity:.9;pointer-events:none}
.steps .row{position:relative;display:flex;align-items:center;justify-content:center;gap:24px;max-width:1280px;margin:0 auto}
.flip{flex:1;max-width:326px;height:196px;perspective:1000px}
.flip-inner{position:relative;width:100%;height:100%;transition:transform .7s;transform-style:preserve-3d}
.flip:hover .flip-inner,.flip:focus-within .flip-inner,.flip.flipped .flip-inner{transform:rotateY(180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:var(--red);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px}
.face.back{transform:rotateY(180deg)}
.num{width:58px;height:58px;border-radius:50%;background:#fff;color:var(--navy);font-weight:700;font-size:30px;display:flex;align-items:center;justify-content:center;margin-bottom:22px}
.face h3{font-weight:700;font-size:18px;text-transform:uppercase;letter-spacing:.3px}
.face ul{list-style:none;font-size:14px;font-weight:500;line-height:1.45}
.step-arrow{flex:0 0 46px;height:46px;border-radius:50%;background:var(--navy);display:flex;align-items:center;justify-content:center}

/* ---------- Mission ---------- */
.mission{position:relative;background-color:var(--navy);background-position:center;background-size:cover;background-repeat:no-repeat;color:#fff;text-align:center;padding:90px 0 110px}
.mission .portrait{width:150px;height:150px;border-radius:50%;object-fit:cover;margin:0 auto 40px;border:4px solid rgba(255,255,255,.08)}
.mission blockquote{font-size:clamp(20px,2.2vw,28px);font-weight:200;line-height:1.4;color:rgba(213,226,232,.92);max-width:1500px;margin:0 auto 60px;padding:0 20px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;max-width:1300px;margin:0 auto}
.stat .val{color:var(--red);font-weight:700;font-size:44px;line-height:50px;white-space:nowrap}
.stat .val small{font-size:20px;font-weight:300}
.stat .val sup{font-size:12px}
.stat .lbl{color:rgba(213,226,232,.92);font-size:15px;font-weight:400}

/* ---------- Track record ---------- */
.logos{overflow:hidden;position:relative;max-width:1200px;margin:0 auto;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.logos-track{display:flex;width:max-content;animation:scroll 45s linear infinite}
.logos:hover .logos-track{animation-play-state:paused}
.logos img{width:210px;height:158px;object-fit:contain;margin:0 14px}
@keyframes scroll{to{transform:translateX(-50%)}}

/* ---------- Témoignages ---------- */
.testi{padding-top:40px}
.testi .wrap{position:relative;max-width:1260px;margin:0 auto;padding:0 70px}
.quote{display:none;text-align:center;animation:fade .6s}
.quote.active{display:block}
@keyframes fade{from{opacity:0}to{opacity:1}}
.quote p{font-size:clamp(18px,2vw,26px);font-weight:200;line-height:1.4;color:var(--navy)}
.quote .who{margin-top:20px;font-size:15px;color:var(--muted)}
.quote .org{font-weight:600;color:var(--navy);font-size:15px}
.testi .tarrow{position:absolute;top:50%;transform:translateY(-50%);background:none;border:0;cursor:pointer;color:var(--navy);padding:10px}
.testi .tarrow:hover{color:var(--red)}
.testi .tprev{left:0}.testi .tnext{right:0}
.dots{display:flex;justify-content:center;gap:18px;margin-top:36px}
.dots button{width:12px;height:12px;border-radius:50%;border:0;background:rgba(234,67,59,.45);cursor:pointer}
.dots button.active{background:var(--red)}

/* ---------- Contact ---------- */
.contact{background:var(--navy);color:#e4e8ee}
.contact .cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;max-width:1180px;margin:0 auto}
.ctitle{display:flex;align-items:center;gap:32px;margin-bottom:50px}
.ctitle h2{color:#fff;font-weight:700;font-size:36px;text-transform:uppercase;line-height:1}
.ctitle::after{content:"";flex:1;height:4px;background:var(--red)}
form label{display:block;font-size:15px;font-weight:400;margin-bottom:10px;color:#e4e8ee}
form label em{color:var(--red);font-style:normal}
.field{margin-bottom:34px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.two small{display:block;font-style:italic;font-size:12px;color:#aab2bf;margin-top:8px}
input,textarea{width:100%;background:#434c5e;border:0;color:#fff;font:inherit;font-weight:400;padding:10px 12px;height:38px;outline:none}
textarea{height:156px;resize:vertical}
input:focus,textarea:focus{box-shadow:0 0 0 2px var(--red)}
.btn{background:var(--red);color:#fff;border:0;font:inherit;font-weight:700;font-size:15px;padding:10px 18px;cursor:pointer}
.btn:hover{background:#d4332b}
.form-note{font-size:13px;color:#aab2bf;margin-top:14px;min-height:20px}
.contact .photo{width:100%;aspect-ratio:9/8;object-fit:cover;object-position:center}
.card{text-align:center;margin-top:44px}
.card img{height:40px;width:auto;margin:0 auto 18px}
.card p{font-size:17px;font-weight:400;color:#fff;line-height:1.5}
.card .li{display:inline-flex;margin-top:18px;width:40px;height:40px;border-radius:50%;background:#0a66c2;align-items:center;justify-content:center}

/* ---------- Footer ---------- */
footer{background:#1d2027;color:#fff;font-size:14px;font-weight:400;padding:14px 0}
.totop{position:fixed;right:22px;bottom:22px;width:44px;height:44px;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:.3s;z-index:40}
.totop.show{opacity:1;pointer-events:auto}
.totop:hover{background:var(--red)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .nav a{padding:0 14px;font-size:14px}
}
@media (max-width:900px){
  :root{--header-h:64px}
  .logo img{height:40px}
  .burger{display:block}
  .nav{position:fixed;top:var(--header-h);left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;max-height:0;overflow:hidden;transition:max-height .35s;box-shadow:0 8px 16px rgba(0,0,0,.08)}
  .nav.open{max-height:480px}
  .nav a{padding:14px 24px;border-top:1px solid #eef0f2}
  .nav a+a::before{display:none}
  .hero{height:70vh;min-height:420px}
  .hero .arrow{display:none}
  section{padding:70px 0}
  .title{gap:18px;margin-bottom:40px}.title::before,.title::after{width:36px}
  .title h2,.ctitle h2{font-size:28px}
  .pres .cols,.contact .cols{grid-template-columns:minmax(0,1fr);gap:30px}
  .pres .lead{font-size:24px}
  .steps .row{flex-direction:column}
  .flip{width:100%;max-width:420px;flex:none}
  .step-arrow{transform:rotate(90deg)}
  .stats{grid-template-columns:1fr 1fr;gap:40px 10px}
  .stat .val{font-size:34px}
  .testi .wrap{padding:0 36px}
}
@media (max-width:480px){
  .stats{grid-template-columns:1fr}
  .two{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
