/* ===== EXCELL INGENIERIE — feuille de style partagée ===== */
:root{
  --periwinkle-100:#EEEEFF; --periwinkle-300:#BFC0FF; --periwinkle-500:#9698F0;
  --blue-900:#0A0A6E; --blue-800:#12129A; --blue-700:#1414C7; --blue-brand:#0000FF;
  --orange-600:#F04A06; --orange-500:#FF6A2B; --orange-400:#FF8F5C; --orange-100:#FFE7DA;
  --ink:#14142B; --gray-600:#5C5A75; --gray-300:#D8D7EE; --offwhite:#F8F8FF; --white:#FFFFFF;
  --shadow:0 10px 30px rgba(10,10,110,.10);
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; font-family:'Inter',sans-serif; color:var(--ink); background:var(--white); line-height:1.65; overflow-x:hidden;}
h1,h2,h3,h4,.brand{font-family:'Poppins',sans-serif;}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none; margin:0; padding:0;}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
.eyebrow{display:inline-block; color:var(--orange-600); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:12.5px; margin-bottom:12px;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:8px; font-weight:600; font-size:15px; transition:.25s; cursor:pointer; border:none;}
.btn-primary{background:var(--orange-600); color:white;}
.btn-primary:hover{background:var(--orange-500); transform:translateY(-2px);}
.btn-outline{background:transparent; border:1.5px solid rgba(255,255,255,.55); color:white;}
.btn-outline:hover{background:rgba(255,255,255,.14); border-color:white;}
.btn-outline-blue{background:transparent; border:1.5px solid var(--blue-700); color:var(--blue-700);}
.btn-outline-blue:hover{background:var(--blue-700); color:white;}
section{padding:88px 0;}
.section-head{max-width:640px; margin-bottom:48px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(25px,3.4vw,36px); font-weight:800; color:var(--blue-900); margin:0 0 14px; line-height:1.22;}
.section-head p{color:var(--gray-600); font-size:16px; margin:0;}
.reveal{opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ---------- HEADER ---------- */
header{position:sticky; top:0; left:0; right:0; z-index:1000; background:rgba(255,255,255,.98); backdrop-filter:blur(6px); box-shadow:0 1px 0 var(--gray-300); padding:14px 0; transition:.3s;}
header.scrolled{box-shadow:0 4px 20px rgba(10,10,110,.10);}
header .wrap{display:flex; align-items:center; justify-content:space-between;}
.logo{display:flex; align-items:center; gap:10px;}
.logo svg{width:46px; height:46px; flex:none;}
.logo .txt{line-height:1.05;}
.logo .txt b{display:block; font-weight:800; font-size:16px; color:var(--blue-brand);}
.logo .txt span{display:block; font-size:9.5px; letter-spacing:.13em; color:var(--gray-600); font-weight:700; text-transform:uppercase;}
nav.mainnav ul{display:flex; gap:32px;}
nav.mainnav a{font-weight:600; font-size:14.5px; color:var(--ink); transition:.2s; padding:4px 0; border-bottom:2px solid transparent;}
nav.mainnav a:hover, nav.mainnav a.active{color:var(--orange-600); border-color:var(--orange-600);}
header .right{display:flex; align-items:center; gap:18px;}
.burger{display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:6px;}
.burger span{width:26px; height:2.5px; background:var(--blue-900); border-radius:2px; transition:.3s;}

/* ---------- PAGE HERO (bandeau intérieur) ---------- */
.page-hero{background:linear-gradient(120deg, var(--blue-900), var(--blue-700) 70%); padding:70px 0 60px; position:relative; overflow:hidden;}
.page-hero::after{content:""; position:absolute; right:-60px; bottom:-40px; width:220px; height:12px; background:var(--orange-600); transform:rotate(-8deg);}
.page-hero .wrap{position:relative; z-index:1;}
.page-hero .crumb{color:var(--periwinkle-300); font-size:13px; font-weight:600; margin-bottom:14px;}
.page-hero .crumb a:hover{color:white;}
.page-hero h1{color:white; font-size:clamp(28px,4vw,42px); font-weight:800; margin:0 0 12px;}
.page-hero p{color:var(--periwinkle-300); font-size:16px; max-width:600px; margin:0;}

/* ---------- HOME HERO ---------- */
.hero{position:relative; min-height:88vh; display:flex; align-items:center;
  background:linear-gradient(120deg, rgba(10,10,110,.90), rgba(20,20,199,.72) 55%, rgba(240,74,6,.34)),
    url('https://images.unsplash.com/photo-1751808830304-51c95ed33b10?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.hero .wrap{position:relative; z-index:2;}
.hero .eyebrow{color:var(--orange-400);}
.hero h1{color:white; font-size:clamp(32px,5vw,54px); font-weight:800; line-height:1.14; max-width:800px; margin:0 0 20px;}
.hero h1 em{color:var(--orange-400); font-style:normal;}
.hero p{color:var(--periwinkle-300); font-size:18px; max-width:600px; margin:0 0 34px;}
.hero .actions{display:flex; gap:16px; flex-wrap:wrap;}

/* ---------- STATS ---------- */
.stats-bar{background:var(--white); margin-top:-56px; position:relative; z-index:3;}
.stats-card{background:white; border-radius:16px; box-shadow:var(--shadow); display:grid; grid-template-columns:repeat(4,1fr);}
.stats-card div{padding:32px 18px; text-align:center; border-right:1px solid var(--gray-300);}
.stats-card div:last-child{border-right:none;}
.stats-card .num{font-family:'Poppins'; font-weight:800; font-size:32px; color:var(--orange-600);}
.stats-card .lbl{font-size:12px; color:var(--gray-600); margin-top:4px; font-weight:600;}

/* ---------- CARDS / GRIDS ---------- */
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.service-card{background:white; border:1px solid var(--gray-300); border-radius:16px; padding:32px 26px; transition:.3s;}
.service-card:hover{transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent;}
.service-card .icon{width:54px; height:54px; border-radius:12px; background:var(--orange-100); display:flex; align-items:center; justify-content:center; margin-bottom:18px;}
.service-card .icon svg{width:26px; height:26px;}
.service-card h3{font-size:17.5px; font-weight:700; color:var(--blue-900); margin:0 0 10px;}
.service-card p{font-size:14.5px; color:var(--gray-600); margin:0;}
.tag-pill{display:inline-flex; align-items:center; gap:8px; background:var(--periwinkle-100); color:var(--blue-800); font-weight:600; font-size:13.5px; padding:9px 16px; border-radius:24px; margin:0 8px 10px 0;}
.tag-pill .dot{width:6px; height:6px; border-radius:50%; background:var(--orange-600);}

.checklist li{display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; font-size:15px; color:var(--ink);}
.checklist .ck{flex:none; width:22px; height:22px; border-radius:50%; background:var(--orange-100); color:var(--orange-600); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800;}

.about-media{position:relative;}
.about-media img{border-radius:16px; box-shadow:var(--shadow);}
.about-media .badge{position:absolute; bottom:-22px; right:-22px; background:var(--blue-800); color:white; padding:18px 22px; border-radius:14px; box-shadow:var(--shadow); max-width:220px;}
.about-media .badge .n{font-family:'Poppins'; font-weight:800; font-size:22px;}
.about-media .badge .l{font-size:11px; color:var(--periwinkle-300); letter-spacing:.03em;}

/* ---------- IDENTITY TABLE ---------- */
.identity-card{background:var(--offwhite); border-radius:18px; padding:8px; box-shadow:var(--shadow);}
table.identity{width:100%; border-collapse:collapse;}
table.identity tr{border-bottom:1px solid var(--gray-300);}
table.identity tr:last-child{border-bottom:none;}
table.identity td{padding:16px 18px; font-size:14.5px; vertical-align:top;}
table.identity td:first-child{color:var(--blue-800); font-weight:700; width:220px;}
table.identity td:last-child{color:var(--ink);}

/* ---------- TIMELINE / CREDO ---------- */
.credo-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.credo-card{background:white; border:1px solid var(--gray-300); border-radius:16px; padding:28px;}
.credo-card .step{display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:9px; background:var(--blue-900); color:white; font-family:'Poppins'; font-weight:800; font-size:13px; margin-bottom:16px;}
.credo-card h4{margin:0 0 12px; color:var(--blue-900); font-size:16px;}
.credo-card li{font-size:14px; color:var(--gray-600); margin-bottom:8px; padding-left:16px; position:relative;}
.credo-card li::before{content:"–"; position:absolute; left:0; color:var(--orange-600);}

/* ---------- PROJECTS ---------- */
.projects-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.project-card{position:relative; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); background:white;}
.project-card .imgwrap{aspect-ratio:4/3; overflow:hidden;}
.project-card img{width:100%; height:100%; object-fit:cover; transition:.5s;}
.project-card:hover img{transform:scale(1.07);}
.project-card .info{padding:18px 20px;}
.project-card .tag{color:var(--orange-600); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; display:block; margin-bottom:6px;}
.project-card h4{margin:0 0 4px; font-size:15.5px; color:var(--blue-900);}
.project-card p{margin:0; font-size:13px; color:var(--gray-600);}

/* ---------- MISSIONS TIMELINE ---------- */
.missions-timeline{display:flex; flex-direction:column; gap:34px;}
.year-group{display:grid; grid-template-columns:100px 1fr; gap:24px; align-items:start;}
.year-group .year-mark{position:sticky; top:90px; display:flex; align-items:center; gap:10px;}
.year-group .year-mark .badge{width:58px; height:58px; border-radius:16px; background:var(--blue-900); color:white; font-family:'Poppins'; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); flex:none;}
.year-group .year-mark .count{font-size:11.5px; color:var(--gray-600); font-weight:600;}
.mission-cards{display:grid; grid-template-columns:repeat(2,1fr); gap:14px;}
.mission-card{background:white; border:1px solid var(--gray-300); border-left:4px solid var(--orange-600); border-radius:12px; padding:16px 18px; transition:.25s;}
.mission-card:hover{box-shadow:var(--shadow); transform:translateY(-3px); border-left-color:var(--blue-700);}
.mission-card .top-row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px;}
.mission-card .client{font-weight:700; color:var(--blue-900); font-size:13.5px;}
.mission-card .type-pill{font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:3px 9px; border-radius:20px; white-space:nowrap; flex:none;}
.type-etude{background:#E3F0FF; color:#0B5FBF;}
.type-suivi{background:var(--orange-100); color:var(--orange-600);}
.type-moe{background:#E1F6EC; color:#0F8A52;}
.type-assist{background:var(--periwinkle-100); color:var(--blue-700);}
.mission-card p{margin:0; font-size:13.5px; color:var(--ink); line-height:1.5;}
.mission-card .period{display:block; margin-top:8px; font-size:11.5px; color:var(--gray-600); font-weight:600;}
@media(max-width:720px){
  .year-group{grid-template-columns:1fr;}
  .year-group .year-mark{position:static; margin-bottom:6px;}
  .mission-cards{grid-template-columns:1fr;}
}

/* ---------- CTA BANNER ---------- */
.cta-banner{background:linear-gradient(120deg, var(--orange-600), var(--orange-500)); text-align:center;}
.cta-banner h2{color:white; font-size:clamp(23px,3.2vw,30px); font-weight:800; margin:0 0 14px;}
.cta-banner p{color:#FFE3D3; margin:0 0 28px;}
.cta-banner .btn-primary{background:var(--blue-900);}
.cta-banner .btn-primary:hover{background:var(--blue-800);}

/* ---------- CONTACT ---------- */
.contact-info{display:grid; gap:18px; margin-top:8px;}
.info-row{display:flex; gap:16px; align-items:flex-start;}
.info-row .ic{flex:none; width:44px; height:44px; border-radius:10px; background:var(--periwinkle-100); color:var(--blue-700); display:flex; align-items:center; justify-content:center;}
.info-row h4{margin:0 0 4px; font-size:14.5px; color:var(--blue-900);}
.info-row p{margin:0; font-size:14px; color:var(--gray-600);}
.map-frame{margin-top:22px; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); border:none; height:220px; width:100%;}
.form-card{background:var(--offwhite); border-radius:18px; padding:34px; box-shadow:var(--shadow);}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
.form-card label{display:block; font-size:12.5px; font-weight:700; color:var(--blue-800); margin-bottom:6px;}
.form-card input, .form-card select, .form-card textarea{width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--gray-300); font-family:'Inter'; font-size:14.5px; background:white;}
.form-card textarea{resize:vertical; min-height:110px;}
.form-card .full{margin-bottom:16px;}
.form-card .btn-primary{width:100%; justify-content:center; margin-top:6px;}

/* ---------- FOUNDER / MESSAGE ---------- */
.founder .card{background:white; border-radius:22px; box-shadow:var(--shadow); display:grid; grid-template-columns:280px 1fr; overflow:hidden;}
.founder .photo{height:100%; min-height:300px; background:var(--periwinkle-100) center/cover;}
.founder .content{padding:42px 46px;}
.founder .quote-mark{font-family:'Poppins'; font-size:52px; color:var(--orange-100); line-height:.6; font-weight:800;}
.founder blockquote{margin:6px 0 20px; font-size:16.5px; color:var(--ink); font-style:italic; line-height:1.65;}
.founder .who b{display:block; color:var(--blue-900); font-family:'Poppins'; font-weight:700; font-size:15px;}
.founder .who span{font-size:13px; color:var(--gray-600);}

/* ---------- FOOTER ---------- */
footer{background:var(--blue-900); color:var(--periwinkle-300); padding-top:64px;}
.footer-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12);}
.footer-grid h5{color:white; font-size:14px; margin:0 0 16px; font-weight:700;}
.footer-grid ul li{margin-bottom:10px;}
.footer-grid ul a{font-size:14px; color:var(--periwinkle-300);}
.footer-grid ul a:hover{color:var(--orange-400);}
.footer-brand .logo .txt b{color:white;}
.footer-brand p{font-size:13.5px; color:#B9BBF0; max-width:280px; margin:16px 0 0;}
.socials{display:flex; gap:10px; margin-top:18px;}
.socials a{width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;}
.socials a:hover{background:var(--orange-600);}
.bottom-bar{display:flex; justify-content:space-between; align-items:center; padding:24px 0; font-size:12px; color:#9698D6; flex-wrap:wrap; gap:10px;}

.back-to-top{position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%; background:var(--blue-700); color:white; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:.3s; z-index:900;}
.back-to-top.show{opacity:1; pointer-events:auto;}
.whatsapp-fab{position:fixed; left:24px; bottom:24px; width:52px; height:52px; border-radius:50%; background:#25D366; color:white; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); z-index:900;}

@media(max-width:960px){
  .grid2, .contact .grid2{grid-template-columns:1fr;}
  .services-grid, .projects-grid, .credo-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .stats-card{grid-template-columns:repeat(2,1fr);}
  .stats-card div:nth-child(2){border-right:none;}
  .founder .card{grid-template-columns:1fr;}
  .founder .photo{height:220px;}
  table.identity td:first-child{width:170px;}
}
@media(max-width:720px){
  nav.mainnav{position:fixed; top:0; right:-100%; width:78%; max-width:320px; height:100vh; background:var(--blue-900); flex-direction:column; padding:100px 32px 32px; transition:.35s; z-index:999;}
  nav.mainnav.open{right:0;}
  nav.mainnav ul{flex-direction:column; gap:26px;}
  nav.mainnav a{color:white; font-size:16px;}
  .burger{display:flex;}
  header .right .btn-primary{display:none;}
  .services-grid, .projects-grid, .credo-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  table.identity td{display:block; width:100% !important;}
  table.identity td:first-child{padding-bottom:2px;}
}
