/* =========================================================================
   PLOMBIER BOULOGNE — STYLES COMMUNS (identiques sur toutes les pages)
   -------------------------------------------------------------------------
   1.  Design tokens (couleurs, typographies, rayons, ombres)
   2.  Reset & base
   3.  Typographie
   4.  Mise en page : container, sections, motifs de fond
   5.  Composants : boutons, badges, listes, icônes
   6.  Header & navigation principale
   7.  Menu mobile (drawer)
   8.  Barre d'appel flottante (téléphone + WhatsApp)
   9.  Hero des pages internes + fil d'Ariane
   10. Composants partagés : pipeline, FAQ, cartes articles, bandeau CTA
   11. Footer
   12. Animations d'apparition & accessibilité du mouvement
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Encre (bleu nuit) : fonds sombres, textes forts */
  --ink-900: #061A2E;
  --ink-800: #0A2540;
  --ink-700: #12365A;
  --ink-600: #1E4B75;

  /* Papier : fonds clairs chaleureux */
  --paper:   #F6F2EB;
  --paper-2: #ECE5D9;
  --white:   #FFFFFF;
  --line:    #DDD3C3;

  /* Cuivre : couleur signature (tuyauterie) — contraste AA avec le blanc */
  --copper:     #B85118;
  --copper-600: #9A4212;
  --copper-300: #F2A266;
  --copper-100: #FBE8D8;

  /* Eau : accents secondaires */
  --water:     #1BA6D6;
  --water-300: #7FD6F2;

  /* Couleurs fonctionnelles */
  --red:      #D93A2B;
  --wa:       #25D366;
  --wa-ink:   #062D17;
  --live:     #35D07F;

  /* Textes */
  --text:      #0F1E2E;
  --muted:     #4D5B6A;
  --on-ink:    #E8EEF5;
  --on-ink-mu: rgba(232, 238, 245, .72);

  /* Typographies */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mise en page */
  --container: 1240px;
  --gutter:    clamp(16px, 4vw, 40px);
  --header-h:  78px;

  /* Rayons & ombres */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 30px;
  --shadow-1: 0 1px 2px rgba(6, 26, 46, .06), 0 10px 28px -14px rgba(6, 26, 46, .22);
  --shadow-2: 0 40px 80px -40px rgba(6, 26, 46, .55);

  /* Courbe d'animation commune */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Permet l'animation de hauteur "auto" (accordéons) là où c'est supporté */
  interpolate-size: allow-keywords;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--copper); color: #fff; }

/* Bloque le scroll de la page quand le menu mobile est ouvert */
html.no-scroll { overflow: hidden; }

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 300;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--copper); color: #fff; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Icônes SVG (sprite) : trait par défaut, variante pleine */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* -------------------------------------------------------------------------
   3. TYPOGRAPHIE
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.015em; }

.section-title { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.section-title em { font-style: normal; color: var(--copper); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* Sur-titre de section : "01 — Nos expertises" façon repère technique */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::after { content: ""; width: 42px; height: 2px; border-radius: 2px; background: currentColor; opacity: .45; }
.eyebrow__num {
  font-family: var(--font-display); font-size: .88rem; font-weight: 800; letter-spacing: 0;
  padding: 6px 9px; border-radius: 8px;
  background: var(--copper-100); color: var(--copper-600);
}

/* -------------------------------------------------------------------------
   4. MISE EN PAGE
   ------------------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--sand  { background: var(--paper-2); }
.section--ink   { background: var(--ink-900); color: var(--on-ink); }
.section--ink .lead { color: var(--on-ink-mu); }
.section--ink .eyebrow { color: var(--copper-300); }
.section--ink .eyebrow__num { background: rgba(242, 162, 102, .14); color: var(--copper-300); }
.section--ink .section-title em { color: var(--copper-300); }

/* En-tête de section */
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px;
}
.section-head--split > :last-child { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 760px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split > :last-child { grid-column: auto; grid-row: auto; justify-self: start; }
}

/* Motif "plan technique" (quadrillage) pour les fonds sombres */
.blueprint {
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* -------------------------------------------------------------------------
   5. COMPOSANTS : BOUTONS, BADGES, LISTES
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-800);
  --btn-fg: #fff;
  --btn-shadow: rgba(6, 26, 46, .5);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 1rem; font-weight: 700; line-height: 1.1; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px var(--btn-shadow); }
.btn:active { transform: translateY(0); }
.btn .icon-arrow { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--copper { --btn-bg: var(--copper); --btn-shadow: rgba(184, 81, 24, .8); }
.btn--copper:hover { --btn-bg: var(--copper-600); }
.btn--light  { --btn-bg: #fff; --btn-fg: var(--ink-800); }
.btn--wa     { --btn-bg: var(--wa); --btn-fg: var(--wa-ink); --btn-shadow: rgba(37, 211, 102, .7); }
.btn--ghost  { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

.btn--sm { font-size: .92rem; padding: .72em 1.1em; }
.btn--lg { font-size: 1.08rem; padding: 1.1em 1.8em; }
.btn--xl { font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.55rem); letter-spacing: -.01em; padding: .85em 1.5em; }

/* Onde lumineuse autour des boutons d'appel */
.btn--pulse::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; border: 2px solid var(--btn-bg);
  animation: btn-ring 2.4s var(--ease) infinite;
}
@keyframes btn-ring {
  0%   { transform: scale(1); opacity: .75; }
  100% { transform: scale(1.18, 1.6); opacity: 0; }
}

/* Lien texte avec flèche */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; color: var(--copper);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Pastille "en ligne" animée */
.live-dot {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: var(--live);
  animation: live 2s infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(53, 208, 127, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

/* Badge de statut (hero) */
.status-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: .9rem; font-weight: 600;
}

/* Liste à puces "check" */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--copper); margin-top: .2em; }
.section--ink .checklist .icon { color: var(--copper-300); }

/* -------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding: 14px var(--gutter) 0;
  pointer-events: none;                       /* seule la barre capte les clics */
  transition: padding .35s var(--ease);
}
.site-header.is-scrolled { padding-top: 8px; }

/* Capsule flottante */
.site-header__bar {
  pointer-events: auto;
  position: relative;
  max-width: 1320px; height: 64px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(6, 26, 46, .78);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: #fff;
  transition: background-color .3s;
}
.site-header.is-scrolled .site-header__bar { background: rgba(6, 26, 46, .93); }

/* Logo : écrou hexagonal cuivre + goutte */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; line-height: 1; }
.brand__mark { width: 42px; height: 42px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(60deg); }
.brand__name { display: grid; gap: 4px; }
.brand__name strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.brand__name span { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-300); }

/* Menu principal */
.main-nav { margin-inline: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .74);
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

/* Page courante : "vanne ouverte" cuivre */
.main-nav a[aria-current] {
  color: #fff;
  background: linear-gradient(180deg, rgba(242, 162, 102, .24), rgba(184, 81, 24, .2));
  box-shadow: inset 0 0 0 1px rgba(242, 162, 102, .5);
}
.main-nav a[aria-current]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper-300); box-shadow: 0 0 12px var(--copper-300);
}
/* Lien Urgence : point rouge clignotant */
.main-nav .nav-urgent::after {
  content: ""; position: absolute; top: 9px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: #FF5A4A;
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* Actions à droite */
.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding-inline: 8px;
  font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .82);
}
.burger {
  display: none; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s;
}
.burger:hover { background: rgba(255, 255, 255, .15); }
.burger .icon { width: 22px; height: 22px; }

/* Jauge de lecture en forme de tuyau qui se remplit d'eau */
.pipe-progress {
  position: absolute; left: 28px; right: 28px; bottom: -1px; height: 2px;
  border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .06);
}
.pipe-progress__water {
  position: absolute; inset: 0; transform-origin: left center;
  transform: scaleX(var(--scroll, 0));
  background: linear-gradient(90deg, var(--water), var(--copper-300));
}

@media (max-width: 1240px) { .live-pill { display: none; } }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .site-header { padding-top: 10px; }
  .site-header__bar { height: 60px; border-radius: 20px; padding-left: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .header-call span { display: none; }
  .header-call { padding: .78em; }
}

/* -------------------------------------------------------------------------
   7. MENU MOBILE (DRAWER)
   ------------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 150; display: grid; justify-items: end; }
.drawer[hidden] { display: none; }

.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 12, 22, .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s;
}
.drawer__panel {
  position: relative;
  display: flex; flex-direction: column;
  width: min(440px, 100%); height: 100%; overflow-y: auto;
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom));
  background-color: var(--ink-900); color: #fff;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer__close { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.drawer__close .icon { width: 22px; height: 22px; }

.drawer__nav ol { list-style: none; }
.drawer__nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer.is-open .drawer__nav li { animation: drawer-in .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 100ms); }
@keyframes drawer-in { from { opacity: 0; transform: translateX(24px); } }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 4px;
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em;
  transition: color .2s, padding-left .25s var(--ease);
}
.drawer__nav a small { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--copper-300); }
.drawer__nav a:hover, .drawer__nav a[aria-current] { color: var(--copper-300); padding-left: 10px; }

.drawer__contact { margin-top: auto; display: grid; gap: 10px; padding-top: 28px; }
.drawer__contact .btn { width: 100%; }
.drawer__meta { margin-top: 6px; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* -------------------------------------------------------------------------
   8. BARRE D'APPEL FLOTTANTE
   Masquée tant que le hero est visible, puis reste fixée (voir JS).
   ------------------------------------------------------------------------- */
.callbar {
  position: fixed; z-index: 90;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(100% - 24px, 660px);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.callbar.is-visible { transform: translate(-50%, 0); opacity: 1; }
/* Mobile uniquement : masquée sur PC */
@media (min-width: 769px) { .callbar { display: none; } }

.callbar__inner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 999px;
  background: rgba(6, 26, 46, .93);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.callbar__label {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding-left: 14px; font-size: .9rem; line-height: 1.25; color: rgba(255, 255, 255, .85);
}
.callbar__label strong { color: #fff; }
.callbar__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  font-weight: 800; line-height: 1.1;
  transition: transform .2s var(--ease), filter .2s;
}
.callbar__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.callbar__btn small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.callbar__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.callbar__btn--call { background: var(--copper); color: #fff; }
.callbar__btn--wa { background: var(--wa); color: var(--wa-ink); }
.callbar__btn--wa .callbar__ico { background: rgba(6, 45, 23, .12); }

@media (max-width: 640px) {
  .callbar { left: 0; bottom: 0; width: 100%; transform: translateY(110%); }
  .callbar.is-visible { transform: none; }
  .callbar__inner { border-radius: 22px 22px 0 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .callbar__label { display: none; }
  .callbar__btn { flex: 1; justify-content: center; padding-right: 12px; }
}

/* -------------------------------------------------------------------------
   9. HERO DES PAGES INTERNES + FIL D'ARIANE
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 8vw, 112px);
  background-color: var(--ink-900); color: #fff;
}
/* Halo cuivre et halo eau en arrière-plan */
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(27, 166, 214, .18), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(184, 81, 24, .28), transparent 70%);
}
.page-hero > .container { position: relative; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.5rem); margin: 22px 0 22px; }
.page-hero h1 em { font-style: normal; color: var(--copper-300); }
.page-hero .lead { color: var(--on-ink-mu); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Petites caractéristiques clés en pastilles */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem; font-weight: 600;
}
.facts .icon { color: var(--copper-300); }

/* Photo en arche avec contour cuivre décalé */
.arch { position: relative; padding: 14px; }
.arch::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid rgba(242, 162, 102, .55);
  border-radius: 999px 999px 38px 38px;
}
.arch__img {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px;
  box-shadow: var(--shadow-2); background: var(--ink-700);
}
.arch__img img, .arch__img svg { width: 100%; height: 100%; object-fit: cover; }

/* Carte flottante (statistique, badge) */
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: #fff; color: var(--ink-800);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
  animation: floaty 7s ease-in-out infinite;
}
.float-card__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--copper-100); color: var(--copper); }
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1; letter-spacing: -.02em; }
.float-card span { font-size: .8rem; color: var(--muted); }
@keyframes floaty { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__visual { max-width: 440px; width: 100%; justify-self: center; }
}

/* Fil d'Ariane */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .62); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: var(--copper-300); }

/* -------------------------------------------------------------------------
   10. COMPOSANTS PARTAGÉS
   ------------------------------------------------------------------------- */

/* 10.a Pipeline : étapes reliées par un tuyau qui se remplit au scroll */
.pipeline { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pipeline::before, .pipeline::after {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 6px; border-radius: 6px;
}
.pipeline::before { background: rgba(255, 255, 255, .08); }
.pipeline::after {
  background: linear-gradient(90deg, var(--water), var(--copper-300));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s var(--ease) .2s;
}
.pipeline.is-in::after { transform: scaleX(1); }
.pipeline__step { position: relative; z-index: 1; text-align: center; }
.pipeline__node {
  display: grid; place-items: center;
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ink-800); border: 2px solid rgba(242, 162, 102, .6);
  box-shadow: 0 0 0 8px var(--ink-900);
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--copper-300);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.pipeline__step:hover .pipeline__node { background: var(--copper); color: #fff; transform: scale(1.06); }
.pipeline__step h3 { color: #fff; margin-bottom: 10px; }
.pipeline__step p { color: var(--on-ink-mu); max-width: 30ch; margin-inline: auto; }

@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; gap: 34px; }
  .pipeline::before, .pipeline::after { top: 20px; bottom: 20px; left: 34px; right: auto; width: 6px; height: auto; }
  .pipeline::after { transform: scaleY(0); transform-origin: top; }
  .pipeline.is-in::after { transform: scaleY(1); }
  .pipeline__step { display: grid; grid-template-columns: 74px 1fr; column-gap: 22px; text-align: left; }
  .pipeline__node { grid-row: span 2; margin: 0; }
  .pipeline__step p { margin: 0; }
}

/* 10.b Accordéon FAQ (éléments natifs <details>, animés en CSS) */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: 18px; background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: rgba(184, 81, 24, .45); box-shadow: var(--shadow-1); }
.faq-item summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__num { min-width: 2ch; font-size: .8rem; font-weight: 800; color: var(--copper); }
.faq-item__q { flex: 1; font-size: 1.1rem; line-height: 1.35; letter-spacing: -.01em; }
.faq-item__toggle {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--paper);
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.faq-item[open] .faq-item__toggle { transform: rotate(45deg); background: var(--copper); color: #fff; }
.faq-item__a { padding: 0 22px 22px 58px; color: var(--muted); }
.faq-item__a a { color: var(--copper); font-weight: 700; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* Mise en page FAQ : titre collant à gauche, questions à droite */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.faq-layout__head { position: sticky; top: 120px; display: grid; gap: 18px; }
.faq-help { display: grid; gap: 14px; justify-items: start; margin-top: 12px; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout__head { position: static; }
}

/* Pastilles de filtre / navigation (blog, FAQ, réalisations, communes) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: .92rem; font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: #fff; font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: var(--copper); }
.chip[aria-pressed="true"] { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.chip[aria-pressed="true"] span { background: var(--copper); color: #fff; }
a.chip { text-decoration: none; }
.chip .icon { width: 1em; height: 1em; color: var(--copper); }

/* Hero : variantes génériques */
.page-hero__single { max-width: 900px; }
.page-hero__eyebrow { margin-top: 28px; color: var(--copper-300); }
.page-hero__eyebrow .eyebrow__num { background: rgba(242, 162, 102, .14); color: var(--copper-300); }
.page-hero--urgent::before {
  background:
    radial-gradient(600px 420px at 85% 25%, rgba(217, 58, 43, .35), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(184, 81, 24, .3), transparent 70%);
}

/* 10.c Carte article (blog) */
.post-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-800); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__tag {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(6, 26, 46, .82); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.post-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 22px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card__meta .icon { width: 1em; height: 1em; }
.post-card h3 { font-size: 1.28rem; }
/* Toute la carte est cliquable via le lien du titre */
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card__excerpt { color: var(--muted); font-size: .96rem; }
.post-card .link-arrow { margin-top: auto; }

/* Grille de cartes articles */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .post-grid { grid-template-columns: 1fr; } }

/* Couverture illustrée (quand aucune photo ne convient) */
.cover-illu {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(27, 166, 214, .35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(184, 81, 24, .5), transparent 55%),
    var(--ink-800);
  color: rgba(255, 255, 255, .92);
}
.cover-illu .icon { width: 30%; height: auto; aspect-ratio: 1; stroke-width: 1.2; transition: transform .7s var(--ease); }
.post-card:hover .cover-illu .icon { transform: scale(1.08) rotate(-4deg); }

/* 10.d Bandeau d'appel à l'action (cuivre) */
.cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(80px, 10vw, 136px);
  background-color: var(--copper); color: #fff; text-align: center;
  background-image:
    radial-gradient(900px 400px at 50% -10%, rgba(255, 255, 255, .2), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px);
}
.cta-band__icon {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 28px;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.cta-band__icon .icon { width: 38px; height: 38px; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 16px; }
.cta-band__sub { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; opacity: .95; }
.cta-band__text { max-width: 56ch; margin: 12px auto 36px; opacity: .9; }
.cta-phone {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  transition: color .3s, transform .3s var(--ease);
}
.cta-phone .icon { width: .7em; height: .7em; stroke-width: 2.4; }
.cta-phone:hover { color: var(--ink-900); transform: scale(1.02); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta-band__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 34px; font-weight: 600; }
.cta-band__trust li, .cta-band__trust a { display: inline-flex; align-items: center; gap: 8px; }
.cta-band__trust a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0 calc(28px + 96px);    /* +96px : place pour la barre d'appel */
  background-color: var(--ink-900); color: var(--on-ink-mu);
}

/* Bloc d'appel en haut du footer */
.footer-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.footer-cta h2 em { font-style: normal; color: var(--copper-300); }
.footer-cta p { margin-top: 10px; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 40px;
  padding-block: 56px;
}
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-brand .brand { color: #fff; }
.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--font-body); font-size: .76rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--copper-300); }

/* Lien fiche Google Business */
.gbp-card {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.gbp-card:hover { background: rgba(255, 255, 255, .09); border-color: var(--copper-300); transform: translateY(-2px); }
.gbp-card__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; color: #E09A00; }
.gbp-card strong { display: block; font-size: 1rem; }
.gbp-card strong + span { font-size: .82rem; color: var(--on-ink-mu); }
.gbp-card > .icon { margin-left: auto; color: var(--copper-300); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--copper-300); margin-top: .2em; }
.footer-contact a { color: #fff; font-weight: 600; }

/* Signature géante en filigrane */
.footer-wordmark {
  margin-top: 8px; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-weight: 800; line-height: .85; letter-spacing: -.05em;
  font-size: clamp(2rem, 9.4vw, 8.2rem);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
}

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-cta { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   12. ANIMATIONS D'APPARITION & MOUVEMENT RÉDUIT
   La classe .js est ajoutée dans le <head> : sans JavaScript, tout reste visible.
   ------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
