/* ============================================================
   SNF74 - Société Nouvelle du Froid
   Design system complet v2.0
   ============================================================ */

/* ============================================================
   1. VARIABLES CSS
   ============================================================ */
:root {
  --color-primary:       #1a3a5c;
  --color-primary-dark:  #0f2438;
  --color-primary-light: #1e4d7b;
  --color-accent:        #0099cc;
  --color-accent-hover:  #007aa3;
  --color-accent-light:  #e8f6fb;
  --color-white:         #ffffff;
  --color-light:         #f7f9fc;
  --color-gray-100:      #f1f5f9;
  --color-gray-200:      #e2e8f0;
  --color-gray-300:      #cbd5e1;
  --color-gray-400:      #94a3b8;
  --color-gray-500:      #64748b;
  --color-gray-600:      #475569;
  --color-gray-700:      #334155;
  --color-gray-800:      #1e293b;
  --color-gray-900:      #0f172a;
  --color-text:          #1e293b;
  --color-text-light:    #64748b;
  --color-success:       #059669;
  --color-error:         #dc2626;
  --color-warning:       #d97706;

  --font-primary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:  'Poppins', 'Inter', sans-serif;

  --shadow-sm:    0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl:    0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-card:  0 2px 20px 0 rgb(0 0 0 / .08);

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  --transition:   all .25s ease;
  --transition-slow: all .4s ease;

  --container-max: 1200px;
  --container-pad: 1.5rem;

  --header-height: 80px;
  --topbar-height: 40px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover, a:focus-visible { color: var(--color-accent-hover); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-sm); }

ul, ol { list-style: none; }

button { font-family: var(--font-primary); cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: var(--font-primary);
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: 5rem 0;
}

.section--light { background-color: var(--color-light); }
.section--dark  { background-color: var(--color-primary); color: var(--color-white); }
.section--accent{ background-color: var(--color-accent-light); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: .9rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   4. TYPOGRAPHIE
   ============================================================ */
.text-sm   { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 2rem; }
.text-4xl  { font-size: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-light); }
.text-white  { color: var(--color-white); }
.text-accent { color: var(--color-accent); }

/* ============================================================
   5. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #0077aa);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgb(0 153 204 / .3);
}
.btn--primary:hover, .btn--primary:focus {
  background: linear-gradient(135deg, var(--color-accent-hover), #005f8a);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgb(0 153 204 / .4);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.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: var(--color-white);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
  padding-left: 0;
}
.btn--ghost:hover {
  color: var(--color-accent-hover);
  gap: .75rem;
}

.btn--sm  { padding: .5rem 1.25rem; font-size: .85rem; }
.btn--lg  { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--loading {
  pointer-events: none;
  opacity: .7;
}

/* ============================================================
   6. TOPBAR
   ============================================================ */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar__left, .top-bar__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}
.top-bar__item:hover { color: var(--color-white); }
.top-bar__item svg { flex-shrink: 0; }

/* ============================================================
   7. HEADER & NAVIGATION
   ============================================================ */
.header {
  background: var(--color-white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--color-gray-200);
  transition: box-shadow .3s, background .3s;
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}

.header__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .85rem;
  right: .85rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 1px;
}

.nav__link:hover, .nav__link:focus-visible {
  color: var(--color-primary);
  background: var(--color-gray-100);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__link--active {
  color: var(--color-accent) !important;
  font-weight: 600;
}
.nav__link--active::after { transform: scaleX(1); }

/* Contact CTA dans nav */
.nav__link--contact.btn--primary {
  padding: .5rem 1.25rem;
}
.nav__link--contact.btn--primary::after { display: none; }

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
  min-width: 240px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  color: var(--color-gray-700);
  font-size: .9rem;
  border-radius: var(--radius-md);
  transition: background .15s;
}
.nav__dropdown-link:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-sm);
  z-index: 1001;
  transition: var(--transition);
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 990;
  opacity: 0;
  transition: opacity .3s;
}
.nav-overlay.is-open { opacity: 1; }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-height) - var(--header-height));
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,36,56,.92) 0%, rgba(26,58,92,.85) 100%);
  z-index: 1;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0,153,204,.15);
  border: 1px solid rgba(0,153,204,.3);
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  animation: bounce 2s infinite;
}

.hero__scroll svg { animation: scroll-arrow 2s ease-in-out infinite; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* Stats Hero */
.hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  z-index: 2;
}

.hero__stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1.25rem 0;
  gap: 1rem;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-heading);
  line-height: 1;
}

.hero__stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Séparateur stats */
.hero__stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
  border: 1px solid var(--color-gray-100);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card__image img { transform: scale(1.05); }

.card__body {
  padding: 1.5rem;
}

.card__date {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--color-primary);
  line-height: 1.35;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}
.card__title a:hover { color: var(--color-accent); }

.card__excerpt {
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Grid de cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   10. SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--color-gray-100);
  transition: var(--transition-slow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

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

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 70px;
  height: 70px;
  background: var(--color-accent-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background .25s;
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
}

.service-card__icon svg, .service-card__icon img {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  transition: color .25s;
}

.service-card:hover .service-card__icon svg {
  color: var(--color-white);
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--color-primary);
}

.service-card__desc {
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* ============================================================
   11. SLIDER / CAROUSEL
   ============================================================ */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider__track {
  display: flex;
  transition: transform .5s ease;
}

.slider__slide {
  min-width: 100%;
}

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  z-index: 5;
  transition: var(--transition);
}
.slider__arrow:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.slider__arrow--prev { left: 1rem; }
.slider__arrow--next { right: 1rem; }

/* ============================================================
   12. FORMULAIRES
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: .45rem;
}

.form-label span[aria-hidden="true"] {
  color: var(--color-error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,153,204,.12);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

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

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-check label {
  font-size: .88rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1.5;
}

.form-check label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-feedback {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.form-error {
  font-size: .8rem;
  color: var(--color-error);
  margin-top: .3rem;
  display: none;
}

.form-control.is-invalid + .form-error { display: block; }

/* ============================================================
   13. RAPPEL WIDGET (fixed right)
   ============================================================ */
.rappel-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  align-items: flex-end;
}

.rappel-widget__toggle {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  display: flex;
  align-items: center;
  box-shadow: -2px 0 12px rgba(0,0,0,.15);
  overflow: hidden;
  transition: background .2s;
}
.rappel-widget__toggle:hover { background: var(--color-accent-hover); }

.rappel-widget__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem .75rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  gap: .6rem;
}

.rappel-widget__tab svg {
  transform: rotate(90deg);
}

.rappel-widget__panel {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 310px;
  background: var(--color-white);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -4px 0 30px rgba(0,0,0,.18);
  padding: 1.75rem;
  animation: slideInRight .3s ease;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.rappel-widget__header {
  position: relative;
  margin-bottom: 1.25rem;
}

.rappel-widget__title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: .25rem;
}

.rappel-widget__subtitle {
  font-size: .83rem;
  color: var(--color-text-light);
}

.rappel-widget__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  transition: background .2s;
}
.rappel-widget__close:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-700);
}

/* ============================================================
   14. COOKIE BANNER RGPD
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  padding: 1.5rem 2rem;
  max-width: 860px;
  width: calc(100% - 2rem);
  border: 1px solid var(--color-gray-200);
  animation: slideUp .4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner__text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: .4rem;
}

.cookie-banner__text p {
  font-size: .85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: .4rem;
}

.cookie-banner__learn-more {
  font-size: .82rem;
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Modal cookies */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .25s ease;
}
.cookie-modal.is-open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-modal__inner {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.cookie-modal__title {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-gray-500);
  transition: background .2s;
}
.cookie-modal__close:hover { background: var(--color-gray-100); }

.cookie-modal__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
}

.cookie-option__info strong {
  display: block;
  font-size: .9rem;
  color: var(--color-gray-800);
  margin-bottom: .25rem;
}

.cookie-option__info p {
  font-size: .8rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background .2s;
}

.toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle__slider { background: var(--color-accent); }
.toggle input:checked + .toggle__slider::before { transform: translateX(20px); }
.toggle--disabled .toggle__slider { opacity: .6; cursor: not-allowed; }

/* ============================================================
   15. POPUP MODAL
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9980;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .3s ease;
}

.popup-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: popIn .35s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.popup-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-700);
  z-index: 1;
  transition: background .2s;
}
.popup-modal__close:hover { background: rgba(0,0,0,.2); }

.popup-modal__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.popup-modal__content {
  padding: 2rem;
}

.popup-modal__title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.popup-modal__body {
  color: var(--color-text-light);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.8);
}

.footer__main {
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: 1rem;
}

.footer__desc {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
}

.footer__social {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer__social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer__title {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__link {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer__address {
  font-style: normal;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }
.footer__contact-item .footer__link { color: rgba(255,255,255,.65); }
.footer__contact-item .footer__link:hover { color: var(--color-accent); }

.footer__hours {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer__hours strong {
  color: rgba(255,255,255,.75);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer__legal-nav {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.footer__legal-link {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer__legal-link:hover { color: var(--color-accent); }

/* ============================================================
   17. SECTIONS SPÉCIFIQUES - ACCUEIL
   ============================================================ */

/* Section "Pourquoi nous" */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: why-counter;
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  transition: var(--transition-slow);
}

.why-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.why-item__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.why-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .5rem;
}

.why-item__desc {
  font-size: .85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Section CTA */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,153,204,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Zone d'intervention */
.zone-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.zone-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: var(--color-gray-100);
}

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

.zone-content__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 1.5rem 0;
}

.zone-content__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--color-text-light);
}

.zone-content__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Section partenaires/marques */
.brands-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.brands-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: 1.5rem;
}

.brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s;
}

.brands-grid:hover { opacity: .8; filter: grayscale(.5); }

/* ============================================================
   18. PAGE INTÉRIEURE (hero compact)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 4rem 0 3rem;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.page-hero__breadcrumb a:hover { color: var(--color-white); }
.page-hero__breadcrumb span[aria-current="page"] { color: var(--color-white); }

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: .75rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
}

/* ============================================================
   19. SECTION CONTENU / ARTICLE
   ============================================================ */
.content-block {
  max-width: 820px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-accent-light);
}

.content-block h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: .75rem;
  margin-top: 1.75rem;
}

.content-block p { margin-bottom: 1rem; line-height: 1.8; }
.content-block ul, .content-block ol {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.8;
}
.content-block li { margin-bottom: .35rem; }
.content-block ul li { list-style: disc; }
.content-block ol li { list-style: decimal; }
.content-block strong { color: var(--color-primary); }
.content-block a { color: var(--color-accent); text-decoration: underline; }
.content-block a:hover { color: var(--color-accent-hover); }

/* ============================================================
   20. BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
}

.badge--primary { background: var(--color-accent-light); color: var(--color-accent); }
.badge--success { background: #d1fae5; color: #065f46; }
.badge--warning { background: #fef3c7; color: #92400e; }

/* ============================================================
   21. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-gray-600);
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  transition: var(--transition);
  text-decoration: none;
}

.pagination__link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.pagination__link--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  pointer-events: none;
}

.pagination__link--disabled {
  opacity: .4;
  pointer-events: none;
}

/* ============================================================
   22. 404
   ============================================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #f7f9fc 0%, #e8f6fb 100%);
}

.error-page__number {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.error-page__desc {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   23. ALERTS & NOTIFICATIONS
   ============================================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-left: 4px solid transparent;
}

.alert--success {
  background: #d1fae5;
  color: #065f46;
  border-left-color: var(--color-success);
}

.alert--error {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: var(--color-error);
}

.alert--info {
  background: #e0f2fe;
  color: #075985;
  border-left-color: var(--color-accent);
}

.alert--warning {
  background: #fef3c7;
  color: #92400e;
  border-left-color: var(--color-warning);
}

/* ============================================================
   24. MENTIONS LÉGALES (page spécifique)
   ============================================================ */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-accent-light);
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 1.75rem;
  margin-bottom: .75rem;
}

.legal-content p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.legal-content li {
  list-style: disc;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: .95rem;
  margin-bottom: .3rem;
}

.legal-content a { color: var(--color-accent); text-decoration: underline; }
.legal-content strong { color: var(--color-primary); }

.legal-toc {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--color-accent);
}

.legal-toc h2 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.legal-toc ol {
  list-style: decimal;
  margin-left: 1.25rem;
}

.legal-toc li {
  font-size: .88rem;
  margin-bottom: .3rem;
}

.legal-toc a {
  color: var(--color-accent);
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

/* ============================================================
   25. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-100);
  margin-bottom: 1.5rem;
}

.contact-info__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.contact-info__card-title svg {
  color: var(--color-accent);
}

.contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--color-text-light);
  margin-bottom: .85rem;
}

.contact-info__row svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__row a {
  color: var(--color-text);
  font-weight: 500;
}
.contact-info__row a:hover { color: var(--color-accent); }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-100);
}

.contact-form__title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: .5rem;
}

.contact-form__subtitle {
  font-size: .9rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* ============================================================
   26. ANIMATIONS
   ============================================================ */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

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

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

/* ============================================================
   28. RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

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

  .zone-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__stats-inner {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero__stat-sep { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --topbar-height: 0px;
  }

  .top-bar { display: none; }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 100%);
    height: 100vh;
    background: var(--color-white);
    z-index: 1000;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }

  .header__nav.is-open { right: 0; }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }
  .nav-overlay.is-open { pointer-events: auto; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }

  .nav__link {
    padding: .85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    justify-content: flex-start;
  }
  .nav__link::after { display: none; }

  .nav__item--dropdown .nav__link--dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-gray-100);
    margin: .25rem 0;
    display: none;
  }

  .nav__item--dropdown.is-open .nav__dropdown { display: block; }
  .nav__item--dropdown.is-open .nav__link--dropdown-toggle svg { transform: rotate(180deg); }

  .header__hamburger { display: flex; }

  .hero__stats { position: static; background: rgba(255,255,255,.1); }
  .hero__stats-inner { padding: 1rem; }

  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

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

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .zone-content__list { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .cookie-banner { padding: 1.25rem; border-radius: var(--radius-lg); }
  .cookie-banner__inner { flex-direction: column; gap: 1rem; }
  .cookie-banner__actions { width: 100%; justify-content: center; }

  .rappel-widget__panel { width: 260px; }

  .cta-section__actions { flex-direction: column; align-items: center; }

  .contact-form { padding: 1.5rem; }
  .legal-toc { padding: 1rem 1.25rem; }
}

@media (max-width: 480px) {
  :root { --container-pad: 1rem; }
  .why-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.9rem; }
  .error-page__number { font-size: 5rem; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Préférence : réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  /* On garde le design clair pour la cohérence de marque */
}

/* Focus visible pour l'accessibilité */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
