/* ============================================
   ERTT RENOV' — Site vitrine
   ============================================ */

:root {
  --color-bg: #faf8f5;
  --color-bg-dark: #1a1a1a;
  --color-surface: #ffffff;
  --color-primary: #c45c26;
  --color-primary-dark: #a34a1e;
  --color-primary-light: #e8a574;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-border: #e5e0d8;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  height: var(--header-height);
  width: 100%;
}

.header .logo {
  flex: 0 1 auto;
  min-width: 0;
}

.header .nav {
  margin-left: auto;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.logo__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo__tag {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--color-primary);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius);
}

.nav__cta:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text) !important;
  text-decoration: none;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-primary) !important;
  transform: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(250, 248, 245, 0.95) 0%, rgba(250, 248, 245, 0.7) 50%, rgba(250, 248, 245, 0.4) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="g" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M60 0L0 0 0 60" fill="none" stroke="%23e5e0d8" stroke-width="0.5"/></pattern></defs><rect fill="%23f5f0ea" width="1200" height="800"/><rect fill="url(%23g)" width="1200" height="800"/><circle cx="900" cy="200" r="300" fill="%23e8a574" opacity="0.15"/><circle cx="200" cy="600" r="250" fill="%23c45c26" opacity="0.08"/></svg>') center/cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(196, 92, 38, 0.1);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero__logo-wrap {
  margin: 0.5rem 0 1.25rem;
}

.hero__logo {
  display: block;
  width: min(340px, 88vw);
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.stat span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Services */
.services {
  background: var(--color-surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding: 0.875rem;
  background: rgba(196, 92, 38, 0.1);
  border-radius: 50%;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-card strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Why */
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.why__content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.why__list {
  list-style: none;
  margin-bottom: 2rem;
}

.why__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.why__card {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.why__card blockquote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.why__card cite {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
}

.why__zones {
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.why__zones h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why__zones p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Avis clients */
.avis {
  background: var(--color-bg);
}

.avis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.avis-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.avis-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.avis-card__stars {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.avis-card blockquote {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
}

.avis-card cite {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: normal;
}

.avis-card__tag {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  background: rgba(196, 92, 38, 0.1);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.avis__cta {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Gallery */
.realisations {
  background: var(--color-surface);
}

/* Carousel réalisations */
.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
  width: 100%;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel__figure {
  margin: 0;
  background: var(--color-bg);
}

.carousel__media {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: 420px;
  height: auto;
}

.carousel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep full image (no cut “Avant/Après”) */
  object-position: center;
  display: block;
  margin: 0;
  transform: none;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  z-index: 1;
}

.carousel__placeholder {
  display: none !important;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.carousel__placeholder--1 { background: linear-gradient(135deg, #8b7355 0%, #c4a882 100%); }
.carousel__placeholder--2 { background: linear-gradient(135deg, #5c4a3a 0%, #8b6914 100%); }
.carousel__placeholder--3 { background: linear-gradient(135deg, #6b7b8a 0%, #a8b8c8 100%); }
.carousel__placeholder--4 { background: linear-gradient(135deg, #c45c26 0%, #e8a574 100%); }

.carousel__caption {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .carousel {
    max-width: 92vw;
  }

  .carousel__media {
    height: 260px;
  }
}

.carousel__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel__btn svg {
  width: 22px;
  height: 22px;
}

.carousel__btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.carousel__btn--prev {
  left: 0.75rem;
}

.carousel__btn--next {
  right: 0.75rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.15);
}

/* Legacy gallery (unused) */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.gallery__placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gallery__placeholder--1 {
  background: linear-gradient(135deg, #8b7355 0%, #c4a882 100%);
}

.gallery__placeholder--2 {
  background: linear-gradient(135deg, #5c4a3a 0%, #8b6914 100%);
}

.gallery__placeholder--3 {
  background: linear-gradient(135deg, #6b7b8a 0%, #a8b8c8 100%);
}

.gallery__placeholder--4 {
  background: linear-gradient(135deg, #c45c26 0%, #e8a574 100%);
}

.gallery__item figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Entreprise */
.entreprise__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.entreprise__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.entreprise__text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.entreprise__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.entreprise__values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.value strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
}

.value h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.value p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  background: var(--color-bg-dark);
  color: #fff;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact .section__label {
  color: var(--color-primary-light);
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact__info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.contact__info strong {
  color: #fff;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.contact__item a,
.contact__item span {
  color: #fff;
  font-size: 1rem;
}

.contact__item a {
  display: block;
  width: fit-content;
}

.contact__item a:hover {
  color: var(--color-primary-light);
}

.contact__map {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.contact__map strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.contact__map p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact__map .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.contact__map .btn--outline:hover {
  color: #fff;
  border-color: var(--color-primary-light);
  background: rgba(255, 255, 255, 0.08);
}

.contact__map-embed {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact__map-embed iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.social-link--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.social-link--disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact__social {
  margin-top: 2rem;
}

.contact__social > strong,
.partners-block > strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all var(--transition);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.contact__partners {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.partner-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact__form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: var(--color-text);
}

.contact__form h2,
.contact__form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.contact__form h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-callback {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.form-callback legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0 0.25rem;
}

.form-callback__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.form-callback .form-group {
  margin-bottom: 0;
}

.form-callback .form-row {
  margin-bottom: 0;
}

.form-group input[type="date"] {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.form__note.success {
  color: #2d6a4f;
}

.form__note.error {
  color: #c0392b;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: #111;
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Approximation suppression fond blanc PNG (blend mode). */
.logo__img,
.hero__logo,
.footer__logo {
  mix-blend-mode: normal;
}

.footer__logo {
  filter: none;
}

.form-group--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Bouton appel flottant */
.call-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.call-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.call-fab:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .call-fab span {
    display: inline;
  }
}

@media (max-width: 768px) {
  .call-fab {
    padding: 1rem;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  }

  .call-fab span {
    display: none;
  }

  .contact__form {
    margin-bottom: 4rem;
  }
}

.footer .logo__name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer__brand p {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.footer__brand > div {
  text-align: left;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Legal page */
.legal {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
}

.legal__inner {
  max-width: 720px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
}

.legal section {
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.legal p,
.legal__list {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal__list {
  list-style: none;
}

.legal__list li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: var(--color-primary);
}

/* Responsive */
@media (min-width: 769px) {
  .header .nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.55rem;
    margin-left: auto;
    width: max-content;
    max-width: calc(100% - 11rem);
  }

  .nav__link {
    padding: 0.35rem 0.1rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav__cta {
    margin-left: 0.25rem;
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }
}

@media (min-width: 1100px) {
  .nav__link {
    font-size: 0.875rem;
    padding: 0.35rem 0.2rem;
  }

  .nav__cta {
    font-size: 0.875rem;
    padding: 0.5rem 1.1rem;
  }

  .header .nav {
    gap: 0.4rem 0.85rem;
    max-width: calc(100% - 14rem);
  }
}

@media (max-width: 1100px) {
  .logo__tag {
    display: none;
  }
}

@media (max-width: 900px) {
  .why__inner,
  .entreprise__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .why__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: min(280px, 90vw);
  }

  .carousel__btn--prev {
    left: 0.5rem;
  }

  .carousel__btn--next {
    right: 0.5rem;
  }

  .carousel__btn {
    top: 38%;
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }
}
