/* CP Prestation's — feuille de styles du site public
   Système de design traduit depuis la maquette (tokens de couleur, typo, composants). */

@import url('https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700;800&family=Barlow:wght@400;500;600;700&family=Caveat:wght@600&display=swap');

:root {
  --cp-blue: #0E47A2;
  --cp-blue-700: #0A367E;
  --cp-blue-100: #DCE6F5;
  --cp-orange: #FD5D0E;
  --cp-orange-700: #C9430A;
  --cp-orange-100: #FFE5D6;
  --cp-yellow: #F2A100;
  --cp-yellow-700: #C77F00;
  --cp-yellow-100: #FCEFCC;
  --cp-green: #3FA62B;
  --cp-green-700: #2C7A1E;
  --cp-green-100: #DBF0D6;

  --cp-white: #FFFFFF;
  --cp-n50: #F6F7F8;
  --cp-n100: #ECEEF0;
  --cp-n200: #D9DCDF;
  --cp-n300: #C2C6CA;
  --cp-n400: #9DA2A7;
  --cp-n500: #777B80;
  --cp-n600: #565A5E;
  --cp-n700: #3D4044;
  --cp-n800: #2E2F31;
  --cp-n900: #1A1B1D;
  --cp-black: #15161A;

  --cp-danger: #D23F1E;
  --font-display: 'Saira', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 3px rgba(22,23,25,.08);
  --shadow-sm: 0 2px 10px rgba(22,23,25,.10);
  --shadow-md: 0 12px 28px rgba(22,23,25,.12);
  --shadow-lg: 0 18px 40px rgba(22,23,25,.18);
  --cp-stripe-overlay: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 26px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Filet de sécurité : aucun élément ne peut forcer un défilement horizontal
   de la page, quel que soit l'écran. Les media queries ci-dessous traitent
   les causes ; ceci empêche qu'une cause non prévue passe inaperçue. */
html { overflow-x: hidden; width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--cp-n800);
  background: var(--cp-white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.wrap-article { max-width: 760px; margin: 0 auto; padding: 0 28px; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { padding: 84px 0; background: var(--cp-n50); border-top: 1px solid var(--cp-n100); border-bottom: 1px solid var(--cp-n100); }
.section-dark { background: var(--cp-black); color: var(--cp-white); position: relative; overflow: hidden; }
.section-dark .stripe-overlay { opacity: .07; }

.stripe-overlay {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: var(--cp-stripe-overlay);
}

.overline {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
}
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.kicker-bar { width: 28px; height: 3px; border-radius: 2px; }
.text-blue { color: var(--cp-blue); } .bg-blue { background: var(--cp-blue); }
.text-orange { color: var(--cp-orange); } .bg-orange { background: var(--cp-orange); }
.text-yellow { color: var(--cp-yellow-700); } .bg-yellow { background: var(--cp-yellow); }
.text-green { color: var(--cp-green); } .bg-green { background: var(--cp-green); }
.text-muted { color: var(--cp-n600); }
.text-subtle { color: var(--cp-n400); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; line-height: 1;
  border-radius: var(--radius-md); cursor: pointer; border: 1px solid transparent;
  padding: 11px 20px; font-size: 15px; min-height: 44px;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 34px; gap: 6px; }
.btn-lg { padding: 15px 28px; font-size: 17px; min-height: 54px; gap: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cp-blue); color: #fff; border-color: var(--cp-blue); box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(.93); }
.btn-accent { background: var(--cp-orange); color: #fff; border-color: var(--cp-orange); box-shadow: 0 4px 14px rgba(253,93,14,.28); }
.btn-accent:hover { background: var(--cp-orange-700); }
.btn-secondary { background: #fff; color: var(--cp-blue); border-color: var(--cp-n300); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--cp-blue); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--cp-n700); border-color: transparent; }
.btn-ghost:hover { background: var(--cp-n100); }
.btn-inverse { background: #fff; color: var(--cp-n900); border-color: #fff; }
.btn-inverse:hover { filter: brightness(.95); }
.btn-icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1200; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--cp-n100);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.nav-brand-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.nav-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-brand-tagline { font-size: 11px; color: var(--cp-n400); letter-spacing: .01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-weight: 500; font-size: 15px; color: var(--cp-n700); padding-bottom: 4px;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s;
}
.nav-links a:hover { color: var(--cp-blue); }
.nav-links a.active { color: var(--cp-blue); font-weight: 600; border-bottom-color: var(--cp-orange); }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone { display: none; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--cp-blue); }
.nav-phone:hover { color: var(--cp-orange); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--cp-orange); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 11px 17px;
  border-radius: 8px; box-shadow: 0 2px 10px rgba(253,93,14,.30); white-space: nowrap;
}
.nav-cta:hover { background: var(--cp-orange-700); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 0 18px; border-top: 1px solid var(--cp-n100); }
.mobile-menu a { padding: 10px 4px; font-weight: 500; color: var(--cp-n700); }
.mobile-menu a.active { color: var(--cp-blue); font-weight: 600; }
.mobile-menu.open { display: flex; }

@media (min-width: 1180px) { .nav-phone { display: inline-flex; } }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; flex-shrink: 0; }
}
/* En dessous de 560px, le slogan n'est plus prioritaire : on le masque et on
   laisse le nom de l'entreprise se réduire au lieu de pousser le reste hors
   de l'écran. */
@media (max-width: 560px) {
  .nav-row { gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-brand-tagline { display: none; }
  .nav-brand-name { max-width: 38vw; }
}
/* En dessous de 400px, le bouton "Devis gratuit" perd son texte et ne garde
   que l'icône : plus la place ne manque jamais, quelle que soit la taille du
   texte affiché dans le nom de l'entreprise. */
@media (max-width: 400px) {
  .nav-cta-label { display: none; }
  .nav-cta { padding: 11px 13px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cp-black); color: #9DA2A7; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; border-bottom: 1px solid #2C2E33; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 9px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.footer-col-title { color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: flex-start; gap: 9px; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 8px; border: 1px solid #2C2E33; color: #C7CBD0;
}
.social-btn:hover { background: var(--cp-blue); border-color: var(--cp-blue); color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: 0; }
.section-heading.center { text-align: center; }
.section-heading.center .kicker { justify-content: center; }
.section-heading h2 { font-weight: 800; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.section-heading p { font-size: 16.5px; line-height: 1.6; color: var(--cp-n600); margin: 14px auto 0; max-width: 600px; }
.section-heading.center p { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--cp-n200); border-radius: var(--radius-lg); }
.card-pad { padding: 26px; }
.value-card { border-top: 4px solid var(--cp-blue); }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  border-radius: 11px; margin-bottom: 18px;
}
.icon-chip-sm { width: 42px; height: 42px; border-radius: 10px; }

.service-card { display: block; background: #fff; border: 1px solid var(--cp-n200); border-radius: var(--radius-lg); padding: 30px; transition: transform .18s, box-shadow .18s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; }
.service-card .tag-pill { font-size: 12.5px; background: var(--cp-n100); border-radius: 6px; padding: 4px 10px; color: var(--cp-n700); }

.svc-mini-card { display: flex; flex-direction: column; align-items: center; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--cp-n200); transition: transform .18s, box-shadow .18s; text-align: center; }
.svc-mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-mini-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 24px 0 14px; }

.stat-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.stat-item { text-align: left; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.stat-label { font-size: 13.5px; color: #C7CBD0; margin-top: 6px; }

.project-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--cp-n200); box-shadow: var(--shadow-xs); transition: transform .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-thumb { aspect-ratio: 3/2; position: relative; display: flex; align-items: center; justify-content: center; filter: saturate(.92); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .tag-floating {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  color: #fff; font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 999px;
}
.project-body { padding: 18px; }
.project-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.project-meta { font-size: 13.5px; color: var(--cp-n600); display: flex; align-items: center; gap: 6px; }

.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cp-n200); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-thumb { aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center; filter: saturate(.92); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-date { font-size: 12.5px; color: var(--cp-n400); margin-bottom: 9px; }
.article-card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.article-card-excerpt { font-size: 14px; line-height: 1.55; color: var(--cp-n600); margin: 0 0 16px; flex: 1; }
.read-more { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--cp-blue); display: inline-flex; align-items: center; gap: 6px; }

.testimonial-card { background: #fff; border: 1px solid var(--cp-n200); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.testimonial-card .stars { display: flex; gap: 2px; color: var(--cp-yellow); margin-bottom: 14px; }
.testimonial-card p { font-size: 15.5px; line-height: 1.6; color: var(--cp-n700); margin: 0 0 22px; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimonial-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.testimonial-loc { font-size: 13px; color: var(--cp-n400); }

.team-card { background: #fff; border: 1px solid var(--cp-n200); border-radius: var(--radius-lg); overflow: hidden; }
.team-photo { aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 22px; }

/* ---------- Placeholders (pas encore de photo) ---------- */
.ph-thumb { position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); }
.ph-thumb .stripe-overlay { opacity: .14; }
.ph-blue { background: linear-gradient(160deg, var(--cp-blue), var(--cp-blue-700)); }
.ph-orange { background: linear-gradient(160deg, var(--cp-orange), var(--cp-orange-700)); }
.ph-yellow { background: linear-gradient(160deg, var(--cp-yellow), var(--cp-yellow-700)); }
.ph-green { background: linear-gradient(160deg, var(--cp-green), var(--cp-green-700)); }
.ph-dark { background: linear-gradient(160deg, #3A3C3F, #15161A); }

/* ---------- Badges / pills ---------- */
.badge { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; color: #fff; }
.filter-pill {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 9px 17px; border-radius: 8px;
  cursor: pointer; border: 1px solid var(--cp-n200); background: #fff; color: var(--cp-n700); transition: all .15s;
}
.filter-pill:hover { border-color: var(--cp-blue); }
.filter-pill.active { border-color: var(--cp-blue); background: var(--cp-blue); color: #fff; }
.zone-pill { font-size: 13.5px; background: #fff; border: 1px solid var(--cp-n200); border-radius: 999px; padding: 6px 13px; }

/* ---------- Hero ---------- */
.hero-light { position: relative; background: var(--cp-n50); border-bottom: 1px solid var(--cp-n100); overflow: hidden; }
.hero-light::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -18%;
  width: 95%;
  height: 150%;
  background-color: var(--cp-blue);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 54% 100%);
  pointer-events: none;
}
.hero-light::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -18%;
  width: 95%;
  height: 150%;
  background-image: var(--cp-stripe-overlay);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 54% 100%);
  opacity: .12;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: 78px 0 84px; }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.floating-card { position: absolute; background: #fff; border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 11px; }
.page-header { color: #fff; position: relative; overflow: hidden; padding: 64px 0 58px; }
.breadcrumb { font-size: 13.5px; color: #9DA2A7; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.page-header h1 { font-weight: 800; font-size: 44px; line-height: 1.07; letter-spacing: -.025em; margin-bottom: 16px; }
.page-header p { font-size: 18px; line-height: 1.55; color: #C7CBD0; max-width: 620px; margin: 0; }
.page-header-image { position: relative; height: 360px; display: flex; align-items: flex-end; overflow: hidden; }
.page-header-image .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,21,24,.78), transparent 58%); }
.page-header-image .wrap { position: relative; padding-bottom: 28px; color: #fff; }

@media (max-width: 900px) {
  .hero-light::before { top: -16%; right: -42%; width: 134%; height: 92%; }
  .hero-light::after { top: -16%; right: -42%; width: 134%; height: 92%; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--cp-n700); margin-bottom: 7px; }
.field-input, input.field-input, textarea.field-input, select.field-input {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--cp-n800); background: #fff;
  border: 1px solid var(--cp-n200); border-radius: 8px; padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--cp-blue); box-shadow: 0 0 0 3px rgba(14,71,162,.14); }
.field-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 13px; color: var(--cp-n400); margin-top: 4px; }
.checkbox-line { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--cp-n600); line-height: 1.5; cursor: pointer; }
.checkbox-line input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--cp-blue); flex-shrink: 0; }
.dropzone { border: 1.5px dashed var(--cp-n300); border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; background: #FAFBFC; transition: all .15s; }
.dropzone:hover { border-color: var(--cp-blue); background: #F4F7FC; }
.dropzone input { display: none; }

@media (max-width: 680px) { .field-row2 { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion (natif <details>) ---------- */
.faq-item { background: #fff; border: 1px solid var(--cp-n200); border-radius: 12px; overflow: hidden; margin-bottom: 11px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 19px 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 600;
  font-size: 16.5px; color: var(--cp-n800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; flex-shrink: 0; color: var(--cp-n400); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: var(--cp-n600); }
.faq-group-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }

/* ---------- Devis stepper ---------- */
.stepper { display: flex; align-items: center; margin-bottom: 30px; }
.stepper-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stepper-dot {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; border: 2px solid var(--cp-n200);
  background: #fff; color: var(--cp-n400); transition: all .2s;
}
.stepper-dot.active, .stepper-dot.done { background: var(--cp-blue); color: #fff; border-color: var(--cp-blue); }
.stepper-label { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--cp-n400); }
.stepper-label.active { color: var(--cp-blue); }
.stepper-bar { flex: 0 0 40px; height: 2px; background: var(--cp-n200); margin-bottom: 24px; }
.stepper-bar.done { background: var(--cp-blue); }
.devis-card { background: #fff; border: 1px solid var(--cp-n200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.devis-step { display: none; }
.devis-step.active { display: block; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.chip-option {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 10px;
  border-radius: 11px; cursor: pointer; background: #fff; border: 1.5px solid var(--cp-n200); color: var(--cp-n700);
  transition: all .15s;
}
.chip-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-option.selected, .chip-option:has(input:checked) { background: rgba(14,71,162,.07); border-color: var(--cp-blue); color: var(--cp-blue); }
.devis-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--cp-n100); }
.devis-reassure { display: flex; justify-content: center; gap: 26px; margin-top: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--cp-n600); }
.devis-reassure span { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 560px) { .chip-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Success panel ---------- */
.success-panel { background: #F1F8EE; border: 1px solid #CDE6C3; border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.success-panel.lg { padding: 54px 40px; }
.success-circle { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cp-green); margin-bottom: 18px; color: #fff; }
.success-circle.lg { width: 74px; height: 74px; }

/* ---------- Map mock ---------- */
.map-mock { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--cp-n200); background: #E8EBEE; aspect-ratio: 16/11; box-shadow: var(--shadow-xs); }
.map-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(#D5DAE0 1px, transparent 1px), linear-gradient(90deg, #D5DAE0 1px, transparent 1px); background-size: 40px 40px; opacity: .7; }
.map-pin-main { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; background: var(--cp-orange); transform: rotate(-45deg); box-shadow: 0 6px 16px rgba(253,93,14,.4); }
.map-pin-main svg { transform: rotate(45deg); }
.map-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; background: #fff; padding: 2px 9px; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }

/* ---------- Article body (markdown) ---------- */
.prose { font-size: 17px; line-height: 1.7; color: var(--cp-n700); }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 38px 0 16px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 30px 0 12px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--cp-n900); }
.prose blockquote { background: var(--cp-n50); border-left: 4px solid var(--cp-orange); border-radius: 10px; padding: 22px 24px; margin: 30px 0; font-style: italic; color: var(--cp-n800); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { color: var(--cp-blue); text-decoration: underline; }
.lede { font-size: 19px !important; line-height: 1.6 !important; color: var(--cp-n600) !important; font-weight: 500; }

/* ---------- Gallery / avant-après ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.avant-apres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 34px; }
.avant-apres-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.avant-apres-item img { width: 100%; height: 100%; object-fit: cover; }
.avant-apres-tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; color: #fff; }

@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .avant-apres-grid { grid-template-columns: 1fr; } }

/* ---------- Misc layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flex-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gap-10 { gap: 10px; } .gap-14 { gap: 14px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-44 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.sticky-aside { position: sticky; top: 96px; }
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--cp-blue); padding: 54px; color: #fff; }
.cta-banner.center { text-align: center; }
.cta-banner h2 { font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 14px; }
.cta-banner p { font-size: 17px; opacity: .92; margin: 0 auto 26px; }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.signature { font-family: 'Caveat', cursive; font-weight: 600; }

@media (max-width: 980px) { .nav-links { display: none; } }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr !important; }
  /* Plusieurs pages (accueil, services, contact, à propos, détail service/
     réalisation) fixent des proportions de colonnes en `style="grid-template-
     columns:…"` directement dans le HTML. Un style inline gagne toujours
     contre une règle de classe classique — seul un `!important` ici peut le
     remplacer. Sans ce `!important`, la carte Leaflet et le portrait du
     fondateur restent forcés dans une colonne de ~140px sur mobile, illisibles
     et écrasés. C'est le correctif du bug. */
  .grid-2,
  .grid-2.body-grid { grid-template-columns: 1fr !important; }
  .sticky-aside { position: static; top: auto; }
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 24px; }
  .page-header h1 { font-size: 32px; }
  .cta-banner { padding: 34px 24px; }
}
@media (max-width: 480px) {
  .wrap, .wrap-narrow, .wrap-article { padding: 0 18px; }
}

/* ---------- Diaporama héros ---------- */
.hero-slideshow { position: relative; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--cp-blue), var(--cp-blue-700)); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,71,162,.25) 0%, rgba(15,16,17,.30) 100%); pointer-events: none; }
.hero-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; color: rgba(255,255,255,.55); }
.hero-slide-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.hero-slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; padding: 0; transition: background .25s, transform .25s; }
.hero-slide-dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Vue switcher (services / réalisations) ---------- */
.vue-switcher { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 22px 0; }
.vue-switcher a { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--cp-n500); padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; letter-spacing: .01em; }
.vue-switcher a.active { color: var(--cp-blue); border-color: var(--cp-orange); }
.vue-switcher a:hover:not(.active) { color: var(--cp-n800); }
.vue-switcher-wrap { border-bottom: 1px solid var(--cp-n100); }

/* ---------- Carte Leaflet ---------- */
.map-real { position: relative; z-index: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--cp-n200); box-shadow: var(--shadow-xs); }
.map-real .leaflet-container { border-radius: var(--radius-lg); }
.map-real .leaflet-pane,
.map-real .leaflet-top,
.map-real .leaflet-bottom { z-index: 1; }
.leaflet-popup-content b { font-family: var(--font-display); color: var(--cp-blue); }

/* ---------- Bannière avec photo ---------- */
.banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,71,162,.72), rgba(20,21,24,.80)); }
.banner-overlay-light { background: linear-gradient(to bottom, rgba(20,21,24,.55) 0%, rgba(20,21,24,.78) 100%); }

/* ---------- Avis Google ---------- */
.google-reviews-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--cp-n200); border-radius: 10px; padding: 10px 16px; font-size: 14px; }
.google-reviews-badge .stars { color: #FBBC04; display: flex; gap: 2px; }
.google-reviews-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--cp-blue); }
.google-reviews-link:hover { color: var(--cp-blue-700); }

/* ---------- 404 ---------- */
.error-page { padding: 110px 0; text-align: center; }
.error-page .code { font-family: var(--font-display); font-weight: 800; font-size: 90px; color: var(--cp-blue); line-height: 1; }
