﻿/* === BASE — Commun à toutes les pages === */
/* ============================================================
   LEROUX FABRICE MULTISERVICE — Refonte 2024
   Charte : Navy #1B2B4B · Or #E8A020 · Blanc #FFFFFF
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy:       #1B2B4B;
  --navy-light: #243659;
  --gold:       #E8A020;
  --gold-light: #F5B940;
  --gold-pale:  #FFF4DC;
  --white:      #FFFFFF;
  --gray-light: #F7F8FA;
  --gray-mid:   #E8ECF0;
  --text:       #2C3E50;
  --text-muted: #6B7A8D;
  --blue-soft:  #D8EAF5;

  --font-body:  'Poppins', sans-serif;
  --font-hand:  'Caveat', cursive;

  --shadow-sm:  0 2px 12px rgba(27,43,75,.08);
  --shadow-md:  0 6px 30px rgba(27,43,75,.14);
  --shadow-lg:  0 16px 48px rgba(27,43,75,.20);

  --radius:     12px;
  --radius-lg:  20px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.handwriting {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

/* ---------- Layout ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 90px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: .5px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,.4);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,43,75,.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.section-title-center { text-align: center; }
.section-title-center .handwriting { display: block; margin-bottom: 8px; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--navy);
  padding: 10px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.topbar-left a:hover { color: var(--gold); }
.topbar-left i { color: var(--gold); font-size: .9rem; }

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: .85rem;
}
.topbar-socials a:hover { background: var(--gold); color: var(--navy); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding: 16px 0;
  box-shadow: 0 2px 20px rgba(27,43,75,.08);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(27,43,75,.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-box {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.logo-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--gold);
  opacity: .3;
}
.logo-lfm {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  z-index: 1;
}
.logo-lfm span { color: var(--gold); }
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 800;
  color: var(--navy);
}
.logo-text small {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .5px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.nav-links a.active:hover { background: var(--navy-light); color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
  width: 44px;
  height: 44px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .35s ease, opacity .2s ease, width .3s ease;
  transform-origin: center;
}
/* Croix quand ouvert */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* === STATS & SERVICES GRID (partagés) === */
/* ---------- STATS ---------- */
.stats { background: var(--navy); padding: 70px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--navy);
  padding: 50px 30px;
  text-align: center;
  transition: var(--transition);
}
.stat-item:hover { background: var(--navy-light); }
.stat-number {
  font-size: clamp(2.5rem,5vw,4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-icon {
  width: 54px;
  height: 54px;
  background: rgba(232,160,32,.15);
  border: 1px solid rgba(232,160,32,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto;
  color: var(--gold);
  font-size: 1.3rem;
}
.stat-label {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- SERVICES (home preview) ---------- */
.services-preview { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--gray-mid);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.service-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.service-img img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-img .img-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.service-img .img-placeholder.p1 { background: linear-gradient(135deg,#c8d0e0,#a8b8d0); }
.service-img .img-placeholder.p2 { background: linear-gradient(135deg,#d0c8d8,#b8a8c8); }
.service-img .img-placeholder.p3 { background: linear-gradient(135deg,#c8d8c0,#a8c8a0); }
.service-img .img-placeholder i { font-size:3.5rem; color:rgba(27,43,75,.25); }

.service-body {
  padding: 28px 24px 32px;
}
.service-icon {
  width: 50px;
  height: 50px;
  background: var(--gold-pale);
  color: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--navy);
}
.service-body h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.service-body p { color: var(--text-muted); font-size: .88rem; line-height: 1.65; }


/* === MAP + FOOTER === */
/* ---------- MAP SECTION ---------- */
.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  filter: hue-rotate(0deg) saturate(1.1);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--gold);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 48px;
}
.footer-brand p {
  color: rgba(27,43,75,.75);
  font-size: .88rem;
  margin: 16px 0 24px;
  line-height: 1.7;
}
/* Footer logo — défini ici pour toutes les pages */
.footer-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-box {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-box .logo-lfm { font-size: 1.2rem; }
.footer-logo-text strong {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  color: var(--navy);
}
.footer-logo-text small {
  font-size: .65rem;
  color: rgba(27,43,75,.65);
  letter-spacing: .5px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(27,43,75,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--navy);
  color: var(--gold);
}

.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(27,43,75,.75);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--navy); padding-left: 4px; }
.footer-links a::before {
  content: '›';
  font-size: 1rem;
  color: var(--navy);
  opacity: .5;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item strong {
  display: block;
  font-size: .8rem;
  color: var(--navy);
  font-weight: 700;
}
.footer-contact-item span {
  font-size: .85rem;
  color: rgba(27,43,75,.75);
}
.footer-contact-item a {
  font-size: .85rem;
  color: rgba(27,43,75,.75);
  transition: color .2s;
}
.footer-contact-item a:hover { color: var(--navy); }

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(27,43,75,.15);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: .82rem;
  color: rgba(27,43,75,.65);
}
.footer-bottom a {
  font-size: .82rem;
  color: rgba(27,43,75,.75);
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--navy); }


/* === CTA + ANIMATIONS + RESPONSIVE === */
/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,160,32,.1), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- SCROLL ANIMATIONS ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"] { transform: scale(.92); }
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(232,160,32,.4);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ---------- MOBILE NAV OVERLAY ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,43,75,.6);
  z-index: 998;
  backdrop-filter: blur(3px);
}

/* ---------- RESPONSIVE ---------- */

/* ── 1024px : tablette paysage ── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; padding: 100px 0 120px; }
  .hero-card { display: none; }
  .hero-desc { max-width: 100%; }

  .about-preview .container { grid-template-columns: 1fr; gap: 50px; }
  .about-img-badge { right: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .blog-card { grid-template-columns: 280px 1fr; }

  .expertise-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-page .container { gap: 50px; }
  .proximity-section .container { gap: 50px; }
}

/* ── 900px : tablette portrait ── */
@media (max-width: 900px) {
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid          { grid-template-columns: repeat(3, 1fr); }
  .expertise-grid      { grid-template-columns: 1fr; gap: 40px; }
  .about-page .container { grid-template-columns: 1fr; }
  .about-page-img      { position: static; }
  .proximity-section .container { grid-template-columns: 1fr; }
  .contact-grid        { grid-template-columns: 1fr; }
  .pillars-grid        { grid-template-columns: repeat(2,1fr); }
}

/* ── 768px : mobile ── */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  /* Topbar simplifié */
  .topbar .container { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
  .topbar-left { gap: 14px; flex-wrap: nowrap; }
  .topbar-left a:last-child { display: none; } /* cache la localisation */

  /* Nav mobile — toujours en flex, cachée via transform */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 24px 40px;
    gap: 4px;
    z-index: 1000;
    box-shadow: -8px 0 40px rgba(27,43,75,.18);
    overflow-y: auto;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.4,0,.2,1), visibility .38s;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    border-bottom: 1px solid var(--gray-mid);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.nav-cta {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }
  .nav-overlay.open { display: block; }
  .hamburger { display: flex; }

  /* Hero */
  .hero .container { padding: 80px 0 100px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stat { padding: 14px 10px; }
  .hero-stat strong { font-size: 1.5rem; }
  .hero-stat span { font-size: .7rem; }

  /* Grilles */
  .process-grid        { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .services-grid       { grid-template-columns: 1fr !important; }
  .testimonials-grid   { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; gap: 28px; }
  .pillars-grid        { grid-template-columns: 1fr; }

  /* Services page — cards mobile */
  .services-grid       { grid-template-columns: 1fr !important; gap: 20px; margin-top: 36px !important; }
  .service-card        { display: flex; flex-direction: row; max-height: 160px; }
  .service-img         { width: 130px; min-width: 130px; height: auto; flex-shrink: 0; }
  .service-img img     { height: 100%; }
  .service-body        { padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
  .service-icon        { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 10px; }
  .service-body h3     { font-size: .95rem; margin-bottom: 6px; }
  .service-body p      { font-size: .8rem; line-height: 1.5;
                         display: -webkit-box; -webkit-line-clamp: 3;
                         -webkit-box-orient: vertical; overflow: hidden; }

  /* Expertise section */
  .expertise-section   { padding: 60px 0; }
  .expertise-card      { padding: 16px; gap: 12px; }
  .expertise-card-icon { width: 36px; height: 36px; font-size: .9rem; }

  /* Sections texte */
  .cta-banner          { padding: 60px 0; }
  h2                   { font-size: clamp(1.4rem, 4vw, 2rem); }
  h3                   { font-size: clamp(1rem, 3vw, 1.3rem); }

  /* Blog */
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img { min-height: 220px; }
  .blog-card-body { padding: 28px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Pages intérieures */
  .proximity-section .container { grid-template-columns: 1fr; }
  .about-page .container { grid-template-columns: 1fr; }
  .about-page-img { position: static; }
  .pillars-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ── 480px : très petit mobile ── */
@media (max-width: 480px) {
  section { padding: 48px 0; }

  /* Topbar ultra réduit : cacher email aussi, garder seulement tél */
  .topbar-left a:nth-child(2) { display: none; }
  .topbar-socials { gap: 8px; }
  .topbar-socials a { width: 26px; height: 26px; font-size: .78rem; }

  /* Hero */
  .hero .container { padding: 70px 0 90px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stat { padding: 12px 6px; }
  .hero-stat strong { font-size: 1.3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 36px 20px; }

  /* About image floating badges → inline */
  .about-img-badge { position: static; margin-top: 16px; display: inline-block; }
  .about-img-chip { position: static; margin-top: 12px; display: inline-flex; }

  /* CTA banner */
  .cta-banner .btn-actions { flex-direction: column; align-items: stretch; }
  .cta-banner .btn-actions .btn { text-align: center; justify-content: center; }

  /* Navbar logo */
  .navbar-logo-img { height: 44px; }

  /* Services cards — retour vertical sur très petit écran */
  .services-grid  { gap: 16px; }
  .service-card   { flex-direction: column; max-height: none; }
  .service-img    { width: 100%; min-width: unset; height: 180px; }
  .service-img img { height: 180px; }
  .service-body   { padding: 16px; }
  .service-body p { -webkit-line-clamp: unset; overflow: visible; }

  /* Expertise cards */
  .expertise-card      { flex-direction: column; gap: 10px; }
  .expertise-card-icon { width: 40px; height: 40px; }

  /* Blog */
  .blog-card-body      { padding: 20px 18px; }

  /* Contact */
  .contact-form-wrap   { padding: 24px 16px; }
  .form-row            { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE COMPLET (fusionné depuis responsive.css)
   ============================================================ */

/* ============================================================
   LEROUX FABRICE MULTISERVICE — Responsive complet
   Chargé en DERNIER sur toutes les pages
   Breakpoints : 1200 / 1024 / 768 / 480px
   ============================================================ */

/* ── 1200px : grands écrans ─────────────────────────────── */
@media (max-width: 1200px) {
  .container { width: 92%; }
  .hero .container { gap: 40px; }
  .about-preview .container { gap: 50px; }
}

/* ── 1024px : tablette paysage ──────────────────────────── */
@media (max-width: 1024px) {

  /* Grids 2 colonnes → 1 colonne */
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns:1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* Grids 3 colonnes → 2 colonnes */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Grids 4 colonnes → 2 colonnes */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hero */
  .hero .container { grid-template-columns: 1fr; padding: 100px 0 120px; }
  .hero-card        { display: none; }
  .hero-desc        { max-width: 100%; }

  /* About preview — !important pour écraser home.css */
  .about-preview .container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .about-img {
    width: 100% !important;
    position: relative !important;
  }
  .about-img-main {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    max-height: 260px !important;
  }
  .about-img-badge { display: none !important; }
  .about-img-chip  { display: none !important; }
  .about-content   { width: 100% !important; }

  /* Sections */
  .expertise-grid  { grid-template-columns: 1fr; gap: 40px; }
  .about-page .container  { grid-template-columns: 1fr; gap: 50px; }
  .proximity-section .container { grid-template-columns: 1fr; gap: 50px; }

  /* Blog */
  .blog-card { grid-template-columns: 280px 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ── 768px : mobile ──────────────────────────────────────── */
@media (max-width: 768px) {

  section { padding: 56px 0; }
  .container { width: 94%; }

  /* TOUS les grids inline → 1 colonne */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Typographie */
  h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.2rem, 5vw, 1.8rem); }
  h3 { font-size: clamp(1rem,   4vw, 1.3rem); }

  /* Hero */
  .hero .container  { grid-template-columns: 1fr !important; padding: 80px 0 100px; }
  .hero-card        { display: none !important; }
  .hero-stats       { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  .hero-stat        { padding: 14px 10px; }
  .hero-stat strong { font-size: 1.4rem; }
  .hero-actions     { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 24px 40px;
    gap: 4px;
    z-index: 1000;
    box-shadow: -8px 0 40px rgba(27,43,75,.18);
    overflow-y: auto;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.4,0,.2,1), visibility .38s;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%; padding: 14px 16px;
    border-radius: var(--radius); font-size: 1rem;
    display: block; border-bottom: 1px solid var(--gray-mid);
  }
  .nav-overlay.open { display: block; }

  /* Topbar */
  .topbar .container { flex-wrap: wrap; gap: 6px; }
  .topbar-left a:last-child { display: none; }

  /* About */
  .about-img-badge { position: static; margin-top: 16px; display: inline-block; }
  .about-img-chip  { position: static; margin-top: 12px; display: inline-flex; }
  .about-page-img  { position: static; }

  /* Grilles */
  .process-grid    { grid-template-columns: 1fr !important; }
  .process-grid::before { display: none; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr) !important; }
  .services-grid   { grid-template-columns: 1fr !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .pillars-grid    { grid-template-columns: 1fr !important; }
  .expertise-grid  { grid-template-columns: 1fr !important; }
  .footer-grid     { grid-template-columns: 1fr !important; gap: 28px; }

  /* Services cards mobile : layout horizontal compact */
  .service-card   { display: flex; flex-direction: row; max-height: 160px; }
  .service-img    { width: 130px; min-width: 130px; height: auto; flex-shrink: 0; }
  .service-img img { height: 100%; }
  .service-body   { padding: 16px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
  .service-icon   { width: 36px; height: 36px; font-size: .9rem; margin-bottom: 8px; }
  .service-body h3 { font-size: .9rem; margin-bottom: 6px; }
  .service-body p {
    font-size: .78rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
  }

  /* Blog */
  .blog-grid      { gap: 18px; margin-top: 32px !important; }
  .blog-card      { grid-template-columns: 1fr !important; }
  .blog-card-img  { height: 200px; min-height: unset; }
  .blog-card-img img { height: 200px; }
  .blog-card-img .img-placeholder { min-height: 200px; }
  .blog-card-body { padding: 20px 18px 24px; }
  .blog-card-meta { font-size: .75rem; gap: 8px; }
  .blog-card-body h2 { font-size: .95rem; margin-bottom: 8px; }
  .blog-card-body p  { font-size: .84rem; margin-bottom: 14px; }

  /* Contact */
  .contact-grid     { grid-template-columns: 1fr !important; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row         { grid-template-columns: 1fr !important; }

  /* Pages intérieures */
  .proximity-section .container { grid-template-columns: 1fr !important; }
  .about-page .container        { grid-template-columns: 1fr !important; }
  .expertise-cards { gap: 12px; }
  .expertise-card  { padding: 16px; }

  /* À propos — image plus sticky, aspect-ratio portrait → paysage */
  .about-page-img {
    position: static !important;
    width: 100%;
  }
  .about-page-img .img-wrap {
    aspect-ratio: 4/3 !important;
    max-height: 280px;
  }
  /* Cacher les badges décoratifs sous l'image sur mobile */
  .about-page-img > div[style*="display:flex"] {
    display: none !important;
  }

  /* Homepage about — badges absolus → cachés sur mobile */
  .about-img-badge { display: none !important; }
  .about-img-chip  { display: none !important; }

  /* Footer logo — mix-blend-mode pour fond blanc invisible sur fond doré */
  .footer-logo-img {
    mix-blend-mode: multiply;
    height: 60px;
  }

  /* CTA */
  .cta-banner { padding: 56px 0; }
  .btn-actions { flex-direction: column; align-items: stretch; }
  .btn-actions .btn { text-align: center; justify-content: center; }

  /* Sections spécifiques inline */
  .stat-item  { padding: 36px 20px; }

  /* Logo navbar */
  .navbar-logo-img { height: 48px; }
}

/* ── 480px : très petit mobile ───────────────────────────── */
@media (max-width: 480px) {

  section { padding: 44px 0; }
  .container { width: 96%; }

  /* Hero */
  .hero .container  { padding: 70px 0 90px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .hero-stat  { padding: 12px 6px; }
  .hero-stat strong { font-size: 1.2rem; }

  /* Topbar */
  .topbar-left a:nth-child(2) { display: none; }
  .topbar-socials a { width: 26px; height: 26px; font-size: .78rem; }

  /* Services : retour vertical sur très petit écran */
  .service-card    { flex-direction: column !important; max-height: none !important; }
  .service-img     { width: 100% !important; min-width: unset !important; height: 180px !important; }
  .service-img img { height: 180px !important; }
  .service-body    { padding: 16px !important; }
  .service-body p  { -webkit-line-clamp: unset !important; overflow: visible !important; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr !important; }

  /* Grids 2 colonnes → 1 colonne */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Blog */
  .blog-card-img  { height: 170px !important; }
  .blog-card-img img { height: 170px !important; }
  .blog-card-body { padding: 16px !important; }
  .blog-card-body h2 { font-size: .9rem; }

  /* Contact */
  .contact-form-wrap { padding: 22px 14px; }

  /* CTA */
  .cta-banner .btn-actions { flex-direction: column; }
  .cta-banner .btn { width: 100%; justify-content: center; text-align: center; }

  /* Footer */
  .footer-logo-img { height: 52px; }
  .footer-grid { gap: 20px !important; }

  /* Badges about section */
  .about-img-badge { display: block; margin-top: 14px; }
  .about-img-chip  { display: flex;  margin-top: 10px; }

  /* Navbar logo */
  .navbar-logo-img { height: 44px; }

  /* Piliers 2 → 1 */
  .pillars-grid { grid-template-columns: 1fr !important; }

  /* Process */
  .process-card { padding: 28px 20px; }
  .process-number { width: 44px; height: 44px; font-size: .95rem; }
}
