:root {
  --accent: #ff3b18;
  --accent-dark: #c42a10;
  --bg-dark: #0b0b10;
  --text-dark: #111827;
}
* { box-sizing:border-box; margin:0; padding:0; scroll-behavior:smooth; }
body { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--text-dark); }
.container { max-width:1140px; margin:0 auto; padding:0 1.25rem; }

.topbar { background:#111827; color:#e5e7eb; font-size:.8rem; }
.topbar-inner {
  display: flex;
  justify-content: center;    /* centre horizontalement */
  align-items: center;
  padding: 0.4rem 0;
}
.topbar-left span { margin-right:.9rem; }
.topbar-cta { background:var(--accent); color:#fff; padding:.3rem .9rem; border-radius:999px; text-decoration:none; }
  /* hide explicit <br> by default so desktop stays inline */
  .topbar-left .topbar-cta br { display: none; }
.main-header { position:sticky; top:0; z-index:20; background:#fff; border-bottom:1px solid #e5e7eb; overflow: visible; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;      /* plus petit qu’avant */
  gap: 1rem;
  min-height: auto;       /* s’assure qu’il ne s’étire pas pour rien */
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2.5rem;
}
.main-nav ul { list-style:none; display:flex; gap:1.5rem; font-size:.86rem; text-transform:uppercase; letter-spacing:.14em; }
.main-nav a { text-decoration:none; color:var(--text-dark); }
.main-nav a:hover { color:var(--accent); }
.logo-center img { 
  height: 200px;
  transform: translateY(80px); 
  filter: drop-shadow(0 0px 6px rgba(0, 0, 0, 0.95));
}
.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-55%);
  bottom: -70px;                  /* le logo dépasse vers le bas */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* pousse les éléments gauche/droite vers l’extérieur */
.nav-left {
  margin-right: 80px;   /* espace à droite du bloc gauche */
}

.nav-right {
  margin-left: 80px;    /* espace à gauche du bloc droit */
}

.header-quote { margin-left:1rem; }

.burger { display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; }
.burger span { width:20px; height:2px; background:#111827; }

.hero {
  position: relative;
  min-height: 90vh;              /* au lieu de 80vh */
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-background { position:absolute; inset:0; background:url("images/hero-background.png") center/cover no-repeat; filter:brightness(.45); }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(110deg, rgba(0,0,0,.85), transparent 55%); }
.hero-inner { position:relative; z-index:1; }
.hero-slider { max-width:620px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;            /* légèrement plus grand */
  margin-bottom: 0.8rem;
  color: #f9fafb;
}

.hero-title {
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);  /* plus gros */
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-text {
  font-size: 1.02rem;
  max-width: 640px;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;                   /* boutons un peu plus espacés */
  margin-bottom: 1.4rem;
}

.hero-badges span {
  display: inline-block;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  margin-right: 0.45rem;
}


.hero-controls { display:flex; align-items:center; gap:.8rem; margin-top:1rem; }
.hero-prev,.hero-next { background:rgba(15,23,42,.9); border:none; color:#fff; width:32px; height:32px; border-radius:50%; cursor:pointer; }
.hero-dots { display:flex; gap:.3rem; }
.hero-dot { width:9px; height:9px; border-radius:999px; border:none; background:rgba(255,255,255,.4); cursor:pointer; }
.hero-dot.active { width:18px; background:var(--accent); }
.hero-slide { display:none; }
.hero-slide.active { display:block; }
.hero .btn {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
}

.btn { position:relative; overflow:hidden; border-radius:999px; padding:.2rem 0.6rem; font-size:.8rem; text-transform:uppercase; letter-spacing:.16em; border:none; cursor:pointer; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-outline { background:transparent; border:1px solid #e5e7eb; color:#fff; }
.btn::after { content:""; position:absolute; top:var(--y); left:var(--x); transform:translate(-50%,-50%); width:0; height:0; border-radius:50%; background:rgba(255,255,255,.6); opacity:0; pointer-events:none; }
.btn.ripple::after { animation:ripple .6s ease-out forwards; }
@keyframes ripple { 0%{width:0;height:0;opacity:.6;} 100%{width:260px;height:260px;opacity:0;} }

.section { padding:4rem 0; }
section#services .container {
    max-width: 60%;    /* limiter a 60% de la largeur */
    width: 100%;
    padding-left: 2rem;  /* optionnel : garder un peu de marge */
    padding-right: 2rem;
}
.section-grey { background:#f3f4f6; }
.section-kicker { text-transform:uppercase; letter-spacing:.18em; font-size:.78rem; color:#6b7280; margin-bottom:.3rem; }
.section-title { font-size:1.8rem; margin-bottom:.8rem; }
.section-intro { max-width:600px; }

.about-grid { display:grid; gap:2rem; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.icon-list,.check-list { margin:1rem 0 1.5rem; padding-left:1.1rem; }
.icon-list li,.check-list li { margin-bottom:.4rem; }
.about-highlight { background:#111827; color:#fff; border-radius:.75rem; padding:1.2rem; margin-bottom:1rem; }
.about-phone { display:block; font-weight:700; margin:.4rem 0; font-size:1.1rem; color:#fff; text-decoration:none; }
.about-block { background:#f9fafb; border-radius:.75rem; padding:1.1rem; }

.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(180px, 1fr)); /* ou ta config actuelle */
    max-width: none;        /* optionnel : recentre la grille */
    margin: 0 auto;
}

.service-card--wide {
    grid-column: span 2;
}
.service-card {
  background: radial-gradient(circle at top, rgba(255, 59, 24, 0.14), var(--bg-elevated));
  border-radius: 1rem;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-subtle);
  text-align: center;                 /* centrage du contenu */
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card--wide {
    grid-column: span 2;
}
.service-card--wide .service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-card--wide .service-icon img {
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.service-card h3 {
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.service-card li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.service-card li::before {
  content: "• ";
  color: var(--accent);
}
/* halo rouge discret au survol */
.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(255, 59, 24, 0.23), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* effet hover */
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 59, 24, 0.6);
}

.service-card:hover::before {
  opacity: 1;
}
/* make the whole card a real link and accessible */
.service-card { cursor: pointer; }
.service-card > a.card-link { display:block; width:100%; height:100%; color:inherit; text-decoration:none; }
.service-card > a.card-link:focus { outline: 3px solid rgba(255,59,24,0.18); outline-offset:6px; border-radius:1rem; }
.service-card .service-icon img { transition: transform .35s ease; }
.service-card:hover .service-icon img { transform: scale(1.03); }.service-icon {
  margin-bottom: 0.75rem;
  overflow: hidden;          /* masque ce qui dépasse (crop) */
  border-radius: 0.5rem;     /* cohérent avec la card */
}
.service-icon img {
  display: block;
  width: 100%;
  height: 180px;             /* ajuste la valeur selon le rendu souhaité */
  object-fit: cover;         /* remplit le cadre en recadrant si besoin */
  object-position: center;   /* centre la zone visible */
}

.contact-grid { display:grid; gap:2rem; grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr); }

  /* modern contact form */
  .contact-box {
    background: linear-gradient(180deg,#ffffff,#f8fafc);
    border-radius: 1rem;
    padding: 1.6rem;
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
    border: 1px solid rgba(17,24,39,0.04);
  }

  .contact-box form { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
  .contact-box .field { display:flex; flex-direction:column; gap:.35rem; }
  label { font-size:.78rem; color:#374151; font-weight:600; margin-bottom:0.2rem; }

  input, select, textarea {
    width:100%;
    padding:.75rem .9rem;
    border-radius:.65rem;
    border:1px solid #e6e9ef;
    background:#fff;
    box-shadow: inset 0 1px 0 rgba(2,6,23,0.02);
    font-size:.95rem;
    transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  }

  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(255,59,24,0.08);
    transform: translateY(-1px);
  }

  textarea { min-height: 120px; resize: vertical; grid-column: 1 / -1; }
  .full-width { grid-column: 1 / -1; }

  button[type="submit"] {
    width:100%;
    padding:.9rem 1rem;
    border-radius:.75rem;
    border:none;
    background:var(--accent);
    color:#fff;
    font-weight:700;
    box-shadow: 0 10px 28px rgba(255,59,24,0.16);
    cursor:pointer;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,59,24,0.22); }

  .small-print { font-size:.75rem; color:#6b7280; margin-top:.6rem; grid-column: 1 / -1; }

  @media (max-width:900px) {
    .contact-box form { grid-template-columns: 1fr; }
    textarea { min-height: 160px; }
    .full-width { grid-column: auto; }
        .service-card--wide .service-icon img {
        max-height: 150px;  /* augmente la hauteur */
    }
  }

  /* Unified contact panel */
  .contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: start;
    margin-top: 0.8rem;
  }
  .contact-info { padding: 1.4rem; }
  .contact-info .section-title { margin-bottom: .6rem; }
  .contact-sub { color: #6b7280; margin-bottom: 1.1rem; }

  .contact-cards { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: .6rem; }
  .contact-card { display:flex; gap:.9rem; align-items:center; background:rgba(15,23,42,0.03); padding:.75rem 1rem; border-radius:.6rem; border:1px solid rgba(15,23,42,0.04); }
  .contact-card .card-icon { font-size:1.4rem; }
  .contact-card .card-title { font-weight:700; color:#111827; margin-bottom:.2rem; }

  .contact-form { padding: 1rem; }

  @media (max-width:900px) {
        .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card,
    .service-card--wide {
        grid-column: auto;          /* on annule le span 2 */
    }

    .service-card--wide {
        grid-column: 1 / -1;        /* prend les 2 colonnes, mais les autres restent normales */
    }
    .contact-panel { grid-template-columns: 1fr; }
    .contact-info { text-align:center; }
    .contact-card { justify-content:center; }
    .contact-card .card-title { margin-bottom:0; }
    .logo-center { top: 20px; }
  }
.site-footer { background:#111827; color:#9ca3af; padding:1.3rem 0; font-size:.8rem; }
.footer-inner { text-align:center; }

@media (max-width:900px) {
  .header-inner { position: relative; padding: 1rem 0; min-height: 120px; }

  /* center burger in header vertically */
  .burger { display:flex; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:80; width:52px; height:52px; align-items:center; justify-content:center; background:transparent; border:none; }
  .burger span { width:26px; height:2px; background:#111827; border-radius:2px; transition: transform .28s ease, opacity .2s ease; }
  .burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* full-screen nav overlay; reserve space at top for header/logo */
  .main-nav {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* start below header/logo */
    background: rgba(0,0,0,0.85);
    padding: 200px 1rem 2.5rem; /* reserve more space on top for bigger logo */
    transform: translateY(-4%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    flex-direction: column;
    z-index: 70;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .main-nav ul { list-style: none; display:flex; flex-direction: column; gap: 1.5rem; align-items: center; padding: 0; margin: 0; margin-top: 18px; }
  .main-nav a { color: #fff; font-size: 1.2rem; font-weight:600; text-decoration: none; text-transform: none; letter-spacing: .02em; padding: .6rem 1rem; border-radius: .5rem; display:block; }

  /* place logo centered at top and larger above nav items */
  .logo-center { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); margin: 0; pointer-events: none; z-index:80; }
  .logo-center img { height: 160px; }

  /* reset margins from desktop nav columns so lists stack centered */
  .nav-left, .nav-right { display: block; margin: 0; padding: 0; width: 100%; text-align: center; }
  .nav-left li, .nav-right li { list-style: none; }

  .header-quote { display: none; }
  .about-grid, .contact-grid, .services-grid { grid-template-columns: 1fr; }
}

@media (max-width:480px) {

section#services .container {
    max-width: 100%;    /* limiter a 100% de la largeur */
    width: 100%;
}
      .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card--wide .service-icon img {
        max-height: 100px;  /* augmente la hauteur */
    }
    .service-card,
    .service-card--wide {
        grid-column: auto;          /* toutes les cartes 1 par ligne */
    }
  /* Make topbar wrap and avoid horizontal overflow on small phones */
  .topbar-inner { padding: 0.4rem 0.6rem; }
  .topbar-left { display:flex; flex-wrap:wrap; gap:0.4rem; align-items:center; width:100%; }
  .topbar-left span { margin-right:0; flex: 1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:0.78rem; }
  .topbar-left .topbar-phone { flex:0 0 auto; white-space:nowrap; }
  /* Make the CTA a single block with two lines: "DEVIS" / "GRATUIT" */
  .topbar-left .topbar-cta {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    min-height: 56px;
    border-radius: .6rem;
    font-weight: 700;
    white-space: normal; /* allow the <br> to force a new line */
    text-transform: uppercase;
    text-align: center;
  }
  .topbar-left .topbar-cta br { display: block; line-height: 0.8; }
  .topbar { overflow:hidden; }
}

.status-modal {
  position: fixed;
  inset: 0;
  display: none;              /* important */
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.status-modal.show {
  display: flex;              /* devient un overlay centré */
}

.status-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.status-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 90%;
}

.status-modal-content {
  background: #111827;                 /* fond sombre */
  border-radius: 0.75rem;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #f9fafb;                      /* texte principal clair */
}

.status-modal-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: #ffffff;                      /* titre encore plus blanc */
}

.status-modal-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #999999;                      /* texte du message */
}


    .page-hero {
      position: relative;
      padding: 5rem 0 4rem;
      background: radial-gradient(circle at top left, rgba(255,59,24,0.3), #0b0b10);
      color: #f9fafb;
      overflow: hidden;
    }
    .page-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url('images/hero-background.png') center/cover no-repeat;
      opacity: 0.18;
      mix-blend-mode: screen;
    }
    .page-hero-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
      gap: 2.5rem;
      align-items: center;
    }
    .page-badge {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      padding: 0.25rem 0.9rem;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      font-size: .8rem;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .page-title {
      font-size: clamp(2.2rem, 3.4vw, 3rem);
      margin: 1rem 0 .7rem;
    }
    .page-hero p {
      max-width: 600px;
      font-size: .98rem;
      color: #e5e7eb;
    }
    .page-stats {
      display: flex;
      gap: 1.5rem;
      margin-top: 1.5rem;
      flex-wrap: wrap;
    }
    .page-stat {
      min-width: 120px;
      padding: .7rem 1rem;
      border-radius: .75rem;
      background: rgba(15,23,42,0.92);
      border: 1px solid rgba(148,163,184,0.4);
      text-align: left;
      font-size: .8rem;
    }
    .page-stat strong {
      display: block;
      font-size: 1.2rem;
      margin-bottom: .1rem;
    }
    .page-aside {
      background: rgba(15,23,42,0.92);
      border-radius: 1rem;
      padding: 1.5rem 1.3rem;
      border: 1px solid rgba(248,250,252,0.2);
      box-shadow: 0 24px 60px rgba(0,0,0,0.75);
    }
    .page-aside h3 {
      margin-bottom: .6rem;
      font-size: 1.1rem;
    }
    .page-aside ul {
      margin: .5rem 0 1rem;
      padding-left: 1rem;
      font-size: .86rem;
      color: #cbd5f5;
    }
    .page-aside li {
      margin-bottom: .35rem;
    } 

    .page-section {
      padding: 3.5rem 0 4rem;
      background: #f3f4f6;
    }
    .page-grid {
      display: grid;
      grid-template-columns: minmax(0,1.5fr) minmax(0,1.1fr);
      gap: 2.5rem;
      align-items: flex-start;
    }
    .page-familles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
      gap: 1.3rem;
      margin-top: 1.5rem;
    }
    .page-card {
      background: #ffffff;
      border-radius: .9rem;
      padding: 1rem 1rem 1.1rem;
      box-shadow: 0 16px 40px rgba(15,23,42,0.14);
      border: 1px solid #e5e7eb;
      display: grid;
      grid-template-rows: auto auto 1fr;
      gap: .45rem;
    }
    .page-card img {
      width: 100%;
      height: 120px;
      object-fit: cover;
      border-radius: .7rem;
    }
    .page-card h3 {
      font-size: .98rem;
      text-transform: uppercase;
      letter-spacing: .14em;
    }
    .page-card p {
      font-size: .86rem;
      color: #4b5563;
    }
    .page-tags {
      display: flex;
      flex-wrap: wrap;
      gap: .25rem;
      margin-top: .2rem;
    }
    .page-tag {
      font-size: .72rem;
      padding: .15rem .5rem;
      border-radius: 999px;
      background: #fee2e2;
      color: #b91c1c;
    }

    .page-lateral {
      background: #111827;
      color: #e5e7eb;
      border-radius: 1rem;
      padding: 1.5rem 1.4rem;
      box-shadow: 0 22px 50px rgba(15,23,42,0.65);
    }
    .page-lateral h2 {
      color: #f9fafb;
      margin-bottom: .6rem;
    }
    .page-lateral ul {
      margin: .4rem 0 1rem;
      padding-left: 1.1rem;
      font-size: .86rem;
    }
    .page-lateral li {
      margin-bottom: .3rem;
    }

    @media (max-width: 900px) {
      .page-hero-inner,
      .page-grid {
        grid-template-columns: 1fr;
      }
    }