/* ==========================================================================
   CODEZEN — DESIGN SYSTEM GLOBAL
   Fond blanc · Accent vert · Typographie moderne · Inspiration Apple/Stripe
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. IMPORTS & FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* --------------------------------------------------------------------------
   2. VARIABLES CSS — DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs principales */
  --color-bg:        #FFFFFF;
  --color-bg-soft:   #F7F9F7;
  --color-bg-card:   #FFFFFF;
  --color-border:    #EBEBEB;
  --color-text:      #111111;
  --color-muted:     #666666;
  --color-subtle:    #999999;
  --color-accent:    #00A86B;
  --color-accent-dk: #008A57;
  --color-accent-lt: #E6F7F1;
  --color-danger:    #FF4D4D;
  --color-overlay:   rgba(0, 0, 0, 0.55);

  /* Typographie */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Tailles de texte */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  /* Espacement */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border-radius */
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.12), 0 6px 18px rgba(0,0,0,0.06);
  --shadow-xl:  0 32px 80px rgba(0,0,0,0.16);
  --shadow-accent: 0 8px 32px rgba(0, 168, 107, 0.25);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition:        0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden; /* ← Verrouillage défilement horizontal */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* ← Verrouillage défilement horizontal */
  max-width: 100vw;   /* ← Sécurité supplémentaire */
}

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

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

ul, ol {
  list-style: none;
}

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

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

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }

p { line-height: 1.7; }

.text-muted    { color: var(--color-muted); }
.text-accent   { color: var(--color-accent); }
.text-center   { text-align: center; }
.text-sm       { font-size: var(--text-sm); }
.text-lg       { font-size: var(--text-lg); }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

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

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* --------------------------------------------------------------------------
   6. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 1px;
}

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

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ── DROPDOWN CATALOGUE ────────────────────────────────────────────────── */

/* Wrapper du trigger dropdown */
.nav__dropdown {
  position: relative;
}

/* Trigger — même style que .nav__link + chevron */
.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__dropdown-trigger:hover,
.nav__dropdown-trigger.active {
  color: var(--color-text);
}

/* Soulignement actif (même mécanique que .nav__link) */
.nav__dropdown-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Chevron animé */
.nav__dropdown-chevron {
  font-size: 0.65rem;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

.nav__dropdown-trigger[aria-expanded="true"] .nav__dropdown-chevron {
  transform: rotate(180deg);
}

/* Menu déroulant */
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1100;

  /* Flèche décorative vers le haut */
  &::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    rotate: 45deg;
  }
}

.nav__dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Items du dropdown */
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav__dropdown-item:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.nav__dropdown-item.active {
  background: var(--color-accent-lt);
  color: var(--color-accent);
}

.nav__dropdown-item__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.nav__dropdown-item:hover .nav__dropdown-item__icon {
  background: var(--color-accent-lt);
}

.nav__dropdown-item__label { font-weight: 600; color: inherit; }
.nav__dropdown-item__sub   { font-size: var(--text-xs); color: var(--color-subtle); margin-top: 1px; }

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

/* Menu hamburger mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-4);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.nav__mobile.open {
  transform: translateX(0);
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover { color: var(--color-accent); }

/* ── Accordéon Catalogue dans menu mobile ──────────────────────────────── */
.nav__mobile-dropdown-btn {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav__mobile-dropdown-btn:hover { color: var(--color-accent); }

.nav__mobile-arrow {
  font-size: 0.75rem;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
}

.nav__mobile-arrow.rotated { transform: rotate(180deg); }

.nav__mobile-sublinks {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
}

.nav__mobile-sublinks.open { display: flex; }

.nav__mobile-sublink {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-muted);
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: color var(--transition-fast);
}

.nav__mobile-sublink:hover { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   NAV — bascule burger dédiée, indépendante des autres seuils responsive.
   La nav desktop (logo + 6 liens + 2 boutons CTA) a besoin d'environ
   1150-1250px pour tenir sans se chevaucher. En dessous, bascule en burger
   — ça couvre notamment les tablettes/2-en-1 (iPad, Surface, écrans pliables
   dépliés) qui tombaient auparavant dans une "zone morte" avec la nav desktop
   forcée sans assez de place.
   -------------------------------------------------------------------------- */


.page-content {
  padding-top: var(--nav-height);
}

/* --------------------------------------------------------------------------
   7. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1;
}

/* Bouton principal — vert accent */
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 168, 107, 0.35);
}

.btn--primary:active {
  transform: scale(0.97) translateY(0);
}

/* Bouton secondaire — contour */
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
  transform: translateY(-2px);
}

/* Bouton ghost — léger */
.btn--ghost {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.btn--ghost:hover {
  background: var(--color-border);
  transform: translateY(-1px);
}

/* Bouton WhatsApp */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* Tailles */
.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn--xl { padding: 1.125rem 2.25rem; font-size: var(--text-lg); }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: var(--space-5) var(--space-6);
}

.card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.card__price-old {
  font-size: var(--text-sm);
  color: var(--color-subtle);
  text-decoration: line-through;
}

.card__actions {
  display: flex;
  gap: var(--space-3);
}

.card__actions .btn {
  flex: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge--accent {
  background: var(--color-accent);
  color: #fff;
}

.badge--promo {
  background: #FF6B35;
  color: #fff;
}

.badge--new {
  background: #6366F1;
  color: #fff;
}

.badge--popular {
  background: var(--color-text);
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. TEMPLATE GRID
   -------------------------------------------------------------------------- */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Image container avec badge */
.tpl-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.tpl-card__image-wrap img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .tpl-card__image-wrap img {
  transform: scale(1.04);
}

.tpl-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.tpl-card__discount {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: #FF6B35;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   10. ÉTATS VIDES
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--color-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.empty-state__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. FORMULAIRES
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

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

.form-checkbox span {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. SEARCH BAR
   -------------------------------------------------------------------------- */
.search-wrap {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}

.search-bar {
  position: relative;
  flex: 1;
}

.search-bar__icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-subtle);
  pointer-events: none;
  font-size: 1rem;
}

.search-bar__input {
  width: 100%;
  padding: 0.875rem 1.125rem 0.875rem 2.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.search-bar__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

.search-bar__input::placeholder { color: var(--color-subtle); }

.search-bar__clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-subtle);
  font-size: 1.1rem;
  display: none;
}

.search-bar__clear.visible { display: block; }

.filter-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.25rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
}

/* Compteur résultats */
.results-count {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.results-count strong {
  color: var(--color-text);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. POPUP FILTRES
   -------------------------------------------------------------------------- */
.filters-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.filters-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.filters-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 480px;
  max-width: calc(100vw - 2rem);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.filters-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.filters-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.filters-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.filters-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filters-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.filters-modal__body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.filter-section {
  margin-bottom: var(--space-6);
}

.filter-section:last-child { margin-bottom: 0; }

.filter-section__label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.filters-modal__footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.filters-modal__footer .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   14. GALERIE FEATURED
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   14. GALERIE FEATURED — Diaporama Premium (style Apple)
   Un slide plein-écran · Transition slide · Pause 1.8s · Dots · Barre progress
   -------------------------------------------------------------------------- */

.featured-section {
  overflow: hidden;
  position: relative;
  background: #000; /* Fond noir pendant les transitions */
}

/* ── Stage — conteneur principal ────────────────────────────────────────── */
.gal-stage {
  position: relative;
  width: 100%;
  height: 600px;         /* Hauteur desktop */
  overflow: hidden;
  cursor: default;
  border-radius: var(--radius-xl);
  background: #111;
}

/* ── Slides ──────────────────────────────────────────────────────────────── */
.gal-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.gal-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;   /* Désactivé par défaut */
  will-change: transform, opacity;
}

.gal-slide.is-active {
  opacity: 1;
  pointer-events: all;   /* Actif seulement sur le slide visible */
}

/* Image plein format */
.gal-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dégradé bas pour la lisibilité du texte */
.gal-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.50) 40%,
    rgba(0,0,0,0.10) 75%,
    transparent 100%
  );
}

/* ── Contenu texte du slide ──────────────────────────────────────────────── */
.gal-slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-10) var(--space-10) var(--space-12);
  z-index: 2;
}

.gal-slide__cat {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.gal-slide__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.gal-slide__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gal-slide__price-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}

.gal-slide__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
}

.gal-slide__badge {
  background: #FF6B35;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.gal-slide__actions {
  display: flex;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

/* Animer le contenu quand le slide est actif */
.gal-slide.is-active .gal-slide__cat,
.gal-slide.is-active .gal-slide__name,
.gal-slide.is-active .gal-slide__desc,
.gal-slide.is-active .gal-slide__price-row,
.gal-slide.is-active .gal-slide__actions {
  opacity: 1;
  transform: translateY(0);
}

/* ── Boutons Prev / Next ─────────────────────────────────────────────────── */
.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gal-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.08);
}

.gal-btn--prev { left: var(--space-5); }
.gal-btn--next { right: var(--space-5); }

/* ── Compteur ────────────────────────────────────────────────────────────── */
.gal-counter {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  z-index: 10;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.gal-counter__current { font-size: var(--text-lg); color: #fff; }
.gal-counter__sep     { opacity: 0.4; }

/* ── Dots indicateurs ────────────────────────────────────────────────────── */
.gal-dots {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-6);
  z-index: 10;
  display: flex;
  gap: var(--space-2);
}

.gal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.gal-dot.active {
  width: 22px;
  border-radius: 3px;
  background: #fff;
}

/* ── Barre de progression ────────────────────────────────────────────────── */
.gal-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.gal-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: inherit;
}

/* ── Responsive galerie ──────────────────────────────────────────────────── */


/* --------------------------------------------------------------------------
   15. HERO SECTIONS
   -------------------------------------------------------------------------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero--center {
  text-align: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0faf5 0%, #ffffff 50%, #f5f5ff 100%);
  z-index: -1;
}

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

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  z-index: -1;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-lt);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
}

.hero__title {
  margin-bottom: var(--space-6);
}

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

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.hero--center .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

.hero--center .hero__ctas {
  justify-content: center;
}

/* Hero blanc (pour pages internes) */
.hero--light {
  min-height: 50vh;
  background: var(--color-bg-soft);
}

/* Hero avec image de fond (plein écran) */
.hero--full {
  min-height: 100vh;
  color: #fff;
}

.hero--full .hero__subtitle {
  color: rgba(255,255,255,0.8);
}

/* --------------------------------------------------------------------------
   16. SECTION VALEUR / FEATURES
   -------------------------------------------------------------------------- */
.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
}

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

.value-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: var(--space-5);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.value-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   17. PROCESSUS
   -------------------------------------------------------------------------- */
.process-col {
  background: var(--color-bg-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.process-col__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.process-col__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.process-col__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.process-step {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -24px;
  width: 1px;
  background: var(--color-border);
}

.process-step__num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

.process-step__content {
  padding-top: var(--space-2);
}

.process-step__title {
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-accent); }

.faq-question__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: all var(--transition-fast);
}

.faq-item.open .faq-question__icon {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   19. TÉMOIGNAGES
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: var(--text-sm);
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-sm);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: var(--text-sm);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   20. STATS
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   21. PACKS / PRICING
   -------------------------------------------------------------------------- */
.pack-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pack-card:hover,
.pack-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-6px);
}

.pack-card.featured {
  background: var(--color-text);
  color: #fff;
}

.pack-card.featured .pack-card__price,
.pack-card.featured .pack-card__title,
.pack-card.featured .pack-feature {
  color: #fff;
}

.pack-card.featured .pack-card__desc {
  color: rgba(255,255,255,0.7);
}

.pack-card.featured .pack-feature::before {
  color: var(--color-accent);
}

.pack-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pack-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.pack-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.pack-card__price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-8);
}

.pack-card__price span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-muted);
}

.pack-features {
  margin-bottom: var(--space-8);
  flex: 1;
}

.pack-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.pack-feature::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   22. HÉBERGEMENT
   -------------------------------------------------------------------------- */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.hosting-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition);
}

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

.hosting-card__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.hosting-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

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

/* --------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-6);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--color-accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   24. CTA FINAL SECTION
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--color-text);
  color: #fff;
  text-align: center;
  padding: var(--space-24) 0;
}

.cta-section h2 { color: #fff; }

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: var(--space-6) auto var(--space-10);
}

/* --------------------------------------------------------------------------
   25. NOTIFICATION TOAST
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-text);
  color: #fff;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--color-accent);
}

/* --------------------------------------------------------------------------
   26. CATALOGUE PAGE — CHOIX CARTES
   -------------------------------------------------------------------------- */
.choice-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
}

.choice-card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.choice-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  transition: background var(--transition);
}

.choice-card:hover .choice-card__bg { transform: scale(1.06); }

.choice-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
  color: #fff;
}

.choice-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.choice-card__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
}

.choice-card__perks {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.choice-card__perk {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
}

/* --------------------------------------------------------------------------
   27. LOADING SPINNER
   -------------------------------------------------------------------------- */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  gap: var(--space-4);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   28. CONTACT INFO
   -------------------------------------------------------------------------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-accent-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.contact-info-item__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.contact-info-item__value {
  font-weight: 600;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   29. ANIMATIONS ENTRÉE
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.animate-fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }

/* --------------------------------------------------------------------------
   30. RESPONSIVE
   -------------------------------------------------------------------------- */

/* ── Grille section valeur (4 colonnes) — classe dédiée ─────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* Tablet */


/* Mobile */


/* Ultra mobile */


/* --------------------------------------------------------------------------
   FORMULAIRE CLIENT UNIVERSEL (template / pack / abonnement)
   -------------------------------------------------------------------------- */
.cz-order-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cz-order-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cz-order-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 480px;
  max-width: calc(100vw - 2rem);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 3001;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cz-order-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.cz-order-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.cz-order-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.cz-order-modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 2px;
}

.cz-order-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.cz-order-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.cz-order-modal__body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.cz-order-modal__footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.cz-order-modal__footer .btn {
  flex: 1;
  min-width: 0;
}


.cz-order-modal__success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.cz-order-modal__success i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.cz-order-modal__success p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.cz-order-modal__error {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.25);
  color: var(--color-danger);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   TOGGLE PÉRIODICITÉ ABONNEMENTS
   -------------------------------------------------------------------------- */
.periodicity-toggle {
  display: inline-flex;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.periodicity-toggle__btn {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.periodicity-toggle__btn.active {
  background: var(--color-text);
  color: #fff;
}

.periodicity-save {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  margin-left: var(--space-2);
}

/* --------------------------------------------------------------------------
   DÉLAIS DE LIVRAISON
   -------------------------------------------------------------------------- */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.delivery-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.delivery-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--color-accent-lt);
  color: var(--color-accent-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto var(--space-4);
}

.delivery-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.delivery-card__range {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-accent-dk);
  margin-bottom: var(--space-1);
}

.delivery-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
}


/* --------------------------------------------------------------------------
   NEWSLETTER — POPUP + FOOTER
   -------------------------------------------------------------------------- */
.newsletter-popup-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.newsletter-popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.newsletter-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 420px;
  max-width: calc(100vw - 2rem);
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 4001;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  padding: var(--space-8);
  text-align: center;
}

.newsletter-popup.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.newsletter-popup__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-popup__close:hover {
  background: rgba(255,255,255,0.2);
}

.newsletter-popup__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto var(--space-5);
}

.newsletter-popup__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.newsletter-popup__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: var(--text-sm);
  outline: none;
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

.newsletter-popup__note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-4);
}

.footer-newsletter {
  margin-top: var(--space-6);
}

.footer-newsletter__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.footer-newsletter .newsletter-form input[type="email"] {
  border-color: rgba(255,255,255,0.12);
}

.newsletter-feedback {
  font-size: var(--text-xs);
  margin-top: var(--space-3);
  min-height: 1em;
}

.newsletter-feedback.success { color: var(--color-accent); }
.newsletter-feedback.error   { color: var(--color-danger); }

/* --------------------------------------------------------------------------
   TOGGLE TYPE DE CONTACT (contact / devis)
   -------------------------------------------------------------------------- */
.contact-type-btn.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* --------------------------------------------------------------------------
   PAGES LÉGALES (politique.html, cgu.html)
   -------------------------------------------------------------------------- */
.legal-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal-hero__updated {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-10);
  align-items: start;
  padding: var(--space-10) 0 var(--space-16);
}

.legal-toc {
  position: sticky;
  top: 100px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.legal-toc__title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-subtle);
  margin-bottom: var(--space-3);
}

.legal-toc a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
  transition: all var(--transition-fast);
}

.legal-toc a:hover {
  color: var(--color-accent-dk);
  border-left-color: var(--color-accent);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  scroll-margin-top: 100px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-content p {
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.legal-content ul, .legal-content ol {
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  padding-left: 1.3em;
  font-size: var(--text-sm);
}

.legal-content li { margin-bottom: var(--space-2); }
.legal-content strong { color: var(--color-text); }

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

.legal-note {
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-muted);
}


/* --------------------------------------------------------------------------
   ARTICLES DE BLOG
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   SCROLLBAR — fine et discrète, dans les couleurs de la marque
   (on la garde visible pour l'accessibilité/orientation, mais on la
   redessine pour qu'elle se fonde dans l'esthétique du site)
   -------------------------------------------------------------------------- */
html {
  scrollbar-width: thin;                                    /* Firefox */
  scrollbar-color: var(--color-subtle) transparent;         /* Firefox */
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
  border: 2px solid var(--color-bg);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
  background-clip: padding-box;
}
