/* =========================================================
   ECOSENSE SOLUTIONS — style.css
   Palette officielle (ne jamais approximer) :
   Bleu principal #004B7A · Vert principal #30D68B
   Blanc #FFFFFF · Gris clair support #F2F4F5
   ========================================================= */

:root{
  --blue: #004B7A;
  --blue-deep: #05314f;
  --blue-tint-10: #e6eef3;
  --green: #30D68B;
  --green-deep: #1fa46a;
  --green-tint: #e8fbf3;
  --white: #ffffff;
  --gray: #F2F4F5;
  --ink: #0a2a3d;
  --ink-soft: #4c6472;

  --font-display: 'Poppins', 'DejaVu Sans', sans-serif;
  --font-body: 'Inter', 'DejaVu Sans', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1180px;
  --shadow-soft: 0 20px 50px -25px rgba(0,75,122,0.35);
  --shadow-card: 0 12px 30px -18px rgba(0,75,122,0.28);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.88);
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue) 340px, var(--blue) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 .5em 0;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight:700; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight:700; }
h3{ font-size: 1.25rem; font-weight:600; }
p{ margin:0 0 1em 0; }

/* Restaurer les couleurs sombres dans les zones claires (cartes, bandes gris/vert) */
.section-alt h1, .section-alt h2, .section-alt h3, .section-alt h4,
.section-tint h1, .section-tint h2, .section-tint h3, .section-tint h4,
.card h1, .card h2, .card h3, .card h4,
.card-photo h1, .card-photo h2, .card-photo h3, .card-photo h4,
.profile-card h3, .project-sheet h3, .newsletter-box h2,
.pillar h3, .timeline-item h3 { color: var(--blue); }
.section-alt p, .section-tint p { color: var(--ink-soft); }
.section-alt > .container > div > p.lede, .section-tint > .container > div > p.lede{ color: var(--ink-soft); }

/* Séparateur discret entre sections pleines empilées */
section:not(.hero):not(.page-hero):not(.section-alt):not(.section-tint) + section:not(.hero):not(.page-hero):not(.section-alt):not(.section-tint){
  border-top: 1px solid rgba(255,255,255,0.08);
}
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 88px 0; }
@media (max-width: 720px){ section{ padding: 56px 0; } }

/* focus visible pour accessibilité */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- eyebrow / kicker ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid rgba(31,164,106,0.22);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-tint .eyebrow{ background: var(--white); }
.eyebrow .swoosh-dot{ width:9px; height:9px; border-radius:50%; background: var(--green); flex:0 0 auto; }

/* ---------- swoosh motif (signature de marque) ---------- */
.swoosh{
  display:inline-block;
  width: 46px; height: 22px;
  position: relative;
}
.swoosh svg{ width:100%; height:100%; display:block; }
.section-divider{
  display:flex; align-items:center; justify-content:center;
  gap: 10px;
  margin: 0 auto 28px auto;
}
.section-divider .line{ width:3px; height:3px; border-radius:50%; background: var(--green); opacity:.45; }

/* ---------- boutons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--blue); color: var(--white); }
.btn-primary:hover{ background: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-accent{ background: var(--green); color: var(--blue-deep); }
.btn-accent:hover{ background: var(--green-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(48,214,139,0.55); }
.btn-outline{ background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover{ background: var(--blue); color: var(--white); }
.btn-ghost-white{ background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-ghost-white:hover{ background: var(--white); color: var(--blue); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(5,49,79,0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 38px; width:auto; }
.brand .baseline{ display:none; }

.main-nav ul{ display:flex; align-items:center; gap: 4px; }
.main-nav a{
  font-family: var(--font-display);
  font-weight:600;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
  padding: 9px 12px;
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover{ color: var(--white); background: rgba(255,255,255,0.1); }
.main-nav a.active{ color: var(--white); background: rgba(48,214,139,0.18); }

.header-actions{ display:flex; align-items:center; gap:10px; }
.nav-toggle{
  display:none;
  width: 44px; height:44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:20px; height:2px; background: var(--white);
  position:relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 68px 16px auto 16px;
    background: var(--blue-deep);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
    max-height: 70vh;
    overflow:auto;
  }
  .main-nav.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .main-nav ul{ flex-direction:column; align-items:stretch; }
  .main-nav a{ display:block; padding:12px 16px; }
  .header-actions .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 700px at 88% 30%, rgba(48,214,139,0.14) 0%, rgba(48,214,139,0) 60%),
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 100%);
}
.hero .eyebrow{ background: rgba(255,255,255,0.14); color: var(--green); }
.hero-waves{
  position:absolute; inset:0; z-index:0; pointer-events:none;
}
.hero-inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
  align-items:start;
  padding-top: 48px; padding-bottom: 40px;
}
@media (max-width: 900px){ .hero-inner{ grid-template-columns: 1fr; padding-top: 36px; } }

.hero h1{ margin-bottom: 20px; }
.hero .lede{ font-size: 1.12rem; color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 30px; }
.hero-cta{ display:flex; gap: 14px; flex-wrap:wrap; margin-bottom: 34px; }

.hero-media{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.hero-media img{ width:100%; height:100%; object-fit: cover; aspect-ratio: 4/3; }
.text-accent{ color: var(--green); }

/* carrousel du hero */
.hero-slideshow{ position:relative; width:100%; aspect-ratio: 2/3; }
.hero-slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active{ opacity:1; }
.hero-slideshow-gradient{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,49,79,0) 45%, rgba(5,49,79,0.55) 100%),
              linear-gradient(90deg, rgba(5,49,79,0.25) 0%, rgba(5,49,79,0) 30%);
  pointer-events:none;
}
.hero-slideshow-dots{
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%);
  display:flex; gap:7px; z-index:2;
}
.hero-slideshow-dots span{
  width:7px; height:7px; border-radius:50%;
  background: rgba(255,255,255,0.4);
  transition: background .25s ease, transform .25s ease;
}
.hero-slideshow-dots span.is-active{ background: var(--green); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce){ .hero-slide{ transition:none; } }

.stat-row{ display:flex; gap: 22px; flex-wrap:wrap; padding-top:18px; border-top:1px solid rgba(255,255,255,0.14); }
.stat-row .stat{ text-align:left; }
.stat-row .stat b{
  display:block; font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight:800; line-height:1;
  margin-bottom: 3px; letter-spacing:-0.01em;
}
.stat-row .stat .approx{ font-size: 0.6em; font-weight:600; vertical-align: 0.35em; margin-right:1px; color:rgba(255,255,255,0.6); }
.stat-row .stat span.stat-label{ font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight:600; display:block; }
@media (max-width: 480px){ .stat-row{ gap:16px; } }

/* page hero (pages intérieures, plus compact) */
.page-hero{
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  position:relative; overflow:hidden;
  padding: 64px 0 56px;
}
.page-hero::after{
  content:"";
  position:absolute; right:-60px; top:-60px; width:320px; height:320px;
  border-radius:50%;
  background: radial-gradient(circle at center, rgba(48,214,139,0.35), transparent 70%);
}
.page-hero h1{ color: var(--white); }
.page-hero .lede{ color: rgba(255,255,255,0.82); max-width: 62ch; font-size:1.05rem; }
.page-hero .eyebrow{ background: rgba(255,255,255,0.14); color: var(--green); }
.breadcrumb{ font-size:0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.breadcrumb a{ color: rgba(255,255,255,0.9); }

/* page hero avec carte image à droite */
.page-hero-split{
  display:grid; grid-template-columns: 1.25fr 1fr; gap:52px; align-items:center;
  position:relative; z-index:1;
}
.page-hero-media{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: 0 30px 60px -22px rgba(0,10,25,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  aspect-ratio: 4/3;
}
.page-hero-media img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 860px){
  .page-hero-split{ grid-template-columns: 1fr; gap:28px; }
  .page-hero-media{ order:-1; max-width:340px; margin:0 auto; aspect-ratio: 16/10; }
}
.breadcrumb a:hover{ text-decoration: underline; }

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.grid{ display:grid; gap: 26px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border: 1px solid rgba(0,75,122,0.08);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(0,75,122,0.32); }
.card .icon-badge{
  width:52px; height:52px; border-radius: 14px;
  background: var(--green-tint);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card .icon-badge svg{ width:26px; height:26px; }
.card p{ color: var(--ink-soft); margin-bottom: 0; }

.card-photo{
  border-radius: var(--radius-md);
  overflow:hidden;
  background: var(--white);
  border: 1px solid rgba(0,75,122,0.08);
  box-shadow: var(--shadow-card);
}
.card-photo img{ width:100%; aspect-ratio: 4/3; object-fit: cover; }
.card-photo .card-photo-body{ padding: 22px 24px 26px; }
.card-photo .card-photo-body p{ color: var(--ink-soft); font-size:0.95rem; margin-bottom:0; }

/* section alterne */
.section-alt{ background: var(--gray); }
.section-tint{ background: var(--green-tint); }

/* two-col layout */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.split > *{ min-width: 0; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } }
.split-media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-soft); }
.split-media img{ width:100%; aspect-ratio: 4/3; object-fit:cover; }
.split-media.wide img{ aspect-ratio: 1200/630; }

/* checklist */
.check-list li{ display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.check-list li .mark{
  flex:0 0 auto; width:22px; height:22px; border-radius:50%;
  background: var(--green); color:var(--blue-deep);
  display:flex; align-items:center; justify-content:center;
  font-size:0.75rem; font-weight:700; margin-top:2px;
}

/* pillars (piliers éditoriaux -> ici piliers d'action) */
.pillar{
  display:flex; gap:20px; padding: 26px 0;
  border-bottom: 1px solid rgba(0,75,122,0.1);
}
.pillar:last-child{ border-bottom:none; }
.pillar .pillar-index{
  font-family: var(--font-display); font-weight:700; color: var(--green-deep);
  font-size: 0.85rem; letter-spacing:.08em;
  flex:0 0 74px;
  padding-top: 4px;
}
.pillar h3{ margin-bottom: 6px; }
.pillar p{ color: var(--ink-soft); margin-bottom:0; }

/* stat block strip — modèle "carte sombre, suffixe empilé" */
.stat-strip{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat-strip .stat-cell{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align:center;
}
.stat-strip b{
  display:block; font-family: var(--font-display); font-weight:800; color: var(--green); line-height:1; letter-spacing:-0.02em;
}
.stat-strip b .stat-num{ font-size: 2.6rem; }
.stat-strip b .stat-suffix{ display:block; font-size: 1.3rem; margin-top:2px; }
.stat-strip .approx{ font-size: 0.4em; font-weight:600; vertical-align: 0.55em; margin-right:2px; color: rgba(255,255,255,0.6); }
.stat-strip span.stat-label{ display:block; margin-top:10px; font-size:0.82rem; color: rgba(255,255,255,0.62); font-weight:600; }
.section-alt .stat-strip span.stat-label, .section-tint .stat-strip span.stat-label{ color: var(--ink-soft); }
.section-alt .stat-strip .approx, .section-tint .stat-strip .approx{ color: var(--ink-soft); }
.section-alt .stat-strip .stat-cell, .section-tint .stat-strip .stat-cell{ background: var(--white); border:1px solid rgba(0,75,122,0.08); box-shadow: var(--shadow-card); }
@media (max-width: 760px){ .stat-strip{ grid-template-columns: 1fr 1fr; } }

/* timeline (zones d'intervention / actions) */
.timeline{ position:relative; padding-left: 28px; }
.timeline::before{ content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background: var(--green-tint); }
.timeline-item{ position:relative; padding-bottom: 34px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-28px; top:4px; width:14px; height:14px; border-radius:50%;
  background: var(--green); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green);
}
.timeline-item h3{ margin-bottom:6px; }
.timeline-item p{ color: var(--ink-soft); margin-bottom:0; }

/* badges partenaires */
.partner-badge{
  display:flex; align-items:center; gap:14px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid rgba(0,75,122,0.1);
  border-radius: var(--radius-md);
}
.partner-badge .dot{ width:10px; height:10px; border-radius:50%; background: var(--green); flex:0 0 auto; }
.partner-badge .logo-thumb{ width:40px; height:40px; flex:0 0 auto; object-fit:contain; border-radius:8px; }
.partner-badge .name{ font-family: var(--font-display); font-weight:600; color: var(--blue); }
.partner-badge .role{ font-size:0.85rem; color: var(--ink-soft); }

/* tags secteurs d'activité (revenus) */
.pill{
  display:inline-block; padding: 6px 14px; border-radius:999px;
  background: var(--blue-tint-10); color: var(--blue); font-size:0.82rem; font-weight:600;
  font-family: var(--font-display);
}

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.5);
  padding: 56px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px;
  flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; left:-40px; bottom:-60px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(48,214,139,0.28), transparent 70%);
}
.cta-band h2{ color:var(--white); margin-bottom:8px; }
.cta-band p{ color: rgba(255,255,255,0.82); margin-bottom:0; max-width:48ch; }
.cta-band .cta-actions{ display:flex; gap:14px; flex-wrap:wrap; position:relative; z-index:1; }

/* =========================================================
   FORM (contact)
   ========================================================= */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid > *{ min-width: 0; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom: 18px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-family: var(--font-display); font-weight:600; font-size:0.88rem; color: var(--blue); }
.field input, .field select, .field textarea{
  border: 1.5px solid rgba(0,75,122,0.18);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(48,214,139,0.18);
  outline:none;
}
.field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size:0.82rem; color: var(--ink-soft); }
.form-status{ margin-top:14px; font-family: var(--font-display); font-weight:600; font-size:0.92rem; }
.form-status.ok{ color: var(--green-deep); }

.contact-info-card{
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h3{ color: var(--white); }
.contact-info-row{ display:flex; gap:14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); min-width:0; }
.contact-info-row:last-child{ border-bottom:none; }
.contact-info-row > div{ min-width:0; }
.contact-info-row .icon-badge{ background: rgba(255,255,255,0.14); }
.contact-info-row .label{ font-size:0.78rem; text-transform:uppercase; letter-spacing:.08em; color: rgba(255,255,255,0.65); }
.contact-info-row a, .contact-info-row span.value{ font-family: var(--font-display); font-weight:600; overflow-wrap: anywhere; }
.social-row{ display:flex; gap:10px; margin-top:22px; }
.social-row a{
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,0.14);
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease, transform .15s ease;
}
.social-row a:hover{ background: var(--green); transform: translateY(-2px); }

.map-frame{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(0,75,122,0.1);
  box-shadow: var(--shadow-card);
}
.map-frame iframe{ width:100%; height:340px; border:0; display:block; }

/* =========================================================
   BLOG
   ========================================================= */
.blog-card .tag{
  display:inline-block; font-family: var(--font-display); font-weight:600; font-size:0.76rem;
  color: var(--green-deep); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;
}
.blog-card time{ font-size:0.82rem; color: var(--ink-soft); }
.blog-card h3{ margin: 8px 0 10px; }
.blog-card a.read-more{ font-family: var(--font-display); font-weight:600; color: var(--blue); font-size:0.9rem; display:inline-flex; align-items:center; gap:6px; margin-top:10px; }
.blog-card a.read-more:hover{ color: var(--green-deep); }

.newsletter-box{
  background: var(--green-tint);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align:center;
}
.newsletter-form{ display:flex; gap:12px; max-width:460px; margin: 20px auto 0; flex-wrap:wrap; justify-content:center; }
.newsletter-form input{
  flex:1 1 240px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,75,122,0.2);
  padding: 13px 18px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--blue-deep); color: rgba(255,255,255,0.82); padding-top: 70px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-top h4{ color: var(--white); font-family: var(--font-display); font-size:0.92rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:18px; }
.footer-top ul li{ margin-bottom:10px; }
.footer-top a{ color: rgba(255,255,255,0.75); font-size:0.92rem; }
.footer-top a:hover{ color: var(--green); }
.footer-brand img{ height:34px; margin-bottom:16px; }
.footer-brand p{ color: rgba(255,255,255,0.68); font-size:0.9rem; max-width:32ch; }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background: var(--green); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px; padding-bottom: 26px;
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a{ color: rgba(255,255,255,0.55); }
.footer-bottom a:hover{ color: var(--green); }

/* reveal on scroll */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* skip link */
.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--blue); color:var(--white); padding: 12px 18px; z-index:1000; border-radius: 0 0 10px 0;
}
.skip-link:focus{ left:0; }

/* =========================================================
   BANDE IMMERSIVE (photo pleine largeur + overlay)
   ========================================================= */
.immersive-band{
  position:relative;
  min-height: 460px;
  display:flex; align-items:center;
  background-size:cover; background-position:center;
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.immersive-band::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(115deg, rgba(5,49,79,0.92) 0%, rgba(5,49,79,0.68) 45%, rgba(5,49,79,0.22) 100%);
}
.immersive-content{ position:relative; z-index:1; padding:56px; max-width:560px; }
.immersive-content .eyebrow{ background: rgba(255,255,255,0.16); color: var(--green); }
.immersive-content h2{ color: var(--white); }
.immersive-content p{ color: rgba(255,255,255,0.88); }
@media (max-width: 720px){ .immersive-band{ min-height:380px; } .immersive-content{ padding:34px 26px; } }

/* filet de sécurité anti-débordement pour toutes les grilles du site */
.grid > *, .split > *, .form-grid > *, .profile-grid > *, .stat-strip > *,
.footer-top > *, .leader-quote > *, .case-study-card > *, .project-sheet > *,
.project-meta > *, .hero-inner > *{ min-width: 0; }

/* photo credit note under image placeholders — informe l'équipe qu'il faut remplacer */
.img-swap-note{
  font-size: 0.72rem; color: var(--ink-soft); text-align:center; margin-top:6px; opacity:0.7;
}

/* panneau blanc pour formulaire sur fond bleu */
.form-panel{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-card);
}
.form-panel h2{ color: var(--blue); }

/* =========================================================
   BANDE PARTENAIRES DÉFILANTE (marquee)
   ========================================================= */
.partner-marquee{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.partner-marquee-track{
  display:flex;
  align-items:center;
  gap: 54px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.partner-marquee:hover .partner-marquee-track{ animation-play-state: paused; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.partner-logo-badge{
  flex: 0 0 auto;
  display:flex; align-items:center; justify-content:center;
  height: 76px;
  padding: 12px 22px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35);
}
.partner-logo-badge.has-logo{
  height: 76px;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 22px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35);
  opacity: 1;
}
.partner-logo-badge.has-logo img{ max-height: 52px; max-width: 150px; width:auto; height:auto; object-fit:contain; }
.partner-logo-badge.has-logo.on-dark{ background: var(--blue-deep); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35); padding: 12px 22px; height: 76px; }
.partner-logo-badge.has-logo.on-dark img{ max-height:52px; max-width:150px; }
.partner-logo-badge .word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.partner-logo-badge .word b{ color: var(--green-deep); font-weight:800; }
.partner-logo-badge .sub{
  display:block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.64rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce){ .partner-marquee-track{ animation: none; } }
@media (max-width: 640px){ .partner-logo-badge .word{ font-size: 0.92rem; } .partner-marquee-track{ gap: 36px; } .partner-logo-badge{ height:64px; padding:10px 16px; } .partner-logo-badge img, .partner-logo-badge.has-logo img{ max-height:40px; max-width:120px; } }

/* citation direction */
.leader-quote{ display:grid; grid-template-columns: 200px 1fr; gap:36px; align-items:center; max-width:820px; margin:0 auto; }
@media (max-width: 640px){ .leader-quote{ grid-template-columns: 1fr; text-align:center; } .leader-quote img{ max-width:180px; margin:0 auto; } }

/* carte résumé étude de cas */
.case-study-card{
  display:grid; grid-template-columns: 0.9fr 1.1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  max-width: 980px;
  margin: 0 auto;
}
.case-study-card img{ width:100%; height:100%; object-fit:cover; min-height:260px; }
.case-study-card-body{ padding: 34px 36px; }
.case-study-card-body h3{ color:var(--blue); }
.case-study-mini-stats{ display:flex; gap:26px; margin: 20px 0 24px; }
.case-study-mini-stats b{ display:block; font-family: var(--font-display); font-size:1.6rem; font-weight:800; color:var(--blue); line-height:1; margin-bottom:4px; }
.case-study-mini-stats span{ font-size:0.76rem; color:var(--ink-soft); font-weight:600; text-transform:uppercase; letter-spacing:0.02em; }
@media (max-width: 720px){ .case-study-card{ grid-template-columns: 1fr; } .case-study-card img{ min-height:200px; } }

/* grille statique des logos partenaires (remplace le défilement) */
.partner-static-grid{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap: 22px;
}
.partner-static-mention{
  text-align:center; font-family: var(--font-display); font-weight:600; font-size:0.8rem;
  text-transform:uppercase; letter-spacing:0.08em; color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.section-alt .partner-static-mention, .section-tint .partner-static-mention{ color: var(--ink-soft); }

/* =========================================================
   WHATSAPP FLOAT BUTTON
   ========================================================= */
.whatsapp-float{
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  width: 58px; height:58px;
  border-radius:50%;
  background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 36px -8px rgba(0,0,0,0.45); }
.whatsapp-float svg{ width:30px; height:30px; }
.whatsapp-float .wa-pulse{
  position:absolute; inset:0; border-radius:50%; background:#25D366; opacity:.55;
  animation: wa-ping 2.2s cubic-bezier(0,0,.2,1) infinite;
}
@media (prefers-reduced-motion: reduce){ .wa-pulse{ animation:none; display:none; } }
@keyframes wa-ping{ 0%{ transform:scale(1); opacity:.55; } 75%,100%{ transform:scale(1.9); opacity:0; } }
@media (max-width: 640px){ .whatsapp-float{ right:16px; bottom:16px; width:52px; height:52px; } .whatsapp-float svg{ width:26px; height:26px; } }

/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */
.lang-switch{ display:flex; align-items:center; gap:2px; font-family: var(--font-display); font-weight:600; font-size:0.82rem; }
.lang-switch a{ padding:6px 9px; border-radius:8px; color: rgba(255,255,255,0.6); }
.lang-switch a.active{ color: var(--white); background: rgba(48,214,139,0.2); }
.lang-switch span{ color: rgba(255,255,255,0.25); }
@media (max-width: 900px){
  .lang-switch{ flex-direction: column; gap:3px; }
  .lang-switch span{ display:none; }
  .lang-switch a{ padding:4px 8px; font-size:0.72rem; text-align:center; }
}

/* =========================================================
   PROFILE QUICK-CTA (routage par profil visiteur)
   ========================================================= */
.profile-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
@media (max-width: 900px){ .profile-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .profile-grid{ grid-template-columns: 1fr; } }
.profile-card{
  display:flex; flex-direction:column; gap:10px;
  padding: 22px;
  background: var(--white);
  border: 1.5px solid rgba(0,75,122,0.12);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.profile-card:hover{ border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.profile-card .icon-badge{ width:44px; height:44px; }
.profile-card .icon-badge svg{ width:22px; height:22px; }
.profile-card h3{ font-size:1.02rem; margin-bottom:2px; }
.profile-card p{ font-size:0.86rem; color: var(--ink-soft); margin-bottom:6px; }
.profile-card a.profile-link{ font-family: var(--font-display); font-weight:600; font-size:0.85rem; color: var(--blue); display:inline-flex; align-items:center; gap:6px; }
.profile-card a.profile-link:hover{ color: var(--green-deep); }

/* =========================================================
   FICHES PROJET
   ========================================================= */
.project-sheet{
  background: var(--white);
  border: 1px solid rgba(0,75,122,0.1);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  display:grid; grid-template-columns: 0.85fr 1.15fr;
}
@media (max-width: 800px){ .project-sheet{ grid-template-columns: 1fr; } }
.project-sheet img{ width:100%; height:100%; object-fit:cover; min-height:240px; }
.project-sheet-body{ padding: 30px 32px; }
.project-meta{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 18px 0 20px; }
.project-meta .meta-item{ border-top: 1px solid rgba(0,75,122,0.1); padding-top:8px; }
.project-meta .meta-label{ font-size:0.72rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-soft); font-family: var(--font-display); font-weight:600; }
.project-meta .meta-value{ font-family: var(--font-display); font-weight:600; color: var(--blue); font-size:0.92rem; }
.project-meta .meta-value.pending{ color: var(--ink-soft); font-weight:500; font-style:italic; font-size:0.85rem; }

/* =========================================================
   TÉMOIGNAGES
   ========================================================= */
.testimonial-card{
  background: var(--white);
  border: 1.5px solid rgba(0,75,122,0.1);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 28px;
  display:flex; flex-direction:column; gap:14px;
}
.testimonial-card.is-placeholder{ border-style:dashed; border-color: rgba(0,75,122,0.22); box-shadow:none; opacity:0.75; }
.testimonial-card .quote-mark{ font-family: var(--font-display); font-size:2.6rem; line-height:1; color: var(--green); font-weight:700; }
.testimonial-card p.quote-text{ color: var(--ink-soft); font-style:italic; margin-bottom:0; }
.testimonial-card .who{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.testimonial-card .who .avatar{
  width:44px; height:44px; border-radius:50%;
  background: var(--green-tint); display:flex; align-items:center; justify-content:center;
  color: var(--blue); font-family: var(--font-display); font-weight:700; font-size:0.85rem;
  flex:0 0 auto;
}
.testimonial-card .who .name{ font-family: var(--font-display); font-weight:600; color:var(--blue); font-size:0.9rem; }
.testimonial-card .who .role{ font-size:0.78rem; color: var(--ink-soft); }

/* =========================================================
   CARTE D'INTERVENTION
   ========================================================= */
#intervention-map{ width:100%; height:420px; border-radius: var(--radius-lg); overflow:hidden; border:1px solid rgba(0,75,122,0.1); box-shadow: var(--shadow-card); }
.map-note{ font-size:0.8rem; color: var(--ink-soft); margin-top:10px; }
.leaflet-popup-content{ font-family: var(--font-body); }
.leaflet-popup-content b{ font-family: var(--font-display); color: var(--blue); }

/* =========================================================
   DOWNLOAD CARD (dossier / plaquette PDF)
   ========================================================= */
.download-card{
  display:flex; align-items:center; gap:20px;
  background: var(--white);
  border: 1px solid rgba(0,75,122,0.1);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.download-card .icon-badge{ flex:0 0 auto; width:54px; height:54px; }
.download-card .dl-title{ font-family: var(--font-display); font-weight:600; color: var(--blue); margin-bottom:4px; }
.download-card .dl-sub{ font-size:0.85rem; color: var(--ink-soft); }
.download-card .btn{ margin-left:auto; flex:0 0 auto; }
@media (max-width: 640px){ .download-card{ flex-direction:column; align-items:flex-start; } .download-card .btn{ margin-left:0; } }


/* =========================================================
   AJOUTS POUR L'INTEGRATION ELEMENTOR (theme WordPress)
   ========================================================= */

/* Reset des wrappers Elementor pour chaque widget ECOSENSE : nos widgets
   dessinent eux-memes leur <section> et leur .container, donc le padding
   et la largeur ajoutes par Elementor doivent etre neutralises. */
.elementor-widget-ecosense_hero .elementor-widget-container,
.elementor-widget-ecosense_page_hero .elementor-widget-container,
.elementor-widget-ecosense_cards_grid .elementor-widget-container,
.elementor-widget-ecosense_photo_cards .elementor-widget-container,
.elementor-widget-ecosense_split .elementor-widget-container,
.elementor-widget-ecosense_stats .elementor-widget-container,
.elementor-widget-ecosense_partners .elementor-widget-container,
.elementor-widget-ecosense_cta .elementor-widget-container,
.elementor-widget-ecosense_highlight_card .elementor-widget-container,
.elementor-widget-ecosense_quote .elementor-widget-container,
.elementor-widget-ecosense_testimonials .elementor-widget-container,
.elementor-widget-ecosense_case_study .elementor-widget-container,
.elementor-widget-ecosense_timeline .elementor-widget-container,
.elementor-widget-ecosense_map .elementor-widget-container,
.elementor-widget-ecosense_partner_badges .elementor-widget-container,
.elementor-widget-ecosense_download_card .elementor-widget-container,
.elementor-widget-ecosense_blog_grid .elementor-widget-container,
.elementor-widget-ecosense_newsletter .elementor-widget-container,
.elementor-widget-ecosense_contact_form .elementor-widget-container,
.elementor-widget-ecosense_contact_info .elementor-widget-container,
.elementor-widget-ecosense_map_embed .elementor-widget-container {
  padding: 0 !important;
  overflow: visible;
}

.e-con:has(.elementor-widget-ecosense_hero),
.e-con:has(.elementor-widget-ecosense_page_hero),
.e-con:has(.elementor-widget-ecosense_cards_grid),
.e-con:has(.elementor-widget-ecosense_photo_cards),
.e-con:has(.elementor-widget-ecosense_split),
.e-con:has(.elementor-widget-ecosense_stats),
.e-con:has(.elementor-widget-ecosense_partners),
.e-con:has(.elementor-widget-ecosense_cta),
.e-con:has(.elementor-widget-ecosense_highlight_card),
.e-con:has(.elementor-widget-ecosense_quote),
.e-con:has(.elementor-widget-ecosense_testimonials),
.e-con:has(.elementor-widget-ecosense_case_study),
.e-con:has(.elementor-widget-ecosense_timeline),
.e-con:has(.elementor-widget-ecosense_map),
.e-con:has(.elementor-widget-ecosense_partner_badges),
.e-con:has(.elementor-widget-ecosense_download_card),
.e-con:has(.elementor-widget-ecosense_blog_grid),
.e-con:has(.elementor-widget-ecosense_newsletter) {
  padding: 0 !important;
  max-width: 100% !important;
  --container-max-width: 100%;
  --container-padding-left: 0px;
  --container-padding-right: 0px;
  --container-padding-top: 0px;
  --container-padding-bottom: 0px;
}

/* grille a une seule colonne (cartes photo isolees, ex: etude de cas) */
.grid-1 { grid-template-columns: 1fr; }

/* variante d'alignement pour .split utilisee dans la mise en page contact */
.split-align-start { align-items: flex-start !important; }

/* liens dans le paragraphe de cloture des bandeaux CTA */
.cta-closing a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.section-alt .cta-closing a, .section-tint .cta-closing a { color: var(--blue); }

/* lien affiche quand la grille de temoignages est vide */
.testimonial-empty-link { color: var(--white); font-weight: 600; font-family: var(--font-display); border-bottom: 2px solid var(--green); padding-bottom: 2px; transition: color .2s ease; }
.testimonial-empty-link:hover { color: var(--green); }
.section-alt .testimonial-empty-link, .section-tint .testimonial-empty-link { color: var(--blue); }
.section-alt .testimonial-empty-link:hover, .section-tint .testimonial-empty-link:hover { color: var(--green-deep); }

/* texte reserve aux lecteurs d'ecran (label email newsletter) */
.screen-reader-text { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* carte d'intervention Leaflet (widget "Carte des interventions") */
.ecosense-intervention-map { width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(0,75,122,0.1); box-shadow: var(--shadow-card); }

/* espacement automatique quand ces blocs suivent d'autres blocs empiles (colonne contact) */
.map-frame { margin-top: 24px; }
.download-card { margin-top: 24px; }

/* contenu d'un article de blog (single.php) */
.single-post-content p { color: var(--ink-soft); }
.single-post-content h2, .single-post-content h3 { color: var(--blue); margin-top: 1.2em; }
.single-post-content a { color: var(--blue); text-decoration: underline; }
.single-post-content img { border-radius: var(--radius-sm); }

/* formulaire de contact : etat d'erreur */
.form-status.error { color: #c0392b; }

/* utilitaires pour les rares sections composees directement de containers
   Elementor natifs (ex: mentions legales, colonne formulaire de contact) */
.container-narrow { max-width: 820px !important; }
.ecosense-container-section { padding: 88px 0; }
@media (max-width: 720px) { .ecosense-container-section { padding: 56px 0; } }
