/* Theme Name: Marrakesh Experiences by Smart Advice */ 
/*Theme URI: https://marrakeshexperiences.ma Author: Smart Advice Author URI: https://smartadvice.ma Description: Thème WordPress léger pour activités désert d’Agafay (quad, buggy, dromadaire, dîner sous les étoiles). Page d’accueil immersive, CTA WhatsApp, sections expériences, galerie, avis, FAQ et contact. Personnalisations: WhatsApp, e-mail, réseaux sociaux, couleurs. Version: 1.0.1 License: GNU GPL v2 or later Text Domain: marrakeshexperiences Tags: tourism, travel, desert, booking, landing, responsive */ 
/* ============================= */ 
/* Variables & Reset */ 
/* ============================= */ 
:root{ 
	--sand:#D4A373; 
	--ocre:#B08C23; 
	--night:#1B263B; 
	--terra:#A0522D; 
	--ivory:#F5F5F5; 
	--ink:#1f2937; 
} *, *::before, *::after { box-sizing: border-box; } html,body{ margin:0; padding:0; background:var(--ivory); color:var(--ink); font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif; max-width:100%; overflow-x:hidden; 
	/* sécurité anti-scroll horizontal */
} img{max-width:100%;height:auto;display:block} a{text-decoration:none;color:inherit}
/* ============================= */
/* Layout */
/* ============================= */ 
.container{ width:100%; max-width:1200px; margin:0 auto; padding-inline: clamp(12px, 4vw, 24px); } .section{padding:4.5rem 0} 
.section h2{ font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.6rem,2.6vw,2.2rem); color:var(--night); margin:0 0 1.2rem; } 
.muted{color:#475569} 
/* Grille utilitaire */ 
.grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:1.25rem; } 
/* ============================= */ 
/* Header / Navigation */ 
/* ============================= */ 
header.sticky{ position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(6px); background:rgba(255,255,255,.7); border-bottom:1px solid rgba(0,0,0,.06); } 
.nav{ display:flex; align-items:center; justify-content:space-between; padding:.9rem 0; } 
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;letter-spacing:.2px} 
.brand-logo{ width:36px;height:36px;border-radius:50%; background:radial-gradient(circle at 30% 30%,var(--sand),var(--ocre)); display:grid;place-items:center;color:#111;font-size:18px; box-shadow:0 2px 10px rgba(0,0,0,.12) } 
.menu{display:flex;gap:1.2rem;align-items:left} 
.menu a{padding:.5rem .75rem;border-radius:10px;font-weight:600;text-align:left; color:#334155} 
.menu a:hover{background:rgba(0,0,0,.05)} 
.burger{display:none} 
/* ============================= */ 
/* Hero */ 
/* ============================= */ 
.hero{position:relative; isolation:isolate; color:#fff} 
.hero .bg{ position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.7); z-index:-2; } 
.hero::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(27,38,59,.45),rgba(27,38,59,.85)); z-index:-1; } 
.hero-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:2rem; align-items:center; min-height:78vh; padding:8rem 0 6rem; } 
.headline{ font-family:'Playfair Display',Georgia,serif; font-weight:800; font-size:clamp(2rem,4vw,3.5rem); line-height:1.05; margin:0; } 
.kicker{ display:inline-block; background:color-mix(in oklab,var(--ocre) 70%,white 30%); color:#111; padding:.35rem .7rem; border-radius:999px; font-weight:700; letter-spacing:.3px; font-size:.85rem; margin-bottom:.9rem; } 
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.2rem}
.badges{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}
.badge{ display:inline-flex;align-items:center;gap:.5rem; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; padding:.5rem .75rem; border-radius:999px; font-weight:600; } 
/* ============================= */
/* Cards, Features, Gallery */ 
/* ============================= */ 
.card{ grid-column:span 6; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,.06); display:flex; flex-direction:column; } 
.card img{height:220px; object-fit:cover} 
.card-body{padding:1.1rem 1.1rem 1.3rem; display:flex; flex-direction:column; gap:.7rem} 
.chip{ display:inline-flex; gap:.4rem; align-items:center; background:#f9fafb; border:1px dashed color-mix(in oklab,var(--ocre) 55%, #ddd 45%); color:#374151; padding:.35rem .6rem; border-radius:999px; font-weight:600; font-size:.85rem; } 
.inc{display:flex; flex-wrap:wrap; gap:.5rem .6rem; margin-top:.3rem} 
.price-row{display:flex; align-items:center; justify-content:space-between; margin-top:.8rem} 
.price{font-weight:800; color:var(--night); font-size:1.15rem} 
.why{ background: radial-gradient(1200px 600px at 10% 0%, rgba(176,140,35,.08), transparent 60%), radial-gradient(1200px 600px at 90% 0%, rgba(212,163,115,.12), transparent 60%); }
/* Features */ 
.features{display:grid; grid-template-columns:repeat(12,1fr); gap:1rem} 
.feature{ grid-column:span 3; background:#fff; border:1px solid #eee; border-radius:16px; padding:1.1rem; box-shadow:0 8px 24px rgba(0,0,0,.04); } 
.feature h3{margin:.2rem 0 .4rem; font-size:1.05rem} 
/* Gallery */ 
.gallery{display:grid; grid-template-columns:repeat(12,1fr); gap:.75rem}
.gallery img{border-radius:16px; height:220px; object-fit:cover}
.span-6{grid-column:span 6}
.span-3{grid-column:span 3}
/* Testimonials */
.testi{display:grid; grid-template-columns:repeat(12,1fr); gap:1rem} .quote{ grid-column:span 4; background:#fff; border:1px solid #eee; border-radius:16px; padding:1rem; box-shadow:0 8px 24px rgba(0,0,0,.04); } .quote p{color:#334155}
/* ============================= */ 
/* CTA Band (Réservation) */
/* ============================= */
.band{ background:linear-gradient(135deg,var(--night),#0b1220); color:#fff; border-radius:22px; padding:2rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; box-shadow:0 12px 36px rgba(27,38,59,.35); } #resa 
.container { /* sécuriser le container local */
	width:100%; max-width:1200px; padding-inline: clamp(12px, 4vw, 24px); } #resa 
.band{ padding-inline:0; } /* éviter double padding latéral */ #resa 
.band > *{ min-width:0; } /* anti-overflow en flex */ #resa p{ overflow-wrap:anywhere; } /* Ligne de boutons */ #resa 
.btn{ display:inline-block; max-width:100%; box-sizing:border-box; text-align:center; white-space:normal;
	/* pas de nowrap imposé */ } 
/* ============================= */
/* Boutons */
/* ============================= */ 
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.9rem 1.25rem; border-radius:999px; font-weight:600; border:none; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; } 
.btn-primary{ background:linear-gradient(135deg,var(--ocre),var(--sand)); color:#111; box-shadow:0 8px 24px rgba(176,140,35,.25); } 
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 10px 28px rgba(176,140,35,.32) } 
.btn-outline{ background:transparent; border:2px solid var(--ocre); color:var(--ocre); } /* ============================= */ 
/* Footer */
/* ============================= */ 
footer{background:#0f172a; color:#cbd5e1} footer .cols{ display:grid; grid-template-columns:repeat(12,1fr); gap:1rem; padding:3rem 0; } footer a{color:#e2e8f0; opacity:.9} .brand-foot{color:#fff; font-weight:800} .sub{color:#94a3b8; font-size:.95rem} 
/* ============================= */ 
/* Formulaires / Booking */
/* ============================= */
#bookingForm .form-field{ width:100%; max-width:100%; padding:.75rem; margin:.35rem 0 1rem; border:1px solid #e5e7eb; border-radius:10px; display:block; } #bookingForm .btn{ width:auto } 
/* ============================= */
/* Lang switch */ 
/* ============================= */ 
.lang-switch select{ border:1px solid #e5e7eb; border-radius:10px; padding:.45rem .6rem; background:#fff; color:#111; } 
/* ============================= */
/* Responsivité */
/* ============================= */
@media (max-width:980px){ 
	.hero-inner{ grid-template-columns:1fr; padding-top:7rem }
	.grid .card, .feature, .span-6{ grid-column:span 12 } 
	.span-3{ grid-column:span 6 } 
	.quote{ grid-column:span 12 } 
	.menu{ display:none; position:absolute; top:64px; right:4vw; background:#fff; border-radius:14px; 		box-shadow:0 12px 32px rgba(0,0,0,.12); padding:.6rem; flex-direction:column; text-align:left; } 		
	.menu a{ color:#0f172a } 
	.burger{ display:inline-flex; border:1px solid #e5e7eb; border-radius:10px; padding:.45rem .6rem; cursor:pointer; } } @media (max-width:640px){ 
	.band{ flex-direction:column; align-items:stretch } .gallery img{ height:200px } .card img{ height:200px } } 

/* ============================= */
/* Utilitaires */
/* ============================= */
/* Aides de coupe/cassure pour textes longs */ 
.truncate{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } 
.break-any{ overflow-wrap:anywhere; word-break:break-word; }
/* Petits ajustements de spacing */ 
.mt-0{margin-top:0} 
.mb-0{margin-bottom:0} 
.mt-1{margin-top:.25rem} 
.mb-1{margin-bottom:.25rem}
.mt-2{margin-top:.5rem}
.mb-2{margin-bottom:.5rem}
.mt-3{margin-top:1rem} 
.mb-3{margin-bottom:1rem} 
/* Footer : colonnes empilées et centrées sur mobile */
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; /* une seule colonne */ justify-items: center;
	/* centre les blocs */ 
	text-align: center; 
	/* centre le texte */ 
	gap: 1rem; } 
	/* Forcer chaque enfant à occuper toute la ligne, malgré grid-column inline */ 
	footer .cols > div { grid-column: 1 / -1 !important; max-width: 640px;
		/* largeur lisible au centre */
		margin-inline: auto; }
	/* Liste de liens centrée */ 
	footer .cols ul { display: grid; justify-items: center; } 
	/* Boutons de la colonne Réservation centrés */ 
	footer .cols > div:last-child > div { justify-content: center !important; } 
	/* Barre du bas : empilée et centrée */
	footer > div:last-child 
	.container { display: flex !important; flex-direction: column; align-items: center; justify-content: center !important; gap: .4rem; text-align: center; } } 
.btn-outline { background: transparent; border: 2px solid var(--ocre); color: var(--ocre);
		/* même couleur que la bordure */
}
/* Animation d'apparition smooth de gauche à droite */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.section.why {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Classe active lors du scroll */
.section.why.visible {
  animation: slideInLeft 1s ease forwards;
}


/* Section globale */
.intro-section {
  background: #fff;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

/* Conteneur principal */
.intro-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  background: #f9f9f9;
  border-radius: 14px;
  padding: 2rem; /* marge interne */
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Colonne texte */
.intro-text {
  flex: 1;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.intro-text p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #444;
}

.intro-text .btn {
  display: inline-block;
  background: var(--ocre, #d2a15f);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 600;
}

.intro-text .btn:hover {
  background: #b9853f;
}

/* Colonne image */
.intro-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .intro-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .intro-image {
    order: -1; /* place l'image au-dessus sur mobile */
  }

  .intro-text h2 {
    font-size: 1.6rem;
  }

  .intro-wrapper {
    padding: 1.5rem;
  }
}


/* Cadre principal */
.scroll-frame {
  position: relative;
  height: 100vh;               /* occupe la hauteur de l'écran */
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/wp-content/uploads/2025/09/agafay-hero.webp') center/cover no-repeat fixed;
  padding: 2rem;               /* marge extérieure */
}

/* Boîte contenant le texte (aspect "boxé") */
.scroll-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-width: 900px;
  width: 100%;
  height: 80vh;                /* hauteur fixe dans la frame */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;               /* marge interne */
}

/* Contenu qui défile à l’intérieur */
/* ===== Cadre plein écran avec fond fixé via ::before (compatible iOS) ===== */
.scroll-frame {
  position: relative;
  min-height: 100dvh;           /* dvh = viewport réel mobile, meilleur que vh */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  isolation: isolate;           /* pour gérer le ::before en dessous */
}

/* Fond en pseudo-élément fixé (évite background-attachment: fixed sur iOS) */
.scroll-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/wp-content/uploads/2025/09/agafay-hero.webp') center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* ===== Box scrollable ===== */
.scroll-box {
  width: 100%;
  max-width: 900px;
  height: 80dvh;                 /* hauteur fixe dans la fenêtre, fiable mobile */
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
  padding: 1.5rem;               /* marge interne */
  overflow: hidden;              /* masque le débordement de la box */
}

/* ===== Contenu qui défile à l’intérieur ===== */
.scroll-content {
  flex: 1 1 auto;
  min-height: 0;                 /* CLÉ pour que le scroll marche dans un flex */
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;

  -webkit-overflow-scrolling: touch; /* inertie iOS */
  overscroll-behavior: contain;      /* évite le rebond qui scroll la page */
  touch-action: pan-y;                /* permet le scroll vertical au doigt */

  color: #222;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Scrollbar discrète (optionnel) */
.scroll-content::-webkit-scrollbar { width: 8px; }
.scroll-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .scroll-frame { padding: 1rem; }
  .scroll-box   { height: 70dvh; padding: 1rem; border-radius: 14px; }
}



.gallery { padding: 3rem 1.5rem; }
.gallery {
  padding: 4rem 1.5rem;
  display: flex;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1400px;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16/10; /* images panoramiques */
  transition: transform 0.9s ease, opacity 0.9s ease, filter 0.9s ease;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 6s ease;
}

/* Zoom lent type “Ken Burns” */
.gallery.in-view .g-item img {
  animation: kenburns 12s ease-in-out both alternate;
}

@keyframes kenburns {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(2%, -2%, 0); }
}

/* Hover léger sur desktop */
@media (hover:hover) and (pointer:fine) {
  .g-item:hover img {
    transform: scale(1.22);
    transition: transform 0.6s ease;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

.g-item {
  aspect-ratio: 4/3; overflow: hidden; border-radius: 14px;
  transform: translateY(30px) scale(.98); opacity: 0; filter: blur(8px);
  /* Stagger: chaque item a un délai calculé */
  transition: transform .9s ease, opacity .9s ease, filter .9s ease;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 14s ease-in-out both alternate paused;
}

/* État visible: lancé par JS */
.gallery.in-view .g-item {
  opacity: 1; filter: blur(0); transform: translateY(0) scale(1);
  transition-delay: calc(var(--i) * 80ms);
}
.gallery.in-view .g-item img {
  animation-play-state: running;
  animation-delay: calc(var(--i) * 80ms);
}

/* Ken Burns léger */
@keyframes kenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(2%, -2%, 0); }
}

/* Hover doux (desktop) */
@media (hover:hover) and (pointer:fine) {
  .g-item:hover img { transform: scale(1.14); transition: transform .6s ease; }
}

/* Responsive */
@media (max-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px)  { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 10px; } }

/* Accessibilité: réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .g-item, .g-item img { transition: none !important; animation: none !important; }
  .g-item { transform: none; opacity: 1; filter: none; }
}





/* Lightbox overlay caché par défaut */
.lightbox-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.9);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition:opacity .25s ease;
  z-index:9998;
}
.lightbox-overlay.active{ opacity:1; visibility:visible; }

/* Bouton fermeture: caché tant que la lightbox n'est pas ouverte */
.lightbox-close{
  position:fixed; top:1rem; right:1.5rem;
  font-size:2rem; color:#fff; cursor:pointer;
  z-index:10000; user-select:none;
  transition:transform .3s ease, opacity .2s ease;
  display:none; opacity:0; pointer-events:none; /* <= important */
}
body.lightbox-open .lightbox-close{ display:block; opacity:1; pointer-events:auto; }

.lightbox-close:hover{ transform:scale(1.1); }


/* ===== Cards Tours: image always fills (desktop + mobile) ===== */
.card .card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;     /* 4/3 si tu préfères des cartes plus hautes */
  overflow: hidden;
  border-radius: 12px;
  background: #eee;        /* évite le flash blanc pendant le lazy-load */
}

/* L'image remplit 100% du cadre, recadrée au centre */
.card .card-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;   /* supprime les contraintes du thème */
  height: 100% !important;  /* clé: donne une vraie hauteur */
  object-fit: cover;         /* remplit sans déformer */
  object-position: center;
  display: block;
}

/* Si tes cartes ont aussi une image hors .card-media (sécurité) */
.card img {
  max-width: none;          /* annule max-width:100% éventuel */
}

/* Option: ratios différents selon écran */
@media (max-width: 768px) {
  .card .card-media { aspect-ratio: 4/3; }   /* un peu plus haut sur mobile */
}


/* ===== Our Tours Page – Card image formatting ===== */

/* Encapsule l'image dans un cadre à ratio fixe */
.card > .wp-post-image {
  width: 100%;
  height: auto; /* fallback avant repositionnement */
  border-radius: 12px 12px 0 0;
  display: block;
}

/* On force le remplissage total (cover) pour toutes les images de tours */
.card.has-post-thumbnail,
article.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Crée un vrai cadre de ratio pour les vignettes */
article.card {
  display: flex;
  flex-direction: column;
}
article.card > img.wp-post-image {
  aspect-ratio: 16/10;        /* 4/3 si tu veux plus haut */
  width: 100%;
  height: auto;
  object-fit: cover;           /* clé : remplissage sans déformation */
  object-position: center;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* Mobile : un peu plus haut */
@media (max-width: 768px) {
  article.card > img.wp-post-image {
    aspect-ratio: 4/3;
  }
}

/* Optionnel : petit zoom au survol (desktop seulement) */
@media (hover:hover) and (pointer:fine) {
  article.card > img.wp-post-image {
    transition: transform 0.6s ease;
  }
  article.card:hover > img.wp-post-image {
    transform: scale(1.05);
  }
}
/* ************ section quote ************* */

.quote-section {
  padding: 4rem 2rem;
  background: #faf7f2;
  display: flex;
  justify-content: center;
  opacity: 0;                      /* caché au départ */
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.quote-section.visible {
  opacity: 1;                      /* visible quand active */
  transform: translateY(0);
}

.quote-box {
  max-width: 900px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.quote blockquote {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
}

.quote blockquote p {
  margin-bottom: 1rem;
}

.quote figcaption {
  margin-top: 1.5rem;
  text-align: right;
  font-style: italic;
  color: var(--ocre, #c69c6d);
  font-weight: 600;
}

.quote figcaption cite {
  font-style: normal;
  color: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .quote-box {
    padding: 1.8rem;
  }
  .quote blockquote {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}
/* Effet cinématique : balayage de lumière au reveal */
.quote-section.cinematic .quote-box {
  position: relative;
  overflow: hidden;              /* masque la lueur qui déborde */
  isolation: isolate;            /* pour superposer proprement le sheen */
}

/* Sheen (lueur) : un gradient qui traverse la carte */
.quote-section.cinematic.visible .quote-box::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -30%; width: 60%;
  transform: rotate(18deg) translateX(-120%);
  /* bande lumineuse douce, chaude (désert) */
  background: linear-gradient(
    105deg,
    rgba(255, 230, 180, 0) 0%,
    rgba(255, 240, 200, 0.06) 35%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 240, 200, 0.06) 65%,
    rgba(255, 230, 180, 0) 100%
  );
  filter: blur(2px);
  pointer-events: none;
  animation: sunSweep 1200ms ease-out 200ms forwards;
  z-index: 2;
}

/* Léger grain sable (subtil) pour la matière */
.quote-section.cinematic .quote-box::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1.5px);
  background-size: 4px 4px;
  opacity: .4;
  pointer-events: none;
  z-index: 1;
}

/* Animation du balayage */
@keyframes sunSweep {
  from { transform: rotate(18deg) translateX(-120%); opacity: .0; }
  30%  { opacity: .85; }
  to   { transform: rotate(18deg) translateX(220%); opacity: 0; }
}

/* Petit glow interne au reveal (fade/slide déjà présent) */
.quote-section.cinematic.visible .quote-box {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.5);
}

/* Accessibilité : si l’utilisateur réduit les animations, on coupe le sweep */
@media (prefers-reduced-motion: reduce) {
  .quote-section.cinematic .quote-box::after,
  .quote-section.cinematic .quote-box::before {
    animation: none !important;
    opacity: 0 !important;
  }
}
