/* =====================================================================
   JBG COUVERTURE — Feuille de styles principale
   Artisan couvreur à Vannes (Morbihan)
   HTML / CSS / JS pur — aucune dépendance
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. VARIABLES (Design system)
--------------------------------------------------------------------- */
:root {
  /* Couleurs de base — ardoise / anthracite */
  --color-anthracite: #1f2933;
  --color-slate: #2d3a45;
  --color-slate-light: #3d4d5a;

  /* Fond blanc cassé */
  --color-bg: #f7f5f2;
  --color-bg-alt: #efebe5;
  --color-white: #ffffff;

  /* Accent terracotta / cuivre chaud */
  --color-accent: #c75b39;
  --color-accent-dark: #a8472a;
  --color-accent-light: #e07a57;

  /* Texte */
  --color-text: #232b32;
  --color-text-muted: #5c6770;
  --color-text-light: #8a949c;
  --color-text-invert: #f7f5f2;

  /* Bordures & ombres */
  --color-border: #e2ddd6;
  --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.08);
  --shadow-md: 0 6px 20px rgba(31, 41, 51, 0.10);
  --shadow-lg: 0 18px 48px rgba(31, 41, 51, 0.16);
  --shadow-accent: 0 8px 24px rgba(199, 91, 57, 0.30);

  /* Typographie */
  --font-heading: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Mise en page */
  --container: 1200px;
  --container-narrow: 820px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-anthracite);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { color: var(--color-text-muted); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessibilité : lien d'évitement */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------------------------------------------------------------------
   3. UTILITAIRES DE MISE EN PAGE
--------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-anthracite);
  color: var(--color-text-invert);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: rgba(247, 245, 242, 0.78); }

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}
.section--dark .eyebrow { color: var(--color-accent-light); }

.lead {
  font-size: 1.15rem;
  margin-top: 1rem;
}

.section-geo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 0.6rem;
}

/* ---------------------------------------------------------------------
   4. BOUTONS
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(199, 91, 57, 0.40);
}

.btn--ghost {
  background: transparent;
  color: var(--color-anthracite);
  border-color: var(--color-anthracite);
}
.btn--ghost:hover {
  background: var(--color-anthracite);
  color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn--light:hover {
  background: #fff;
  color: var(--color-anthracite);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   5. HEADER & NAVIGATION
--------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(247, 245, 242, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  transition: height var(--transition);
}
.site-header.scrolled .header-inner { height: 64px; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-anthracite);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo:hover { color: var(--color-anthracite); }
.logo__icon {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--color-accent);
}
.logo__text { display: flex; flex-direction: column; }
.logo__name {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.logo__tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* Navigation principale */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover { color: var(--color-anthracite); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--color-accent); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Bouton appel header */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-accent);
  transition: transform var(--transition), background var(--transition);
}
.btn-call:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-call svg { width: 18px; height: 18px; flex: none; }

/* Burger */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--color-anthracite);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) rotate(-45deg); top: 0; }

/* ---------------------------------------------------------------------
   6. HERO
--------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(20, 27, 33, 0.86) 0%,
    rgba(20, 27, 33, 0.62) 45%,
    rgba(20, 27, 33, 0.30) 100%
  );
}
.hero__inner { max-width: 720px; padding-block: 4rem; }
.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero__sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__badges svg { width: 18px; height: 18px; color: var(--color-accent-light); flex: none; }

/* ---------------------------------------------------------------------
   7. BANDEAU DE RÉASSURANCE
--------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-anthracite);
  color: var(--color-text-invert);
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-item svg {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--color-accent-light);
}
.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: #fff;
}
.trust-item span {
  font-size: 0.82rem;
  color: rgba(247, 245, 242, 0.65);
}

/* ---------------------------------------------------------------------
   8. CARTES DE SERVICES
--------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  color: inherit;
}
a.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  color: inherit;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(199, 91, 57, 0.10);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.98rem; margin-bottom: 1rem; }
.service-card .card-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card .card-link svg {
  width: 16px; height: 16px;
  transition: transform var(--transition);
}
a.service-card:hover .card-link svg { transform: translateX(4px); }

/* Variante : carte avec photo en fond d'écran */
.service-card--photo {
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  background-color: var(--color-slate);
  background-size: cover;
  background-position: center;
  min-height: 280px;
  isolation: isolate;
}
.service-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 27, 33, 0.92) 0%, rgba(20, 27, 33, 0.62) 48%, rgba(20, 27, 33, 0.30) 100%);
  transition: background var(--transition);
}
.service-card--photo > * { position: relative; }
a.service-card--photo:hover { color: #fff; border-color: transparent; }
a.service-card--photo:hover::before {
  background: linear-gradient(to top, rgba(199, 91, 57, 0.92) 0%, rgba(20, 27, 33, 0.65) 55%, rgba(20, 27, 33, 0.30) 100%);
}
.service-card--photo .service-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(2px);
}
.service-card--photo h3 { color: #fff; }
.service-card--photo p { color: rgba(255, 255, 255, 0.88); }
.service-card--photo .card-link { color: #fff; }

.benefit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-accent-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.benefit svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------------
   9. SECTION SERVICE DÉTAILLÉE (services.html)
--------------------------------------------------------------------- */
.service-detail {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-detail:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-detail__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(199, 91, 57, 0.10);
  color: var(--color-accent);
}
.service-detail__icon svg { width: 34px; height: 34px; }
.service-detail h3 { margin-bottom: 0.6rem; }
.service-detail__list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.service-detail__list svg {
  width: 18px; height: 18px;
  color: var(--color-accent);
  flex: none; margin-top: 4px;
}

/* Média (photo) dans une rubrique de service */
.service-detail__media {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.service-detail__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* Galerie en étapes (Avant · Pendant · Après) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.steps figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.steps figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.steps img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.steps figcaption {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-align: center;
  padding: 0.6rem 0.5rem;
}
.steps figure:nth-child(2) figcaption { color: var(--color-slate); }

/* Paire de photos pleines (avant / après sans slider) */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.duo figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.duo figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.duo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.duo figcaption {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-align: center;
  padding: 0.6rem 0.5rem;
}
.duo figure:nth-child(2) figcaption { color: var(--color-slate); }

/* Photo unique (sans avant/après) dans une réalisation */
.solo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.solo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Slider avant/après intégré dans une rubrique */
.service-detail .ba-slider { margin-top: 1.5rem; }
.service-detail .ba-caption { text-align: left; }

/* Liste "autres prestations" */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-anthracite);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.chip:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.chip svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; }

/* ---------------------------------------------------------------------
   10. COMPOSANT AVANT / APRÈS
--------------------------------------------------------------------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
  background: var(--color-slate);
  cursor: ew-resize;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Image "après" en dessous (visible à droite) */
.ba-after { z-index: 1; }
/* Image "avant" au-dessus, masquée par clip à droite */
.ba-before {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  /* la largeur visible est pilotée en JS via --pos */
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 27, 33, 0.78);
  color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; background: var(--color-accent); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 4;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  pointer-events: none;
}
.ba-handle__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--color-anthracite);
}
.ba-handle__grip svg { width: 26px; height: 26px; }
.ba-slider:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }

.ba-caption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  text-align: center;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

/* Mise en page hero accueil : avant/après en vedette */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ---------------------------------------------------------------------
   11. "POURQUOI NOUS FAIRE CONFIANCE"
--------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-item {
  padding: 1.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition);
}
.why-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); }
.why-item__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(199, 91, 57, 0.18);
  color: var(--color-accent-light);
  margin-bottom: 1.1rem;
}
.why-item__icon svg { width: 28px; height: 28px; }
.why-item h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ---------------------------------------------------------------------
   12. CTA FINAL
--------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--color-accent);
  color: #fff;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; max-width: 600px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-top: 0.5rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-lg);
}
.cta-band .btn--primary:hover { background: var(--color-anthracite); color: #fff; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--color-accent-dark); }

/* ---------------------------------------------------------------------
   13. PAGE BANNER (sous-pages)
--------------------------------------------------------------------- */
.page-banner {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--color-anthracite);
  color: #fff;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(199, 91, 57, 0.30), transparent 50%);
  pointer-events: none;
}
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin-bottom: 0.75rem; }
.page-banner p { color: rgba(247, 245, 242, 0.82); max-width: 640px; font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(247, 245, 242, 0.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-accent-light); }
.breadcrumb span { margin-inline: 0.4rem; }

/* ---------------------------------------------------------------------
   14. FORMULAIRE CONTACT
--------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: var(--color-anthracite);
}
.field .req { color: var(--color-accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  min-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(199, 91, 57, 0.15);
}
.field .error-msg {
  display: none;
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--color-accent-dark); }
.field.invalid .error-msg { display: block; }

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}
.form-feedback {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-feedback.success {
  display: block;
  background: rgba(46, 139, 87, 0.12);
  color: #1e6e44;
  border: 1px solid rgba(46, 139, 87, 0.3);
}
.form-feedback.error {
  display: block;
  background: rgba(199, 91, 57, 0.12);
  color: #a23c1f;
  border: 1px solid rgba(199, 91, 57, 0.3);
}

/* Bloc coordonnées */
.contact-info { display: grid; gap: 1.25rem; }
.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}
.info-line:last-child { margin-bottom: 0; }
.info-line svg { width: 22px; height: 22px; color: var(--color-accent); flex: none; margin-top: 3px; }
.info-line a { color: var(--color-anthracite); font-weight: 600; }
.info-line a:hover { color: var(--color-accent); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------------------------------------------------------------------
   15. GALERIE RÉALISATIONS
--------------------------------------------------------------------- */
.realisation-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.realisation-block:hover { box-shadow: var(--shadow-md); }
.realisation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  background: var(--color-bg-alt);
  color: var(--color-slate);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------
   16. FOOTER
--------------------------------------------------------------------- */
.site-footer {
  background: var(--color-anthracite);
  color: rgba(247, 245, 242, 0.75);
  padding-block: 3.5rem 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand .logo .logo__name { color: #fff; }
.footer-brand p { color: rgba(247, 245, 242, 0.7); font-size: 0.95rem; max-width: 320px; }
.footer-credentials {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-credentials span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: rgba(247, 245, 242, 0.85);
}
.footer-credentials svg { width: 15px; height: 15px; color: var(--color-accent-light); }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li {
  color: rgba(247, 245, 242, 0.75);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--color-accent-light); }
.footer-col .info-line svg { color: var(--color-accent-light); }
.footer-col .info-line a { color: rgba(247, 245, 242, 0.9); font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(247, 245, 242, 0.55);
}

/* ---------------------------------------------------------------------
   17. ANIMATIONS — REVEAL ON SCROLL
--------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Décalage en cascade */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------------------------------------------------------------------
   18. RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 860px) {
  /* Navigation mobile */
  .nav-toggle { display: block; order: 3; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--transition);
    padding: 1rem 1.5rem 1.5rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .main-nav a {
    padding: 0.95rem 0.75rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] {
    background: rgba(199, 91, 57, 0.08);
    border-radius: var(--radius-sm);
  }
  .service-detail { grid-template-columns: 1fr; gap: 1rem; }
  .service-detail__icon { width: 56px; height: 56px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps img { aspect-ratio: 4 / 3; }
  .duo { grid-template-columns: 1fr; }
  .duo img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .container { padding-inline: 1.1rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .trust-bar__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .logo__tag { display: none; }
  .btn-call span.full { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   19. PRÉFÉRENCE — MOUVEMENT RÉDUIT
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { height: 100%; }
}
