:root{
  --brand-primary:#0e4a57;   /* teal from logo outer gear */
  --brand-accent:#f0a35a;    /* warm orange from logo background */
  --brand-dark:#111827;
  --brand-light:#f9fafb;
  --text:#1f2937;
  --muted:#6b7280;
  --radius:16px;
  --shadow:0 10px 25px rgba(0,0,0,.07);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff; /* blanc opaque */
  backdrop-filter: none; /* pas de flou si tu veux un blanc plein */
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e5e5e5; /* bordure gris clair */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

/* option : couleur texte/navigation plus contrastée */
.nav a {
  font-weight: 600;
  color: #0e4a57;
}
.nav a:hover {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.1);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;color:var(--text);background:var(--brand-light);}
img{max-width:100%;display:block}
a{color:var(--brand-primary);text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

.nav{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.logo{display:flex;align-items:center;gap:.75rem}
.logo img{height:48px;width:auto}
.logo .brand{font-weight:800;letter-spacing:.5px}
.brand .small{display:block;color:var(--muted);font-weight:600;font-size:.7rem;margin-top:-.2rem}
.nav ul{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.menu-toggle{display:none;border:1px solid #e5e7eb;border-radius:12px;padding:.4rem .6rem;background:#fff}

.hero{position:relative;overflow:hidden;background:linear-gradient(180deg, rgba(14,74,87,.9), rgba(14,74,87,.7)),url('../img/arriere plan accueil.jpg') center/cover;min-height:69vh;color:#fff;display:flex;align-items:center}
.hero .content{padding:3rem 0}
.badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.15);padding:.35rem .6rem;border-radius:999px;font-weight:700;font-size:.8rem;border:1px solid rgba(255,255,255,.35)}
.h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.1;margin:.6rem 0 1rem;font-weight:900}
.lead{font-size:1.125rem;max-width:48rem;color:#85878b}
.cta{display:flex;gap:.75rem;margin-top:1.25rem;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:.6rem;padding:.85rem 1.15rem;border-radius:12px;font-weight:800;transition:.24s;border:2px solid transparent}
.btn-primary{background:var(--brand-accent);color:#111}
.btn-primary:hover{filter:brightness(.95)}
.btn-ghost{background:transparent;border-color:#fff;color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1)}

.section{padding:2.5rem 0}
.section.alt{background:#fff}
.section.gray{background:#f3f4f6}

.grid{display:grid;gap:1.5rem}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:#fff;border:1px solid #eef2f7;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.cardhero{background:#0e4a5780;border:1px solid #eef2f7;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card .p{padding:1rem 1.15rem}
.card h3{margin:.25rem 0 .5rem}
.cardhero{background:#0e4a5780;border:1px solid #eef2f7;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.cardhero .p{padding:1rem 1.15rem}
.cardhero h3{margin:.25rem 0 .5rem}
.kpi{display:flex;gap:1rem;flex-wrap:wrap}
.kpi .item{background:#0e4a5780;border-radius:14px;padding:1rem 1.2rem;border:1px solid #e5e7eb;min-width:180px;box-shadow:var(--shadow)}
.kpi .num{font-weight:900;font-size:1.6rem;color:var(--brand-primary)}

.footer {
  background: #0e4a57e6; /* bleu-vert translucide */
  color: #cbd5e1;
  padding: 2rem 0 1.5rem;
  margin-top: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 3px solid #f0a35a; /* fine ligne orange élégante */
}

/* Lien et survol */
.footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #f0a35a;
}

/* --- Grille des colonnes --- */
.footer .cols {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer .col {
  flex: 1 1 220px;
  max-width: 260px;
}

/* Logo */
.footer .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .75rem;
}

.footer .logo img {
  height: 60px;
  width: auto;
}

.footer .brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

/* Titres de colonnes */
.footer h4 {
  margin: 0 0 .75rem;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: .5rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Paragraphes */
.footer p {
  font-size: .95rem;
  line-height: 1.6;
  margin: .25rem 0;
}

/* Ligne du bas */
.footer > p {
  margin-top: 1rem;
  font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
  color: #f1f5f9;
}

.footer > p strong {
  color: #fff;
}

.footer > p a {
  color: #f0a35a;
  font-weight: 600;
}

.footer > p a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .footer .cols {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}


.hero-strip{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem}
.feature{display:flex;gap:1rem}
.feature i{height:42px;width:42px;border-radius:12px;background:var(--brand-light);display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e7eb;font-weight:900;color:var(--brand-primary)}

.quote{border-left:6px solid var(--brand-accent);padding-left:1rem;color:#111;background:#fff;border-radius:12px;padding:1rem;border:1px solid #e5e7eb}

.banner{background:linear-gradient(180deg, rgba(240,163,90,.2), rgba(240,163,90,.1));border:1px dashed rgba(240,163,90,.6);padding:1rem;border-radius:14px}

.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #e5e7eb;padding:.75rem;text-align:left}
.table th{background:#fafafa}

.cookie{position:fixed;left:1rem;right:1rem;bottom:1rem;background:#111827;color:#fff;border-radius:14px;padding:1rem;display:none;z-index:60;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.cookie .actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.5rem}
.cookie .btn{border-color:#fff}

@media (max-width: 980px){
  .hero-strip{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .footer .cols{grid-template-columns:1fr 1fr}
  .nav ul{display:none}
  .menu-toggle{display:inline-flex}
}
@media (max-width: 520px){
  .footer .cols{grid-template-columns:1fr}
}

/* === Amélioration visibilité === */
.btn-primary { background: var(--brand-accent); color: #111; font-weight: 800; border: none; }
.btn-primary:hover { background: #e68d35; }
.num { color: var(--brand-primary); background: #fff; padding: .25rem .5rem; border-radius: 6px; display: inline-block; }
.feature strong, .kpi .num { color: var(--brand-primary); }
a:hover, .feature i { color: var(--brand-accent); }


/* === Section horaires === */
.horaires {
  background: #fff;
  text-align: center;
}

.horaires h2 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.horaires p {
  font-size: 1.1rem;
  margin: .5rem 0;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}


/* === Section Avis Google === */
.avis-google {
  text-align: center;
}

.avis-google h2 {
  color: var(--brand-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.avis-google p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.avis-google .btn {
  font-size: 1rem;
  padding: 0.9rem 1.4rem;
}


/* === Lightbox (agrandissement d'image) === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: zoomIn .3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: var(--brand-accent);
}


/* === Texte à propos étendu === */
.texte-a-propos {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.texte-a-propos h2 {
  color: var(--brand-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.texte-a-propos p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}


/* === Correction image À propos === */
.grid-2 .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}


/* === Widget Cloudflare Turnstile === */
.cf-turnstile {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

/* === HERO POUR LA PAGE SERVICES === */
.hero-services {
  background: linear-gradient(180deg, rgba(14,74,87,0.92), rgba(14,74,87,0.85)),
              url('../img/silhouette-de-construction.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0;
  position: relative;
}

.hero-services .badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-services h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-services p {
  color: #e2e8f0;
}

.hero-services .btn-primary {
  background: var(--brand-accent);
  color: #111;
}

.hero-services .btn-ghost {
  border: 2px solid #fff;
  color: #fff;
}

/* === Centrer uniquement la dernière carte (AMO) === */
#prestations .grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center; /* centre les cartes dans chaque colonne */
}

#prestations .grid-3 > .card:last-child {
  grid-column: 2; /* place la dernière carte au centre */
  justify-self: center;
  max-width: 360px;
}

/* En mobile : revenir à une seule colonne */
@media (max-width: 980px) {
  #prestations .grid-3 > .card:last-child {
    grid-column: auto;
  }
}

/* === HERO pour la page realisations === */
.hero-realisations {
  background: linear-gradient(180deg, rgba(14,74,87,0.92), rgba(14,74,87,0.85)),
              url('../img/silhouette-de-construction.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0;
  position: relative;
}

.hero-realisations .badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-realisations h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-realisations p {
  color: #e2e8f0;
}

.hero-realisations .btn-primary {
  background: var(--brand-accent);
  color: #111;
}

.hero-realisations .btn-ghost {
  border: 2px solid #fff;
  color: #fff;
}

/* === HERO pour la page contact === */
.hero-contact {
  background: linear-gradient(180deg, rgba(14,74,87,0.92), rgba(14,74,87,0.85)),
              url('../img/silhouette-de-construction.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0;
  position: relative;
}

.hero-contact .badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-contact h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-contact p {
  color: #e2e8f0;
}

.hero-contact .btn-primary {
  background: var(--brand-accent);
  color: #111;
}

.hero-contact .btn-ghost {
  border: 2px solid #fff;
  color: #fff;
}

/* === HERO pour la page a-propos === */
.hero-a-propos {
  background: linear-gradient(180deg, rgba(14,74,87,0.92), rgba(14,74,87,0.85)),
              url('../img/silhouette-de-construction.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0;
  position: relative;
}

.hero-a-propos .badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-a-propos h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-a-propos p {
  color: #e2e8f0;
}

.hero-a-propos .btn-primary {
  background: var(--brand-accent);
  color: #111;
}

.hero-a-propos .btn-ghost {
  border: 2px solid #fff;
  color: #fff;
}

/* === HERO pour la page mentions-legales === */
/* === HERO POUR LA PAGE MENTIONS LÉGALES === */
.hero-mentions-legales {
  background: linear-gradient(180deg, rgba(14,74,87,0.9), rgba(14,74,87,0.85)),
              url('../img/silhouette-de-construction.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
}

.hero-mentions-legales .hero-content {
  max-width: 800px;
}

.hero-mentions-legales .badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-mentions-legales h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hero-mentions-legales p {
  font-size: 1.15rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* === HERO POUR LA PAGE POLITIQUE DE COOKIES === */
.hero-cookies {
  background: linear-gradient(180deg, rgba(14,74,87,0.9), rgba(14,74,87,0.85)),
              url('../img/silhouette-de-construction.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
}

.hero-cookies .hero-content {
  max-width: 800px;
}

.hero-cookies .badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-cookies h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hero-cookies p {
  font-size: 1.15rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* === Carrousel moderne et fluide === */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
}

.carousel .slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.25, 1);
  width: 100%;
}

.carousel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  flex: 0 0 100%;
  user-select: none;
}

/* Boutons de navigation */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--brand-primary);
  font-size: 1.3rem;
  padding: .4rem .7rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all .25s ease;
  z-index: 2;
}

.carousel button:hover {
  background: var(--brand-accent);
  color: #fff;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* Points indicateurs */
.carousel .dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 3;
}

.carousel .dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s;
}

.carousel .dot.active {
  background: var(--brand-accent);
}

@media (max-width: 768px) {
  .carousel img { height: 220px; }
  .carousel button { font-size: 1.1rem; }
}

/* === Contrôles de navigation dans la lightbox === */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  color: var(--brand-primary);
  font-size: 2rem;
  padding: .5rem .9rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 5;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--brand-accent);
  color: #fff;
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }
}

/* ========================================
   OPTIMISATION MOBILE COMPLÈTE
   ======================================== */

@media (max-width: 980px) {

/* === HEADER BLANC OPAQUE SUR MOBILE === */
.header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* === HERO MOBILE RÉDUIT === */
.hero {
    min-height: 60vh !important;
    padding: 1.5rem 0 !important;


/* === HERO TITLE MOBILE === */
.hero-title {
    position: static !important;
    transform: none !important;
    margin-bottom: 1.5rem;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
}
}


  /* === NAVIGATION BURGER === */
  .nav ul {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    gap: 0;
  }

  .nav ul li {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav ul li:last-child {
    border-bottom: none;
  }

  .nav ul li a {
    display: block;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
  }

  /* === HERO SECTION === */
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }

  .hero .content {
    padding: 2rem 0;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }

  .lead {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.75rem;
  }

  .cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
  }

  /* === GRIDS === */
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  /* === SECTIONS === */
  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  /* === CARDS === */
  .card, .cardhero {
    margin-bottom: 1rem;
  }

  .card img, .cardhero img {
    height: 200px;
    object-fit: cover;
  }

  /* === KPI === */
  .kpi {
    flex-direction: column;
    gap: 1rem;
  }

  .kpi .item {
    width: 100%;
    min-width: 100%;
  }

  /* === FEATURES === */
  .feature {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .feature i {
    margin-bottom: 0.5rem;
  }

  /* === FOOTER === */
  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer .cols {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer .col {
    max-width: 100%;
  }

  .footer .logo img {
    height: 50px;
  }

  /* === CAROUSEL === */
  .carousel img {
    height: 220px !important;
  }

  .carousel button {
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
  }

  .carousel .prev {
    left: 5px;
  }

  .carousel .next {
    right: 5px;
  }

  /* === LIGHTBOX === */
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.6rem !important;
    padding: 0.4rem 0.7rem !important;
  }

  .lightbox-prev {
    left: 10px !important;
  }

  .lightbox-next {
    right: 10px !important;
  }

  .lightbox .close {
    top: 10px;
    right: 20px;
    font-size: 2rem;
  }

  /* === HERO PAGES === */
  .hero-services,
  .hero-realisations,
  .hero-contact,
  .hero-a-propos,
  .hero-mentions-legales,
  .hero-cookies {
    padding: 3rem 1rem !important;
    min-height: 40vh !important;
  }

  /* === FORMULAIRE CONTACT === */
  form input,
  form textarea,
  form select {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
  }

  form button {
    width: 100%;
  }

  /* === TABLES === */
  .table {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  /* === COOKIE BANNER === */
  .cookie {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .cookie .actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie .btn {
    width: 100%;
  }

  /* === LOGO === */
  .logo {
    gap: 0.5rem;
  }

  .logo img {
    height: 40px;
  }

  .logo .brand {
    font-size: 0.9rem;
  }

  .brand .small {
    font-size: 0.6rem;
  }

  /* === CENTRAGE DERNIÈRE CARTE AMO === */
  #prestations .grid-3 > .card:last-child {
    grid-column: auto;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  /* === AJUSTEMENTS POUR PETITS MOBILES === */
  .h1 {
    font-size: 1.5rem !important;
  }

  .lead {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 45vh;
  }

  .section {
    padding: 2rem 0;
  }

  .card .p,
  .cardhero .p {
    padding: 0.75rem;
  }

  .btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }

  .logo .brand {
    font-size: 0.8rem;
  }

  .logo img {
    height: 35px;
  }

  .footer .cols {
    grid-template-columns: 1fr;
  }

  .carousel button {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
  }

  .kpi .num {
    font-size: 1.3rem;
  }

  .feature i {
    height: 36px;
    width: 36px;
  }
}


/* === CORRECTIONS MOBILE === */

/* Burger menu - classe pour affichage */
@media (max-width: 980px) {
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 12px 12px;
        gap: 0.5rem;
        z-index: 100;
    }

    .nav ul.nav-open {
        display: flex !important;
    }

    .nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .nav ul li a:hover {
        background: rgba(14, 74, 87, 0.1);
    }

    /* Footer mobile - amélioration espacement */
    .footer {
        padding: 1rem 1rem 0.5rem;
    }

    .footer .cols {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .footer .col {
        max-width: 100%;
        width: 100%;
    }

    .footer p {
        font-size: 0.9rem;
        line-height: 1.8;
        margin: 0.5rem 0;
    }

    .footer h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer > p {
        margin-top: 1rem;
        padding-top: 1rem;
        font-size: 0.85rem;
    }

    /* Services - cartes en colonne unique */
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    #prestations .grid-3 > .card:last-child {
        grid-column: auto !important;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .footer .cols {
        gap: 1.5rem;
    }
}
/* === Titre principal centré dans la section hero === */
.hero-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
  z-index: 2;
}

/* === HERO PLUS GRAND UNIQUEMENT SUR INDEX === */
.home .hero {
  min-height: 95vh;
}


/* === FIX FOOTER MOBILE: remove vertical stretching and tighten gaps === */
@media (max-width: 980px){
  .footer .col{flex:0 0 auto !important; max-width:100% !important;}
  .footer .cols{gap:1rem !important;}
}
@media (max-width: 520px){
  .footer .cols{gap:0.75rem !important;}
}
