:root{
  --bleu:#2f6fb2;
  --bleu-fonce:#1d4e84;
  --vert:#2fb98d;
  --vert-fonce:#1f8f6c;
  --clair:#f4f9fc;
  --texte:#243447;
  --blanc:#ffffff;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',Tahoma,Arial,sans-serif;color:var(--texte);background:var(--blanc);line-height:1.6}
img{max-width:100%;display:block}
a{color:var(--bleu);text-decoration:none}
h2{font-size:2rem;color:var(--bleu-fonce);text-align:center;margin-bottom:.5rem}
.section-sub{text-align:center;color:var(--vert-fonce);font-weight:600;letter-spacing:2px;text-transform:uppercase;font-size:.85rem;margin-bottom:2rem}
.ico-svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-0.1em}

/* ---------- HEADER ---------- */
header{position:sticky;top:0;z-index:100;background:var(--blanc);box-shadow:0 2px 12px rgba(0,0,0,.08)}
.nav{max-width:1150px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:.6rem 1.2rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.7rem}
.brand img{width:52px;height:52px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px var(--vert)}
.brand .name{font-weight:800;color:var(--bleu-fonce);line-height:1.15;font-size:1rem}
.brand .name small{display:block;font-weight:600;color:var(--vert-fonce);font-size:.68rem;letter-spacing:1px}
nav.menu{display:flex;gap:1.3rem;flex-wrap:wrap}
nav.menu a{font-weight:600;font-size:.92rem;color:var(--texte);padding:.35rem 0;border-bottom:3px solid transparent}
nav.menu a:hover{color:var(--bleu);border-bottom-color:var(--vert)}
.btn-nav{background:var(--bleu);color:#fff!important;padding:.55rem 1.1rem;border-radius:30px;font-weight:700}
.btn-nav:hover{background:var(--bleu-fonce)}

/* ---------- HERO ---------- */
.hero{background:linear-gradient(135deg,var(--bleu) 0%,var(--vert) 100%);color:#fff}
.hero-inner{max-width:1150px;margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center;padding:4rem 1.2rem}
.hero .slogan-top{font-size:1.4rem;letter-spacing:3px;opacity:.95}
.hero h1{font-size:3rem;line-height:1.1;margin:.4rem 0 1rem;text-transform:uppercase}
.hero p{font-size:1.08rem;max-width:520px;opacity:.95}
.hero .values{margin:1.4rem 0 2rem;display:flex;gap:.6rem;flex-wrap:wrap}
.hero .values span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.45);padding:.4rem 1rem;border-radius:30px;font-size:.85rem;font-weight:700;letter-spacing:1px}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.btn{padding:.85rem 1.7rem;border-radius:30px;font-weight:700;display:inline-flex;align-items:center;gap:.5rem;transition:.2s;cursor:pointer}
.btn .ico-svg{width:1.1em;height:1.1em}
.btn-light{background:#fff;color:var(--bleu-fonce)}
.btn-light:hover{transform:translateY(-2px)}
.btn-outline{border:2px solid #fff;color:#fff}
.btn-outline:hover{background:rgba(255,255,255,.15)}
.hero-photo{border-radius:18px;overflow:hidden;box-shadow:0 20px 45px rgba(0,0,0,.28)}
.hero-photo img{height:100%;width:100%;object-fit:cover}
.badge-categorie{display:inline-block;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.5);border-radius:30px;padding:.35rem 1rem;font-size:.85rem;font-weight:700;margin-bottom:1rem;letter-spacing:1px}

/* ---------- SERVICES ---------- */
section{padding:4.5rem 1.2rem}
.services{background:var(--clair)}
.grid-services{max-width:1150px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.3rem}
.svc{background:#fff;border-radius:14px;padding:1.6rem;box-shadow:0 4px 16px rgba(29,78,132,.08);border-top:4px solid var(--vert);transition:.2s}
.svc:hover{transform:translateY(-5px);box-shadow:0 10px 26px rgba(29,78,132,.16)}
.svc .ico{color:var(--vert-fonce)}
.svc .ico .ico-svg{width:2rem;height:2rem;stroke-width:1.7}
.svc h3{color:var(--bleu-fonce);font-size:1.05rem;margin:.7rem 0 .3rem}
.svc p{font-size:.9rem;color:#54677a}
.svc.future{border-top-color:var(--bleu);opacity:.92}
.svc .tag{display:inline-block;background:#e7f0fa;color:var(--bleu-fonce);font-size:.7rem;font-weight:800;letter-spacing:1px;border-radius:20px;padding:.2rem .7rem;margin-top:.6rem}

/* ---------- GALERIE ---------- */
.galerie .grid-gal{max-width:1150px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem}
.ph{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px rgba(0,0,0,.14)}
.ph img{width:100%;height:230px;object-fit:cover;transition:.35s}
.ph:hover img{transform:scale(1.06)}
.ph .lbl{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(0deg,rgba(47,111,178,.92),rgba(47,111,178,0));color:#fff;padding:1.6rem .9rem .7rem;font-weight:700;font-size:.9rem;letter-spacing:.5px}

/* ---------- A PROPOS ---------- */
.apropos{background:var(--clair)}
.apropos-inner{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center}
.apropos-inner .txt p{margin-bottom:1rem}
.apropos-inner img{border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.15)}
.apropos-inner .apropos-photo{width:100%;height:auto;display:block;aspect-ratio:auto}
.chiffres{display:flex;gap:1rem;margin-top:1.5rem;flex-wrap:wrap}
.chiffres div{background:#fff;border-radius:12px;padding:1rem 1.4rem;text-align:center;box-shadow:0 4px 14px rgba(29,78,132,.1);flex:1;min-width:130px}
.chiffres b{display:block;font-size:1.5rem;color:var(--vert-fonce)}
.chiffres span{font-size:.8rem;color:#54677a}

/* ---------- CONTACT ---------- */
.contact-inner{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:1fr 1.2fr;gap:2rem}
.card-contact{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 6px 22px rgba(29,78,132,.1)}
.card-contact h3{color:var(--bleu-fonce);margin-bottom:1rem}
.cline{display:flex;gap:.8rem;align-items:flex-start;margin-bottom:1rem}
.cline .ico{color:var(--bleu);flex-shrink:0;margin-top:.15rem}
.cline .ico .ico-svg{width:1.25rem;height:1.25rem}
.cline a{font-weight:700;font-size:1.05rem}
.map{border-radius:16px;overflow:hidden;box-shadow:0 6px 22px rgba(29,78,132,.1);min-height:360px;display:flex;flex-direction:column}
.map iframe{width:100%;height:100%;flex:1;min-height:320px;border:0}
.map .map-actions{background:#fff;padding:.8rem;display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap}
.btn-mini{background:var(--bleu);color:#fff;padding:.55rem 1.1rem;border-radius:30px;font-weight:700;font-size:.85rem;display:inline-flex;align-items:center;gap:.4rem}
.btn-mini .ico-svg{width:1em;height:1em}

/* ---------- FOOTER ---------- */
footer{background:var(--bleu-fonce);color:#dbe7f3;padding:2.5rem 1.2rem 1.5rem;text-align:center}
footer .fbrand{display:flex;align-items:center;justify-content:center;gap:.7rem;margin-bottom:.8rem}
footer .fbrand img{width:46px;height:46px;border-radius:50%}
footer .fbrand b{color:#fff}
footer .devise{font-style:italic;letter-spacing:2px;margin-bottom:1.2rem}
footer .fp{font-size:.85rem;opacity:.75}

/* ---------- BOUTON MENU (mobile) ---------- */
.nav-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:46px;height:46px;border:1px solid #dbe6f0;border-radius:12px;background:#fff;cursor:pointer;padding:0;flex-shrink:0;-webkit-tap-highlight-color:transparent}
.nav-toggle span{display:block;width:22px;height:2.5px;border-radius:2px;background:var(--bleu-fonce);transition:transform .25s,opacity .2s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ---------- BARRE D'ACTIONS (mobile) ---------- */
.mobile-bar{display:none}

/* ancres : le header collant ne doit pas masquer le titre */
section[id]{scroll-margin-top:88px}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  html{-webkit-text-size-adjust:100%}
  body{overflow-x:hidden;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  header .nav{padding:.55rem 1rem;gap:.6rem;flex-wrap:nowrap}
  .brand{flex:1 1 auto;min-width:0;gap:.55rem}
  .brand img{width:46px;height:46px;flex-shrink:0;box-shadow:0 0 0 2px var(--vert)}
  .brand .name{font-size:.9rem;line-height:1.15}
  .brand .name small{font-size:.6rem;letter-spacing:.4px}

  .nav-toggle{display:flex}
  nav.menu{
    position:absolute;top:100%;left:0;right:0;
    display:none;flex-direction:column;gap:0;flex-wrap:nowrap;
    background:#fff;border-top:1px solid #e6eef6;
    box-shadow:0 18px 32px rgba(15,45,80,.16);
    padding:.3rem 0 .6rem;max-height:calc(100vh - 70px);overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  nav.menu.open{display:flex;animation:menuIn .22s ease-out}
  nav.menu a{
    display:flex;align-items:center;min-height:50px;
    padding:.85rem 1.15rem;font-size:1rem;font-weight:600;
    border-bottom:1px solid #eef4f9;border-radius:0;
  }
  nav.menu a:last-child{border-bottom:0}
  nav.menu a:active,nav.menu a:hover{background:var(--clair);color:var(--bleu);border-bottom-color:#eef4f9}
  .btn-nav{padding:.5rem .8rem;font-size:.85rem;flex-shrink:0;min-height:44px;display:inline-flex;align-items:center;gap:.35rem}
  .btn-nav .ico-svg{width:1.05em;height:1.05em}

  section[id]{scroll-margin-top:76px}
  section{padding:3.2rem 1.1rem}
  h2{font-size:clamp(1.4rem,5.6vw,2rem);line-height:1.2}
  .section-sub{font-size:.72rem;letter-spacing:1.2px;margin-bottom:1.6rem}

  .hero-inner{grid-template-columns:1fr;gap:1.8rem;padding:2.4rem 1.1rem}
  .hero .slogan-top{font-size:1.05rem;letter-spacing:2px}
  .hero h1{font-size:clamp(1.95rem,8.4vw,2.6rem)}
  .hero p{font-size:1rem;max-width:none}
  .hero .values{gap:.45rem;margin:1.1rem 0 1.5rem}
  .hero .values span{font-size:.78rem;padding:.35rem .8rem;letter-spacing:.5px}
  .badge-categorie{font-size:.76rem;padding:.3rem .85rem}
  .hero-photo{border-radius:14px;box-shadow:0 14px 30px rgba(0,0,0,.24)}
  .hero-photo img{height:auto;max-height:60vh}

  .grid-services,.grid-gal{grid-template-columns:1fr;gap:1rem}
  .svc{padding:1.3rem}
  .ph img{height:210px}
  .ph .lbl{font-size:.85rem;line-height:1.25;padding:1.4rem .85rem .65rem;overflow-wrap:anywhere}

  .apropos-inner{grid-template-columns:1fr;gap:1.8rem}
  .apropos-inner .txt p{margin-bottom:.9rem}
  .apropos-inner .apropos-photo{max-width:420px;margin:0 auto;width:100%}
  .chiffres{gap:.6rem;margin-top:1.2rem}
  .chiffres div{min-width:110px;padding:.85rem .8rem}
  .chiffres b{font-size:1.3rem}
  .chiffres span{font-size:.74rem;line-height:1.25}

  .contact-inner{grid-template-columns:1fr;gap:1.3rem}
  .card-contact{padding:1.4rem}
  .cline a{font-size:1rem;word-break:break-word}
  .map{min-height:0}
  .map iframe{min-height:260px}
  .map .map-actions{padding:.7rem;gap:.5rem}
  .btn-mini{font-size:.82rem;padding:.6rem 1rem;min-height:44px}

  footer{padding:2.2rem 1.1rem 1.4rem}
  footer .devise{font-size:.82rem;letter-spacing:1.2px}

  .mobile-bar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:130;
    background:#fff;border-top:1px solid #e2ecf5;
    box-shadow:0 -6px 20px rgba(15,45,80,.12);
    padding:.35rem .45rem calc(.35rem + env(safe-area-inset-bottom));
    gap:.35rem;
  }
  .mobile-bar a{
    flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;
    min-height:50px;border-radius:10px;font-size:.7rem;font-weight:800;
    color:var(--bleu-fonce);letter-spacing:.2px;
  }
  .mobile-bar a .ico-svg{width:1.15rem;height:1.15rem;color:var(--bleu)}
  .mobile-bar a:first-child{background:var(--bleu);color:#fff}
  .mobile-bar a:first-child .ico-svg{color:#fff}
  .mobile-bar a:active{background:var(--clair)}
  .mobile-bar a:first-child:active{background:var(--bleu-fonce)}
}

@media(max-width:560px){
  .brand .name small{display:none}
  .brand .name{font-size:.82rem;letter-spacing:.2px}
  .brand img{width:42px;height:42px}
  .hero-actions{flex-direction:column;align-items:stretch;gap:.6rem}
  .btn{justify-content:center;width:100%;padding:.95rem 1.2rem}
  .hero .values span{font-size:.74rem;padding:.3rem .7rem}
  .chiffres div{min-width:0;flex:1 1 calc(50% - .6rem)}
  .ph img{height:190px}
}

@media(max-width:380px){
  .btn-nav{padding:.45rem .6rem;font-size:.8rem}
  .brand .name{font-size:.76rem}
  .hero h1{font-size:1.85rem}
}

@keyframes menuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
