/* ==========================================================
Accueil — Styles complets (sobre, moderne, accessible)
(patch: forçage couleur boutons, avis Google, overlay hero, scrollbars, tilt, etc.)
========================================================== */

/* ---------- Variables & reset légers ---------- */
:root{
  --font: var(--codex-body-font, 'Nunito','Segoe UI','Helvetica Neue',Arial,sans-serif);
  --ink: #0f172a;
  --muted: #4a5568; /* WCAG AA compliant */
  --accent: var(--season-primary, var(--codex-accent, #60a5fa));
  --accent-2: var(--season-secondary, var(--codex-accent-strong, #2563eb));
  --accent-3: var(--season-accent, #38bdf8);
  --amber: #a855f7;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 12px 32px rgba(15,23,42,.08);
  --shadow-2: 0 18px 46px rgba(15,23,42,.12);
  --shadow-3: 0 28px 70px rgba(15,23,42,.18); /* maj en JS */
}

/* Base */
*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family:var(--font);
  color:var(--ink);
  background: linear-gradient(180deg, rgba(248,251,255,1) 0%, rgba(236,244,255,1) 100%);
  line-height:1.5;
  scroll-behavior:smooth;
  overflow-x: hidden; /* ✅ Empêcher scroll horizontal (fix iOS 100vw) */
}
img{ max-width:100%; display:block; }
svg{ display:block; }

/* Liens & focus
   NOTE: on scope la couleur des liens à .home-wrap pour ne PAS teinter le footer */
.home-wrap a:not(.btn){ color:var(--accent); text-decoration:none; }
.home-wrap a:not(.btn):hover{ opacity:.95; }
.home-wrap .btn{ text-decoration:none; }

/* ✅ Forçage : les boutons restent lisibles (blanc) même si <a> est coloré globalement */
.home-wrap .btn.btn-gradient,
.home-wrap .btn.btn-ghost,
.home-wrap .btn.btn-primary{ color:#fff; }

/* ✅ Forçages CTA en noir (ne touche qu'aux 3 cas demandés) */
.home-wrap .catalogues .catalogue-card__actions a.btn.btn-secondary,
.home-wrap .catalogues__grid .catalogue-card__actions a.btn.btn-secondary,
.home-wrap #avis-google a.btn.btn-white,
.home-wrap .cta .cta__actions a.btn.btn-white{
  color: var(--ink);
}
.home-wrap #avis-google a.btn.btn-white:visited,
.home-wrap .cta .cta__actions a.btn.btn-white:visited,
.home-wrap .catalogues__grid .catalogue-card__actions a.btn.btn-secondary:visited{
  color: var(--ink);
}
/* ✅ HOVER : garantir lisibilité - texte encore plus foncé */
.home-wrap .catalogues .catalogue-card__actions a.btn.btn-secondary:hover,
.home-wrap .catalogues__grid .catalogue-card__actions a.btn.btn-secondary:hover{
  color: #0b1220; /* Noir intense pour maximum lisibilité */
}
.home-wrap #avis-google a.btn.btn-white:hover,
.home-wrap .cta .cta__actions a.btn.btn-white:hover{
  color: #0b1220; /* Noir intense pour maximum lisibilité */
}

/* Utilitaires généraux */
.home-wrap{ isolation:isolate; }
/* .top-spacer supprimé : offset géré par .page-has-hero .hero dans custom.css */

/* ---------- Sections & alternances ---------- */
.section-pad{
  padding: clamp(52px, 9vw, 96px) 4vw;
  position: relative; /* évite recouvrements */
  z-index: 0;
}
.alt-a{ background: linear-gradient(180deg, rgba(248,251,255,1) 0%, rgba(231,243,255,.92) 100%); }
.alt-b{ background: linear-gradient(180deg, rgba(231,243,255,1) 0%, rgba(223,234,255,.94) 100%); }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  min-height:clamp(480px, 62vh, 760px); /* ✅ Reserve space to prevent CLS */
  display:grid;
  place-items:center;
  overflow:hidden;  /* ✅ Contient le débordement horizontal */
  overflow-x:hidden;  /* ✅ Force pour iOS */
  z-index: 0;
  contain: layout; /* ✅ Contain layout shifts */
}
.hero__media{
  position:absolute;
  inset:0;
  min-height:clamp(480px, 62vh, 760px); /* ✅ Match hero height */
}
.hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: contrast(1.04) saturate(1.02);
  transform: scale(1.02);
  will-change: transform;
  animation: hero-image-zoom 20s ease-in-out infinite alternate;
  aspect-ratio: 16/9; /* ✅ Prevent aspect ratio shifts */
}
@keyframes hero-image-zoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.08); }
}
/* Hero slider dots */
.hero__dots{
  position:absolute; bottom:24px; left:50%; transform:translateX(-50%);
  z-index:2; display:flex; gap:10px; align-items:center;
}
.hero__dots button{
  width:10px; height:10px; border-radius:var(--radius-pill); border:2px solid rgba(255,255,255,.6);
  background:rgba(255,255,255,.2); cursor:pointer;
  transition: all .3s ease;
  padding:0;
}
.hero__dots button:hover{
  background:rgba(255,255,255,.5); transform:scale(1.15);
  border-color:rgba(255,255,255,.9);
}
.hero__dots button.is-active{
  background:rgba(255,255,255,.95); transform:scale(1.25);
  border-color:rgba(255,255,255,1);
  box-shadow:0 0 12px rgba(255,255,255,.4);
}
.hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(15,23,42,.25) 0%, rgba(15,23,42,.5) 55%, rgba(12,19,34,.7) 100%),
              linear-gradient(120deg, rgba(37,99,235,.2) 0%, rgba(125,211,252,.12) 100%);
  pointer-events: none; /* ✅ ne bloque pas les clics en dessous */
  animation: hero-gradient-shift 8s ease-in-out infinite alternate;
}
@keyframes hero-gradient-shift {
  0% { opacity: 0.95; }
  100% { opacity: 1; }
}
.hero__content{
  position:relative; z-index:1; text-align:center; color:#fff;
  padding: 6vh 4vw;
  max-width: 1100px;
  min-height: 200px; /* ✅ Reserve vertical space for content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Badge générique dans hero */
.hero__content .badge{
  display:inline-flex; align-items:center; gap:.6em;
  background: rgba(255,255,255,0.16);
  backdrop-filter: saturate(150%) blur(10px);
  padding:.5em 1.2em; border-radius:var(--radius-pill);
  font-size:.95rem; letter-spacing:.5px; font-weight:800;
  margin-bottom:1.4em; box-shadow:var(--shadow-accent-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.hero__content .badge::before {
  content: '';
  width: 0.5em;
  height: 0.5em;
  background: var(--season-accent, var(--accent-3)); /* Use dynamic season accent color */
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}
.hero__content .badge:hover{
  transform: scale(1.05);
  box-shadow:var(--shadow-accent-lg);
}
.hero__content .badge--new{
  background: linear-gradient(135deg, var(--accent, rgba(139,92,246,0.92)) 0%, var(--accent-3, rgba(168,85,247,0.88)) 100%);
  box-shadow:0 12px 36px color-mix(in srgb, var(--accent, #8b5cf6) 35%, transparent);
  animation: badge-pulse 3s ease-in-out infinite;
}
.hero__content .badge--new:hover{
  box-shadow:0 16px 48px color-mix(in srgb, var(--accent, #8b5cf6) 50%, transparent);
  animation: none;
}
@keyframes badge-pulse {
  0%, 100% {
    box-shadow:0 12px 36px color-mix(in srgb, var(--accent, #8b5cf6) 35%, transparent);
    transform: scale(1);
  }
  50% {
    box-shadow:0 16px 42px color-mix(in srgb, var(--accent, #8b5cf6) 45%, transparent);
    transform: scale(1.02);
  }
}
.hero__title{
  margin:0 0 .35em 0; font-weight:900; line-height:1.05; letter-spacing:.5px; color:#fff;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  text-shadow:0 18px 46px rgba(12,19,34,.45);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
}
.hero__title:hover{
  transform: scale(1.03);
  text-shadow: 0 24px 58px rgba(12,19,34,.65), 0 0 80px rgba(96,165,250,.35);
}
.hero__subtitle{
  margin:0 0 1.8em 0; font-weight:500; color:#e2f0ff; opacity:.96;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  text-shadow:0 14px 38px rgba(12,19,34,.4);
  max-width: 880px; margin-inline:auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.hero__subtitle:hover{
  opacity: 1;
  transform: translateY(-2px);
  text-shadow: 0 18px 46px rgba(12,19,34,.55);
}

/* ============================================================
   FORMULAIRE DE RECHERCHE HERO
   Fix: le parent .hero__content a padding 4vw qui réduisait la largeur
   ============================================================ */

/* Container pour le formulaire de recherche - mobile-first */
.hero__ctas{ 
  display: block;
  width: 100%;  /* ✅ Utiliser 100% au lieu de 100vw pour éviter débordement iOS */
  max-width: 100%;
  margin: 1.5rem auto 0;
  padding: 0;
  border: none;
  background: none;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .hero__ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
}

/* Formulaire de recherche - MOBILE */
.hero__ctas .hero-search-form {
  opacity: 1;  /* Afficher le formulaire une fois que accueil.css est chargé */
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  border-radius: 14px;
  gap: 6px;
  width: 100%;
  max-width: calc(100% - 32px);  /* Marge 16px de chaque côté */
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);  /* Plus transparent */
  box-sizing: border-box;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  backdrop-filter: blur(16px);  /* Augmenter le blur */
  -webkit-backdrop-filter: blur(16px);  /* Safari */
  border: 1px solid rgba(255,255,255,0.4);
  font-family: var(--codex-heading-font, sans-serif);
  color: #1e293b;
}

.hero-search-text {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

.hero-search-select {
  appearance: none;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px;
  background-position: right 9px center;
  text-align: left;
  background-color: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.hero-search-select:hover {
  border-color: #cbd5e1;
}

.hero-search-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.hero-search-select option {
  color: #1e293b;
  background: white;
  font-weight: 500;
}

.hero-search-btn {
  width: 100%;
  text-align: center;
  margin: 2px 0 0 0;
  padding: 10px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* DESKTOP */
@media (min-width: 769px) {
  .hero__ctas .hero-search-form {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 50px;
    gap: 8px;
    min-width: 520px;
    max-width: 600px;
    width: auto;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hero-search-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.95);
  }
  
  .hero-search-text {
    display: inline;
    width: auto;
    text-align: left;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
  }
  
  .hero-search-select {
    width: auto;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 4px 20px 4px 4px;
    background-position: right center;
    background-color: transparent;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
  }
  
  .hero-search-select:hover {
    color: #1d4ed8;
  }
  
  .hero-search-select:focus {
    border-bottom-color: #2563eb;
    box-shadow: none;
  }
  
  .hero-search-btn {
    width: auto;
    padding: 10px 20px;
    margin: 0 0 0 8px;
    font-size: 0.9rem;
  }
}

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding: .9em 1.6em; border-radius:var(--radius-md); font-weight:800; font-size:1.03rem;
  position:relative; overflow:hidden; cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  will-change: transform; pointer-events:auto;
  text-decoration: none;
}
.btn:hover{ transform: translateY(-2px); }
.btn-gradient{
  background: linear-gradient(115deg, var(--accent), var(--accent-2)); color:#fff;
  box-shadow:var(--shadow-accent-md);
}
.btn-gradient:hover{ 
  box-shadow:var(--shadow-accent-lg);
  color:#fff; /* ✅ Garantir texte blanc au hover */ 
}
.btn-ghost{
  background: rgba(255,255,255,.24); color:#fff;
  border:2px solid rgba(255,255,255,.6);
  box-shadow:0 12px 32px rgba(12,19,34,.45);
  backdrop-filter: blur(12px);
  font-weight: 800;
}
.btn-ghost:hover{ 
  background: rgba(255,255,255,.32);
  box-shadow:0 16px 40px rgba(12,19,34,.55); 
  border-color: rgba(255,255,255,.8);
  color:#fff; /* ✅ Garantir texte blanc au hover */
}
.btn-primary{
  background: linear-gradient(115deg, var(--accent), #818cf8); color:#fff;
  box-shadow:var(--shadow-accent-md);
}
.btn-primary:hover{ 
  box-shadow:var(--shadow-accent-lg);
  color:#fff; /* ✅ Garantir texte blanc au hover */ 
}
.btn-secondary{
  color: var(--accent);
  border:1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background:#fff;
}
.btn-secondary:hover{ 
  background:#eef6ff; 
  border-color: var(--accent);
  color: #1d4ed8; /* ✅ Bleu plus foncé pour lisibilité */ 
}
.btn-white{
  background:#fff; color:var(--ink);
  border:1px solid rgba(2,6,23,.10);
  box-shadow:0 12px 26px rgba(12,19,34,.12);
}
.btn-white:hover{ 
  box-shadow:0 16px 32px rgba(12,19,34,.18);
  color:var(--ink); /* ✅ Garantir texte noir au hover */ 
}
/* ✅ Forçage supplémentaire : cas précis des cartes catalogue */
.catalogue-card__actions .btn-primary{ color:#fff; }

/* Ripple (créé en JS) */
.btn .ripple{
  position:absolute; border-radius:var(--radius-circle);
  transform:scale(0); pointer-events:none;
  background: color-mix(in srgb, #fff 60%, transparent); opacity:.5;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple{ to{ transform:scale(2.6); opacity:0; } }

/* ---------- Entêtes de sections ---------- */
.section-head{ text-align:center; max-width: 900px; margin: 0 auto 28px; }
.section-title{
  margin:0 0 .35em 0; font-weight:900; letter-spacing:.4px;
  font-size:clamp(1.6rem, 2.6vw, 2.1rem); color: var(--ink);
}
.section-sub{ margin:0; color:#334155; font-size:clamp(.98rem,1.7vw,1.05rem); }

/* ---------- Reveal on scroll ---------- */
.reveal-up{ opacity:0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal-up.is-visible{ opacity:1; transform: translateY(0); }

/* ---------- Mission (Split 50/50) ---------- */
.mission__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.mission__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission__content .section-head {
  text-align: left;
  margin: 0;
}

.mission__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.mission__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* Tablette : on garde 2 colonnes pour les cartes */
@media (min-width: 769px) and (max-width: 1024px) {
  .valeurs__container {
    grid-template-columns: 40% 1fr;
    gap: 32px;
  }

  .valeurs__image {
    min-height: 400px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mission__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mission__content .section-head {
    text-align: center;
  }

  .mission__stats {
    grid-template-columns: 1fr 1fr; /* 2 colonnes côte à côte */
    gap: 12px;
  }

  .kpi-card {
    padding: 18px; /* Padding compact */
  }

  .kpi__value {
    font-size: 2.5rem; /* Taille réduite pour mobile */
  }

  .mission__image {
    aspect-ratio: 16/9;
    max-height: 240px; /* Réduit de 300px à 240px */
    order: 1; /* Image en dernier (après contenu) */
  }

  .valeurs .valeurs__container,
  section.valeurs .valeurs__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .valeurs__content .section-head {
    text-align: center;
  }

  .valeurs__content {
    order: 0;
  }

  .valeurs .valeurs__image,
  section.valeurs .valeurs__image {
    position: relative;
    aspect-ratio: 16/9;
    max-height: 240px;
    order: 1;
    width: 100%;
  }

  .valeurs__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .valeurs__grid .valeur-card:nth-child(3) {
    grid-column: 1; /* Pas besoin de span en 1 colonne */
  }
  
  .valeur-card {
    padding: 20px;
  }
  
  .valeur-card__icon {
    width: 48px;
    height: 48px;
  }
  
  .valeur-card h3 {
    font-size: 1.05rem;
  }
  
  .valeur-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}
.kpi-card{
  background: linear-gradient(145deg, rgba(255,255,255,.85) 0%, rgba(240,246,255,.95) 100%);
  backdrop-filter: blur(12px);
  border:1px solid rgba(148,186,255,.28); border-radius:var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: clamp(18px, 4vw, 26px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(96,165,250,.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.kpi-card:hover::before { opacity: 1; }
.kpi-card:hover{ 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: var(--shadow-2), 0 0 40px rgba(96,165,250,.2); 
}
.kpi__value-wrap{ display:flex; align-items:baseline; gap:.25em; position: relative; z-index: 1; }
.kpi__value{
  font-weight: 900; letter-spacing: .5px; line-height:1;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(37,99,235,.15));
}
.kpi-card:hover .kpi__value {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(37,99,235,.25));
}
.kpi__label{ 
  margin-top:.35em; color: var(--muted); font-weight:700; 
  font-size: clamp(1rem, 2.2vw, 1.06rem);
  position: relative;
  z-index: 1;
}
.kpi-card.is-counting .kpi__value{ animation: kpi-pop .5s ease-out; }
@keyframes kpi-pop{
  0%{ transform: scale(0.98); opacity: .9; }
  60%{ transform: scale(1.03); opacity: 1; }
  100%{ transform: scale(1); }
}

/* ---------- Catalogues ---------- */
.catalogues__grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
  gap: 32px; justify-content:center; align-items:stretch;
}

@media (max-width: 768px) {
  .catalogues__grid {
    gap: 20px; /* Réduit pour mobile */
  }
  
  .catalogue-card__content {
    padding: 20px 20px 30px; /* Réduit de 26px/36px à 20px/30px */
  }
}
.catalogue-card{
  position:relative; background: linear-gradient(150deg, rgba(255,255,255,.92) 0%, rgba(241,247,255,.98) 100%);
  border:1px solid rgba(148,186,255,.28); border-radius:var(--radius-2xl);
  padding:0; box-shadow: var(--shadow-1);
  display:flex; flex-direction:column; align-items:center; text-align:center;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.catalogue-card:hover{ transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-2); }

/* Image en haut de la carte */
.catalogue-card__image{
  position:relative; width:100%; height:320px;
  overflow:hidden;
  border-radius:var(--radius-2xl) var(--radius-2xl) 0 0;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .catalogues .catalogue-card__image,
  .catalogues__grid .catalogue-card__image {
    height: 280px; /* Augmenté pour mieux adapter ratio 3:4 */
    padding: 0; /* Pas de padding */
  }

  /* Passer en cover pour remplir tout l'espace sans blanc */
  .catalogues .catalogue-card__image img,
  .catalogues__grid .catalogue-card__image img {
    object-fit: cover; /* Remplit tout en coupant les bords */
  }
}
.catalogue-card__image img{
  width:100%; height:100%;
  object-fit:contain;
  object-position:center;
  transition: transform 0.4s ease;
}
.catalogue-card:hover .catalogue-card__image img{
  transform: scale(1.08);
}
.catalogue-card__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,0.15) 100%);
  pointer-events:none;
}

/* Contenu texte */
.catalogue-card__content{
  padding:26px 26px 36px;
  display:flex; flex-direction:column; align-items:center;
  flex:1;
  width:100%;
}
.catalogue-card h3{ margin:0 0 .35em 0; font-size:1.2rem; color:var(--ink); }
.catalogue-card p{ margin:0 0 20px 0; color:#334155; font-size:.98rem; }

.catalogue-card__actions{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center; width:100%;
  margin-top:auto; position: relative; z-index: 2;
}
.catalogue-card__actions .btn{
  pointer-events:auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.catalogue-card__actions .btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* ---------- Valeurs (Option 2 : Image grande + grille 2 colonnes) ---------- */
.valeurs__container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.valeurs__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.valeurs__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #f1f5f9;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

.valeurs__content .section-head {
  margin: 0;
}

.valeurs__grid{
  display:grid;
  gap: 20px;
  align-items:stretch;
}

/* Desktop */
@media (min-width: 769px) {
  .valeurs__container {
    grid-template-columns: 45% 1fr;
    gap: 48px;
    align-items: start;
  }

  .valeurs__image {
    height: 100%;
    min-height: 500px;
    position: sticky;
    top: 100px;
  }

  .valeurs__content {
    gap: 32px;
  }

  .valeurs__content .section-head {
    text-align: left;
  }

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

  /* Carte 3 (Fun & diversité) prend toute la largeur */
  .valeurs__grid .valeur-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}
.valeur-card{
  position:relative; background: linear-gradient(150deg, rgba(255,255,255,.94) 0%, rgba(237,244,255,.98) 100%);
  border:1px solid rgba(148,186,255,.28); border-radius:var(--radius-xl);
  padding:26px; box-shadow: var(--shadow-1);
  display:flex; flex-direction:column; align-items:center; text-align:center;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.valeur-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(96,165,250,.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.valeur-card:hover::before { opacity: 1; }
.valeur-card:hover{ 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-2), 0 0 30px rgba(96,165,250,.15); 
}
.valeur-card__icon{
  width:58px; height:58px; display:grid; place-items:center; border-radius:var(--radius-lg); margin-bottom:10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.valeur-card:hover .valeur-card__icon {
  transform: translateY(-4px) rotate(5deg) scale(1.1);
  animation: icon-bounce 0.6s ease;
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(-4px) rotate(5deg) scale(1.1); }
  50% { transform: translateY(-8px) rotate(-5deg) scale(1.15); }
}
.valeur-card__icon.bg-blue{ background: color-mix(in srgb, var(--accent) 18%, transparent); }
.valeur-card__icon.bg-green{ background: color-mix(in srgb, var(--accent-3) 20%, transparent); }
.valeur-card__icon.bg-amber{ background: color-mix(in srgb, var(--amber) 20%, transparent); }
.valeur-card__icon svg {
  transition: transform 0.3s ease;
}
.valeur-card:hover .valeur-card__icon svg {
  transform: rotate(10deg);
}
.valeur-card h3{ 
  margin:12px 0 6px 0; font-size:1.18rem; color:var(--ink);
  position: relative;
  z-index: 1;
}
.valeur-card p{ 
  margin:0; color:#334155; font-size:.98rem;
  position: relative;
  z-index: 1;
}

/* ---------- Carrousels génériques ---------- */
.carousel{ position:relative; } /* ← slider simple */ /* ← slider simple */

/* Dots */
.carousel__dots{ display:flex; gap:8px; justify-content:center; margin-top:14px; }
.carousel__dots button{
  width:8px; height:8px; border-radius:var(--radius-pill); border:none; background:#cbd5e1;
  cursor:pointer; transition: transform .2s ease, background .2s ease;
}
.carousel__dots button.is-active{ transform: scale(1.4); background: var(--accent); }

/* Flèches (masquées sur mobile) */

/* Cacher scrollbar proprement quand demandé (via classe JS OU data-attr) */

/* ---------- Cartes Séjours ---------- */
.sejours .card{
  background: linear-gradient(150deg, rgba(255,255,255,.94) 0%, rgba(237,244,255,.98) 100%);
  border:1px solid rgba(148,186,255,.28); border-radius:var(--radius-xl); overflow:hidden;
  box-shadow: var(--shadow-1); transition: transform .18s ease, box-shadow .18s ease;
}
.sejours .card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-2); }
.sejours .card__body{ padding:16px 16px 18px; }
.sejours .card__body h3{ margin:.2em 0 .3em 0; font-size:1.15rem; color:var(--ink); }
.sejours .card__body p{ margin:0 0 14px 0; color:#334155; font-size:.96rem; }

/* ---------- Avis Google (Option B) ---------- */
.reviews-grid{
  max-width:1100px; margin:0 auto;
  display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
}
.reviews-grid__loading{ text-align:center; color:#334155; padding:16px; }
.review-card{
  background: linear-gradient(150deg, rgba(255,255,255,.94) 0%, rgba(235,243,255,.98) 100%);
  border:1px solid rgba(148,186,255,.28); border-radius:var(--radius-lg); padding:18px;
  box-shadow:var(--shadow-md);
}
.review-card__head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.review-card__avatar{
  width:36px; height:36px; border-radius:var(--radius-pill); background:color-mix(in srgb, var(--accent) 18%, transparent);
  display:grid; place-items:center; font-weight:800; color:#1d4ed8;
}
.review-card__name{ font-weight:800; color:#0f172a; }
.review-card__date{ margin-left:auto; font-size:.85rem; color:#334155; }
.review-card__stars{ display:flex; gap:2px; margin-bottom:6px; }
.review-card__text{ color:#0f172a; font-size:.98rem; }
.review-card__src{ margin-top:10px; font-size:.85rem; color:#334155; }
.review-card__src a{ color:var(--accent); text-decoration:none; }

/* ---------- Témoignages (conservé au cas où) ---------- */

/* ---------- CTA ---------- */
.cta .cta__inner{
  max-width:1000px; margin:0 auto; text-align:center;
  background: linear-gradient(130deg, rgba(231,243,255,1) 0%, rgba(199,228,255,.92) 60%, rgba(212,216,255,.9) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 42px); box-shadow: var(--shadow-1);
}
.cta .badge{
  display:inline-flex; align-items:center; gap:.6em;
  background: color-mix(in srgb, var(--accent, #60a5fa) 16%, transparent);
  padding:.45em .9em; border-radius:var(--radius-pill);
  font-size:.95rem; font-weight:800;
  color: color-mix(in srgb, var(--accent-2, #1d4ed8) 100%, transparent);
  margin-bottom:14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent, #60a5fa) 15%, transparent);
  animation: cta-badge-pulse 3s ease-in-out infinite;
}
@keyframes cta-badge-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent, #60a5fa) 15%, transparent);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent, #60a5fa) 25%, transparent);
    transform: scale(1.02);
  }
}
.cta .badge:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, #60a5fa) 30%, transparent);
}
.cta h2{
  margin:.1em 0 .35em 0; font-weight:900; letter-spacing:.4px;
  font-size:clamp(1.6rem, 2.6vw, 2.1rem); color:var(--ink);
}
.cta__sub{
  margin:0 auto 20px auto; color:#334155; font-size:clamp(.98rem,1.7vw,1.05rem); max-width:760px;
}
.cta__actions{ 
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:10px;
}
.cta__actions .btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.cta__actions .btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ---------- Effets avancés (tilt/parallaxe) ---------- */
.tiltable{ will-change: transform; transform-style: preserve-3d; transition: transform .12s ease, box-shadow .2s ease; }
.tiltable.is-tilting{ box-shadow: var(--shadow-3); }
.tiltable.suspend-tilt,
.catalogue-card.suspend-tilt,
.catalogue-card.suspend-tilt:hover{
  transform:none; box-shadow: var(--shadow-1);
}
.parallax{ will-change: transform; }

/* ---------- Back-to-top & progress ---------- */
.back-to-top{
  position:fixed; right:16px; bottom:16px; z-index:60; opacity:0; pointer-events:none;
  width:42px; height:42px; border-radius:var(--radius-pill);
  border:1px solid rgba(2,6,23,.12); background:#fff; color:var(--ink);
  box-shadow: var(--shadow-1); display:grid; place-items:center;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible{ opacity:1; pointer-events:auto; transform: translateY(-4px); }
.back-to-top:hover{ transform: translateY(-6px); }

/* Masquer back-to-top sur mobile (caché par la bottom bar) */
@media (max-width: 768px) {
  .back-to-top {
    display: none !important;
  }
}

.read-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index:80;
}
footer, .gh-foot{ color:#e2e8f0; }
footer a, .gh-foot a{ color:#e5e7eb; text-decoration:none; }
footer a:hover, .gh-foot a:hover{ text-decoration:underline; }
footer svg, .gh-foot svg{ fill:#e5e7eb; stroke:#e5e7eb; }

/* ---------- Responsive & carrousel sizing ---------- */
/* Desktop par défaut : 4 cartes */
/* Tablette : 2 cartes */
/* Mobile : 1 carte + snap */
/* Petits ajustements mobiles */
@media (max-width: 768px){
  .hero__title{ font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero__subtitle{ font-size: 1rem; }
  
  /* ✅ Compensation padding footer pour bottom bar + marge */
  .m-footer {
    padding-bottom: 130px; /* 80px global + 50px spécifique - ajusté de 110px à 130px */
  }
}

/* ================= SÉJOURS À LA UNE (dynamique) ================= */
.featured-sejours {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.l-grid.centered {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.m-featured-article {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius:var(--radius-lg);
  overflow: hidden;
  box-shadow:var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}

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

.m-featured-article__picture {
  display: block;
  position: relative;
  padding-top: 62.5%; /* 16:10 ratio */
  overflow: hidden;
  background: #f3f5f8;
}

.m-featured-article__picture > div {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.m-featured-article:hover .m-featured-article__picture > div {
  transform: scale(1.08);
}

.m-featured-article__meta {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.m-featured-article__content {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.m-featured-article__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.3;
  color: #0f172a;
  transition: color .2s ease;
}

.m-featured-article:hover .m-featured-article__title {
  color: #2563eb;
}

.m-featured-article__meta-info {
  font-size: .88rem;
  color: #334155;
  line-height: 1.6;
}

.m-featured-article__meta .le-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
  pointer-events: auto;
}

.m-featured-article__meta .le-card__badges--right {
  top: auto;
  bottom: 12px;
  left: auto;
  right: 12px;
  justify-content: flex-end;
}

.m-featured-article__meta .le-card__badges--bottom {
  top: auto;
  bottom: 12px;
  left: 12px;
  right: auto;
  justify-content: flex-start;
}

.le-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius:var(--radius-sm);
  font-size: 22px;
  line-height: 1;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(148,186,255,.28);
  color: #0f172a;
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow:var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.le-badge:hover {
  transform: scale(1.08);
  box-shadow:var(--shadow-md);
}

.le-badge--new {
  background: color-mix(in srgb, var(--accent, #60a5fa) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2, #3b82f6) 40%, transparent);
  animation: badge-float 3s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}
.le-badge--new:hover {
  animation: none;
  transform: scale(1.08) translateY(-2px);
}

.le-badge--theme {
  background: rgba(255,255,255,.92);
  border:1px solid rgba(148,186,255,.28);
}

.le-badge--theme-decouverte {
  border-color: rgba(16,185,129,.4);
}
.le-badge--theme-decouverte::before {
  content: "🔍";
}

.le-badge--theme-initiation {
  border-color: rgba(245,158,11,.4);
}
.le-badge--theme-initiation::before {
  content: "🌱";
}

.le-badge--theme-passion {
  border-color: rgba(139,92,246,.4);
}
.le-badge--theme-passion::before {
  content: "🔥";
}

.le-badge--new {
  background: rgba(96,165,250,.95);
  border: 1px solid rgba(59,130,246,.4);
}
.le-badge--new::before {
  content: "✨";
}

.le-badge--soldout {
  background: rgba(239,68,68,.95);
  border: 1px solid rgba(239,68,68,.4);
  min-width: 40px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
}
.le-badge--soldout::before {
  content: "🚫";
  margin-right: 6px;
}
.le-badge--soldout::after {
  content: "Complet";
}

.m-featured-article.no-picture .m-featured-article__picture {
  display: none;
}

@media (max-width: 768px) {
  /* Swiper horizontal avec 2 cartes visibles */
  .l-grid.centered {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 20px 20px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
    min-height: 0 !important; /* ✅ Annule le min-height inline du JS */
  }
  
  .l-grid.centered::-webkit-scrollbar {
    height: 6px;
  }
  
  .l-grid.centered::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .l-grid.centered::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.3);
    border-radius: 3px;
  }
  
  .l-grid.centered::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.5);
  }
  
  .featured-sejours .m-featured-article,
  .l-grid.centered .m-featured-article {
    flex: 0 0 calc(65% - 6px); /* ✅ Augmenté de 50% à 65% */
    min-width: calc(65% - 6px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }
  
  /* Augmenter taille de l'image */
  .m-featured-article__picture {
    padding-top: 75%; /* ✅ Ratio 4:3 au lieu de 16:9 (56%) */
    flex-shrink: 0;
  }
  
  .featured-sejours .m-featured-article__content,
  .l-grid.centered .m-featured-article__content {
    padding: 14px 16px; /* ✅ Augmenté de 10px/12px */
    display: flex;
    flex-direction: column;
    gap: 8px; /* ✅ Augmenté de 6px */
    flex: 1; /* Prend l'espace restant */
    min-height: 0;
  }
  
  .featured-sejours .m-featured-article__title,
  .l-grid.centered .m-featured-article__title {
    font-size: 1rem; /* ✅ Augmenté de 0.9rem */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
  }
  
  .featured-sejours .m-featured-article__meta-info,
  .l-grid.centered .m-featured-article__meta-info {
    font-size: 0.85rem; /* ✅ Augmenté de 0.75rem */
    line-height: 1.3;
    margin: 0;
    padding: 0;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ================= SLIDER - Indicateurs améliorés ================= */

/* Pagination Swiper améliorée */

/* Amélioration dots carousel simple */
.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

/* Boutons de navigation améliorés */

/* ===== PADDING MOBILE POUR BOTTOM BAR ===== */
@media (max-width: 768px) {
  .home-template main,
  .home-template .main-wrap {
    padding-bottom: 130px !important; /* 60px bar + 60px marge + 10px buffer */
  }
}

/* ==========================================================
   RSE Homepage Section
   ========================================================== */

/* Section RSE (position 6) */
.rse {
  position: relative;
  overflow: hidden;
}

.rse__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Contenu texte */
.rse__content {
  max-width: 600px;
}

.rse__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Cards engagements RSE */
.rse-card {
  background: linear-gradient(150deg, rgba(255,255,255,.94) 0%, rgba(237,244,255,.98) 100%);
  border: 1px solid rgba(148,186,255,.28);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.rse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.rse-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.rse-card__icon svg {
  width: 22px;
  height: 22px;
}

.rse-card:hover .rse-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.rse-card__icon.bg-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.rse-card__icon.bg-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.rse-card__icon.bg-amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Contenu texte des cards RSE - prend tout l'espace restant */
.rse-card > div:last-child,
.rse-card > :not(.rse-card__icon) {
  flex: 1;
  min-width: 0;
}

.rse-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.rse-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  color: #334155;
}

/* Métriques RSE */
.rse__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.rse__metrics .kpi-card {
  padding: 16px;
}

.rse__metrics .kpi__value {
  font-size: 2rem;
}

.rse__metrics .kpi__label {
  font-size: 0.85rem;
}

/* Image RSE */
.rse__image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  height: fit-content;
}

.rse__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 3/4;
}

/* Responsive RSE */
@media (max-width: 1024px) {
  .rse__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rse__content {
    max-width: 100%;
  }

  .rse__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .rse__image img {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 640px) {
  .rse__grid {
    gap: 12px;
  }

  .rse-card {
    padding: 14px 16px;
  }

  .rse__metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
