/* ==========================================================================
   COUVERTURE MIDI-PYRÉNÉES — V10 Heritage Toulousain
   Hanz Tanaka · 2026-08-04 · Fraunces + Inter
   ========================================================================== */

:root {
  --terra-900: #5A1A0E;
  --terra-800: #7A2416;
  --terra-700: #8B2D1A;
  --terra-600: #A13520;
  --terra-500: #B8432A;
  --terra-400: #D06B54;
  --terra-300: #E09A88;
  --terra-200: #F0C4B8;
  --terra-100: #F8E5DF;
  --terra-50:  #FDF5F2;
  --stone-900: #1C1917;
  --stone-800: #292524;
  --stone-700: #44403C;
  --stone-600: #57534E;
  --stone-500: #78716C;
  --stone-400: #A8A29E;
  --stone-300: #D6D3D1;
  --stone-200: #E7E5E4;
  --stone-100: #F5F5F4;
  --stone-50:  #FAFAF9;
  --cream:   #FAF7F2;
  --cream-warm: #F5EFE6;
  --white:   #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.75rem;
  --space-lg: 3rem; --space-xl: 5rem; --space-2xl: 8rem;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.4s var(--ease);
  --radius: 12px; --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--stone-800);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
em { font-style: normal; color: var(--terra-700); }
.cmp-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Lien d'evitement — visible uniquement au focus clavier */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 300; padding: 0.75rem 1.5rem;
  background: var(--terra-700); color: var(--white);
  font-size: 0.875rem; font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); outline: 3px solid var(--terra-300); outline-offset: 2px; }

/* Focus visible homogene */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible,
.cmp-nav__dropdown-toggle:focus-visible {
  outline: 3px solid var(--terra-500); outline-offset: 2px; border-radius: 4px;
}

.ico { width: 18px; height: 18px; fill: var(--terra-700); flex-shrink: 0; }
.star { width: 18px; height: 18px; fill: var(--terra-500); }
.cmp-btn__ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ============= BUTTONS ============= */
.cmp-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 60px;
  font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.01em; transition: var(--transition); white-space: nowrap;
}
.cmp-btn--primary { background: var(--terra-700); color: var(--white); box-shadow: 0 2px 12px rgba(139,45,26,0.25); }
.cmp-btn--primary:hover { background: var(--terra-600); box-shadow: 0 4px 20px rgba(139,45,26,0.35); transform: translateY(-1px); }
.cmp-btn--outline { border: 2px solid var(--terra-700); color: var(--terra-700); background: transparent; }
.cmp-btn--outline:hover { background: var(--terra-700); color: var(--white); }
.cmp-btn--white { background: var(--white); color: var(--terra-700); box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.cmp-btn--white:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.15); transform: translateY(-1px); }
.cmp-btn--ghost-light { border: 2px solid rgba(255,255,255,0.4); color: var(--white); }
.cmp-btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.cmp-btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.cmp-btn--sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ============= TOPBAR ============= */
.topbar { background: var(--stone-900); color: var(--stone-300); font-size: 0.8125rem; padding: 0.5rem 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: flex; align-items: center; gap: 0.4rem; }
.topbar__item .ico { width: 14px; height: 14px; fill: var(--terra-400); }
.topbar__item--link { transition: color 0.3s; }
.topbar__item--link:hover { color: var(--terra-300); }
.topbar__item--accent { color: var(--terra-300); font-weight: 600; }

/* ============= HEADER ============= */
.header {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-200);
  position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.6rem; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--terra-700); }
.brand__tag { font-size: 0.75rem; color: var(--stone-500); letter-spacing: 0.03em; }
.cmp-nav { display: flex; align-items: center; gap: 0.15rem; }
.cmp-nav__link { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--stone-600); border-radius: 8px; transition: var(--transition); }
.cmp-nav__link:hover, .cmp-nav__link.active { color: var(--terra-700); background: var(--terra-50); }
.cmp-nav__dropdown { position: relative; }
.cmp-nav__dropdown-toggle { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--stone-600); border-radius: 8px; transition: var(--transition); cursor: pointer; }
.cmp-nav__dropdown-toggle:hover, .cmp-nav__dropdown-toggle.active { color: var(--terra-700); background: var(--terra-50); }
.cmp-nav__dropdown-toggle svg { width: 12px; height: 12px; fill: currentColor; transition: transform 0.3s; }
.cmp-nav__dropdown:hover .cmp-nav__dropdown-toggle svg { transform: rotate(180deg); }
.cmp-nav__dropdown-menu { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 230px; background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 0.5rem 0; box-shadow: 0 12px 40px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 110; }
.cmp-nav__dropdown:hover .cmp-nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cmp-nav__dropdown-link { display: block; padding: 0.55rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--stone-600); transition: background 0.2s, color 0.2s; }
.cmp-nav__dropdown-link:hover { background: var(--terra-50); color: var(--terra-700); }
.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--stone-800); border-radius: 2px; transition: 0.3s; }

/* ============= HERO V2 — IMMERSIF ============= */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--stone-900);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: brightness(0.4);
  transition: transform 8s ease-out;
}
.hero:hover .hero__bg { transform: scale(1.03); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,25,23,0.85) 0%, rgba(28,25,23,0.5) 40%, rgba(139,45,26,0.2) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem;
  align-items: center; padding-block: var(--space-2xl);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 60px; font-size: 0.8125rem; font-weight: 600;
  color: var(--terra-300); margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 700; line-height: 1.1;
  color: var(--white); margin-bottom: var(--space-md);
}
.hero__title em { color: var(--terra-300); font-style: normal; }
.hero__lead { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 520px; margin-bottom: var(--space-lg); line-height: 1.7; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: var(--space-lg); }

.hero__rating {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); backdrop-filter: blur(8px);
  width: fit-content;
}
.hero__rating-big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terra-300); }
.hero__rating-out { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.hero__rating-stars { display: flex; gap: 2px; }
.hero__rating-stars .star { fill: var(--terra-400); }
.hero__rating-meta { font-size: 0.8125rem; color: rgba(255,255,255,0.6); line-height: 1.4; }
.hero__rating-meta strong { display: block; color: rgba(255,255,255,0.9); }

.hero__cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hero__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.hero__card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.hero__card-icon { width: 44px; height: 44px; margin-bottom: 0.75rem; filter: brightness(0) invert(1) opacity(0.85); }
.hero__card-title { font-weight: 700; font-size: 0.9375rem; color: var(--white); margin-bottom: 0.25rem; }
.hero__card-text { font-size: 0.8125rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ============= TRUST STRIP ============= */
.trust { background: var(--white); border-block: 1px solid var(--stone-200); padding: var(--space-lg) 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.trust__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--terra-700); line-height: 1; }
.trust__num span { font-size: 1rem; font-family: var(--font-body); font-weight: 500; color: var(--stone-500); margin-left: 0.2rem; }
.trust__label { font-size: 0.8125rem; color: var(--stone-500); margin-top: 0.5rem; line-height: 1.4; }

/* ============= BADGES ============= */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.badge-item img { height: 56px; width: auto; }
.badge-item strong { font-size: 0.9375rem; color: var(--stone-900); }
.badge-item span { font-size: 0.8125rem; color: var(--stone-500); }

/* ============= SECTIONS ============= */
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--white); }
.section--terra { background: var(--terra-700); color: var(--cream); }
.section--dark { background: var(--stone-900); color: var(--stone-300); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra-600); margin-bottom: var(--space-sm); }
.eyebrow__num { font-family: var(--font-display); font-size: 0.75rem; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: var(--terra-100); color: var(--terra-700); border-radius: 6px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.2; color: var(--stone-900); margin-bottom: var(--space-md); }
.section-subtitle { font-size: 1.0625rem; color: var(--stone-500); max-width: 600px; }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-header .section-subtitle { margin-inline: auto; }

/* ============= PRESENTATION ============= */
.presentation__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.presentation__img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.presentation__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.presentation__badge { position: absolute; bottom: 1.5rem; left: 1.5rem; background: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.presentation__badge-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--terra-700); }
.presentation__badge-label { font-size: 0.75rem; color: var(--stone-500); }
.presentation__content .cmp-lead { font-size: 1.0625rem; color: var(--stone-600); margin-bottom: var(--space-sm); }
.presentation__content p { color: var(--stone-500); margin-bottom: var(--space-sm); }

/* ============= SERVICES ============= */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius-lg);
  padding: 2rem; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card:hover { border-color: var(--terra-200); box-shadow: 0 8px 32px rgba(139,45,26,0.08); transform: translateY(-2px); }
.service-card__icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: var(--space-sm); }
.service-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--stone-900); margin-bottom: 0.5rem; }
.service-card__text { font-size: 0.9375rem; color: var(--stone-500); line-height: 1.6; margin-bottom: var(--space-sm); }
.service-card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--terra-700); transition: gap 0.3s; }
.service-card__link:hover { gap: 0.6rem; }
.service-card__num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--terra-50); line-height: 1; }

/* ============= GALERIE ============= */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery--large { grid-template-columns: repeat(2, 1fr); }
.gallery__item { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,25,23,0.75) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.4s; }
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__caption { color: var(--white); font-size: 0.875rem; font-weight: 500; }
.gallery__caption strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.gallery__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--terra-700); color: var(--white);
  padding: 0.3rem 0.75rem; border-radius: 60px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============= CHANTIERS ============= */
.chantiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; margin-top: var(--space-xl); }
.chantier-card {
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; transition: var(--transition);
}
.chantier-card:hover { border-color: var(--terra-200); box-shadow: 0 4px 16px rgba(139,45,26,0.06); }
.chantier-card__icon { width: 48px; height: 48px; background: var(--terra-50); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chantier-card__icon svg { width: 24px; height: 24px; fill: var(--terra-700); }
.chantier-card__title { font-weight: 600; color: var(--stone-900); margin-bottom: 0.25rem; }
.chantier-card__meta { font-size: 0.8125rem; color: var(--stone-500); }

/* ============= AVIS ============= */
.avis__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.avis-card { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius-lg); padding: 2rem; position: relative; }
.avis-card::before { content: '\201C'; font-family: var(--font-display); font-size: 4rem; color: var(--terra-200); position: absolute; top: 0.5rem; right: 1.5rem; line-height: 1; }
.avis-card__stars { display: flex; gap: 2px; margin-bottom: var(--space-sm); }
.avis-card__text { font-size: 0.9375rem; color: var(--stone-600); font-style: italic; margin-bottom: var(--space-sm); line-height: 1.7; }
.avis-card__author { font-size: 0.8125rem; font-weight: 600; color: var(--stone-800); }
.avis-card__role { font-size: 0.75rem; color: var(--stone-500); }

/* ============= ZONE ============= */
.zone__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.zone__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-sm); }
.zone__tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.85rem; background: var(--terra-50); border: 1px solid var(--terra-100); border-radius: 60px; font-size: 0.8125rem; color: var(--terra-800); font-weight: 500; }
.zone__highlight { background: var(--terra-700); color: var(--white); border-color: var(--terra-700); }
.zone__map { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone-100); display: flex; align-items: center; justify-content: center; border: 1px solid var(--stone-200); }
.zone__map-placeholder { text-align: center; color: var(--stone-500); font-size: 0.875rem; }
.zone__map-placeholder svg { width: 48px; height: 48px; margin: 0 auto 1rem; fill: var(--terra-300); }

/* ============= PARTENAIRES ============= */
.partners { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; padding: var(--space-lg) 0; }
.partners img { height: 48px; width: auto; filter: grayscale(1) opacity(0.5); transition: filter 0.4s; }
.partners img:hover { filter: grayscale(0) opacity(1); }

/* ============= CTA BAND ============= */
.cta-band { padding: var(--space-xl) 0; text-align: center; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 600; margin-bottom: var(--space-sm); color: var(--cream); }
.cta-band__text { font-size: 1.0625rem; color: var(--terra-200); max-width: 500px; margin: 0 auto var(--space-md); }
.cta-band__btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ============= CONTACT ============= */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact__info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--cream); border-radius: var(--radius); margin-bottom: 1rem; }
.contact__info-icon { width: 44px; height: 44px; background: var(--terra-100); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact__info-icon .ico { width: 20px; height: 20px; }
.contact__info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-500); font-weight: 600; margin-bottom: 0.15rem; }
.contact__info-value { font-weight: 600; color: var(--stone-900); }
.contact__info-value a { color: var(--terra-700); }
.contact__info-value a:hover { text-decoration: underline; }
.contact-form { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius-lg); padding: 2rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--stone-700); margin-bottom: 0.4rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--stone-300);
  border-radius: 10px; background: var(--stone-50); transition: border-color 0.3s, box-shadow 0.3s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--terra-400); box-shadow: 0 0 0 3px var(--terra-100); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============= FOOTER V2 ============= */
.footer { background: var(--stone-900); color: var(--stone-400); }
.footer__top { padding: var(--space-xl) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__logo { width: 64px; height: 64px; object-fit: contain; filter: brightness(0) invert(1) opacity(0.8); }
.footer__brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--stone-200); }
.footer__brand-text { font-size: 0.875rem; line-height: 1.6; max-width: 280px; }
.footer__brand-sig { font-family: var(--font-display); font-size: 0.8125rem; color: var(--terra-400); font-style: italic; margin-top: 0.25rem; }
.footer__col-title { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-300); margin-bottom: 1rem; }
.footer__links a { display: block; font-size: 0.875rem; padding: 0.35rem 0; transition: color 0.3s; }
.footer__links a:hover { color: var(--terra-300); }
.footer__contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; padding: 0.35rem 0; }
.footer__contact-item .ico { width: 16px; height: 16px; fill: var(--terra-400); }
.footer__contact-item a:hover { color: var(--terra-300); }
.footer__mid { padding: var(--space-lg) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__trust { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.footer__trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--stone-400); }
.footer__trust-item img { height: 32px; width: auto; filter: brightness(0) invert(1) opacity(0.5); }
.footer__trust-item strong { color: var(--stone-300); }
.footer__bottom { padding: var(--space-md) 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--stone-500); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--terra-300); }

/* ============= PAGE HEADER (sous-pages) ============= */
.page-hero {
  position: relative; padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--stone-900); color: var(--white); overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.3); }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,25,23,0.9) 0%, rgba(139,45,26,0.3) 100%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 700px; }
.page-hero .eyebrow { color: var(--terra-300); }
.page-hero .eyebrow__num { background: rgba(255,255,255,0.1); color: var(--terra-300); }
.page-hero__title { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: var(--space-md); }
.page-hero__title em { color: var(--terra-300); }
.page-hero__lead { font-size: 1.0625rem; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.7; margin-bottom: var(--space-md); }
.page-hero__breadcrumb { font-size: 0.8125rem; color: rgba(255,255,255,0.4); margin-bottom: var(--space-md); }
.page-hero__breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero__breadcrumb a:hover { color: var(--terra-300); }

/* ============= CONTENT BLOCKS ============= */
.content-block { max-width: 800px; margin-inline: auto; }
.content-block h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--stone-900); margin: var(--space-lg) 0 var(--space-sm); }
.content-block h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--stone-800); margin: var(--space-md) 0 var(--space-xs); }
.content-block p { color: var(--stone-600); margin-bottom: var(--space-sm); }
.content-block ul { margin: var(--space-sm) 0 var(--space-md) 1.5rem; }
.content-block li { color: var(--stone-600); margin-bottom: 0.5rem; list-style: disc; }
.content-block li::marker { color: var(--terra-500); }

/* ============= FEATURES LIST ============= */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: var(--space-lg) 0; }
.feature { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.25rem; background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); }
.feature__icon { width: 40px; height: 40px; background: var(--terra-50); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature__icon svg { width: 20px; height: 20px; fill: var(--terra-700); }
.feature__title { font-weight: 600; font-size: 0.9375rem; color: var(--stone-900); margin-bottom: 0.15rem; }
.feature__text { font-size: 0.8125rem; color: var(--stone-500); }

/* ============= AVATARS ============= */
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  color: var(--white); flex-shrink: 0; letter-spacing: 0.02em;
}
.avatar--terra { background: var(--terra-700); }
.avatar--dark  { background: var(--stone-700); }
.avatar--warm  { background: var(--terra-500); }
.avis-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-sm); }
.avis-card__info { display: flex; flex-direction: column; }

/* ============= HERO VISUAL (sous-pages realisations/contact) ============= */
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__logo-wrap { width: 180px; height: 180px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.hero__logo-img { width: 120px; height: 120px; object-fit: contain; }
.hero__gradient { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,25,23,0.85) 0%, rgba(28,25,23,0.5) 40%, rgba(139,45,26,0.2) 100%); }

/* ============= PAGE HERO ENHANCED ============= */
.page-hero__stats { display: flex; gap: 2rem; margin-top: var(--space-md); }
.page-hero__stat { text-align: center; }
.page-hero__stat-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--terra-300); line-height: 1; }
.page-hero__stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }
.page-hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-md); }

/* ============= ALIAS & COMPAT (classes historiques sous-pages) ============= */
.hero__content { position: relative; z-index: 2; }

.cmp-btn--ghost { border: 2px solid var(--terra-700); color: var(--terra-700); background: transparent; }
.cmp-btn--ghost:hover { background: var(--terra-700); color: var(--white); }
.cmp-btn--ghost:hover .cmp-btn__ico { fill: var(--white) !important; }

/* Bloc note — variante autonome (realisations.html) */
.rating {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); backdrop-filter: blur(8px);
  width: fit-content;
}
.rating__score { display: flex; align-items: baseline; gap: 0.2rem; }
.rating__big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terra-300); line-height: 1; }
.rating__out { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.rating__stars { display: flex; gap: 2px; color: var(--terra-400); }
.rating__stars .star { fill: var(--terra-400); width: 18px; height: 18px; }
.rating__meta { font-size: 0.8125rem; color: rgba(255,255,255,0.6); line-height: 1.4; }
.rating__meta strong { display: block; color: rgba(255,255,255,0.9); }

/* Grille chantiers — variante sans suffixe */
.chantiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

/* ============= FAQ ACCORDION ============= */
.faq-group { margin-bottom: var(--space-lg); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title {
  font-family: var(--font-display);
  font-size: 1.3125rem; font-weight: 600; line-height: 1.3;
  color: var(--stone-900);
  padding-bottom: 0.75rem; margin-bottom: var(--space-sm);
  border-bottom: 2px solid var(--terra-100);
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: var(--terra-200); }
.faq-item.open { border-color: var(--terra-700); box-shadow: 0 4px 24px rgba(139,45,26,0.09); }

.faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); width: 100%; text-align: left;
  padding: 1.15rem var(--space-md);
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.45;
  color: var(--stone-900);
  transition: color var(--transition);
}
.faq-item__q:hover { color: var(--terra-700); }
.faq-item.open .faq-item__q { color: var(--terra-700); }
.faq-item__q:focus-visible { outline: 2px solid var(--terra-700); outline-offset: -2px; }

.faq-item__icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--terra-50); border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.faq-item__icon svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--terra-700);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.faq-item.open .faq-item__icon { transform: rotate(180deg); background: var(--terra-100); }

.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition);
}
.faq-item.open .faq-item__a { max-height: 500px; }
.faq-item__a p {
  padding: 0 var(--space-md) 1.25rem;
  color: var(--stone-600); font-size: 0.9688rem; line-height: 1.7;
}
.faq-item__a a {
  color: var(--terra-700); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.faq-item__a a:hover { color: var(--terra-500); }

@media (max-width: 600px) {
  .faq-item__q { padding: 1rem var(--space-sm); font-size: 0.9688rem; }
  .faq-item__a p { padding: 0 var(--space-sm) 1.1rem; }
  .faq-item.open .faq-item__a { max-height: 640px; }
}

/* ============= ANIMATIONS ============= */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============= MOBILE NAV ============= */
.mobile-nav { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav__panel { position: absolute; right: 0; top: 0; bottom: 0; width: 300px; background: var(--white); padding: 2rem; transform: translateX(100%); transition: transform 0.4s var(--ease); }
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; color: var(--stone-600); }
.mobile-nav__link { display: block; padding: 0.85rem 0; font-size: 1.125rem; font-weight: 500; color: var(--stone-800); border-bottom: 1px solid var(--stone-100); }
.mobile-nav__link:hover { color: var(--terra-700); }
.mobile-nav__cta { margin-top: var(--space-md); }

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__rating { margin-inline: auto; }
  .hero__cards { margin-top: var(--space-lg); }
  .presentation__inner, .zone__inner, .contact__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
/* La nav complete ne tient plus sous ~990px : on bascule sur le burger avant
   que les entrees ne se chevauchent (tablettes et petits portables). */
@media (max-width: 992px) {
  .cmp-nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 768px) {
  .topbar__item--hide { display: none; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .avis__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery--large { grid-template-columns: 1fr; }
  .hero__cards { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__trust { gap: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .chantiers-grid { grid-template-columns: 1fr; }
  .page-hero { padding: var(--space-xl) 0 var(--space-lg); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .badges { grid-template-columns: 1fr 1fr; }
}

/* ============= FORMULAIRE — retours, erreurs, piège à robots ============= */
/* Ajouté le 09/09/2026 en branchant le formulaire de devis : ces classes
   n'existaient pas, le formulaire n'ayant jamais rien eu à afficher. */

/* Le piège à robots. Ni display:none ni visibility:hidden : certains robots
   les détectent et sautent le champ, et un lecteur d'écran annoncerait un
   champ « Société » que personne ne doit remplir. Sorti du flux visuel,
   masqué de l'arbre d'accessibilité par aria-hidden sur son conteneur. */
.cmp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Marque d'un champ obligatoire. */
.form-req { color: var(--terra-600); font-weight: 700; }

/* Précision « (facultatif) » à côté d'un libellé : présente mais discrète. */
.form-hint-inline { font-weight: 400; color: var(--stone-500); font-size: 0.8125rem; }

/* Erreur d'un champ, sous le champ fautif. */
.form-error {
  margin: 0.4rem 0 0; font-size: 0.8125rem; font-weight: 600;
  color: #9F1239;
}
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"],
.form-row select[aria-invalid="true"] {
  border-color: #9F1239; background: #FFF5F7;
}

/* Bandeau de retour, en tête de formulaire. Il porte le focus après l'envoi :
   c'est ce déplacement qui le fait lire par un lecteur d'écran. */
.form-alert {
  margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; border-radius: 10px;
  font-size: 0.9375rem; line-height: 1.55; border: 1px solid;
}
.form-alert:focus { outline: 2px solid var(--terra-600); outline-offset: 2px; }
.form-alert--ok { background: #F0FAF4; border-color: #A7D8BC; color: #14532D; }
.form-alert--ko { background: #FFF5F7; border-color: #F0B6C4; color: #9F1239; }

/* Mention légale sous le bouton d'envoi. */
.form-legal {
  margin: 0.9rem 0 0; font-size: 0.75rem; line-height: 1.6; color: var(--stone-500);
}
.form-legal a { color: var(--terra-700); }
