/* ===== Accueil — grille unique « texte à gauche / visuel à droite » ===== */
body.home{--sp-line:#DCE5F5;--sp-soft:#F3F7FD;--sp-navy:#14267F;--sp-gold:#C99A2E;--sp-gold-text:#8A6A1F;background:#fff}
body.home .sp{position:relative;padding:96px 0;overflow:hidden;background-image:none}
body.home .sp::before,body.home .sp::after{display:none!important}
body.home .sp-white{background:#fff}
body.home .sp-soft{background:var(--sp-soft)}
body.home .sp-navy{background:linear-gradient(135deg,#14267F 0%,#1B34B5 100%);color:#fff}
body.home .sp>.wrap{position:relative;z-index:1}

body.home .sp-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:64px;align-items:center}
body.home .sp-grid-wide-right{grid-template-columns:minmax(0,4fr) minmax(0,7fr)}
body.home .sp-grid-cards{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}
body.home .sp-sticky{position:sticky;top:110px;align-self:start}
body.home .sp-vis,body.home .sp-cards,body.home .sp-text{min-width:0}

/* système de titres unique */
body.home .sp-eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-family:'Plus Jakarta Sans',sans-serif;font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--sp-gold-text)}
body.home .sp-eyebrow::before{content:"";width:34px;height:2px;background:var(--sp-gold)}
body.home .sp-navy .sp-eyebrow{color:#E6C46A}
body.home .sp-navy .sp-eyebrow::before{background:#E6C46A}
body.home .sp-title{margin:0;max-width:none;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:38px;line-height:1.14;letter-spacing:-.01em;color:#0F1D66}
body.home .sp-title em{font-style:normal;color:var(--sp-gold-text)}
body.home .sp-navy .sp-title{color:#fff}
body.home .sp-navy .sp-title em{color:#E6C46A}
body.home .sp-lead{margin:18px 0 0;max-width:520px;font-size:16.5px;line-height:1.7;color:#3B4568}
body.home .sp-lead+.sp-lead{margin-top:12px}
body.home .sp-navy .sp-lead{color:#DCE5FF}
body.home .sp-text .btn{margin-top:28px}
body.home .sp-text .faq-more{margin-top:24px;line-height:1.9;font-size:15px}
body.home .sp-text .faq-more a{color:#0F1D66;font-weight:600}

/* cartes */
body.home .sp-cards{display:grid;gap:20px}
body.home .sp-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
body.home .sp-cards-2{grid-template-columns:repeat(2,minmax(0,1fr))}
body.home .sp-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--sp-line);border-radius:18px;box-shadow:0 12px 32px rgba(15,29,102,.08);color:#1F2937;transition:transform .25s,box-shadow .25s}
body.home .sp-card-link:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,29,102,.14)}
body.home .sp-card img{display:block;width:100%;height:150px;object-fit:cover}
body.home .sp-card-body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 22px;flex:1}
body.home .sp-card h3{margin:0;font-size:18px;line-height:1.25;color:#0F1D66;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800}
body.home .sp-card p{font-size:14.5px;line-height:1.6;color:#3B4568}
body.home .sp-more{margin-top:auto;padding-top:6px;font-size:13.5px;font-weight:700;color:var(--sp-gold-text)}
body.home .sp-tag{align-self:flex-start;padding:3px 10px;border-radius:999px;background:#FFF4D6;color:var(--sp-gold-text);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
body.home .sp-card-dark{background:#0F1D66;border-color:#0F1D66}
body.home .sp-card-dark h3{color:#fff}
body.home .sp-card-dark p{color:#D3DCFF}
body.home .sp-card-dark .sp-more{color:#E6C46A}
body.home .sp-card-dark .sp-tag{background:rgba(255,255,255,.14);color:#F3D88A}

/* médias */
body.home .sp-media{position:relative;margin:0;border-radius:22px;overflow:hidden;box-shadow:0 22px 50px rgba(15,29,102,.18)}
body.home .sp-media img{display:block;width:100%;height:100%;min-height:420px;max-height:560px;object-fit:cover}
body.home .sp-media-tall img{max-height:640px;object-position:50% 42%}
body.home .sp-media figcaption{position:absolute;left:14px;bottom:14px;padding:5px 12px;border-radius:999px;background:rgba(11,20,64,.82);color:#fff;font-size:12px;font-weight:600}

/* diaspora */
body.home .sp-checks{display:grid;gap:16px;margin:26px 0 0}
body.home .sp-checks li{display:flex;gap:14px;align-items:flex-start}
body.home .sp-checks svg{width:26px;height:26px;padding:5px;border-radius:50%;background:#E6C46A;color:#0F1D66;margin-top:2px}
body.home .sp-checks strong{display:block;font-size:16.5px;color:#fff}
body.home .sp-checks span{display:block;margin-top:2px;font-size:14.5px;line-height:1.55;color:#D3DCFF}

/* clients */
body.home .sp-logos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;list-style:none;margin:0;padding:0}
body.home .sp-logos li{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;max-height:210px;padding:22px;background:#fff;border:1px solid var(--sp-line);border-radius:18px;box-shadow:0 12px 32px rgba(15,29,102,.07)}
body.home .sp-logos img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}

/* composants existants intégrés */
body.home .xa{max-width:none}
body.home .faq-list{max-width:none}
body.home .xc-flat{background:none;padding:0}
body.home .xc-flat .xc-timeline{margin:0;max-width:none}
body.home .pf-slider{margin-top:0}
body.home .pf-track .portfolio-card{flex:0 0 calc((100% - 24px)/2)}
body.home .pf-track .portfolio-card img{border-radius:16px}

/* hero : texte à gauche */
body.home .hero-text{align-items:flex-start;text-align:left;max-width:640px}
body.home .hero-inner-solo{justify-content:flex-start}
body.home .hero-text .cta-row,body.home .hero-text .cta-links{justify-content:flex-start}

@media (max-width:1024px){
  body.home .sp-grid,body.home .sp-grid-wide-right,body.home .sp-grid-cards{grid-template-columns:1fr;gap:36px}
  body.home .sp-sticky{position:static}
  body.home .sp-title{font-size:34px}
  body.home .sp-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.home .sp-media img{min-height:320px}
}
@media (max-width:700px){
  body.home .sp{padding:60px 0}
  body.home .sp-title{font-size:28px}
  body.home .sp-lead{font-size:15.5px}
  body.home .sp-cards-3,body.home .sp-cards-2{grid-template-columns:1fr}
  body.home .sp-card img{height:170px}
  body.home .sp-logos{gap:12px}
  body.home .sp-logos li{padding:14px}
  body.home .pf-track .portfolio-card{flex:0 0 82%}
  body.home .sp-media img{min-height:260px}
}
body.home .sp-text .faq-more{text-align:left}
body.home .sp-logos li{padding:30px}

/* ===== Sections compactes : texte en haut à gauche, contenus qui défilent à droite ===== */
body.home .sp-grid{align-items:start}
body.home .sp-sticky{position:static}
body.home .sp{padding:72px 0}
body.home .sp-slider{position:relative;min-width:0}
body.home .sp-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding:6px 2px 18px;scrollbar-width:none;align-items:stretch}
body.home .sp-track::-webkit-scrollbar{display:none}
body.home .sp-slide{flex:0 0 calc((100% - 20px)/2);scroll-snap-align:start;min-width:0}
body.home .sp-btn{position:absolute;top:42%;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#1B34B5;font-size:26px;line-height:1;cursor:pointer;box-shadow:0 8px 20px -6px rgba(27,52,181,.45);display:grid;place-items:center;padding:0 0 3px}
body.home .sp-btn:hover{background:#D4AF37}
body.home .sp-prev{left:-14px}
body.home .sp-next{right:-14px}
body.home .sp-slider .sp-card img{height:170px}

body.home .sp-info{display:flex;flex-direction:column;gap:12px;padding:26px 24px 24px;background:#fff;border:1px solid var(--sp-line);border-radius:18px;box-shadow:0 12px 32px rgba(15,29,102,.08)}
body.home .sp-soft .sp-info{background:#fff}
body.home .sp-num{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#1B34B5;color:#E6C46A;font-weight:800;font-size:14px}
body.home .sp-info h3{margin:0;font-family:'Plus Jakarta Sans',sans-serif;font-size:19px;line-height:1.3;font-weight:800;color:#0F1D66}
body.home .sp-info-pb{font-size:14.5px;line-height:1.6;color:#3B4568}
body.home .sp-info-sol{margin-top:auto;padding-top:14px;border-top:1px dashed #C9D7F0;display:flex;flex-direction:column;gap:6px}
body.home .sp-info-label{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--sp-gold-text)}
body.home .sp-info-sol strong{font-size:15px;line-height:1.4;color:#1B34B5}
body.home .sp-info-sol p{font-size:14.5px;line-height:1.6;color:#1F2937}
body.home .sp-livr{font-size:14px!important;line-height:1.75!important}
body.home .sp-livr strong{color:var(--sp-gold-text)!important}
body.home .sp-livr .doc-n{display:inline-block;padding:1px 9px;border-radius:999px;background:#FFF4D6;color:var(--sp-gold-text);font-size:12px;font-weight:700;margin:0 2px}

@media (max-width:1024px){
  body.home .sp-prev{left:-8px}body.home .sp-next{right:-8px}
}
@media (max-width:700px){
  body.home .sp{padding:52px 0}
  body.home .sp-slide{flex:0 0 84%}
  body.home .sp-prev{left:2px}body.home .sp-next{right:2px}
  body.home .sp-btn{width:38px;height:38px}
  body.home .sp-slider .sp-card img{height:150px}
}

/* flèches : sur l'image pour les cartes photo, sous les cartes pour les cartes texte */
body.home #domaines .sp-btn{top:96px}
body.home #problemes .sp-slider,body.home #methode .sp-slider{padding-bottom:62px}
body.home #problemes .sp-btn,body.home #methode .sp-btn{top:auto;bottom:0}
body.home #problemes .sp-prev,body.home #methode .sp-prev{left:2px}
body.home #problemes .sp-next,body.home #methode .sp-next{left:56px;right:auto}
@media (max-width:700px){
  body.home #domaines .sp-btn{top:80px}
  body.home #problemes .sp-prev,body.home #methode .sp-prev{left:2px}
}

body.home .sp-punch{margin:22px 0 0;padding-left:16px;border-left:3px solid var(--sp-gold);font-weight:700;font-size:17px;line-height:1.5;color:#0F1D66}
body.home .contact-lead{margin:14px 0 0;max-width:560px;font-size:16.5px;line-height:1.65;color:#DCE5FF}
body.home .contact-lead-strong{margin:8px 0 22px;font-weight:700;color:#E6C46A}
body.home .faq-a p+p{margin-top:10px}

body.home .sp-facts{background:#0F1D66;color:#fff;padding:26px 0}
body.home .sp-facts ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
body.home .sp-facts li{display:flex;flex-direction:column;gap:4px;padding-left:16px;border-left:2px solid #D4AF37}
body.home .sp-facts strong{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-size:28px;font-weight:800;color:#E6C46A;line-height:1.1}
body.home .sp-facts span{font-size:14px;line-height:1.45;color:#DCE5FF}
@media(max-width:900px){body.home .sp-facts ul{grid-template-columns:1fr 1fr;gap:18px}body.home .sp-facts strong{font-size:23px}}

/* Titres accueil : accent doré réservé au titre principal et aux fonds bleus */
body.home .sp-white:not(#presentation) .sp-title em,body.home .sp-soft .sp-title em{color:inherit}
/* Bandeau « AEC en bref » */
body.home .sp-band{background:#fff;border-top:1px solid #E3EAF8;border-bottom:1px solid #E3EAF8;padding:34px 0}
body.home .sp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
body.home .sp-stats div{border-left:3px solid #D4AF37;padding-left:16px}
body.home .sp-stats strong{display:block;font:800 34px/1.1 "Plus Jakarta Sans",sans-serif;color:#1B34B5}
body.home .sp-stats span{display:block;margin-top:6px;font-size:14px;line-height:1.5;color:#4A5568}
@media(max-width:800px){body.home .sp-stats{grid-template-columns:1fr 1fr;gap:20px 14px}body.home .sp-stats strong{font-size:28px}}
/* Contact : rassurance */
body.home .contact-assure{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:8px;max-width:560px}
body.home .contact-assure li{position:relative;padding-left:24px;color:#DCE5FF;font-size:15px;line-height:1.5}
body.home .contact-assure li::before{content:"✓";position:absolute;left:0;color:#E6C46A;font-weight:700}
body.home .contact-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

/* Chantiers en photos */
body.home .proj-photos{margin-top:56px}
body.home .proj-title{font:800 26px/1.2 "Plus Jakarta Sans",sans-serif;color:#14267F;margin:0 0 8px}
body.home .proj-lead{margin:0 0 20px;color:#4A5568;font-size:15.5px}
body.home .proj{background:#fff;border:1px solid #DCE5F5;border-radius:16px;margin-bottom:14px;overflow:hidden}
body.home .proj>summary{list-style:none;cursor:pointer;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#14267F}
body.home .proj>summary::-webkit-details-marker{display:none}
body.home .proj>summary strong{display:block;font-size:18px}
body.home .proj>summary span{font-size:14.5px;color:#4A5568;line-height:1.5}
body.home .proj>summary::after{content:"+";font-size:26px;font-weight:700;color:#C99A2E;flex:none}
body.home .proj[open]>summary::after{content:"–"}
body.home .proj>*:not(summary){margin-left:22px;margin-right:22px}
body.home .proj-note{margin-top:0;color:#2D3748;font-size:15px;line-height:1.6}
body.home .pj-sub{margin:18px 22px 8px;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8A6A1F}
body.home .pj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:6px}
body.home .pj-fig{margin:0}
body.home .pj-fig img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block;cursor:zoom-in}
body.home .pj-fig figcaption{font-size:13px;color:#4A5568;margin-top:6px;line-height:1.4}
body.home .proj>:last-child{margin-bottom:20px}
@media(max-width:700px){body.home .pj-grid{grid-template-columns:1fr 1fr;gap:10px}body.home .proj>summary{padding:16px}}
.lb{position:fixed;inset:0;z-index:200;background:rgba(8,14,40,.92);display:flex;align-items:center;justify-content:center;padding:16px;cursor:zoom-out}
.lb img{max-width:100%;max-height:100%;border-radius:8px}
