/* ============================================================
   AUTO RAC'IVES — FEUILLE DE STYLES
   style.css
   ============================================================ */

/* ---- Variables & Reset ---- */
:root {
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-gold: #95671E;
  --color-gold-light: #b8832a;
  --color-gold-pale: #f5ede0;
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f4;
  --color-gray-200: #e8e8e8;
  --color-gray-400: #a0a0a0;
  --color-gray-600: #666666;
  --color-gray-800: #222222;
  --color-dark: #111111;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 5rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .14);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, .18);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --max-width: 1200px;
  --header-h: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

em {
  font-style: italic;
  color: var(--color-gold);
}

p {
  line-height: 1.7;
}

/* ---- SPA : gestion des pages ---- */
.page {
  display: none;
}

.page.is-active {
  display: block;
}

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

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-black);
  margin-bottom: var(--space-5);
}

.section__subtitle {
  font-size: var(--text-md);
  color: var(--color-gray-600);
  max-width: 560px;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(149, 103, 30, .35);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-600);
  border-color: var(--color-gray-200);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-sm);
}

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

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 24px rgba(0, 0, 0, .08);
  backdrop-filter: blur(12px);
}

.header--scrolled .header__logo,
.header--scrolled .nav__link {
  color: var(--color-black);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo,
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  transition: color var(--transition-base);
  cursor: pointer;
}

.logo__mark {
  height: 45px;   /* hauteur du logo */
  width: auto;    /* 🔥 laisse respirer le logo */
  background: none;
  display: flex;
  align-items: center;
}

.logo__mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  position: relative;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}

.header--scrolled .nav__link {
  color: var(--color-gray-600);
}

.header--scrolled .nav__link:hover,
.header--scrolled .nav__link--active {
  color: var(--color-black);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
}

.header--scrolled .nav__toggle span {
  background: var(--color-black);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Menu mobile ---- */
.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 33%;
  height: 50%;
  background: rgba(10, 10, 10, 0.9);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-bottom-left-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.4);
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.nav__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 55px;
  padding: 20px;
  width: 100%;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav__mobile-link:hover {
  color: var(--color-gold);
  transform: translateX(5px);
}

/* ---- Hero principal ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero__img.is-loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, .70) 0%, rgba(0, 0, 0, .45) 50%, rgba(149, 103, 30, .20) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  color: var(--color-white);
  max-width: 700px;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.hero__title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

.hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, .75);
  margin-bottom: var(--space-10);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, .5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .5));
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ---- Page hero compact ---- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-12);
  color: var(--color-white);
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  color: var(--color-white);
  margin-top: var(--space-3);
}

/* ---- Stats ---- */
.stats {
  background: var(--color-gold);
  padding: var(--space-12) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.stats__item:last-child {
  border-right: none;
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
}

.stats__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* ---- About ---- */
.about {
  padding: var(--space-32) 0;
  background: var(--color-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}

.about__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__img-frame:hover img {
  transform: scale(1.04);
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about__badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.about__badge-text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, .6);
}

.about__desc {
  color: var(--color-gray-600);
  margin-bottom: var(--space-5);
}

.about__list {
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about__list li {
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-gray-800);
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background: var(--color-gold);
}

/* ---- Services ---- */
.services {
  padding: var(--space-32) 0;
  background: var(--color-gray-50);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  cursor: default;
}

.service-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-black);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.65;
  flex: 1;
}

.service-card__price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-200);
}

/* =========================
   SERVICE DETAILS GLOBAL
========================= */

.service-details {
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
}

/* Titres */
.service-details p {
  font-weight: 600;
  margin-bottom: 10px;
  color: #95671E;
}

/* =========================
   CHECKBOX & RADIO STYLE
========================= */

.service-details label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.service-details label:hover {
  background: #b8842a4b;
  border-color: #95671E;
}

/* Inputs */
.service-details input[type="checkbox"],
.service-details input[type="radio"] {
  accent-color: #3b82f6;
  transform: scale(1.2);
  cursor: pointer;
}

/* Voile or pour les options cochées */
.service-details input:checked+label,
.service-details input[type="text"].filled {
  background-color: var(--color-gold-pale);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
}

/* Input texte rempli (diag / autre) */
.service-details input[type="text"].filled {
  border: 2px solid var(--color-gold);
  background: linear-gradient(135deg,
      var(--color-gold-pale),
      rgba(149, 103, 30, 0.15));
  color: var(--color-black);
}

/* Focus propre */
.service-details input[type="text"]:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(149, 103, 30, 0.2);
}

/* =========================
   INPUT TEXT (marque pneus)
========================= */

.service-details input[type="text"],
.service-details textarea {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
}

.service-details input::placeholder,
.service-details textarea::placeholder {
  color: #a0a0a0;
}

/* =========================
   GRID POUR OPTIONS
========================= */

#vidangeOptions,
#freinageOptions,
#pneusOptions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}



/* =========================
   ANIMATION APPARITION
========================= */

.service-details>div {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Galerie ---- */
.gallery {
  padding: var(--space-32) 0;
  background: var(--color-white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 300px;
  gap: var(--space-4);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0;
  cursor: pointer;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
}

.gallery__caption span {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Témoignages ---- */
.testimonials {
  padding: var(--space-32) 0;
  background: var(--color-gray-50);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: box-shadow var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  color: var(--color-gold);
  font-size: var(--text-md);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gray-800);
  font-size: var(--text-md);
  line-height: 1.6;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--space-4);
}

.testimonial-card__author strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-black);
}

.testimonial-card__author span {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

/* ---- CTA Bandeau ---- */
.cta-band {
  background: var(--color-black);
  padding: var(--space-16) 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.cta-band__sub {
  color: rgba(255, 255, 255, .5);
  font-size: var(--text-sm);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding-top: var(--space-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer__logo {
  color: var(--color-white);
  margin-bottom: var(--space-5);
  display: inline-flex;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .45);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .65);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-gold-light);
}

.footer__address p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .65);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.footer__address a {
  color: rgba(255, 255, 255, .65);
  transition: color var(--transition-fast);
}

.footer__address a:hover {
  color: var(--color-gold-light);
}

.footer__bottom {
  padding: var(--space-5) 0;
  text-align: center;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .25);
  letter-spacing: 0.05em;
}

/* ---- Formulaires ---- */
.rdv-main,
.contact-main {
  padding: var(--space-20) 0 var(--space-32);
  background: var(--color-gray-50);
}

.rdv-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-10);
  align-items: start;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-10);
  align-items: start;
}

.form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
}

.form-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.form-card__desc {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.form-section {
  border: none;
  padding: 0;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-gray-200);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section__legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: var(--space-6);
  width: 100%;
}

.form-section__num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  background: var(--color-gold-pale);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-800);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-black);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(149, 103, 30, .12);
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

.form-input.is-error {
  border-color: #c0392b;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.form-group--check {
  flex-direction: row;
  align-items: flex-start;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check__input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.form-check__label {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
}

.form-submit {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-submit__note {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  text-align: center;
}

.rdv-info {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.rdv-confirmation {
  font-size: var(--text-xs);
  color: rgb(254, 43, 43);
}

.confirm-message {
  margin-top: var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.confirm-message:empty {
  display: none;
}

.confirm-message--success {
  padding: var(--space-5) var(--space-6);
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.confirm-message--error {
  padding: var(--space-5) var(--space-6);
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.confirm-message__title {
  font-weight: 700;
  margin-bottom: var(--space-2);
  font-size: var(--text-md);
}

/* ---- Sélecteur de service ---- */
.service-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.service-option__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-option {
  cursor: pointer;
}

.service-option__box.selected {
  border-color: var(--color-gold);
  background: var(--color-gold-pale);
  color: var(--color-black);
  /* texte noir pour rester lisible */
}

.service-option__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  background: var(--color-white);
}

.service-option__box:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-pale);
}

.service-option__radio:checked+.service-option__box {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-white);
}

.service-option__radio:checked+.service-option__box .service-option__price {
  color: rgba(255, 255, 255, .8);
}

.service-option__icon {
  width: 36px;
  height: 36px;
}

.service-option__label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.service-option__price {
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 600;
}

.devis-result {
  margin-top: var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.devis-result:empty {
  display: none;
}

.devis-result__box {
  padding: var(--space-6);
  background: var(--color-gold-pale);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  animation: fadeSlideIn .3s ease;
}

.devis-result__label {
  font-size: var(--text-sm);
  color: var(--color-gray-800);
  font-weight: 500;
}

.devis-result__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  font-weight: 700;
  white-space: nowrap;
}

.devis-result__info {
  padding: var(--space-5) var(--space-6);
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: #92400e;
  animation: fadeSlideIn .3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Créneaux ---- */
.day-picker {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-white);
  min-width: 60px;
}

.day-btn__name {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-400);
  font-size: 10px;
}

.day-btn__num {
  font-size: var(--text-lg);
  color: var(--color-black);
  font-family: var(--font-display);
}

.day-btn:hover {
  border-color: var(--color-gold);
}

.day-btn.is-selected {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.day-btn.is-selected .day-btn__name,
.day-btn.is-selected .day-btn__num {
  color: var(--color-white);
}

.time-picker {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.time-btn {
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-white);
  color: var(--color-black);
}

.time-btn:hover:not(.is-disabled) {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.time-btn.is-selected {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.time-btn.is-disabled {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

#timePickerGroup {
  margin-top: var(--space-5);
}

.rdv-info-col,
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}

.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-7);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-card--dark {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  padding-bottom: var(--space-3);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.info-card--dark p {
  color: rgba(255, 255, 255, .55);
  font-size: var(--text-sm);
  padding: var(--space-2);
}

.info-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: var(--space-2);
  margin-left: var(--space-3);
  margin-top: var(--space-5);
}

.info-card--dark .info-card__title {
  color: var(--color-white);
}

.hours-table {
  width: 90%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: 12px;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-gray-100);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: var(--space-2) 0;
  color: var(--color-gray-600);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-black);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-left: var(--space-2);
  margin-bottom: var(--space-2);
}

.info-list li {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  padding-left: var(--space-2);
}

/* ---- Contact ---- */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: 12px;
  border-bottom: 1px solid var(--color-gray-100);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: var(--color-gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-1);
}

.contact-detail p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
}

.contact-detail a {
  color: var(--color-gray-600);
  transition: color var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--color-gold);
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  height: 300px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- Animations scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

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

.reveal--delay-1 {
  transition-delay: .1s;
}

.reveal--delay-2 {
  transition-delay: .2s;
}

.reveal--delay-3 {
  transition-delay: .3s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about__visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .about__badge {
    right: 0;
    bottom: -20px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .rdv-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .rdv-info-col,
  .contact-info-col {
    position: static;
    order: -1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stats__item {
    border-right: none;
  }
}