/*
==================================================
  FRONT-PAGE.CSS – Page d'accueil
  Thème enfant Neve
  Objectif : styliser uniquement la page d'accueil
==================================================
*/

/* ------------------------------------------------
   🟦 VARIABLES GLOBALES
   (couleurs, typo basique)
-------------------------------------------------- */
:root {
  --primary: #264154;
  --gold: #D29C2C;
  --light: #ffffff;
  --dark: #1b2430;
  --font-base: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  font-family: var(--font-base);
  color: var(--dark);
}



/* ==================================================
   1️⃣  HERO D’INTRO ANIMÉ (texte + vidéo)
================================================== */

.home-hero {
  padding: 0;
}

/* plein écran bord à bord */
.home-hero--video {
  position: relative;
  width: 100vw;
  height: 90vh;
  height: 90dvh;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background: #000;
}

.home-hero__overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

/* vidéo en fond */
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0;                 /* on commence caché */
  transition: opacity .6s ease;
  z-index: 1;
  pointer-events: none;
}

/* texte au centre au-dessus de la vidéo */
.home-hero__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: 1.5rem;
  z-index: 2;
  color: #111;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.85) 60%,
    rgba(255,255,255,0.72) 100%
  );                          /* voile blanc sur la vidéo pour la phase texte */
  opacity: 1;
  transition: opacity .4s ease;
}

.home-hero__text h1 {
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

/* classes d’animation */
.home-hero__text.fade-out { opacity: 0; }
.home-hero__video.fade-in { opacity: 1; }

/* responsive rapide */
@media (max-width: 768px) {
  .home-hero--video {
    height: 70vh;
    height: 70dvh;
  }

  .home-hero__text h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .home-hero__video {
    object-position: 50% 50%;
  }
}

@media (max-width: 480px) {
  .home-hero--video {
    height: 60vh;
    height: 60dvh;
  }

  .home-hero__text h1 {
    font-size: clamp(1.4rem, 7vw, 2.1rem);
  }
}



/* ==================================================
   2) – SECTION "Nos parcours"
   ================================================== */

.home-parcours {
  margin-top: 2rem;
  padding-block: clamp(2.4rem, 5vw, 5.2rem);
  margin-inline: clamp(1rem, 4vw, 3.5rem); /* cadre global un peu plus large */
}

.home-parcours-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-parcours-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.home-parcours-subtitle {
  margin: 0 0 2.3rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #2d3a43;
  opacity: 0.9;
}

/* Grille des cartes */

.home-parcours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 2rem);
}

/* Cartes */

.home-parcours-card {
  position: relative;
  border-radius: 0.125rem;
  overflow: hidden;
  min-height: clamp(240px, 20vw, 320px);
  isolation: isolate;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation fond */

@keyframes homeParcoursDrift {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  50%  { transform: scale(1.06) translate3d(4px, -4px, 0); }
  100% { transform: scale(1.05) translate3d(0, 0, 0); }
}

.home-parcours-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.8);
  z-index: 0;

  transform: scale(1.05) translate3d(0, 0, 0);
  animation: homeParcoursDrift 9s ease-in-out infinite;
  transition:
    transform 520ms cubic-bezier(.18,.84,.36,1),
    filter 520ms ease;
}

/* Dégradé sombre */

.home-parcours-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* Contenu de la carte */

.home-parcours-card-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.home-parcours-card-overlay h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.2;
}

.home-parcours-card-overlay p {
  margin: 0 0 0.6rem;
  opacity: 0.95;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

/* Bouton */

.home-parcours-card-overlay a {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 2px;
  color: var(--light);
  font-weight: 600;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.home-parcours-card-overlay a:hover {
  background-color: var(--primary);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

/* Hover desktop */

.home-parcours-card:hover::before {
  animation: none;
  transform: scale(1.08) translate3d(6px, -6px, 0);
  filter: brightness(0.95);
}

.home-parcours-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* =====================
   Responsive
   ===================== */

/* Tablette */
@media (max-width: 1024px) {
  .home-parcours {
    margin-inline: clamp(0.75rem, 3vw, 2.5rem);
    padding-block: 2.2rem 2.8rem;
  }

  .home-parcours-inner {
    max-width: 100%;
  }
}

/* Mobile / petit laptop ≤768px
   → cards plus hautes, un peu moins larges
   pour donner un meilleur ratio et un indice de scroll horizontal. [web:84][web:91] */
@media (max-width: 768px) {
  .home-parcours {
    margin-inline: 1rem;
    padding-block: 2rem 2.4rem;
  }

  .home-parcours-title {
    margin-bottom: 0.4rem;
  }

  .home-parcours-subtitle {
    margin-bottom: 1.8rem;
    font-size: 1rem;
  }

  .home-parcours-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.9rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .home-parcours-card {
    /* moins large, plus haute */
    min-width: 72%;
    flex: 0 0 72%;
    min-height: 260px;
    scroll-snap-align: center;
  }

  .home-parcours-grid::-webkit-scrollbar {
    height: 6px;
  }
  .home-parcours-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  .home-parcours-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
  }
}

/* Mobile étroit */
@media (max-width: 480px) {
  .home-parcours {
    margin-inline: 0.75rem;
    padding-block: 1.8rem 2.2rem;
  }

  .home-parcours-card {
    /* encore un peu plus haute et moins large */
    min-width: 78%;
    flex: 0 0 78%;
    min-height: 280px;
  }

  .home-parcours-card-overlay {
    inset: auto 0.85rem 0.85rem 0.85rem;
  }
}

/* Motion réduite : pas d’animation */
@media (prefers-reduced-motion: reduce) {
  .home-parcours-card::before {
    animation: none;
    transform: scale(1.03) translate3d(0, 0, 0);
    transition: none;
  }
}


/* ==================================================
   3) – SECTION "Académie"
   ================================================== */

.home-academie {
  padding-block: clamp(2.6rem, 5vw, 5rem);
  margin-inline: clamp(1rem, 4vw, 3.5rem); /* même logique que les autres sections */
}

.home-academie-inner {
  max-width: 60rem;            /* largeur de texte confortable ~ 70–80 caractères [web:111][web:117][web:121] */
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.home-academie-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.2rem;
  text-align: center;
}

.home-academie-intro {
  margin: 0 0 1.6rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #2d3a43;
  opacity: 0.95;
  font-weight: 500;
  text-align: center;
}

.home-academie-text {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  padding-top: 2rem;
  line-height: 1.7;
  color: #1f2933;
}

.home-academie-text p {
  margin: 0 0 0.9rem;
}

/* =====================
   Responsive
   ===================== */

/* Tablette */
@media (max-width: 1024px) {
  .home-academie {
    margin-inline: clamp(0.75rem, 3vw, 2.5rem);
    padding-block: 2.3rem 2.8rem;
  }

  .home-academie-inner {
    max-width: 100%;
  }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  .home-academie {
    margin-inline: 1rem;
    padding-block: 2rem 2.4rem;
  }

  .home-academie-title {
    margin-bottom: 0.5rem;
  }

  .home-academie-intro {
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
  }

  .home-academie-text {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Mobile étroit ≤480px */
@media (max-width: 480px) {
  .home-academie {
    margin-inline: 0.75rem;
    padding-block: 1.8rem 2.2rem;
  }

  .home-academie-text p {
    margin-bottom: 0.85rem;
  }
}


/* ==================================================
   4) – SECTION "Instagram"
   ================================================== */

.home-instagram {
  padding-block: clamp(2.2rem, 4vw, 3rem);
  margin-inline: clamp(1rem, 4vw, 3.5rem); /* même logique que .home-parcours */
}

.home-instagram-inner {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-instagram-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.home-instagram-text {
  max-width: 40rem;
  margin: 0 auto 1.8rem;
  color: #2d3a43;
  opacity: 0.9;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

/* Wrapper du widget Trustindex */
.home-instagram-widget {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 1px;
}

/* Arrondis légers sur les items (si dispo dans le HTML du widget) */
.home-instagram-widget .ti-widget .ti-review-item > .ti-inner,
.home-instagram-widget .ti-widget .ti-item-inner {
  border-radius: 1px !important;
}

/* Section Instagram : cartes sans arrondi */
.home-instagram article.ti-widget-card {
  border-radius: 2px !important;
}


/* =====================
   Responsive
   ===================== */

/* Tablette */
@media (max-width: 1024px) {
  .home-instagram {
    margin-inline: clamp(0.75rem, 3vw, 2.5rem);  /* comme .home-parcours */
    padding-block: 2.1rem 2.7rem;
  }

  .home-instagram-inner {
    max-width: 100%;  /* on laisse respirer, plein écran avec marges */
  }

  .home-instagram-widget {
    max-width: 100%;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .home-instagram {
    margin-inline: 1rem;          /* ~16px de chaque côté */
    padding-block: 2rem 2.4rem;
  }

  .home-instagram-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .home-instagram-inner {
    max-width: 100%;
  }

  .home-instagram-widget {
    max-width: 100%;
  }

  /* Images du feed : ratio fixe, pas de max-height */
  .home-instagram-widget img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* carré, modifiable si besoin */
  }
}

/* Mobile étroit ≤ 480px */
@media (max-width: 480px) {
  .home-instagram {
    margin-inline: 0.75rem;       /* ~12px de chaque côté, comme .home-parcours */
    padding-block: 1.8rem 2.2rem;
  }

  .home-instagram-widget img {
    aspect-ratio: 1 / 1;
  }
}

/* Petit hack de robustesse pour Safari mobile si nécessaire */
@supports (-webkit-touch-callout: none) {
  .home-instagram-widget img {
    min-width: 100%;
  }
}



/* ==================================================
   5) – SECTION "Découvrir"
   ================================================== */

.home-decouvrir {
  padding-block: clamp(2.4rem, 5vw, 5.2rem);
  margin-inline: clamp(1rem, 4vw, 3.5rem); /* même logique que les autres sections */
}

.home-decouvrir-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-decouvrir-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

/* Sous-titre */

.home-decouvrir-subtitle {
  max-width: 40rem;
  margin: 0 auto 2.3rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #2d3a43;
  opacity: 0.9;
}

/* Grille des cartes – desktop */

.home-decouvrir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 2rem);
}

/* Carte individuelle */

.home-decouvrir-card {
  position: relative;
  border-radius: 0.125rem;
  overflow: hidden;
  min-height: clamp(240px, 20vw, 320px);
  isolation: isolate;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-decouvrir-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: brightness(0.8);
  transition: transform 0.45s ease, filter 0.45s ease;
  z-index: 0;
}

.home-decouvrir-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* Contenu */

.home-decouvrir-card-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.home-decouvrir-card-overlay h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.2;
}

.home-decouvrir-card-overlay p {
  margin: 0 0 0.6rem;
  opacity: 0.95;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

/* Boutons */

.home-decouvrir-card-overlay a {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 2px;
  color: var(--light);
  font-weight: 600;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.home-decouvrir-card-overlay a:hover {
  background-color: var(--primary);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

/* Hover carte */

.home-decouvrir-card:hover::before {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.home-decouvrir-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* =====================
   Responsive
   ===================== */

/* Tablette ≤1024px : même logique que les autres sections */
@media (max-width: 1024px) {
  .home-decouvrir {
    margin-inline: clamp(0.75rem, 3vw, 2.5rem);
    padding-block: 2.2rem 2.8rem;
  }

  .home-decouvrir-inner {
    max-width: 100%;
  }
}

/* ≤900px : on bascule la grille en type carrousel comme "Nos parcours" */
@media (max-width: 900px) {
  .home-decouvrir-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.9rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .home-decouvrir-grid::-webkit-scrollbar {
    height: 6px;
  }
  .home-decouvrir-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  .home-decouvrir-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
  }
}

/* Mobile ≤768px
   → même réglages inline que les autres sections
   → cartes plus hautes et moins larges */
@media (max-width: 768px) {
  .home-decouvrir {
    margin-inline: 1rem;
    padding-block: 2rem 2.4rem;
  }

  .home-decouvrir-title {
    margin-bottom: 0.4rem;
  }

  .home-decouvrir-subtitle {
    margin-bottom: 1.8rem;
    font-size: 1rem;
  }

  .home-decouvrir-card {
    min-width: 72%;
    flex: 0 0 72%;
    min-height: 260px; /* plus de hauteur que le desktop */
    scroll-snap-align: center;
  }
}

/* Mobile étroit ≤480px */
@media (max-width: 480px) {
  .home-decouvrir {
    margin-inline: 0.75rem;
    padding-block: 1.8rem 2.2rem;
  }

  .home-decouvrir-card {
    min-width: 78%;
    flex: 0 0 78%;
    min-height: 280px;
  }

  .home-decouvrir-card-overlay {
    inset: auto 0.85rem 0.85rem 0.85rem;
  }
}


/* ==================================================
   6) – SECTION "Partenaires"
   ================================================== */

.home-partners {
  padding-block: clamp(2.6rem, 4vw, 3.2rem);
  border-top: 1px solid rgba(12, 23, 42, 0.04);
  margin-bottom: 2rem;
  margin-inline: clamp(1rem, 4vw, 3.5rem); /* même logique que les autres sections */
}

.home-partners-inner {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.home-partners-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.home-partners-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
}

.home-partners-subtitle {
  max-width: 40rem;
  margin: 0 auto 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--primary);
}

/* Grille de logos */

.home-partners-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 1.6rem);
  align-items: center;
  justify-items: center;
}

.home-partners-logo-item {
  max-width: 170px;
  width: 100%;
  filter: grayscale(0.2);
  opacity: 0.9;
  transition:
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.home-partners-logo-item img {
  display: block;
  width: 100%;
  height: auto;
}

.home-partners-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

/* =====================
   Responsive
   ===================== */

/* Tablette ≤1024px : marges harmonisées */
@media (max-width: 1024px) {
  .home-partners {
    margin-inline: clamp(0.75rem, 3vw, 2.5rem);
    padding-block: 2.4rem 3rem;
  }

  .home-partners-inner {
    max-width: 100%;
  }
}

/* ≤800px : grille en 2 colonnes */
@media (max-width: 800px) {
  .home-partners-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.6rem;
  }

  .home-partners-logo-item {
    max-width: 140px;
  }
}

/* Mobile ≤768px : mêmes règles que les autres sections */
@media (max-width: 768px) {
  .home-partners {
    margin-inline: 1rem;
    padding-block: 2.2rem 2.6rem;
    margin-bottom: 3.2rem;
  }

  .home-partners-title {
    font-size: 1.8rem;
  }

  .home-partners-subtitle {
    font-size: 1rem;
  }
}

/* Mobile étroit ≤480px */
@media (max-width: 480px) {
  .home-partners {
    margin-inline: 0.75rem;
    padding-block: 2rem 2.4rem;
    margin-bottom: 3rem;
  }

  .home-partners-logos {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
  }

  .home-partners-subtitle {
    font-size: 0.95rem;
  }

  .home-partners-logo-item {
    max-width: 130px;
  }
}


/* ==================================================
   7) – SECTION "Avis Google"
   ================================================== */

.home-reviews {
  padding-block: clamp(2.4rem, 4vw, 3rem) 1.6rem;
  margin-inline: clamp(1rem, 4vw, 3.5rem);
}

.home-reviews-inner {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-reviews-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.home-reviews-intro {
  max-width: 40rem;
  margin: 0 auto 1.8rem;
  color: #2d3a43;
  opacity: 0.9;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

/* Wrapper du widget : centré et fluide */
.home-reviews-widget {
  max-width: 56rem;
  margin: 0 auto;
  overflow: hidden; /* évite des débordements Safari */
}

/* Ajustements Trustindex Google */
.ti-widget.ti-goog {
  min-height: 150px !important;
  font-family: inherit !important;
  max-width: 100% !important;
}

/* cartes d’avis sans arrondis */
.ti-widget.ti-goog .ti-widget-container .ti-review-item > .ti-inner {
  border-radius: 0 !important;
}

/* Option : enlever tous les arrondis Trustindex */
.trustindex-widget,
.trustindex-widget *,
div[id^="trustindex"],
div[id^="trustindex"] * {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
}

/* =====================
   Responsive
   ===================== */

/* Tablette ≤1024px */
@media (max-width: 1024px) {
  .home-reviews {
    margin-inline: clamp(0.75rem, 3vw, 2.5rem);
    padding-block: 2.3rem 1.6rem;
  }

  .home-reviews-inner,
  .home-reviews-widget {
    max-width: 100%;
  }
}

/* ≤900px : petit ajustement de typo */
@media (max-width: 900px) {
  .home-reviews-intro {
    font-size: 1rem;
    margin-bottom: 1.4rem;
  }

  .ti-widget.ti-goog .ti-widget-container {
    padding-inline: 0 !important;
  }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  .home-reviews {
    margin-inline: 1rem;
    padding-block: 2.1rem 1.5rem;
  }

  .home-reviews-title {
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  .home-reviews-intro {
    font-size: 0.98rem;
  }

  .ti-widget.ti-goog .ti-review-content,
  .ti-widget.ti-goog .ti-review-content * {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
}

/* Mobile étroit ≤480px */
@media (max-width: 480px) {
  .home-reviews {
    margin-inline: 0.75rem;
    padding-block: 2rem 1.3rem;
  }

  .ti-widget.ti-goog .ti-review-item {
    margin-bottom: 0.75rem !important;
  }
}

/* Hack ciblé Safari iOS pour éviter des coupures de contenu */
@supports (-webkit-touch-callout: none) {
  .home-reviews-widget,
  .ti-widget.ti-goog {
    overflow: visible;
  }
}


/* ==================================================
   7 BANDEAU DE PIED (CTA final)
================================================== */

.bottom-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}


/* ==================================================
   8) ROBUSTESSE & ACCESSIBILITÉ
   ================================================== */

/* Empêche les clics sur la vidéo de héro (si purement décorative) */
.hero__video {
  pointer-events: none;
}

/* Fallback si aspect-ratio non supporté (vignettes d’articles, etc.) */
@supports not (aspect-ratio: 16/9) {
  .post .thumb {
    position: relative;
    height: 0;
    padding-top: 56.25%; /* 16:9 */
  }

  .post .thumb > * {
    position: absolute;
    inset: 0;
  }
}

/* Respecte les préférences d’animation de l’utilisateur */
@media (prefers-reduced-motion: reduce) {
  .hero__text,
  .hero__video {
    transition: none !important;
  }

  .hero__text {
    opacity: 0;
  }

  .hero__video {
    opacity: 1;
  }
}