/* ===================================================
   Garage R&R Auto 94 — Main Stylesheet
   =================================================== */

/* Google Fonts chargées via <link> dans chaque page HTML — pas d'import CSS */

/* ===== CSS VARIABLES ===== */
:root {
  --color-primary:       #1B3A5C;
  --color-primary-light: #234d7a;
  --color-primary-dark:  #122840;
  --color-accent:        #B21212;  /* rouge de marque : logo, boutons pleins, badges, décor */
  --color-accent-hover:  #8E0F0F;  /* survol PLUS FONCÉ (le contraste augmente, ne pas éclaircir) */
  --color-accent-text:   #9B1010;  /* rouge fonctionnel : texte/liens/icônes sur fond clair → 7.9:1 */
  --color-accent-on-dark:#ef6e6e;  /* accent rouge sur fond navy (texte large/icônes) → 3.9:1 */
  --color-bg:            #F8F7F5;
  --color-bg-alt:        #EEF2F7;
  --color-bg-dark:       #1B3A5C;
  --color-text:          #2C2C2C;
  --color-text-light:    #5a6a7a;
  --color-white:         #ffffff;
  --color-border:        #dde3ec;

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;

  --shadow-sm: 0 2px 8px rgba(27,58,92,0.08);
  --shadow-md: 0 4px 20px rgba(27,58,92,0.12);
  --shadow-lg: 0 8px 40px rgba(27,58,92,0.18);

  --opacity-white-light: 0.75;
  --opacity-white-medium: 0.85;
  --opacity-white-bright: 0.92;

  --radius:    12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --container:  1140px;
  --header-height: 90px;
  --section-padding: 80px;

  /* Échelle typographique — 6 niveaux, pas de valeurs arbitraires */
  --text-xs:   0.75rem;    /* 12px — compteurs, micro-labels */
  --text-sm:   0.875rem;   /* 14px — méta, dates, étiquettes, labels */
  --text-body: 0.9375rem;  /* 15px — corps secondaire (cartes, footer) */
  --text-base: 1rem;       /* 16px — UI standard, formulaires */
  --text-lg:   1.125rem;   /* 18px — leads, CTA, textes mis en avant */
  --text-xl:   1.25rem;    /* 20px — numéros de téléphone, h3-callouts */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  text-wrap: balance; /* répartit les lignes harmonieusement, sans <br> codé en dur */
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent-text);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-hover); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  line-height: 1;
}

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn-lg {
  padding: 15px 34px;
  font-size: 1.0625rem;
  min-height: 54px;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ===== SKIP LINK (accessibility) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 10px 0;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  background: transparent;
  border-radius: 0;
  padding: 0;
  height: 70px;
}
.logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-toggle span {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-light);
  user-select: none;
}
.lang-toggle .lang-active {
  color: var(--color-primary);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-border);
  border-radius: 22px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: var(--transition);
}
input:checked + .toggle-slider { background: var(--color-accent); }
input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Header phone button */
.btn-phone {
  font-size: 0.875rem;
  padding: 10px 18px;
}
.btn-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-white);
  fill: currentColor;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(to bottom, rgba(2, 2, 5, 0.54) 0%, rgba(2, 2, 5, 0.85) 100%), url('../assets/png/hearosection.jpg') center / cover no-repeat;
  background: linear-gradient(to bottom, rgba(2, 2, 5, 0.54) 0%, rgba(2, 2, 5, 0.85) 100%), image-set(url('../assets/png/herosection.avif') type('image/avif'), url('../assets/png/herosection.webp') type('image/webp')) center / cover no-repeat;
  color: var(--color-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(178,18,18,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 820px;
}
.hero h1 em {
  color: var(--color-accent-on-dark);
  font-style: normal;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 680px;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  row-gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Badge pushed to its own row, visually distinct from action CTAs */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0);
  border: 0px ;
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 600;
  flex-basis: 100%;
  opacity: 0.88;
}
.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: #f5c518;
  stroke: #f5c518;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}
.hero-stat > span {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* =============================================
   SECTIONS — COMMON
   ============================================= */
section { padding: var(--section-padding) 0; }

.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }
.section-dark p { opacity: 0.85; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p:not(.section-label) {
  color: var(--color-text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Override — sur fond sombre le sous-titre du section-header doit être blanc */
.section-dark .section-header p:not(.section-label),
.page-hero .section-header p:not(.section-label),
.cta-banner .section-header p:not(.section-label) {
  color: rgba(255,255,255,0.85);
  opacity: 1;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

/* Trust intro block */
.trust-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.trust-intro-text p { color: var(--color-text-light); }
.trust-intro-flags {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flag-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}
.flag-emoji { width: 36px; height: auto; border-radius: 3px; flex-shrink: 0; }
.flag-lang { font-size: 0.875rem; color: var(--color-text-light); font-weight: 400; font-family: var(--font-body); }

/* =============================================
   SERVICE CARDS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-accent);
  color: inherit;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(178,18,18,0.1); }

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card:hover .service-icon svg { stroke: var(--color-accent); }

.service-card h3 { color: var(--color-primary); }
.service-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-top: 1rem;
  transition: gap var(--transition);
}
.service-card:hover .card-link { gap: 8px; }
.card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.why-grid--3 { grid-template-columns: repeat(3, 1fr); } /* 3 éléments : évite un orphelin sur la 2e ligne */

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(178,18,18,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h3 { color: var(--color-primary); margin-bottom: 0.3rem; }
.why-item p { color: var(--color-text-light); font-size: 0.9375rem; margin: 0; }

/* =============================================
   INFO SECTION (dark background)
   ============================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h3 svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.info-card p,
.info-card a {
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.4rem;
  display: block;
  font-size: 0.9375rem;
}
.info-card a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}
.info-card a:hover {
  color: var(--color-white);
  text-decoration-color: rgba(255,255,255,0.9);
}
.info-card .phone-big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: padding-bottom 0.35s ease;
}
/* La marge basse ne vit pas sur .faq-answer/p : un padding sur l'élément
   animé en grid-template-rows ne peut jamais redescendre sous cette valeur
   (le padding fait partie de sa boîte), donc l'accordéon fermé laissait
   dépasser un filet de texte. On la déplace sur .faq-item, qui n'est pas
   l'élément qui se réduit. */
.faq-item:has(.faq-answer.open) { padding-bottom: 20px; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--color-bg); }
.faq-question.active { background: var(--color-bg-alt); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}
.faq-question.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer p {
  overflow: hidden;
  padding: 0 24px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.7;
}

/* =============================================
   REVIEWS / TESTIMONIALS
   ============================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.review-stars svg {
  width: 18px;
  height: 18px;
  fill: #f5a623;
  stroke: #f5a623;
}

.review-text {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  font-style: italic;
  flex: 1;
  line-height: 1.7;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}
.review-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* Mentions obligatoires sur l'origine des avis (Code de la consommation, art. D111-17) */
.reviews-note {
  max-width: 720px;
  margin: 2rem auto 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Rating summary block */
.rating-block {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px 32px;
  max-width: 400px;
  margin: 0 auto 3rem;
}
.rating-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0.75rem 0;
}
.rating-stars svg {
  width: 26px;
  height: 26px;
  fill: #f5a623;
  stroke: #f5a623;
}
.rating-count { color: var(--color-text-light); font-size: 0.9375rem; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.contact-detail p,
.contact-detail a {
  color: var(--color-text);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  display: block;
}
.contact-detail a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.2);
  transition: color var(--transition), text-decoration-color var(--transition);
}
.contact-detail a:hover {
  color: var(--color-accent-text);
  text-decoration-color: var(--color-accent-text);
}

/* Map */
.map-container {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}
.map-placeholder {
  text-align: center;
  color: var(--color-text-light);
  padding: 24px;
}
.map-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-text-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 12px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h2 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}
label .required { color: var(--color-accent-text); }

input[type=text],
input[type=tel],
input[type=email],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}
input.error,
textarea.error { border-color: #e53e3e; }

textarea { min-height: 130px; resize: vertical; }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }

.form-success {
  display: none;
  background: #f0fff4;
  border: 1px solid #68d391;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: #276749;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-heading);
}

.form-error-msg {
  color: #c53030;            /* 5.5:1 sur blanc (était #e53e3e = 4.1:1, sous le seuil) */
  font-size: 0.875rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 600;
}
/* Repère non-coloré : l'erreur ne dépend pas que de la couleur (WCAG 1.4.1) */
.form-error-msg::before {
  content: '⚠';
  font-size: 0.95em;
  line-height: 1;
  flex-shrink: 0;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--color-white); }
.page-hero p {
  opacity: 0.85;
  max-width: 600px;
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  opacity: 0.75;
}
.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb-sep { opacity: 0.4; }

/* =============================================
   SERVICE DETAIL PAGE
   ============================================= */
.service-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-section:last-child { border-bottom: none; }

.service-section-inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: start;
}

.service-section-icon {
  width: 88px;
  height: 88px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-section-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-section-body h2 { margin-bottom: 0.75rem; }
.service-section-body p { color: var(--color-text-light); }
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}
.feature-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-intro-text p { color: var(--color-text-light); }

.about-badge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}
.about-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-alt);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.about-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: var(--color-white);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}
.about-visual-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-accent-on-dark);
  line-height: 1;
}
.about-visual p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  margin: 0;
}
.about-visual-divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto;
  border-radius: 2px;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.value-card h3 {
  color: var(--color-accent-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-card h3 svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-card p { color: var(--color-text-light); margin: 0; font-size: 0.9375rem; }

/* Team */
.team-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
}
.team-info h3 { margin-bottom: 0.25rem; }
.team-info .team-role {
  color: var(--color-accent-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.team-info p { color: var(--color-text-light); margin: 0; font-size: 0.9375rem; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c93f18 100%);
  color: var(--color-white);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  opacity: 0.92;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 0;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-flex;
  background: transparent;
  border: none;
}
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 340px;
}
.footer-brand .logo-rr { color: var(--color-accent); }
.footer-brand .logo-auto { color: var(--color-white); }
.footer-brand .logo-badge { background: var(--color-accent); }

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.9375rem;
}
.footer-nav a:hover { color: var(--color-white); }

.footer-contact p,
.footer-contact a {
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  display: block;
}
.footer-contact a:hover { color: var(--color-white); }
.footer-contact p { white-space: pre-line; } /* horaires : un jour par ligne */
.footer-contact .phone-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-bottom {
  padding: 20px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============================================
   STICKY MOBILE CALL BUTTON
   ============================================= */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(178,18,18,0.32);
  transition: transform 0.3s ease, visibility 0.3s;
}
/* Accueil : masqué tant que le bouton « Appeler maintenant » du hero est à l'écran (js/main.js) */
.sticky-call.is-hidden {
  transform: translateY(100%);
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-call { transition: none; }
}
.sticky-call svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent-text); }
.text-muted { color: var(--color-text-light); }
.text-sm { font-size: 0.875rem; }
.text-secondary { font-size: 0.9375rem; }

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-xs { margin-top: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Detail item styling (for contact-detail info blocks) */
.detail-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 4px;
  font-weight: 400;
}

.detail-subtitle-white {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, var(--opacity-white-bright));
  margin-top: 2px;
  font-weight: 400;
}

/* Heading subtitle styling */
.heading-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.heading-subtitle-white {
  font-family: var(--font-heading);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Info section text overrides */
.info-section-intro {
  color: rgba(255, 255, 255, var(--opacity-white-light));
}

/* Inline-block link styling */
.link-inline {
  font-size: 0.875rem;
  margin-top: 4px;
  display: inline-block;
}

/* Pre-formatted text */
.text-preformatted {
  white-space: pre-line;
}

/* Garde un nom composé (ex. Villeneuve-le-Roi) d'un seul tenant : passe à la ligne en entier */
.nowrap {
  white-space: nowrap;
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-padding: 64px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .trust-intro { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { gap: 32px; }
  .hero-stats { gap: 28px; }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --header-height: 64px;
  }

  /* Header */
  .hamburger { display: flex; }
  .btn-phone { display: none; }

  /* Lang toggle: visible on mobile, compact */
  .lang-toggle {
    display: flex;
  }
  .lang-toggle span {
    font-size: 0.875rem;
  }
  .toggle-switch {
    width: 34px;
    height: 20px;
  }
  .toggle-slider::before {
    width: 14px;
    height: 14px;
    left: 3px;
    bottom: 3px;
  }
  input:checked + .toggle-slider::before { transform: translateX(14px); }

  /* Header inner: logo | [spacer via margin-left:auto on header-actions] | lang-toggle | hamburger */
  .header-inner {
    gap: 0;
    padding-top: 0;
  }
  .header-actions {
    gap: 8px;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 16px;
    margin: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-link {
    padding: 14px 16px;
    font-size: 1.125rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
  }
  .nav-link:hover,
  .nav-link.active {
    background: var(--color-bg-alt);
    color: var(--color-primary);
  }
  .nav-link::after { display: none; } /* le fond plein suffit comme indicateur sur mobile */

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-section-inner { grid-template-columns: 1fr; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Hero */
  .hero { padding: 60px 0 50px; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-cta-group .btn { width: 100%; justify-content: center; } /* CTA pleine largeur, plus tactiles au pouce */
  .hero-badge { padding: 5px 12px; font-size: var(--text-sm); } /* preuve sociale visible aussi sur mobile */
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 1.5rem; }

  /* Sticky call */
  .sticky-call { display: flex; }
  body { padding-bottom: 64px; }

  /* Service icon small */
  .service-section-icon { width: 64px; height: 64px; }
  .service-section-icon svg { width: 32px; height: 32px; }

  /* Other */
  .why-grid { gap: 20px; }
  .cta-group { flex-direction: column; align-items: center; }
  .page-hero { padding: 48px 0; }
  .contact-form { padding: 24px; }
  .team-block { flex-direction: column; gap: 20px; }
  .about-visual { padding: 36px 24px; }
  .about-visual-number { font-size: 3.5rem; }
  .rating-block { padding: 32px 20px; }
  .rating-number { font-size: 3.5rem; }
  .hero-stats { flex-direction: column; gap: 16px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; }
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.9);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  flex: 1;
  min-width: 260px;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}
.cookie-banner-inner a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}
.cookie-banner-inner a:hover { color: var(--color-white); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cookie-banner-inner { padding: 14px 16px; gap: 14px; }
  .cookie-banner-inner p { font-size: 0.875rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; padding: 10px 16px; font-size: 0.875rem; }
  body.has-sticky #cookie-banner { bottom: 64px; }
}

/* ===================================================
   DESIGN UPGRADE — Animations & Visual Polish
   =================================================== */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), #e05858);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger grid children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.09s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.27s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.36s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.45s; }

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== SECTION LABEL — PILL UPGRADE ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(178,18,18,0.09);
  color: var(--color-accent-text);
  padding: 5px 13px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero .section-label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
}
.hero .section-label::before { background: rgba(255,255,255,0.7); }
.section-dark .section-label {
  background: rgba(178,18,18,0.28);
  color: #ff8888;
}
.section-dark .section-label::before { background: #ff8888; }
.cta-banner .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.2);
}
.cta-banner .section-label::before { background: rgba(255,255,255,0.75); }
.page-hero .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.page-hero .section-label::before { background: rgba(255,255,255,0.75); }

/* ===== BUTTON SHIMMER ===== */
.btn-accent {
  position: relative;
  overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
  transition: left 0.55s ease;
}
.btn-accent:hover::after { left: 170%; }

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(27,58,92,0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#back-to-top:hover { background: var(--color-accent); }
#back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
  #back-to-top { bottom: 84px; right: 16px; width: 42px; height: 42px; }
}

/* ===== HERO BADGE UPGRADE ===== */
.hero-badge {
  background: rgba(245,197,24,0.14);
  border: 1px solid rgba(245,197,24,0.38);
  color: #f7e57a;
  padding: 6px 14px;
  border-radius: 20px;
  flex-basis: auto;
  opacity: 1;
  margin-bottom: 0.75rem;
}

/* ===== SERVICE CARD — GRADIENT BORDER ON HOVER ===== */
/* Bump base to 2px so hover border-width change causes no layout shift */
.service-card { border-width: 2px; }
.service-card:hover {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, var(--color-accent), var(--color-primary-light)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 8px 32px rgba(178,18,18,0.13);
}

/* ===== SECTION DARK — GRID PATTERN + Z-INDEX ===== */
.section-dark {
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.section-dark .container {
  position: relative;
  z-index: 1;
}
.info-card {
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

/* ===== REVIEW CARDS HOVER ===== */
.review-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ===== CTA BANNER EXTRA GLOW ===== */
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== FOOTER TOP ACCENT LINE ===== */
.site-footer {
  border-top: 3px solid var(--color-accent);
}

/* ===== FAQ ACTIVE SHADOW ===== */
.faq-item:has(.faq-question.active) {
  box-shadow: var(--shadow-md);
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   LEGAL PAGE — Enhanced styles
   ============================================= */
.legal-hero-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.legal-hero-icon svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.9);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legal-hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.legal-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 80px;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.legal-toc h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: legal-toc;
}
.legal-toc-list li { counter-increment: legal-toc; }
.legal-toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.3;
}
.legal-toc-list a::before {
  content: counter(legal-toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: all var(--transition);
}
.legal-toc-list a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.legal-toc-list a:hover::before {
  background: var(--color-accent);
  color: white;
}
.legal-content {
  display: flex;
  flex-direction: column;
}
.legal-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.legal-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}
.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
}
.legal-section p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--color-text); font-weight: 600; }
.legal-section a {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-note {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 1rem;
}
.legal-note p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 32px 0 60px;
  }
  .legal-toc { display: none; }
}

/* ===================================================
   UI/UX REFINEMENT PASS — Juin 2026
   Hero · Distinction visuelle · Micro-polish
   =================================================== */

/* ===== BOUTONS — TACTILITÉ ===== */
/* Les boutons pleins ont une légère ombre au repos puis se "soulèvent" au survol */
.btn-accent,
.btn-white {
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(178,18,18,0.28); }
.btn-white:hover { box-shadow: 0 6px 18px rgba(27,58,92,0.20); }

/* ===== TITRES DE SECTION — SOULIGNEMENT SIGNATURE ===== */
/* Petite barre accent centrée sous chaque titre de section : rythme de marque cohérent */
.section-header h2 { position: relative; }
.section-header h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--color-accent), #e05858);
  border-radius: 2px;
}
/* Sur fond sombre, l'accent rouge reste lisible et reste dans la charte */

/* ===== PAGE HERO (pages secondaires) — PROFONDEUR DE MARQUE ===== */
/* Même traitement texturé que le hero d'accueil et les sections sombres */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -45%;
  right: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(178,18,18,0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }

/* ===== MOUVEMENT RÉDUIT ===== */
@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:active { transform: none; }
}

/* ===== INDICATEUR OUVERT / FERMÉ ===== */
/* Pastille pleine : reste lisible sur fond sombre (accueil) comme clair (contact) */
.hours-status:empty { display: none; } /* masqué tant que le JS ne l'a pas renseigné */
.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 12px;
  padding: 5px 13px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
}
.hours-status .hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hours-status .hs-next { font-weight: 600; opacity: 0.85; }

.hours-status.is-open { background: #15824e; color: #fff; }
.hours-status.is-open .hs-dot { background: #74e9a8; }
.hours-status.is-closed { background: #5f6b7a; color: #fff; }
.hours-status.is-closed .hs-dot { background: #cfd6df; }

@media (prefers-reduced-motion: no-preference) {
  .hours-status.is-open .hs-dot { animation: hs-pulse 2s ease-in-out infinite; }
}
@keyframes hs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(116,233,168,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(116,233,168,0); }
}

/* =============================================
   POLISH & MICRO-INTERACTIONS — Août 2026
   ============================================= */

/* ===== NAV — SOULIGNEMENT SIGNATURE (survol / page active) ===== */
/* Reprend le dégradé de la barre de progression et du soulignement de titre : même signature de marque */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), #e05858);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ===== HERO D'ACCUEIL — RIDEAU D'OUVERTURE ===== */
/* Moment d'entrée unique, propre à l'identité "garage" : le rideau se lève comme une porte de garage
   pour révéler l'atelier. Un seul geste signature (accueil uniquement), pas répété sur les pages secondaires. */
.hero-shutter {
  position: absolute;
  inset: 0;
  z-index: 5;
  /* Acier galvanisé : reflet horizontal léger par-dessus des lames bombées (clair en haut, ombre en bas, rainure sombre) */
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.10) 35%, rgba(255,255,255,0.06) 65%, rgba(0,0,0,0.12) 100%),
    repeating-linear-gradient(
      to bottom,
      #d3d8dd 0px, #b7bdc4 6px, #9ea5ad 18px, #868d95 25px,
      #4b5158 25px, #4b5158 28px
    );
  box-shadow: inset 0 -14px 22px -14px rgba(0,0,0,0.55);
  pointer-events: none;
  animation: hero-shutter-open 0.85s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
/* Lame finale, plus épaisse, comme en bas d'un vrai rideau de garage */
.hero-shutter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(to bottom, #7a8189 0%, #5c636b 60%, #2f3338 100%);
}
@keyframes hero-shutter-open {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shutter { display: none; }
}
