/* ===== Variables ===== */
:root{
  --navy:#0a2a55;
  --navy-dark:#012a55;
  --blue:#0a6cf0;
  --cyan:#14c8ff;
  --text:#25364d;
  --card-bg:#eaf3fd;
  --card-border:#cfe2f6;
  --max:95%;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Poppins",Arial,sans-serif;color:var(--text);background:#fff;line-height:1.45;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}

/* ===== Boutons ===== */
.btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#1c7cff,#0a62e0);color:#fff;border-radius:8px;font-weight:500;padding:9px 16px;font-size:15px;transition:filter .2s}
.btn:hover{filter:brightness(1.1)}
.btn svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn-lg{padding:14px 24px;font-size:17px;border-radius:10px}

/* ===== Logo / marque ===== */
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.brand img{width:76px;height:auto}
.brand-text strong{display:block;font-size:26px;line-height:1.05;color:var(--navy);font-weight:600;letter-spacing:-.3px}
.brand-text strong em{font-style:normal;color:var(--blue)}
.brand-text small{display:block;font-size:15px;color:var(--navy);margin-top:2px;font-weight:400}

/* ===== Header ===== */
.site-header{background:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 6px rgba(0,30,80,.08)}
.header-inner{max-width:95%;margin:0 auto;padding:0 16px;height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.main-nav{display:flex;align-items:center;gap:22px;font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;font-size:18px;color:#16264a}
.main-nav a:not(.btn) {
  position: relative;
  padding: 22px 5px;
  white-space: nowrap;
}
.main-nav a.active{color:var(--blue)}
.main-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:14px;height:3px;border-radius:3px;background:var(--blue)}
.main-nav .btn-contact{font-family:inherit;padding:8px 14px}
.nav-toggle,.burger{display:none}

/* ===== Hero ===== */
.hero{background:linear-gradient(90deg,#012d5e 0%,#003a7c 45%,#004c97 100%);position:relative;overflow:hidden;color:#fff}
.hero-inner{max-width:95%;margin:0 auto;min-height:290px;position:relative;display:flex;align-items:center}
.hero-text{position:relative;z-index:2;max-width:560px;padding:28px 16px 28px 54px}
.pill{display:inline-block;background:#1a73f0;color:#fff;font-weight:500;font-size:18px;padding:6px 16px;border-radius:30px;margin-bottom:12px}
.hero h1{font-size:40px;line-height:1.08;font-weight:700;letter-spacing:-.5px}
.hero h1 span{color:var(--cyan)}
.hero-text p{margin-top:14px;font-size:19px;line-height:1.25;font-weight:400;max-width:500px}
.hero-img{position:absolute;right:0;top:0;height:100%;width:auto;max-width:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%);mask-image:linear-gradient(90deg,transparent 0,#000 18%)}

/* ===== Titres de section ===== */
.title{text-align:center;color:var(--navy);font-size:30px;font-weight:700;letter-spacing:-.4px;position:relative;padding-bottom:18px}
.title::after{content:"";position:absolute;left:50%;bottom:0;width:76px;height:5px;margin-left:-38px;border-radius:5px;background:var(--blue)}

/* ===== 3 étapes ===== */
.principle{max-width:var(--max);margin:0 auto;padding:22px 16px 0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:22px}
.step{position:relative;background:linear-gradient(135deg,#e6f1fc,#f4f9ff);border:1.5px solid var(--card-border);border-radius:18px;padding:12px 16px 14px;box-shadow:0 2px 8px rgba(10,108,240,.06)}
.step:not(:last-child)::after{content:"";position:absolute;right:-32px;top:50%;width:22px;height:22px;margin-top:-11px;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6cf0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E")}
.step-head{display:flex;align-items:center;gap:12px}
.num{flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:linear-gradient(180deg,#1c80ff,#0a62e0);color:#fff;font-size:28px;font-weight:600;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff,0 0 0 4px #bcd8f7}
.step h3{font-size:20px;line-height:1.15;color:var(--navy);font-weight:600;letter-spacing:-.3px}
.step-body{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.step-body p{font-size:15.5px;line-height:1.3;color:#1f3150;flex:1}
.step-body img{flex:0 0 auto;width:140px}
.step:nth-child(1) .step-body img{width:150px}
.step:nth-child(3) .step-body img{width:112px}
.step:nth-child(3) .step-body p{max-width:170px}

/* ===== 4 cartes photo ===== */
.cards{max-width:var(--max);margin:26px auto 0;padding:0 16px;display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.card{display:flex;align-items:stretch;background:linear-gradient(135deg,#eaf3fd,#f6faff);border:1.5px solid var(--card-border);border-radius:14px;overflow:hidden}
.card img{flex:0 0 auto;width:44%;max-width:257px;height:auto;object-fit:cover;border-radius:0}
.card:nth-child(even) img{width:38%;max-width:218px}
.card-text{padding:14px 14px 12px 18px;display:flex;flex-direction:column;justify-content:center}
.card h3{font-size:21px;line-height:1.12;color:var(--navy);font-weight:600;letter-spacing:-.4px;padding-bottom:11px;position:relative;margin-bottom:9px}
.card h3::after{content:"";position:absolute;left:0;bottom:0;width:26px;height:4px;border-radius:4px;background:var(--blue)}
.card p{font-size:14.5px;line-height:1.3;color:#1f3150}

/* ===== FAQ ===== */
.faq{max-width:var(--max);margin:22px auto 0;padding:0 16px 22px}
.faq-inner{display:grid;grid-template-columns:300px 1fr;gap:20px;align-items:center;margin-top:16px}
.faq-inner img{width:264px;margin:0 auto}
.faq-list{display:flex;flex-direction:column;gap:8px}
details{background:linear-gradient(90deg,#eef5fd,#fafcff);border:1.5px solid #b9d6f6;border-radius:12px;overflow:hidden}
summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 20px;font-size:18px;font-weight:600;color:var(--navy);letter-spacing:-.3px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:30px;line-height:1;font-weight:500;color:var(--blue);flex-shrink:0}
details[open] summary::after{content:"\2212"}
details p{padding:0 20px 14px;font-size:15px;line-height:1.4;color:#1f3150}

/* ===== Footer ===== */
.site-footer{background:linear-gradient(90deg,#012851 0%,#003a78 60%,#00305f 100%);color:#fff}
.footer-inner{max-width:95%;margin:0 auto;padding:12px 28px;min-height:84px;display:flex;align-items:center;gap:30px}
.brand-footer img{width:90px}
.brand-footer .brand-text strong{color:#fff}
.brand-footer .brand-text strong em{color:var(--cyan)}
.brand-footer .brand-text small{color:#fff;font-size:14px}
.footer-nav{display:flex;align-items:center;margin-left:auto;margin-right:auto;border-left:1px solid rgba(255,255,255,.35);padding-left:42px;font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;font-size:16px}
.footer-nav a{padding:0 22px;position:relative}
.footer-nav a:not(:last-child)::after{content:"";position:absolute;right:0;top:3px;bottom:3px;width:1px;background:rgba(255,255,255,.7)}
.footer-nav a:first-child{padding-left:0}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width:1200px){
  .main-nav{gap:15px;font-size:15px}
  .brand-text strong{font-size:23px}
  .brand-text small{font-size:13.5px}
  .brand img{width:66px}
}

@media (max-width:1180px){
  /* Menu burger */
  .burger{display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer;margin-left:auto;border-radius:8px}
  .burger span,.burger span::before,.burger span::after{display:block;content:"";width:24px;height:3px;border-radius:3px;background:var(--navy);position:relative;transition:.25s}
  .burger span::before{position:absolute;top:-8px}
  .burger span::after{position:absolute;top:8px}
  .nav-toggle:checked + .burger span{background:transparent}
  .nav-toggle:checked + .burger span::before{top:0;transform:rotate(45deg)}
  .nav-toggle:checked + .burger span::after{top:0;transform:rotate(-45deg)}
  .main-nav{position:absolute;left:0;right:0;top:70px;background:#fff;flex-direction:column;align-items:stretch;gap:0;padding:6px 16px 16px;box-shadow:0 10px 18px rgba(0,30,80,.12);display:none;font-size:18px}
  .nav-toggle:checked ~ .main-nav{display:flex}
  .main-nav a:not(.btn){padding:12px 4px;border-bottom:1px solid #e3ecf7}
  .main-nav a.active::after{display:none}
  .main-nav .btn-contact{justify-content:center;margin-top:12px;padding:12px}
  .header-inner{position:relative}
}

@media (max-width:980px){
  /* Hero : image sous le texte */
  .hero-inner{flex-direction:column;align-items:flex-start}
  .hero-text{max-width:none;padding:28px 20px 0}
  .hero-img{position:static;width:100%;height:auto;max-width:560px;margin:0 auto;
    -webkit-mask-image:none;mask-image:none}
  /* Étapes en colonne */
  .steps{grid-template-columns:1fr;gap:34px;max-width:620px;margin-left:auto;margin-right:auto}
  .step:not(:last-child)::after{right:50%;top:auto;bottom:-30px;margin:0 -11px 0 0;transform:rotate(90deg)}
  /* Cartes en colonne */
  .cards{grid-template-columns:1fr;max-width:640px}
  .faq-inner{grid-template-columns:1fr;gap:12px}
  .faq-inner img{width:200px}
}

@media (max-width:980px){
  .footer-inner{flex-direction:column;text-align:center;gap:16px;padding:20px 16px}
  .footer-nav{margin:0;border-left:0;padding-left:0;flex-wrap:wrap;justify-content:center;row-gap:8px}
  .footer-nav a:first-child{padding-left:22px}
}

@media (max-width:560px){
  .brand img{width:52px}
  .brand-text strong{font-size:19px}
  .brand-text small{font-size:11.5px}
  .header-inner{height:64px;padding:0 12px}
  .main-nav{top:64px}
  .pill{font-size:15px}
  .hero h1{font-size:30px}
  .hero-text p{font-size:16.5px}
  .title{font-size:24px}
  .step h3{font-size:18px}
  .step-body{flex-direction:column-reverse;align-items:flex-start;gap:10px}
  .step-body img{align-self:center}
  .step:nth-child(3) .step-body p{max-width:none}
  /* Cartes : photo au-dessus */
  .card,.card:nth-child(even){flex-direction:column}
  .card img,.card:nth-child(even) img{width:100%;max-width:none;height:190px;object-fit:cover}
  .card-text{padding:14px 16px 16px}
  .card h3{font-size:20px}
  summary{font-size:16px;padding:8px 14px}
  details p{padding:0 14px 12px}
}

/* ===== Ajustements finaux ===== */
.header-inner{max-width:95%;padding:0 12px;gap:12px}
.brand img{width:62px}
.brand-text strong{font-size:22px}
.brand-text small{font-size:13px}
.main-nav{gap:11px;font-size:15px}
.main-nav .btn-contact{padding:8px 12px}
.step-body img{width:112px}
.step:nth-child(1) .step-body img{width:118px}
.step:nth-child(2) .step-body img{width:116px}
.step:nth-child(3) .step-body img{width:96px}
.step-body p{font-size:15px}
.steps{gap:38px}
.brand-footer img{border-radius:6px}
@media (max-width:1100px){.main-nav{gap:11px;font-size:14px}.brand-text small{font-size:12px}}
@media (max-width:1180px){.main-nav{gap:0;font-size:18px}}
@media (max-width:560px){.step-body img,.step:nth-child(n) .step-body img{width:130px}}

/* Hero pleine largeur sur grands écrans */
.hero-inner{max-width:none}
.hero-text{margin-left:max(0px,calc((100vw - 95%)/2))}
@media (max-width:980px){.hero-text{margin-left:0}}


/* ===== Menu : police commune ===== */
.main-nav{font-weight:500}
@media (min-width:1370px){.main-nav{font-size:18px} 

.main-nav a:not(.btn) {
  position: relative;
  padding: 22px 5px;
  white-space: nowrap;
}
}
@media (max-width: 1370px) {
.main-nav{font-size:16px}	
}
/* ===== Footer commun (footer.php) ===== */
.footer-main{padding:10px 28px}
.footer-main .footer-links{margin:0 auto 0 0;border-left:1px solid rgba(255,255,255,.35);padding-left:24px;display:flex;flex-direction:column;gap:14px;flex:1}
.footer-main .footer-nav{margin:0;border:0;padding:0;font-size:15px;flex-wrap:wrap;row-gap:4px}
.footer-main .footer-nav a{padding:0 14px}
.footer-main .footer-nav a:first-child{padding-left:0}
@media (min-width:981px){.footer-main{gap:18px}.footer-main .footer-nav a{padding:0 9px}.footer-main .footer-nav{font-size:14.5px}.footer-main .footer-links{padding-left:20px}}
@media (max-width:980px){
  .footer-main .footer-links{border-left:0;padding-left:0;margin:0;align-items:center}
  .footer-main .footer-nav{justify-content:center}
  .footer-main .footer-nav a:first-child{padding-left:14px}
}
@media (min-width:981px) and (max-width:1300px){.footer-main .footer-nav a{padding:0 7px}.footer-main .footer-nav{font-size:14px}.footer-main .footer-links{padding-left:16px}.footer-main{gap:14px;padding:10px 18px}.footer-main .brand img{width:76px}}
