/* ==========================================================================
   GALAND — Rénovation & Énergies
   Direction artistique : minimalisme éditorial premium (inspiré Adveris)
   ========================================================================== */

:root {
  --blanc: #FFFFFF;
  --noir: #0A0A0A;
  --gris-texte: #4A4A4A;
  --gris-muted: #8E8E8E;
  --gris-fin: #EFEFEF;
  --gris-ligne: #D4D4D4;
  --rouge: #3F020A;
  --rouge-hover: #5A0410;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  --container: 1440px;
  --padding-x: 48px;
  --padding-x-mobile: 24px;
  --header-h: 88px;

  --section-y: 160px;
  --section-y-mobile: 80px;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
/* scroll-behavior smooth uniquement quand l'utilisateur clique une ancre (géré en JS) — pas sur wheel/touch */
html.is-anchor-smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html.is-anchor-smooth { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gris-texte);
  background: var(--blanc);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga';
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease-fast); }
ul, ol { list-style: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Typography -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--noir);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { color: var(--gris-texte); max-width: 52ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--noir);
  margin-bottom: 32px;
  position: relative;
  padding-left: 40px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--noir);
}

.eyebrow.rouge { color: var(--rouge); }
.eyebrow.rouge::before { background: var(--rouge); }
.eyebrow.light { color: var(--blanc); }
.eyebrow.light::before { background: var(--blanc); }

em { font-style: italic; color: var(--rouge); font-weight: inherit; }

/* Container --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-dark { background: var(--noir); color: rgba(255, 255, 255, 0.7); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--blanc); }

/* Progress bar scroll ----------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rouge);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* Numérotation sections fixe --------------------------------- */
.section-indicator {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--noir);
  display: flex;
  flex-direction: column;
  gap: 18px;
  writing-mode: vertical-rl;
  pointer-events: none;
  mix-blend-mode: difference;
  color: var(--blanc);
}

.section-indicator span:first-child { opacity: 0.9; }
.section-indicator span:last-child { opacity: 0.55; }

@media (max-width: 900px) {
  .section-indicator { display: none; }
}

/* Splash screen ---------------------------------------------- */
.splash {
  position: fixed;
  inset: 0;
  background: var(--blanc);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.splash.hidden { opacity: 0; visibility: hidden; }

.splash-mark {
  width: 60px;
  height: 60px;
  animation: splashGrow 0.8s var(--ease) forwards;
}

.splash-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes splashGrow {
  0% { transform: scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* (Custom cursor retiré — curseur système) --------------------- */

/* ============================================================
   HEADER — Refonte conforme charte GALAND (88px, blanc, sobre)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: #EFEFEF; }

/* Mode "over-hero" : translucide tant qu'on n'a pas scrollé, blanc dès qu'on scrolle */
.site-header--over-hero {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.site-header--over-hero.is-scrolled {
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Inverser la couleur de la nav et du wordmark quand on est sur le hero translucide */
.site-header--over-hero:not(.is-scrolled) .nav-link { color: #FFFFFF; }
.site-header--over-hero:not(.is-scrolled) .nav-link.active { color: #FFFFFF; }
.site-header--over-hero:not(.is-scrolled) .nav-link::after { background: #FFFFFF; }
.site-header--over-hero:not(.is-scrolled) .brand-wordmark { color: #FFFFFF; }
.site-header--over-hero:not(.is-scrolled) .burger span { background: #FFFFFF; }

.site-header-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Brand (logo + wordmark sur 2 lignes) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: auto;
  height: 40px;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1D1D1D;
}
.brand-wordmark--single {
  font-size: 17px;
  letter-spacing: 0.18em;
  font-weight: 800;
  line-height: 1;
}

/* Navigation principale */
.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.primary-nav .nav-link {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1D1D1D;
  text-decoration: none;
  padding: 4px 0;
}
.primary-nav .nav-link.active { color: #3F020A; }
.primary-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #3F020A;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.primary-nav .nav-link:hover::after,
.primary-nav .nav-link.active::after { transform: scaleX(1); }

/* Actions (bouton + burger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.btn-devis {
  display: inline-flex;
  align-items: center;
  background: #3F020A;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.btn-devis:hover { background: #5A0410; }

/* Burger mobile */
.burger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #1D1D1D;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

/* Menu mobile (panel plein écran) */
.mobile-menu {
  position: fixed;
  top: 88px;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  z-index: 999;
  padding: 32px 40px;
  overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #1D1D1D;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #EFEFEF;
}
.mobile-menu a.mobile-cta {
  margin-top: 16px;
  background: #3F020A;
  color: #FFFFFF;
  text-align: center;
  padding: 18px 24px;
  border-radius: 2px;
  border-bottom: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .btn-devis { display: none; }
  .burger { display: flex; }
  .site-header-inner { padding: 0 24px; }
}
@media (max-width: 640px) {
  .brand-wordmark { display: none; }
  .brand-mark { height: 36px; }
}

/* Boutons / liens --------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--noir);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--noir);
  transition: all 0.35s var(--ease-fast);
  letter-spacing: -0.005em;
}

.link-arrow::after {
  content: '→';
  color: var(--rouge);
  transition: transform 0.35s var(--ease);
  font-size: 1.1rem;
}

.link-arrow:hover {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}

.link-arrow:hover::after { transform: translateX(8px); }

.link-arrow.dark { color: var(--blanc); border-bottom-color: rgba(255,255,255,0.5); }
.link-arrow.dark::after { color: var(--blanc); }
.link-arrow.dark:hover { color: var(--blanc); border-bottom-color: var(--blanc); }

.btn-simple {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 18px 32px;
  color: var(--blanc);
  background: var(--noir);
  border: 1px solid var(--noir);
  transition: all 0.3s var(--ease-fast);
}

.btn-simple::after {
  content: '→';
  transition: transform 0.35s var(--ease);
}

.btn-simple:hover {
  background: var(--rouge);
  border-color: var(--rouge);
}

.btn-simple:hover::after { transform: translateX(6px); }

/* Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 80px) 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blanc);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: end;
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  color: var(--noir);
  margin-bottom: 40px;
}

.hero-title span { display: block; }
.hero-title .italic {
  color: var(--rouge);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-family: var(--font-accent);
}

.hero-manifesto {
  max-width: 40ch;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--gris-texte);
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--noir);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--noir);
  transition: all 0.35s var(--ease-fast);
}

.hero-cta::after {
  content: '→';
  color: var(--rouge);
  transition: transform 0.35s var(--ease);
}

.hero-cta:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.hero-cta:hover::after { transform: translateX(10px); }

.hero-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  align-self: stretch;
  background: var(--gris-fin);
}

.hero-visual-parallax {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-visual-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroReveal 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
  transform-origin: center center;
}

@keyframes heroReveal {
  0% {
    transform: scale(1.25);
    filter: brightness(0.8) contrast(1.08);
    clip-path: inset(15% 10% 15% 10%);
  }
  40% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    transform: scale(1);
    filter: brightness(1) contrast(1);
    clip-path: inset(0 0 0 0);
  }
}

.hero-meta {
  position: absolute;
  left: var(--padding-x);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
  z-index: 3;
}

.hero-meta::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gris-muted);
}

/* Expertises (3 colonnes) ------------------------------------- */
.expertises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gris-fin);
  margin-top: 80px;
}

.expertise-col {
  padding: 72px 40px 72px 0;
  border-right: 1px solid var(--gris-fin);
  position: relative;
}

a.expertise-col {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}

a.expertise-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 29, 29, 0) 0%, rgba(29, 29, 29, 0.06) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}

a.expertise-col > * { position: relative; z-index: 1; }

a.expertise-col:hover { transform: translateY(-4px); }
a.expertise-col:hover::before { opacity: 1; }

/* Spotlight : au survol d'une carte, les autres s'estompent légèrement */
.expertises-grid:has(a.expertise-col:hover) a.expertise-col:not(:hover) {
  opacity: 0.55;
  transition: opacity 0.5s var(--ease);
}

.expertise-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--noir);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), gap 0.3s var(--ease);
}
a.expertise-col:hover .expertise-cta { opacity: 1; transform: translateY(0); gap: 12px; }

.expertise-col:last-child { border-right: none; padding-right: 0; }
.expertise-col:not(:first-child) { padding-left: 56px; }

.expertise-num {
  font-size: 5rem;
  font-weight: 800;
  color: var(--gris-ligne);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  display: block;
}

.expertise-col h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--noir);
}

.expertise-col p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--gris-texte);
}

.expertise-col ul {
  border-top: 1px solid var(--gris-fin);
  padding-top: 24px;
}

.expertise-col ul li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--gris-texte);
  line-height: 1.4;
}

/* Projets (6 cards, 2 col) ----------------------------------- */
.projets-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}

.projets-header h2 { max-width: 14ch; }

.projets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 48px;
}

.projet-card {
  display: block;
  position: relative;
  cursor: pointer;
}

.projet-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--gris-fin);
}

.projet-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.projet-card:hover .projet-visual img,
.projet-visual:hover img { transform: scale(1.15); }

.projet-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--blanc);
  color: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translate(10px, -10px);
  transition: all 0.45s var(--ease);
  z-index: 2;
}

.projet-card:hover .projet-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.projet-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--noir);
  transition: color 0.25s var(--ease-fast);
}

.projet-card:hover h3 { color: var(--rouge); }

.projet-meta {
  font-size: 0.82rem;
  color: var(--gris-muted);
  letter-spacing: 0.01em;
}

.projets-footer {
  margin-top: 80px;
  text-align: center;
}

/* Manifeste / À propos ---------------------------------------- */
.manifeste {
  padding: var(--section-y) 0;
}

.manifeste-headline {
  max-width: 18ch;
  margin-bottom: 96px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.manifeste-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 96px;
  align-items: start;
}

.manifeste-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.manifeste-text p {
  font-size: 1rem;
  line-height: 1.7;
}

.manifeste-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  filter: grayscale(0.7);
  transition: filter 0.8s var(--ease);
}

.manifeste-image:hover { filter: grayscale(0); }

.manifeste-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}
.manifeste-image:hover img { transform: scale(1.15); }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 120px;
  border-top: 1px solid var(--gris-fin);
  border-bottom: 1px solid var(--gris-fin);
  padding: 48px 0;
}

.stat-item {
  border-right: 1px solid var(--gris-fin);
  padding: 0 40px;
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 800;
  color: var(--noir);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-value .stat-plus { color: var(--rouge); }

.stat-label {
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
}

/* Hover glow — cercles suivant le curseur -------------------- */
.hover-glow,
.nav-cta,
.form-submit,
.floating-talk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --glow-start: #F0E6D2;
  --glow-end: #3F020A;
}
.hover-glow-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease-out;
}
.hover-glow-dot.is-in  { opacity: 0.85; }
.hover-glow-dot.is-out { opacity: 0; transition: opacity 1.2s ease-in; }

/* Preuves sociales (marquee) --------------------------------- */
.certifs {
  background: var(--noir);
  color: var(--blanc);
  padding: 70px 0;
  overflow: hidden;
}

.certifs-title {
  text-align: center;
  color: var(--blanc);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0.7;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 100px;
  animation: marqueeSlide 35s linear infinite;
  padding-right: 100px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  color: var(--blanc);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease-fast);
  white-space: nowrap;
}

.marquee-item::before {
  content: '✦';
  color: var(--rouge);
  font-size: 1rem;
  font-style: normal;
}

.marquee-item:hover { opacity: 1; }

@keyframes marqueeSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Témoignage éditorial --------------------------------------- */
/* ============================================================
   AVIS — Carrousel témoignages (3 cards visibles, scroll horizontal)
   ============================================================ */
.avis-section {
  position: relative;
  padding: var(--section-y) 0;
  background: #FFFFFF;
  overflow: hidden;
}
.avis-head {
  text-align: center;
  margin-bottom: 56px;
}
.avis-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5A5A5A;
  margin-bottom: 16px;
}
.avis-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1D1D1D;
  margin: 0;
}
.avis-title em { font-style: italic; font-weight: 700; color: #3F020A; }

.avis-carousel {
  position: relative;
  margin: 0 -16px;
}
.avis-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 16px 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.avis-track::-webkit-scrollbar { display: none; }

.avis-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  position: relative;
  background: #F4F4F4;
  border-radius: 8px;
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.avis-card:hover {
  background: #FAF4F5;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(63, 2, 10, 0.08);
}
.avis-quote-mark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 0.6;
  color: #D4D4D4;
  font-weight: 700;
  margin-bottom: -12px;
  transition: color 0.3s ease;
}
.avis-card:hover .avis-quote-mark { color: #3F020A; }

.avis-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #1D1D1D;
  margin: 0;
  flex: 1;
}

.avis-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #E0E0E0;
}
.avis-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.avis-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.avis-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1D1D1D;
  line-height: 1.2;
}
.avis-handle {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #5A5A5A;
}

/* Flèches navigation */
.avis-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #D4D4D4;
  color: #1D1D1D;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.avis-arrow:hover {
  background: #3F020A;
  color: #FFFFFF;
  border-color: #3F020A;
  box-shadow: 0 4px 14px rgba(63, 2, 10, 0.2);
}
.avis-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.avis-arrow-prev { left: -8px; }
.avis-arrow-next { right: -8px; }

/* Dots de pagination */
.avis-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.avis-dot {
  width: 24px;
  height: 3px;
  background: #D4D4D4;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.avis-dot.is-active { background: #3F020A; }
.avis-dot:hover { background: #5A5A5A; }
.avis-dot.is-active:hover { background: #3F020A; }

@media (max-width: 1024px) {
  .avis-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .avis-card { flex: 0 0 calc(100% - 16px); }
  .avis-arrow-prev { left: 0; }
  .avis-arrow-next { right: 0; }
}

/* Legacy classes conservées (non utilisées sur l'accueil mais peut-être ailleurs) */
.testimonial-editorial {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
}

.testimonial-editorial::before {
  content: '«';
  position: absolute;
  top: 80px;
  left: 40px;
  font-family: var(--font-accent);
  font-size: clamp(12rem, 24vw, 24rem);
  color: var(--rouge);
  opacity: 0.06;
  line-height: 0.7;
  font-weight: 400;
  pointer-events: none;
  z-index: 0;
}

.testimonial-editorial::after {
  content: '»';
  position: absolute;
  bottom: 100px;
  right: 40px;
  font-family: var(--font-accent);
  font-size: clamp(12rem, 24vw, 24rem);
  color: var(--rouge);
  opacity: 0.06;
  line-height: 0.7;
  font-weight: 400;
  pointer-events: none;
  z-index: 0;
}

.testimonial-editorial .container { position: relative; z-index: 1; }

.testimonial-quote {
  font-family: var(--font);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.35;
  color: var(--noir);
  max-width: 22ch;
  margin: 0 auto 72px;
  text-align: center;
  letter-spacing: -0.015em;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gris-fin);
  padding-top: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--noir);
  letter-spacing: 0.01em;
}

.testimonial-author span {
  color: var(--gris-muted);
  font-weight: 400;
  margin-left: 12px;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.testimonial-count { color: var(--gris-muted); letter-spacing: 0.04em; font-family: var(--font-accent); font-style: italic; font-size: 1rem; text-transform: none; font-weight: 400; }

.testimonial-arrows { display: flex; gap: 8px; }

.testimonial-arrows button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gris-ligne);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-fast);
  font-size: 1rem;
  color: var(--noir);
}

.testimonial-arrows button:hover {
  background: var(--noir);
  color: var(--blanc);
  border-color: var(--noir);
}

/* Contact — hero photo + wordmark fondu ---------------------- */
.contact-hero {
  position: relative;
  min-height: 820px;
  padding: calc(var(--header-h) + 80px) 0 72px;
  overflow: hidden;
  isolation: isolate;
  color: var(--blanc);
  border-bottom: 1px solid var(--gris-fin);
  background: #0A0A0A;
  display: flex;
  align-items: flex-end;
}
.contact-hero-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Photo équipe : visages dans le tiers supérieur de l'image source.
     object-position bas → on voit le haut de la photo (visages entiers). */
  object-position: center 0%;
  z-index: 0;
}
.contact-hero-veil {
  position: absolute;
  inset: 0;
  /* Bas du hero plus sombre pour lisibilité du texte placé en flex-end ;
     haut presque transparent pour laisser respirer le portrait équipe */
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.75) 100%);
  z-index: 2;
  pointer-events: none;
}
.contact-hero-content {
  position: relative;
  z-index: 3;
}
.contact-hero-content .eyebrow {
  color: var(--cream, #F0E6D2);
}
.contact-hero-content .eyebrow::before {
  background: var(--cream, #F0E6D2);
}
.contact-hero-content h1 {
  color: var(--blanc);
  max-width: 16ch;
  margin-bottom: 40px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.contact-hero-content h1 em {
  color: var(--cream, #F0E6D2);
}
.contact-hero-content .breadcrumb,
.contact-hero-content .breadcrumb a,
.contact-hero-content .breadcrumb-sep {
  color: rgba(255,255,255,0.85);
}
.contact-hero-content .breadcrumb a:hover { color: var(--blanc); }
.contact-hero-note {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .contact-hero { min-height: 480px; padding: calc(var(--header-h) + 64px) 0 48px; }
}

/* Contact / Devis -------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  align-items: start;
}

.contact-intro .eyebrow { margin-bottom: 28px; }

.contact-card {
  --rouge-on-noir: #8B1F2B;
  --cream: #F0E6D2;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  background: var(--noir);
  color: #fff;
  padding: 44px 40px;
  align-items: stretch;
  gap: 40px;
  margin-bottom: 48px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.contact-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  opacity: 0.32;
  filter: invert(1) brightness(1.2);
}

.contact-card-info {
  padding-left: 32px;
  border-left: 2px solid var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card-name {
  font-size: 1.8rem;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 24px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(240,230,210,0.18);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 16px;
  text-transform: uppercase;
}

.contact-card-mark {
  height: 38px;
  width: auto;
  display: block;
}

.contact-card-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.72;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(240,230,210,0.18);
}

.contact-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.contact-card-details > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  align-items: baseline;
}

.contact-card-details dt {
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.contact-card-details dd {
  margin: 0;
  color: var(--cream);
  opacity: 0.88;
}

.contact-card-details dd a {
  color: inherit;
  transition: opacity 0.3s var(--ease-fast), border-color 0.3s var(--ease-fast);
  border-bottom: 1px solid transparent;
}

.contact-card-details dd a:hover {
  opacity: 1;
  border-bottom-color: var(--cream);
}

.contact-card-details dd a.contact-insta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-card-details dd a.contact-insta-link svg { flex-shrink: 0; }

@media (max-width: 720px) {
  .contact-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 0; }
  .contact-card-logo { padding: 0 0 24px 0; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 24px; }
  .contact-card-logo img { max-width: 120px; }
  .contact-card-info { padding-left: 0; border-left: none; border-top: 2px solid var(--cream); padding-top: 24px; }
  .contact-card-details > div { grid-template-columns: 70px 1fr; }
}

.contact-lines {
  border-top: 1px solid var(--gris-fin);
  padding-top: 32px;
}

.contact-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gris-fin);
  font-size: 0.95rem;
}

.contact-line dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
  padding-top: 3px;
}

.contact-line dd { color: var(--noir); line-height: 1.5; }

.contact-line dd a:hover { color: var(--rouge); }

/* Form Material underline */
.form-field {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--gris-ligne);
  margin-bottom: 8px;
  transition: border-color 0.3s var(--ease-fast);
}

.form-field:focus-within { border-bottom-color: var(--noir); }

.form-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 4px 0 10px;
  color: var(--noir);
  line-height: 1.4;
}

.form-field textarea { resize: vertical; min-height: 80px; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230A0A0A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 top 50%;
  background-size: 10px;
  padding-right: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--gris-texte);
  line-height: 1.5;
  margin: 24px 0;
}

.form-check input { accent-color: var(--rouge); margin-top: 3px; }

.form-submit {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 0 8px;
  color: var(--noir);
  border: none;
  border-bottom: 1px solid var(--noir);
  background: transparent;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease-fast);
}

.form-submit::after {
  content: '→';
  color: var(--rouge);
  transition: transform 0.35s var(--ease);
}

.form-submit:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.form-submit:hover::after { transform: translateX(10px); }

.form-success {
  display: none;
  padding: 18px 20px;
  border: 1px solid var(--noir);
  color: var(--noir);
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success.show { display: block; animation: slideIn 0.4s var(--ease); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer ----------------------------------------------------- */
.footer {
  background: var(--noir);
  color: rgba(255, 255, 255, 0.65);
  padding: 120px 0 40px;
  position: relative;
}

.footer-huge {
  font-family: var(--font);
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  text-stroke: 1px rgba(255, 255, 255, 0.5);
  margin-bottom: 80px;
  user-select: none;
}

.footer-huge-accent {
  font-style: italic;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  text-stroke: 1px rgba(255, 255, 255, 0.5);
  display: inline-block;
  margin: 0 0.08em 0 0.02em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col ul li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease-fast);
}

.footer-col ul li a:hover { color: var(--blanc); }

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--blanc);
  margin-top: 8px;
}

.footer-clock small {
  font-family: var(--font);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.footer-clock .clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
  margin-right: 6px;
  animation: clockBlink 1.5s infinite;
}

@keyframes clockBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.footer-bottom a:hover { color: var(--blanc); }

.footer-links-inline { display: flex; gap: 28px; flex-wrap: wrap; }

.eco-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4ADE80;
  color: var(--noir);
  font-weight: 700;
  font-size: 0.68rem;
}

/* Floating "Parlons projet" ---------------------------------- */
.floating-talk {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--noir);
  color: var(--blanc);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-fast), transform 0.4s var(--ease);
  border-radius: 0;
}

.floating-talk::after {
  content: '→';
  transition: transform 0.35s var(--ease);
  font-size: 1rem;
}

.floating-talk:hover { background: var(--rouge); }
.floating-talk:hover::after { transform: translateX(6px); }

@media (max-width: 768px) {
  .floating-talk { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 0.7rem; }
}

/* Page hero (pages internes) --------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + 120px) 0 100px;
  border-bottom: 1px solid var(--gris-fin);
}

.page-hero h1 { max-width: 16ch; margin-bottom: 40px; }

.page-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
}

.breadcrumb a:hover { color: var(--noir); }
.breadcrumb-sep { color: var(--gris-ligne); }

/* Projet détail / expertise détail --------------------------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  border-bottom: 1px solid var(--gris-fin);
}

.split-section:last-child { border-bottom: none; }

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.split-image:hover img { transform: scale(1.15); }

.split-content .expertise-num { font-size: 3rem; margin-bottom: 32px; }

.split-content h2 { margin-bottom: 28px; }

.split-content p { margin-bottom: 24px; font-size: 1rem; line-height: 1.65; }

.split-content ul {
  border-top: 1px solid var(--gris-fin);
  margin-top: 32px;
  padding-top: 24px;
  margin-bottom: 40px;
}

.split-content ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gris-fin);
  font-size: 0.95rem;
  color: var(--gris-texte);
}

.split-content ul li:last-child { border-bottom: none; }

/* Avis (compact dans agence) --------------------------------- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--gris-fin);
  border-left: 1px solid var(--gris-fin);
}

.avis-card {
  padding: 48px 40px;
  border-right: 1px solid var(--gris-fin);
  border-bottom: 1px solid var(--gris-fin);
}

.avis-card p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--noir);
  font-weight: 400;
  margin-bottom: 24px;
}

.avis-card .stars {
  color: var(--rouge);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.avis-card .author {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--noir);
  border-top: 1px solid var(--gris-fin);
  padding-top: 16px;
}

.avis-card .author span {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--gris-muted);
  font-size: 0.82rem;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

/* Login / dashboard espace client ---------------------------- */
.login-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 20px 60px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 56px 48px;
  border: 1px solid var(--gris-fin);
  text-align: center;
  background: var(--blanc);
}

.login-card .logo-mark { width: 48px; height: 48px; margin: 0 auto 28px; }

.login-card h2 { font-size: 1.8rem; margin-bottom: 12px; }

.login-card .lead { font-size: 0.92rem; color: var(--gris-muted); margin-bottom: 40px; }

.login-card form { text-align: left; }

.login-info {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gris-fin);
  font-size: 0.78rem;
  color: var(--gris-muted);
  line-height: 1.6;
  text-align: left;
}

.login-info code {
  background: var(--gris-fin);
  padding: 2px 6px;
  font-size: 0.72rem;
  color: var(--noir);
  font-family: 'Courier New', monospace;
}

.login-error {
  display: none;
  padding: 12px 16px;
  border-left: 2px solid var(--rouge);
  background: rgba(63, 2, 10, 0.06);
  color: var(--rouge);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.login-error.show { display: block; }

.dashboard { padding: calc(var(--header-h) + 80px) 0 120px; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--gris-fin);
  padding-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.dashboard-header h1 { font-size: clamp(2rem, 4vw, 3rem); }

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.dashboard-card {
  padding: 32px;
  border: 1px solid var(--gris-fin);
  border-top: 2px solid var(--noir);
}

.dashboard-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
  margin-bottom: 12px;
}

.dashboard-card-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--noir);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dashboard-card-sub { font-size: 0.82rem; color: var(--gris-muted); margin-top: 10px; }

.dashboard-section {
  border-top: 1px solid var(--gris-fin);
  padding-top: 48px;
  margin-bottom: 60px;
}

.dashboard-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--gris-fin);
  text-align: left;
  font-size: 0.9rem;
}

table th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-muted);
}

.status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
}

.status-waiting { color: #B87A00; border-color: rgba(184, 122, 0, 0.4); }
.status-accepted, .status-paid { color: #2E7D32; border-color: rgba(46, 125, 50, 0.4); }
.status-refused { color: #C62828; border-color: rgba(198, 40, 40, 0.4); }

.appointment-box {
  padding: 40px;
  background: var(--noir);
  color: var(--blanc);
  border-left: 2px solid var(--rouge);
}

.appointment-box h4 { color: var(--blanc); margin-bottom: 10px; font-size: 1rem; }

.appointment-date {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 14px 0;
  color: var(--blanc);
}

/* Legal / contenu simple ------------------------------------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
}

.legal h2 { margin: 56px 0 20px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; }
.legal h3 { margin: 28px 0 14px; font-size: 1.05rem; color: var(--rouge); font-weight: 600; }
.legal p, .legal li { font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; max-width: none; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 20px; }
.legal ul li::marker { color: var(--rouge); }
.legal a { color: var(--rouge); font-weight: 500; border-bottom: 1px solid transparent; }
.legal a:hover { border-bottom-color: var(--rouge); }

/* Reveal animations ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Bloc « Nos réalisations » — mosaïque filtrable -------------- */
.realisations-section { background: #FFFFFF; padding-top: var(--section-y); padding-bottom: var(--section-y); }

.realisations-head { margin-bottom: 40px; }
.realisations-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  color: #1D1D1D;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.realisations-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #777;
  margin: 0 0 32px;
}

.realisations-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.realisations-pill {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #1D1D1D;
  background: transparent;
  border: 1px solid #D4D4D4;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease-fast), color 0.25s var(--ease-fast), border-color 0.25s var(--ease-fast);
  white-space: nowrap;
}
.realisations-pill:hover { background: #F4F4F4; }
.realisations-pill.is-active {
  background: #3F020A;
  color: #FFFFFF;
  border-color: #3F020A;
  font-weight: 600;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 8px;
}
.realisations-tile.size-2x1 { grid-column: span 2; }
.realisations-tile.size-1x2 { grid-row: span 2; }

.realisations-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #1D1D1D;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s var(--ease-fast),
    transform 0.45s var(--ease-fast),
    scale 0.4s var(--ease-fast);
}
.realisations-tile.is-visible { opacity: 1; transform: translateY(0); }
.realisations-tile.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition-duration: 0.3s;
}

.realisations-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
  display: block;
}
.realisations-tile:hover img { transform: scale(1.05); }

.realisations-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-fast);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}
.realisations-tile:hover .realisations-overlay,
.realisations-tile:focus-visible .realisations-overlay { opacity: 1; }

.realisations-meta {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  min-width: 0;
}
.realisations-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #FFFFFF;
  line-height: 1.3;
}
.realisations-tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.realisations-arrow {
  color: #3F020A;
  background: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 0 0 auto;
  align-self: flex-end;
  transform: translateX(-6px);
  transition: transform 0.25s var(--ease-fast);
}
.realisations-tile:hover .realisations-arrow { transform: translateX(0); }

.realisations-cta-wrap { margin-top: 48px; text-align: center; }
.realisations-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #FFFFFF;
  background: #3F020A;
  padding: 14px 28px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease-fast);
}
.realisations-cta:hover { background: #2A0107; color: #FFFFFF; }

@media (max-width: 1199px) {
  .realisations-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .realisations-tile.size-1x2 { grid-row: span 2; }
}
@media (max-width: 767px) {
  .realisations-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; aspect-ratio: auto; }
  .realisations-grid > .realisations-tile { aspect-ratio: 1 / 1; }
  .realisations-tile.size-2x1 { grid-column: span 2; aspect-ratio: 2 / 1; }
  .realisations-tile.size-1x2 { grid-row: span 1; aspect-ratio: 1 / 1; }
  .realisations-grid { grid-auto-rows: auto; }

  .realisations-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-right: -16px;
    padding-right: 16px;
  }
  .realisations-pill { scroll-snap-align: start; flex: 0 0 auto; }

  .realisations-overlay { opacity: 1; background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 65%); }
}

@media (prefers-reduced-motion: reduce) {
  .realisations-tile,
  .realisations-tile.is-visible,
  .realisations-tile.is-hidden {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .realisations-tile.is-hidden { display: none; }
  .realisations-tile:hover img { transform: none; }
}

/* Bloc « Ils nous ont fait confiance » ----------------------- */
.confiance-section {
  background: #FFFFFF;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.confiance-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.confiance-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1D1D1D;
  margin: 0 0 18px;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.confiance-title em {
  font-style: italic;
  font-weight: 600;
  color: #3F020A;
}
.confiance-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: #3F020A;
  transform: translateX(-50%);
}
.confiance-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #1D1D1D;
  opacity: 0.78;
  margin: 0;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.confiance-sub strong {
  font-weight: 600;
  color: #1D1D1D;
  opacity: 1;
}

.confiance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.confiance-card {
  background: #F4F4F4;
  border: 1px solid #D4D4D4;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.confiance-card:hover {
  transform: translateY(-4px);
  border-color: #3F020A;
  box-shadow: 0 12px 28px rgba(29, 29, 29, 0.08);
}

.confiance-stars {
  display: inline-flex;
  gap: 4px;
}
.confiance-stars span {
  width: 18px;
  height: 18px;
  background-color: #E2A52A;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.8 7.3L12 17.8 5.5 21.7l1.8-7.3L1.6 9.5l7.5-.6z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.8 7.3L12 17.8 5.5 21.7l1.8-7.3L1.6 9.5l7.5-.6z'/></svg>") no-repeat center / contain;
}

.confiance-quote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1D1D1D;
  margin: 0;
  flex: 1;
  position: relative;
  padding-left: 14px;
  border-left: 2px solid #3F020A;
}

.confiance-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid #D4D4D4;
}
.confiance-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #1D1D1D;
}
.confiance-meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #1D1D1D;
  opacity: 0.6;
}

@media (max-width: 980px) {
  .confiance-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .confiance-grid { grid-template-columns: 1fr; }
  .confiance-head { margin-bottom: 48px; }
  .confiance-card { padding: 28px 24px; }
}

/* Avis Google — résumé de notation -------------------------- */
.google-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  color: #1D1D1D;
  margin-top: 4px;
}
.google-rating-stars {
  display: inline-flex;
  gap: 2px;
}
.google-rating-stars span {
  width: 16px;
  height: 16px;
  background-color: #F9AB00;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.8 7.3L12 17.8 5.5 21.7l1.8-7.3L1.6 9.5l7.5-.6z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.8 7.3L12 17.8 5.5 21.7l1.8-7.3L1.6 9.5l7.5-.6z'/></svg>") no-repeat center / contain;
}
.google-rating-score strong { font-weight: 600; }
.google-rating-sep { opacity: 0.45; }
.google-rating-count { opacity: 0.78; }
.google-rating-logo { display: inline-flex; margin-left: 4px; }

/* Avis Google — grille de cartes ---------------------------- */
.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.google-review-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.google-review-card:hover {
  box-shadow: 0 6px 22px rgba(60, 64, 67, 0.12);
  transform: translateY(-2px);
  border-color: #D4D4D4;
}
.google-review-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.google-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.google-review-ident {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.google-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1D1D1D;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.google-review-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.google-stars {
  display: inline-flex;
  gap: 2px;
}
.google-stars span {
  width: 13px;
  height: 13px;
  background-color: #F9AB00;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.8 7.3L12 17.8 5.5 21.7l1.8-7.3L1.6 9.5l7.5-.6z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.5.6-5.7 4.9 1.8 7.3L12 17.8 5.5 21.7l1.8-7.3L1.6 9.5l7.5-.6z'/></svg>") no-repeat center / contain;
}
.google-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  color: #5F6368;
  letter-spacing: 0.01em;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 4px;
}
.google-review-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #202124;
  margin: 0;
  flex: 1;
}
.google-review-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #F0F0F0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  color: #5F6368;
  letter-spacing: 0.02em;
}

.google-reviews-cta {
  text-align: center;
  margin-top: 48px;
}
.google-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1D1D1D;
  text-decoration: none;
  border-bottom: 1px solid #1D1D1D;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.google-reviews-link:hover {
  color: #3F020A;
  border-color: #3F020A;
  gap: 14px;
}

@media (max-width: 980px) {
  .google-reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .google-reviews-grid { grid-template-columns: 1fr; }
  .google-review-card { padding: 20px 18px 16px; }
  .google-rating-summary { flex-wrap: wrap; }
}

/* Scroll pairs : image / texte côte à côte ------------------- */
.scroll-pair {
  opacity: 0;
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.scroll-pair--text  { transform: translateX(-140px); filter: blur(6px); }
.scroll-pair--image { transform: translateX(140px) scale(0.94); filter: blur(8px); }
.scroll-pair.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-pair {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Responsive ------------------------------------------------- */
@media (max-width: 1200px) {
  .hero .container { grid-template-columns: 1fr 0.7fr; gap: 48px; }
  .manifeste-body { grid-template-columns: 1fr; gap: 60px; }
  .manifeste-image { max-width: 420px; }
  .contact-layout { grid-template-columns: 1fr; gap: 72px; }
  .expertises-grid { grid-template-columns: 1fr; border-left: 1px solid var(--gris-fin); }
  .expertise-col { padding: 56px 40px !important; border-right: none; border-bottom: 1px solid var(--gris-fin); }
  .projets-grid { gap: 60px 32px; }
}

@media (max-width: 900px) {
  :root { --section-y: 100px; --padding-x: 24px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 4 / 3; max-height: 60vh; }
  .projets-grid { grid-template-columns: 1fr; }
  .manifeste-text { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gris-fin); padding: 32px 24px; }
  .stat-item:nth-child(2) { border-right: 1px solid var(--gris-fin); }
  .stat-item:nth-child(odd):not(:last-child) { border-right: 1px solid var(--gris-fin); }
  .split-section { grid-template-columns: 1fr; gap: 48px; padding: 72px 0; }
  .split-section.reverse { direction: ltr; }
  .avis-grid { grid-template-columns: 1fr; }
  .dashboard-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--blanc);
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border-top: 1px solid var(--gris-fin);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 16px 0; border-bottom: 1px solid var(--gris-fin); width: 100%; font-size: 1rem; }
  .nav-cta { margin-top: 12px; }
  .burger { display: flex; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-huge { font-size: clamp(3.5rem, 22vw, 6rem); }
  .testimonial-footer { flex-direction: column; gap: 20px; align-items: flex-start; }
  .dashboard-header { align-items: flex-start; }
  table { font-size: 0.82rem; }
  table th, table td { padding: 12px 10px; }
  .section-indicator { display: none; }
}

/* ==========================================================================
   MODULE IMMERSION — Salle de bain Provençale Moderne
   Phase 1 : zoom/fade scroll-scrubbé sur vue d'entrée → vue centrale
   Phase 2 : curseur horizontal pivot vers douche (gauche) ou vasque (droite)
   ========================================================================== */
.immersion {
  position: relative;
  min-height: 300vh;
  background: #000;
  padding: 0;
}

/* Monogramme EG en overlay fondu sur les photos */
.immersion-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  width: clamp(140px, 16vw, 240px);
  height: clamp(165px, 18vw, 280px);
  background-color: #fff;
  -webkit-mask: url('../img/logo-mark.png') center/contain no-repeat;
          mask: url('../img/logo-mark.png') center/contain no-repeat;
  opacity: 0.75;
  mix-blend-mode: overlay;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 40px rgba(0, 0, 0, 0.18));
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .immersion-brand { width: clamp(100px, 22vw, 140px); height: clamp(115px, 25vw, 160px); opacity: 0.68; }
}

.immersion-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.immersion .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: opacity, transform;
}

/* Stack : chaque couche s'efface pour révéler celle en dessous (continuité) */
.immersion .layer.entry   { z-index: 4; opacity: 1; }
.immersion .layer.central { z-index: 3; opacity: 1; }
.immersion .layer.left    { z-index: 2; opacity: 1; }
.immersion .layer.right   { z-index: 1; opacity: 1; }

.immersion-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0.9;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.immersion-hint::after {
  content: '';
  width: 1px;
  height: 54px;
  background: #fff;
  transform-origin: top center;
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%   { transform: scaleY(0.25); opacity: 0.3; }
  50%  { transform: scaleY(1);    opacity: 1;   }
  100% { transform: scaleY(0.25); opacity: 0.3; }
}

.immersion-controls {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 20;
  width: min(580px, 82vw);
  display: flex;
  align-items: center;
  gap: 22px;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.immersion-controls.active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.pivot-label {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.pivot-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.28);
  height: 1px;
  outline: none;
  cursor: grab;
}

.pivot-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: grab;
  margin-top: -8.5px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.pivot-slider::-webkit-slider-thumb:hover  { transform: scale(1.15); }
.pivot-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.3); }

.pivot-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: grab;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Pendant l'immersion, forcer le header en texte clair sur fond sombre */
.immersion-active .header:not(.scrolled) .nav-link,
.immersion-active .header:not(.scrolled) .nav-cta,
.immersion-active .header:not(.scrolled) .logo-wordmark {
  color: #fff;
}

.immersion-active .header:not(.scrolled) .nav-cta {
  border-bottom-color: #fff;
}

.immersion-active .header:not(.scrolled) .logo-mark {
  background-color: #fff;
}

.immersion-active .header:not(.scrolled) .burger span { background: #fff; }

@media (max-width: 768px) {
  .immersion-hint { bottom: 30px; font-size: 0.62rem; letter-spacing: 0.22em; gap: 12px; }
  .immersion-hint::after { height: 40px; }
  .immersion-controls { bottom: 34px; gap: 14px; }
  .pivot-label { font-size: 0.58rem; letter-spacing: 0.22em; }
}

/* ==========================================================================
   TRANSFORMATIONS — slider avant / après
   ========================================================================== */
.transformations-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
}
.transformations-head h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--rouge);
}
.transformations-head p {
  max-width: 44ch;
  color: var(--gris-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================================
   Image comparison slider (avant/après) — curseur déplaçable
   ============================================================ */
.ba-slider {
  max-width: 720px;
  margin: 40px auto 0;
}
.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 82vh;
  overflow: hidden;
  background: #1D1D1D;
  border-radius: 2px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-img-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

/* Handle vertical (curseur) */
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 0;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #1D1D1D;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-stage:hover .ba-handle-knob {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.ba-stage.is-dragging .ba-handle-knob {
  transform: translate(-50%, -50%) scale(1.05);
}
.ba-handle-arrow {
  font-size: 22px;
  line-height: 1;
}

/* Tags Avant / Après */
.ba-stage .ba-tag {
  z-index: 2;
}

/* Hint */
.ba-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 10px 18px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-fast);
}
.ba-hint.is-hidden { opacity: 0; }

.ba-slider .ba-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #5A5A5A;
}

.rc-slider { position: relative; }

.rc-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  max-height: 82vh;
  overflow: hidden;
  background: var(--noir);
  border-radius: 2px;
}
.rc-stage img,
.rc-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.rc-after { object-fit: cover; }
.rc-canvas { z-index: 1; }

.rc-watermark {
  position: absolute;
  inset: 0;
  background: url('../img/logo-mark.png') center center / auto 28% no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 2;
}

.rc-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blanc);
  padding: 10px 18px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-fast);
}
.rc-stage.is-revealing .rc-hint,
.rc-stage.is-revealed .rc-hint { opacity: 0; }

.ba-tag {
  position: absolute;
  top: 24px;
  padding: 8px 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanc);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease-fast), border-color 0.25s var(--ease-fast), color 0.25s var(--ease-fast), transform 0.2s var(--ease-fast);
}
.ba-tag:hover { background: rgba(10,10,10,0.78); border-color: rgba(255,255,255,0.18); }
.ba-tag:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }
.ba-tag.is-active { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.ba-tag-before { left: 24px; }
.ba-tag-after { left: 110px; background: rgba(63,2,10,0.75); }
.ba-tag-after.is-active { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }

.ba-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--gris-muted);
  letter-spacing: 0.04em;
}
.ba-caption span:first-child { color: var(--noir); font-weight: 500; }

@media (max-width: 768px) {
  .transformations-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }
  .ba-slider-inner { aspect-ratio: 4 / 5; }
  .ba-handle { width: 48px; height: 48px; font-size: 1.25rem; }
  .ba-tag { top: 16px; padding: 6px 10px; font-size: 0.62rem; letter-spacing: 0.15em; }
  .ba-tag-before { left: 16px; }
  .ba-tag-after { left: 88px; right: auto; }
  .ba-caption { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; }
}

/* ============================================================
   HOME HERO — photo plein écran avec phrase d'accroche
   ============================================================ */
/* ============================================================
   HERO — Photo plein écran + texte fondu par-dessus
   ============================================================ */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
  background: #FFFFFF;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.home-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.home-hero-stamp {
  position: absolute;
  left: clamp(48px, 8vw, 120px);
  bottom: clamp(-8px, 0vw, 4px);
  z-index: 2;
  width: clamp(140px, 18vw, 240px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}
@media (max-width: 640px) {
  .home-hero-stamp {
    width: 110px;
    left: 32px;
    bottom: -4px;
  }
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0.35) 52%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.25) 100%);
  pointer-events: none;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 72px 24px 96px 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: calc(100vh - var(--header-h));
  justify-content: center;
}
.home-hero-mark {
  display: block;
  width: auto;
  height: 220px;
  margin-bottom: 40px;
}
.home-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1D1D1D;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.home-hero-title-amp { font-weight: 400; }
.home-hero-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: #D4D4D4;
  margin: 32px 0;
}
.home-hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #5A5A5A;
  margin: 0;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}

/* Boutons (réutilisés également par d'autres sections) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #3F020A;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 32px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #5A0410; }

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1D1D1D;
  text-decoration: none;
}
.link-secondary .link-arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease-out;
}
.link-secondary:hover .link-arrow-icon { transform: translateX(4px); }

@media (max-width: 1100px) {
  .home-hero-content { padding-left: 48px; padding-right: 32px; max-width: 640px; }
  .home-hero-mark { height: 180px; margin-bottom: 32px; }
}
@media (max-width: 900px) {
  .home-hero { min-height: 88vh; }
  .home-hero-content {
    padding: 56px 24px 72px;
    min-height: 88vh;
    max-width: 100%;
  }
  .home-hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 35%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0) 100%);
  }
  .home-hero-mark { height: 150px; margin-bottom: 24px; }
}
@media (max-width: 640px) {
  .home-hero-mark { height: 120px; }
  .home-hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .home-hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn-primary { justify-content: center; }
  .link-secondary { justify-content: center; }
}

/* ============================================================
   TEXTURE & FILIGRANES — lift discret du fond
   ============================================================ */
body {
  background-color: var(--blanc);
  background-image:
    radial-gradient(ellipse at 15% 5%, rgba(193, 39, 45, 0.04), transparent 55%),
    radial-gradient(ellipse at 88% 35%, rgba(10, 10, 10, 0.045), transparent 60%),
    radial-gradient(ellipse at 30% 85%, rgba(10, 10, 10, 0.035), transparent 65%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: auto, auto, auto, 320px 320px;
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}

.section,
.manifeste,
.transformations,
.testimonial-editorial,
.certifs {
  position: relative;
  overflow: hidden;
}

/* Chiffres/lettres watermark géants en filigrane */
.watermark-numeral,
.watermark-word {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-accent);
  font-style: italic;
  color: rgba(10,10,10,0.035);
  line-height: 0.85;
  letter-spacing: -0.04em;
  z-index: 0;
  user-select: none;
}
.watermark-numeral {
  font-size: clamp(20rem, 38vw, 44rem);
  font-weight: 700;
  top: 50%;
  transform: translateY(-50%);
}
.watermark-numeral.left  { left: -3vw; }
.watermark-numeral.right { right: -3vw; }
.watermark-word {
  font-size: clamp(8rem, 16vw, 18rem);
  font-weight: 400;
  bottom: -2vw;
  left: -2vw;
}

.section > .container,
.manifeste > .container,
.transformations > .container,
.testimonial-editorial > .container,
.certifs > .container {
  position: relative;
  z-index: 1;
}

/* Grille technique en filigrane (1 section seulement) */
.has-blueprint {
  position: relative;
}
.has-blueprint::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@media (max-width: 900px) {
  .watermark-numeral,
  .watermark-word { display: none; }
}

/* ==========================================================================
   Avis clients — CTA + modale
   ========================================================================== */

.testimonial-share-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--noir);
  color: var(--noir);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.25s var(--ease-fast), border-color 0.25s var(--ease-fast);
}
.testimonial-share-cta::after {
  content: '→';
  color: var(--rouge);
  font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.testimonial-share-cta:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.testimonial-share-cta:hover::after { transform: translateX(8px); }

.avis-modale {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.avis-modale.is-open { opacity: 1; pointer-events: auto; }
.avis-modale-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}
.avis-modale-card {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--blanc);
  padding: 56px 48px;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.avis-modale.is-open .avis-modale-card { transform: translateY(0); }
.avis-modale-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--noir);
  font-weight: 300;
}
.avis-modale-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}

.avis-row { display: grid; grid-template-columns: 1fr 140px; gap: 16px; }
.avis-initiale input { text-transform: uppercase; }

.avis-stars { display: flex; gap: 4px; margin-top: 6px; }
.avis-star {
  font-size: 1.6rem;
  color: var(--gris-ligne);
  padding: 4px 2px;
  transition: color 0.2s var(--ease-fast);
}
.avis-star:hover, .avis-star.is-active { color: var(--rouge); }

.avis-count {
  float: right;
  font-size: 0.72rem;
  color: var(--gris-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.avis-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avis-error {
  color: var(--rouge);
  font-size: 0.88rem;
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--rouge);
  background: rgba(63, 2, 10, 0.04);
}
.avis-success {
  color: var(--noir);
  font-size: 0.95rem;
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 2px solid var(--noir);
}

@media (max-width: 600px) {
  .avis-modale-card { padding: 40px 24px; }
  .avis-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page contact — sélecteur de type visuel + bloc remerciement
   ========================================================================== */

.type-select {
  border: none;
  padding: 0;
  margin: 0 0 36px;
}
.type-select legend {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--noir);
  margin-bottom: 6px;
}
.type-select-help {
  font-size: 0.82rem;
  color: var(--gris-muted);
  margin-bottom: 18px;
  max-width: 56ch;
}
.type-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 560px) { .type-select-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .type-select-grid { grid-template-columns: 1fr 1fr 1fr; } }

.type-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--gris-fin);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}
/* Trait rouge animé qui apparaît à la sélection (de gauche à droite) */
.type-card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.type-card:hover {
  border-color: var(--noir);
  transform: translateY(-2px);
}
.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.type-card input[type="radio"]:focus-visible ~ .type-card-label {
  outline: 2px solid var(--noir);
  outline-offset: 6px;
}
.type-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--noir);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}
.type-card:has(input[type="radio"]:checked) {
  border-color: var(--rouge);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 2, 10, 0.08);
  animation: typeCardPulse 0.5s var(--ease);
}
.type-card:has(input[type="radio"]:checked) .type-card-label {
  color: var(--rouge);
}
.type-card:has(input[type="radio"]:checked)::before {
  transform: scaleX(1);
}
@keyframes typeCardPulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 2, 10, 0.0); }
  40%  { box-shadow: 0 0 0 8px rgba(63, 2, 10, 0.08); }
  100% { box-shadow: 0 6px 20px rgba(63, 2, 10, 0.08); }
}

/* Bloc remerciement -------------------------------------------------- */
.form-thankyou {
  max-width: 560px;
  text-align: center;
  padding: 56px 40px;
  background: var(--blanc);
  border: 1px solid var(--gris-fin);
  border-top: 2px solid var(--rouge);
}
.form-thankyou[hidden] { display: none; }
.form-thankyou-check {
  display: inline-block;
  margin-bottom: 24px;
}
.form-thankyou-check svg {
  display: block;
  margin: 0 auto;
}
.thankyou-circle {
  fill: none;
  stroke: var(--rouge);
  stroke-width: 2;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: thankyouCircle 0.6s var(--ease) 0.05s forwards;
  transform-origin: center;
  transform: rotate(-90deg);
}
.thankyou-tick {
  fill: none;
  stroke: var(--rouge);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: thankyouTick 0.45s var(--ease) 0.55s forwards;
}
@keyframes thankyouCircle { to { stroke-dashoffset: 0; } }
@keyframes thankyouTick { to { stroke-dashoffset: 0; } }

.form-thankyou-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--noir);
  margin: 0 0 16px;
}
.form-thankyou-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gris-texte);
  margin: 0 auto 32px;
  max-width: 48ch;
}
.form-thankyou-phone {
  color: var(--rouge);
  font-weight: 700;
  border-bottom: 1px solid var(--rouge);
  white-space: nowrap;
}
.form-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  justify-content: center;
  align-items: center;
}
.form-thankyou-new {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--noir);
  color: var(--noir);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  transition: color 0.25s var(--ease-fast), border-color 0.25s var(--ease-fast);
}
.form-thankyou-new::after {
  content: '→';
  color: var(--rouge);
  font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.form-thankyou-new:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.form-thankyou-new:hover::after { transform: translateX(6px); }
.form-thankyou-home {
  font-size: 0.85rem;
  color: var(--gris-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-fast), border-color 0.25s var(--ease-fast);
}
.form-thankyou-home:hover { color: var(--noir); border-bottom-color: var(--noir); }

@media (max-width: 600px) {
  .form-thankyou { padding: 40px 24px; }
  .type-card { padding: 9px 10px; }
  .type-card-label { font-size: 0.74rem; }
}

/* ===================================================================
   BLOG — CONSEILS & ACTUALITÉS
   =================================================================== */
.conseils-introrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.conseils-intro { color: var(--gris-texte); max-width: 480px; line-height: 1.6; }
.conseils-rss { font-size: 13px; font-weight: 600; color: var(--rouge); border: 1px solid var(--gris-ligne); border-radius: 4px; padding: 8px 14px; white-space: nowrap; transition: background .2s var(--ease-fast), border-color .2s var(--ease-fast); }
.conseils-rss:hover { background: #FAF4F5; border-color: var(--rouge); }

.conseils-section { padding: 40px 0 var(--section-y); }
.conseils-empty { color: var(--gris-muted); font-size: 16px; }

.conseils-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.conseils-pill { font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--gris-ligne); color: var(--noir); background: var(--blanc); cursor: pointer; transition: all .2s var(--ease-fast); }
.conseils-pill:hover:not(.on) { border-color: var(--rouge); color: var(--rouge); }
.conseils-pill.on { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }

.article-badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #FAF4F5; color: var(--rouge); border: 1px solid #EAD7DB; }

/* Carte article */
.article-card { display: flex; flex-direction: column; border: 1px solid var(--gris-ligne); border-radius: 4px; overflow: hidden; background: var(--blanc); text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.article-card:hover { transform: translateY(-5px); border-color: var(--rouge); box-shadow: 0 14px 30px -16px rgba(63,2,10,.4); }
.article-card-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.article-card:hover .article-card-thumb img { transform: scale(1.06); }
.article-card-thumb .article-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); }
.article-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.article-card-meta { font-size: 11px; color: var(--gris-muted); letter-spacing: .03em; text-transform: uppercase; }
.article-card-title { font-size: 17px; font-weight: 700; color: var(--noir); line-height: 1.28; }
.article-card-excerpt { font-size: 13.5px; color: var(--gris-texte); line-height: 1.55; flex: 1; }
.article-card-read { font-size: 13px; font-weight: 700; color: var(--rouge); margin-top: 4px; }
.article-card-read .arr { display: inline-block; transition: transform .25s var(--ease-fast); }
.article-card:hover .article-card-read .arr { transform: translateX(5px); }

/* Grille */
.conseils-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

/* Article à la une */
.conseils-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--gris-ligne); border-radius: 4px; overflow: hidden; background: var(--blanc); text-decoration: none; color: inherit; margin-bottom: 36px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.conseils-featured:hover { transform: translateY(-4px); border-color: var(--rouge); box-shadow: 0 16px 34px -18px rgba(63,2,10,.42); }
.conseils-featured-img { position: relative; min-height: 260px; overflow: hidden; }
.conseils-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.conseils-featured:hover .conseils-featured-img img { transform: scale(1.05); }
.conseils-une { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; color: var(--blanc); background: var(--rouge); padding: 5px 11px; border-radius: 4px; }
.conseils-featured-body { padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.conseils-featured-title { font-size: 24px; font-weight: 800; color: var(--noir); line-height: 1.18; }
.conseils-featured-title em { font-style: italic; color: var(--rouge); }
.conseils-featured-excerpt { font-size: 14.5px; color: var(--gris-texte); line-height: 1.6; }

.conseils-trust { margin-top: 40px; font-size: 12.5px; color: var(--gris-muted); border-top: 1px solid var(--gris-fin); padding-top: 20px; }

/* Page article */
.article-page { padding: calc(var(--header-h) + 40px) 0 var(--section-y); }
.article-container { max-width: 760px; }
.article-breadcrumb { font-size: 12px; color: var(--gris-muted); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--gris-muted); }
.article-breadcrumb a:hover { color: var(--rouge); }
.article-title { font-size: 36px; font-weight: 800; color: var(--noir); line-height: 1.15; margin: 14px 0 16px; }
.article-title em { font-style: italic; color: var(--rouge); }
.article-meta { font-size: 12px; color: var(--gris-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 28px; }
.article-cover { border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 36px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-prose { font-size: 16px; line-height: 1.75; color: #2A2A2A; }
.article-prose h2 { font-size: 22px; font-weight: 700; color: var(--noir); margin: 36px 0 14px; }
.article-prose h3 { font-size: 18px; font-weight: 700; color: var(--noir); margin: 28px 0 12px; }
.article-prose p { margin: 0 0 18px; }
.article-prose ul, .article-prose ol { margin: 0 0 18px; padding-left: 22px; }
.article-prose li { margin: 6px 0; }
.article-prose a { color: var(--rouge); text-decoration: underline; }
.article-prose strong { font-weight: 700; }
.article-prose blockquote { border-left: 3px solid var(--rouge); background: #FAF4F5; padding: 14px 20px; margin: 24px 0; border-radius: 0; }

.article-source { margin-top: 36px; font-size: 13px; color: var(--gris-muted); }
.article-source a { color: var(--rouge); }
.article-back { display: inline-block; margin-top: 28px; font-size: 13px; font-weight: 700; color: var(--rouge); }

@media (max-width: 768px) {
  .conseils-featured { grid-template-columns: 1fr; }
  .conseils-featured-img { min-height: 200px; }
  .article-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-card, .conseils-featured, .article-card-thumb img, .conseils-featured-img img, .article-card-read .arr { transition: none; }
  .article-card:hover, .conseils-featured:hover { transform: none; }
  .article-card:hover .article-card-thumb img, .conseils-featured:hover .conseils-featured-img img { transform: none; }
}
