/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================
   SOMMAIRE
   1. Utilitaires généraux (img-fill, boutons, survol image, titres)
   2. Riviera – featured sticky + colonnes parallax (.cae-rv)
   3. Slider « À la une » – [adv_slider] (.alune)
   4. Bloc « vedette + liste » – [adv_bloc_vedette_liste] (.bvl)
   5. RESPONSIVE
      5.1 Media queries (écran)
      5.2 Container queries (.alune)
      5.3 Classes de largeur ajoutées par JS (.bvl)
      5.4 Accessibilité (prefers-reduced-motion)
   ========================================================== */

.menu-burger .sub-menu .menu-item a {
  font-size: 14px!important;
}

   
#cmplz-manage-consent .cmplz-manage-consent {
    bottom: 30px !important;
    left: 30px !important;
    border-radius: 100% !important;
    color: #232323 !important;/*CHANGER LA COULEUR*/
    background: #232323 !important;/*CHANGER LA COULEUR*/
    padding: 15px 15px 15px 15px !important;
    min-width: unset !important;
    width: 45px;
    height: 45px !important;
    padding: 0 !important;
    background-image: url(https://www.artdevivrealachampenoise.com/wp-content/uploads/2026/11/cookie.png) !important;/*CHANGER L'URL*/
    background-position: center;
    background-repeat: no-repeat !important;
}

#cmplz-document, .editor-styles-wrapper .cmplz-unlinked-mode{
  max-width: 100%!important;
}

p a {
    font-weight: 700;
}

/* ==========================================================
   1. UTILITAIRES GÉNÉRAUX
   ========================================================== */

/* --- Image qui remplit son conteneur (.img-fill) --- */
.e-con.img-fill {
  position: relative;
  overflow: hidden;
}

/* Le widget image est sorti du flux : c'est le texte qui fixe la hauteur */
.e-con.img-fill > .elementor-widget,
.e-con.img-fill > .e-con-inner > .elementor-widget {
  position: absolute !important;
  inset: 0;
  margin: 0;
}

.e-con.img-fill .elementor-widget-container,
.e-con.img-fill a {
  display: block;
  height: 100%;
}

.e-con.img-fill img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

/* --- Bouton souligné animé (.btn) --- */
.btn {
  position: relative;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-bottom: 4px;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.btn.white::after {
  background: #fff;
}

.btn:hover::after {
  animation: swipe .6s cubic-bezier(.7, 0, .3, 1);
}

@keyframes swipe {
  0%    { transform: scaleX(1); transform-origin: right; }
  50%   { transform: scaleX(0); transform-origin: right; }
  50.1% { transform-origin: left; }
  100%  { transform: scaleX(1); transform-origin: left; }
}

/* --- Survol image : voile noir + rond blanc « + » (.img-hover-plus) --- */
.elementor-widget.img-hover-plus {
  position: relative !important;
  overflow: hidden;
}

/* Filtre noir */
.elementor-widget.img-hover-plus::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

/* Rond blanc avec le + */
.elementor-widget.img-hover-plus::after {
  content: "+" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 6;
}

.elementor-widget.img-hover-plus:hover::before {
  opacity: 1;
}

.elementor-widget.img-hover-plus:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Titres avec trait (.titre-trait) --- */
.titre-trait,
.titre-trait .elementor-widget-container {
  width: 100% !important;
}

.titre-trait :is(h1, h2, h3, h4, h5, h6, p, div.elementor-heading-title) {
  display: flex !important;
  align-items: center;
  gap: 40px;
}

.titre-trait :is(h1, h2, h3, h4, h5, h6, p, div.elementor-heading-title)::after {
  content: "";
  flex: 1 0 50px; /* le trait ne descend jamais sous 80 px */
  height: 1px;
  background: #3f3f3f;
}


/* ==========================================================
   2. RIVIERA – Featured sticky + colonnes parallax (dark mode)
   Tout est préfixé par .custom-animation-elementor.cae-rv :
   aucun impact sur le reste du site.
   ========================================================== */

.custom-animation-elementor.cae-rv {
  /* --- Réglages principaux --- */
  --cae-bg: transparent;                          /* fond de la section */
  --cae-ink: #f2f2f2;                             /* bouton */
  --cae-card-bg: transparent;                     /* fond des encarts */
  --cae-card-title: #f2f2f2;                      /* titres des encarts */
  --cae-muted: #a3a3a3;                           /* dates des encarts */
  --cae-shadow: 0 2px 14px rgba(0, 0, 0, .35);    /* ombre des encarts */
  --cae-radius: 0;                                /* arrondi des encarts */
  --cae-sticky-top: 81px;                         /* = hauteur de votre header sticky */
  --cae-feature-h: calc(100vh - var(--cae-sticky-top)); /* la une remplit le reste de l’écran */
  --cae-gap: 32px;                                /* gouttière entre colonnes */
  --cae-card-gap: 35px;                           /* espace vertical entre encarts */
  --cae-img-ratio: 293 / 230;                     /* proportion des images des encarts */
  --cae-font-display: "Manrope", Arial, sans-serif;
  --cae-font-text: "DM Sans", Arial, sans-serif;
  --cae-font-card: "Manrope", Arial, sans-serif;

  box-sizing: border-box;
  width: 100%;
  background: var(--cae-bg);
  color: var(--cae-ink);
  font-family: var(--cae-font-text);
  -webkit-font-smoothing: antialiased;
}

.custom-animation-elementor.cae-rv *,
.custom-animation-elementor.cae-rv *::before,
.custom-animation-elementor.cae-rv *::after {
  box-sizing: border-box;
}

/* --- Grille 4 colonnes : la une occupe 2 colonnes --- */
.cae-rv .cae-rv__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--cae-gap);
  align-items: stretch;
}

.cae-rv .cae-rv__feature-wrap {
  grid-column: span 2;
  position: relative;
}

.cae-rv .cae-rv__right {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- Article à la une (sticky) --- */
.cae-rv .cae-rv__feature {
  position: -webkit-sticky;
  position: sticky;
  top: var(--cae-sticky-top);
  display: block;
  height: var(--cae-feature-h);
  min-height: 480px;
  border-radius: var(--cae-radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.cae-rv .cae-rv__feature::after { /* léger dégradé pour la lisibilité du texte */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}

.cae-rv .cae-rv__feature .cae-rv__media--feature {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  height: 100%;
  z-index: 0; /* le voile reste confiné à l'image : date et titre restent au-dessus */
}

.cae-rv .cae-rv__feature-body {
  position: absolute;
  z-index: 1;
  left: 32px;
  right: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cae-rv .cae-rv__feature-date {
  font-family: var(--cae-font-card);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cae-rv .cae-rv__feature-title {
  margin-top: 12px;
  font-family: var(--e-global-typography-6fa0702-font-family);
  font-weight: var(--e-global-typography-6fa0702-font-weight);
  font-size: var(--e-global-typography-6fa0702-font-size);
  line-height: var(--e-global-typography-6fa0702-line-height);
}

.cae-rv__feature:hover .cae-rv__feature-title,
.cae-rv__feature:hover .cae-rv__feature-date {
  color: #fff;
}

/* --- Colonnes droites --- */
.cae-rv .cae-rv__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--cae-gap);
  align-items: start; /* indispensable : la colonne rapide garde sa hauteur propre */
}

.cae-rv .cae-rv__col {
  display: flex;
  flex-direction: column;
  gap: var(--cae-card-gap);
  min-width: 0;
}

.cae-rv .cae-rv__col--fast {
  will-change: transform;
}

/* --- Encarts --- */
.cae-rv .cae-rv__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--cae-card-bg);
  overflow: hidden; /* arrondit aussi le haut de l’image */
  color: inherit;
  text-decoration: none;
}

.cae-rv .cae-rv__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--cae-img-ratio);
  overflow: hidden;
}

.cae-rv .cae-rv__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.cae-rv .cae-rv__card-body {
  display: flex;
  flex-direction: column;
  padding-top: 17px;
  gap: 6px;
}

p.cae-rv__excerpt {
    color: #ffffff8f!important;
}

.cae-rv__feature:hover .cae-rv__feature-excerpt, .cae-rv__feature .cae-rv__feature-excerpt{
  color: #ffffffdc!important;
}

.cae-rv .cae-rv__date {
  font-family: var(--cae-font-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cae-muted);
}

.cae-rv h3.cae-rv__title {
  margin: 8px 0 0;
  padding: 0;
  font-family: var(--e-global-typography-42732c6-font-family);
  font-weight: var(--e-global-typography-42732c6-font-weight);
  font-size: var(--e-global-typography-42732c6-font-size);
  line-height: var(--e-global-typography-42732c6-line-height);
  color: var(--cae-card-title);
}

/* --- Bouton --- */
.cae-rv .cae-rv__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 66px;
  height: 50px;
  border: 1px solid var(--cae-ink);
  border-radius: 0;
  background: transparent;
  color: var(--cae-ink);
  font-family: var(--e-global-typography-5076caa-font-family);
  font-size: var(--e-global-typography-5076caa-font-size);
  font-weight: var(--e-global-typography-5076caa-font-weight);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.cae-rv .cae-rv__btn:hover {
  border: 1px solid var(--e-global-color-accent);
  color: var(--e-global-color-accent);
}

.cae-rv .cae-rv__card:focus-visible,
.cae-rv .cae-rv__feature:focus-visible,
.cae-rv .cae-rv__btn:focus-visible {
  outline: 2px solid var(--cae-ink);
  outline-offset: 3px;
}

/* --- Survol : voile noir + rond blanc « + » (encarts et article à la une) --- */
.cae-rv .cae-rv__card .cae-rv__media::before,
.cae-rv .cae-rv__feature .cae-rv__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

.cae-rv .cae-rv__card .cae-rv__media::after,
.cae-rv .cae-rv__feature .cae-rv__media::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 6;
}

.cae-rv .cae-rv__card:hover .cae-rv__media::before,
.cae-rv .cae-rv__card:focus-visible .cae-rv__media::before,
.cae-rv .cae-rv__feature:hover .cae-rv__media::before,
.cae-rv .cae-rv__feature:focus-visible .cae-rv__media::before {
  opacity: 1;
}

.cae-rv .cae-rv__card:hover .cae-rv__media::after,
.cae-rv .cae-rv__card:focus-visible .cae-rv__media::after,
.cae-rv .cae-rv__feature:hover .cae-rv__media::after,
.cae-rv .cae-rv__feature:focus-visible .cae-rv__media::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ==========================================================
   3. SLIDER « À LA UNE » – code court [adv_slider]
   Le slider s'adapte à la largeur de SON conteneur
   (container queries), pas à celle de l'écran.
   ========================================================== */

/* Le widget Elementor qui contient le slider prend toute la largeur disponible
   (sinon il se cale sur la largeur du contenu et le slider ne rétrécit pas). */
.elementor-widget-shortcode:has(.alune) {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.elementor-widget-shortcode:has(.alune) .elementor-shortcode {
  display: block;
  width: 100%;
}

.alune {
  --alune-ink: #0E0E0E;
  --alune-mute: #5E5E5E;
  --alune-line: #D6D6D6;
  --alune-gap: clamp(10px, 2cqw, 16px);
  container-type: inline-size;
  container-name: alune;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--alune-ink);
}

.alune *,
.alune *::before,
.alune *::after {
  box-sizing: border-box;
}

.alune-in {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3cqw, 28px);
  align-items: center;
}

/* --- En-tête --- */
.alune-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1500px;
}

/* Titre « À la une » avec trait : le trait s'étire jusqu'aux contrôles */
.alune-head .alune-titre {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.alune-head .alune-titre h2 {
  margin: 0;
}

/* --- Contrôles --- */
.alune-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alune-count {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
  white-space: nowrap;
}

.alune-count span {
  color: #7A7A7A;
}

.alune .alune-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 1px solid var(--alune-ink);
  background: #fff;
  color: var(--alune-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-shadow: none;
  line-height: 1;
}

.alune .alune-btn--dark {
  background: var(--alune-ink);
  color: #fff;
}

/* --- Scène et slides --- */
.alune-stage {
  display: flex;
  gap: var(--alune-gap);
  align-items: stretch;
  width: 100%;
  max-width: 1500px;
  min-width: 0;
}

.alune-main {
  flex: 4 1 0;
  min-width: 0;
  position: relative;
  height: clamp(240px, 52cqw, 700px);
  overflow: hidden;
  background: var(--alune-ink);
}

.alune-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  margin: 0;
}

.alune-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.alune-link {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff !important;
  text-decoration: none !important;
}

.alune .alune-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.alune-veil {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, .5);
  pointer-events: none;
}

.alune-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: min(760px, 100%);
  padding: clamp(16px, 4cqw, 48px);
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.alune-excerpt{
  color: #ffffff98!important;
}

.alune-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #E6E6E6;
}

.alune .alune-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: break-word;
  font-family: var(--e-global-typography-6fa0702-font-family, inherit);
  font-size: var(--e-global-typography-6fa0702-font-size, clamp(20px, 4.2cqw, 44px));
  font-weight: var(--e-global-typography-6fa0702-font-weight, 800);
  line-height: var(--e-global-typography-6fa0702-line-height, 1.08);
  letter-spacing: var(--e-global-typography-6fa0702-letter-spacing, -.02em);
  text-transform: var(--e-global-typography-6fa0702-text-transform, none);
  font-style: var(--e-global-typography-6fa0702-font-style, normal);
  color: #fff;
}

/* --- Aperçu de la slide suivante --- */
.alune .alune-peek {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--alune-ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.alune .alune-peek-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .5;
}

.alune-peek-label {
  position: absolute;
  left: clamp(10px, 1.6cqw, 16px);
  bottom: clamp(10px, 1.6cqw, 16px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Navigation par segments --- */
.alune-nav {
  display: grid;
  grid-template-columns: repeat(var(--alune-n, 4), minmax(0, 1fr));
  gap: clamp(12px, 2.4cqw, 24px);
  width: 100%;
  max-width: 1500px;
  min-width: 0;
}

.alune-nav > * {
  min-width: 0;
}

.alune .alune-seg {
  min-width: 0;
  padding: 14px 0 0;
  margin: 0;
  border-top: 3px solid var(--alune-line);
  cursor: pointer;
  text-align: left;
  color: var(--alune-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alune .alune-seg.is-active {
  border-top-color: var(--alune-ink);
}

.alune .alune-seg-meta {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--alune-mute);
}

.alune .alune-seg-title {
  margin: 0;
  padding: 0;
  color: var(--alune-ink);
  overflow-wrap: break-word;
  font-family: var(--e-global-typography-42732c6-font-family, inherit);
  font-size: var(--e-global-typography-42732c6-font-size, 15px);
  font-weight: var(--e-global-typography-42732c6-font-weight, 700);
  line-height: var(--e-global-typography-42732c6-line-height, 1.35);
  letter-spacing: var(--e-global-typography-42732c6-letter-spacing, normal);
  text-transform: var(--e-global-typography-42732c6-text-transform, none);
  font-style: var(--e-global-typography-42732c6-font-style, normal);
}

.alune .alune-seg-btn {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
}

.alune .alune-seg-btn:focus-visible {
  outline: 2px solid var(--alune-ink);
  outline-offset: 4px;
}


/* ==========================================================
  4. Bloc « vedette + liste » – code court [adv_bloc_vedette_liste]
   ========================================================== */

/* Le widget Elementor qui contient le bloc prend toute la largeur disponible. */
.elementor-widget-shortcode:has(.bvl) {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.elementor-widget-shortcode:has(.bvl) .elementor-shortcode {
  display: block;
  width: 100%;
}

/* Mise en page « large » par défaut. Le script ajoute des classes selon la largeur RÉELLE du bloc
   (is-lt1000, is-lt760, is-lt420, is-lt300) : le bloc s'adapte à son conteneur, pas à l'écran. */
.bvl {
  --bvl-ink: #0E0E0E;
  --bvl-mute: #5E5E5E;
  --bvl-line: #E2E2E2;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--bvl-ink);
}

.bvl *,
.bvl *::before,
.bvl *::after {
  box-sizing: border-box;
}

.bvl-in {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bvl-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.bvl .bvl-h2 {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  margin: 0;
  padding: 0;
  color: var(--bvl-ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.bvl-rule {
  flex: 1 1 80px;
  height: 1px;
  background: var(--bvl-ink);
}

.bvl-excerpt {
  color: #00000098!important;
}

.bvl .bvl-more {
  color: var(--bvl-ink)!important;
  text-decoration: none!important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 0;
  white-space: nowrap;
}

.bvl-body {
  display: flex;
  gap: 48px;
  align-items: stretch; /* la liste prend la hauteur de l'article vedette */
}

.bvl-main {
  flex: 6 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.bvl-list {
  flex: 5 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* les 3 articles se répartissent sur toute la hauteur */
}

/* Côte à côte : l'image vedette remplit la hauteur laissée libre par la date et le titre.
   La colonne de droite fixe la hauteur du bloc ; un titre plus long fait rétrécir l'image. */
.bvl .bvl-main-img {
  display: block;
  flex: 1 1 0;
  min-height: 180px; /* hauteur minimale de l'image si le titre est très long */
}

.bvl .bvl-main-img img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.bvl-date {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bvl-mute);
}

.bvl .bvl-main-title,
.bvl .bvl-item-title {
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

.bvl .bvl-main-title a,
.bvl .bvl-item-title a {
  color: var(--bvl-ink)!important;
  text-decoration: none!important;
  font-weight: var(--e-global-typography-6fa0702-font-weight);
}

.bvl .bvl-main-title a:hover,
.bvl .bvl-item-title a:hover,
.bvl .bvl-main-title a:focus,
.bvl .bvl-item-title a:focus {
  text-decoration: none !important; /* pas de soulignement au survol */
}

.bvl {
  --bvl-main-fs: 32px;
  --bvl-item-fs: 19px;
}

.bvl .bvl-main-title {
  font-family: var(--e-global-typography-6fa0702-font-family, inherit);
  font-size: var(--e-global-typography-6fa0702-font-size, var(--bvl-main-fs));
  font-weight: var(--e-global-typography-6fa0702-font-weight);
  line-height: var(--e-global-typography-6fa0702-line-height, 1.15);
  letter-spacing: var(--e-global-typography-6fa0702-letter-spacing, normal);
  text-transform: var(--e-global-typography-6fa0702-text-transform, none);
  font-style: var(--e-global-typography-6fa0702-font-style, normal);
}

.bvl-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--bvl-line);
  margin: 0;
}

.bvl-item:first-child {
  padding-top: 0;
}

.bvl-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bvl .bvl-thumb {
  flex: 0 0 180px;
  display: block;
}

.bvl .bvl-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.bvl-item-txt {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bvl .bvl-item-title {
  font-family: var(--e-global-typography-42732c6-font-family, inherit);
  font-size: var(--e-global-typography-42732c6-font-size, var(--bvl-item-fs));
  font-weight: var(--e-global-typography-42732c6-font-weight, 700);
  line-height: var(--e-global-typography-42732c6-line-height, 1.3);
  letter-spacing: var(--e-global-typography-42732c6-letter-spacing, normal);
  text-transform: var(--e-global-typography-42732c6-text-transform, none);
  font-style: var(--e-global-typography-42732c6-font-style, normal);
}

/* Un seul article dans la catégorie (pas de liste) : image au format 16/10 */
.bvl-body:not(:has(.bvl-list)) .bvl-main-img {
  flex: none;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

/* Bloc moyen (≤ 1000 px) */
.bvl.is-lt1000 .bvl-body {
  gap: 32px;
}

.bvl.is-lt1000 .bvl-main {
  flex-grow: 7;
}

.bvl.is-lt1000 .bvl-thumb {
  flex-basis: 140px;
}

.bvl.is-lt1000 .bvl-item {
  gap: 16px;
  padding: 18px 0;
}

.bvl.is-lt1000 .bvl-item:first-child {
  padding-top: 0;
}

.bvl.is-lt1000 {
  --bvl-item-fs: 17px;
  --bvl-main-fs: 28px;
}

.bvl.is-lt1000 .bvl-h2 {
  font-size: 40px;
}

/* Bloc étroit (≤ 760 px) : on empile */
.bvl.is-lt760 .bvl-in {
  gap: 28px;
}

.bvl.is-lt760 .bvl-body {
  flex-direction: column;
  gap: 24px;
}

.bvl.is-lt760 .bvl-main-img {
  flex: none;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.bvl.is-lt760 .bvl-main,
.bvl.is-lt760 .bvl-list {
  flex: none;
  width: 100%;
}

.bvl.is-lt760 .bvl-list {
  border-top: 1px solid var(--bvl-line);
}

.bvl.is-lt760 .bvl-item:first-child {
  padding-top: 18px;
}

.bvl.is-lt760 .bvl-h2 {
  font-size: 34px;
}

/* Mobile (≤ 420 px) */
.bvl.is-lt420 .bvl-in {
  gap: 20px;
}

.bvl.is-lt420 .bvl-head {
  justify-content: space-between;
}

.bvl.is-lt420 .bvl-rule {
  display: none;
}

.bvl.is-lt420 .bvl-more {
  font-size: 12px;
  padding: 6px 0;
}

.bvl.is-lt420 .bvl-item {
  gap: 14px;
  padding: 16px 0;
}

.bvl.is-lt420 .bvl-thumb {
  flex-basis: 96px;
}

.bvl.is-lt420 {
  --bvl-item-fs: 16px;
  --bvl-main-fs: 24px;
}

.bvl.is-lt420 .bvl-h2 {
  font-size: 28px;
}

/* Très étroit (≤ 300 px) */
.bvl.is-lt300 .bvl-item {
  gap: 12px;
}

.bvl.is-lt300 .bvl-thumb {
  flex-basis: 76px;
}

.bvl.is-lt300 {
  --bvl-item-fs: 15px;
  --bvl-main-fs: 22px;
}

/* Secours sans JavaScript : on se base sur l'écran */
@media (max-width: 760px) {
  .bvl:not(.is-ready) .bvl-body {
    flex-direction: column;
    gap: 24px;
  }

  .bvl:not(.is-ready) .bvl-main-img {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .bvl:not(.is-ready) .bvl-main,
  .bvl:not(.is-ready) .bvl-list {
    flex: none;
    width: 100%;
  }

  .bvl:not(.is-ready) .bvl-thumb {
    flex-basis: 96px;
  }

  .bvl:not(.is-ready) .bvl-h2 {
    font-size: 30px;
  }
}



/* ----------------------------------------------------------
   Survol : voile noir + rond blanc « + »
   (même effet que .img-hover-plus sur le reste du site).
   Se déclenche au survol de tout l'article (image ou titre).
   ---------------------------------------------------------- */
.bvl .bvl-main-img,
.bvl .bvl-thumb {
  position: relative;
  overflow: hidden;
}

/* Filtre noir */
.bvl .bvl-main-img::before,
.bvl .bvl-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

/* Rond blanc avec le + */
.bvl .bvl-main-img::after,
.bvl .bvl-thumb::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 6;
}

.bvl .bvl-main:hover .bvl-main-img::before,
.bvl .bvl-item:hover .bvl-thumb::before,
.bvl .bvl-main:focus-within .bvl-main-img::before,
.bvl .bvl-item:focus-within .bvl-thumb::before {
  opacity: 1;
}

.bvl .bvl-main:hover .bvl-main-img::after,
.bvl .bvl-item:hover .bvl-thumb::after,
.bvl .bvl-main:focus-within .bvl-main-img::after,
.bvl .bvl-item:focus-within .bvl-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Petites vignettes sur mobile : rond plus petit */
.bvl.is-lt420 .bvl-thumb::after {
  width: 34px;
  height: 34px;
  font-size: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .bvl .bvl-main-img::before,
  .bvl .bvl-thumb::before,
  .bvl .bvl-main-img::after,
  .bvl .bvl-thumb::after {
    transition: none;
  }
}








/* ==========================================================
   5.Onglets rubriques – code court [adv_onglets_rubriques]
   ========================================================== */

/* Le widget Elementor qui contient le bloc prend toute la largeur disponible. */
.elementor-widget-shortcode:has(.ong) {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.elementor-widget-shortcode:has(.ong) .elementor-shortcode {
  display: block;
  width: 100%;
}

/* Mise en page « large » par défaut. Le script ajoute des classes selon la largeur RÉELLE du bloc
   (is-lt1000, is-lt760, is-lt480, is-lt340) : le bloc s'adapte à son conteneur, pas à l'écran. */
.ong {
  --ong-ink: #0E0E0E;
  --ong-mute: #7A7A7A;
  --ong-cols: 4;
  --ong-tab-fs: 64px;
  --ong-feat-ratio: 21 / 9;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--ong-ink);
}

.ong *,
.ong *::before,
.ong *::after {
  box-sizing: border-box;
}

/* La page masque son titre (réglage Elementor « Masquer le titre » : --page-title-display: none).
   Le widget « Titre de l'article » du modèle de boucle porte la même classe .elementor-page-title :
   on rétablit l'affichage à l'intérieur du bloc, sans toucher au titre de la page. */
.ong {
  --page-title-display: block;
}

.ong-in {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- En-tête : onglets + lien « Tout … » ---------- */
.ong-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center; /* tout est centré sur le milieu du texte des h2 */
  gap: 16px 32px;
  padding-bottom: 16px; /* place pour le soulignement de l'onglet actif */
}

.ong-tabs {
  display: flex;
  flex-wrap: wrap;
  row-gap: 24px;
  flex: 1 1 auto; /* le groupe d'onglets s'étire pour que le trait remplisse l'espace jusqu'au bouton */
  align-items: center;
  column-gap: 40px;
  min-width: 0;
}

/* Trait entre le groupe de h2 et le bouton « Tout … » (même style que .titre-trait) */
.ong-tabs::after {
  content: "";
  flex: 1 1 auto;
  min-width: 40px;
  height: 1px;
  background: #3f3f3f;
}

.ong .ong-tab-h {
  margin: 0;
  padding: 0;
  font-family: var(--e-global-typography-6fa0702-font-family, inherit);
  font-size: var(--e-global-typography-6fa0702-font-size, var(--ong-tab-fs));
  font-weight: var(--e-global-typography-6fa0702-font-weight, 800);
  line-height: var(--e-global-typography-6fa0702-line-height, 1);
  letter-spacing: var(--e-global-typography-6fa0702-letter-spacing, -0.02em);
  text-transform: var(--e-global-typography-6fa0702-text-transform, none);
  font-style: var(--e-global-typography-6fa0702-font-style, normal);
}

.ong .ong-tab {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: block;
  padding: 0;
  cursor: pointer;
  color: var(--ong-mute);
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Soulignement de l'onglet actif : positionné sous le texte sans changer sa hauteur,
   pour que titres, trait et bouton restent alignés sur le milieu du texte. */
.ong .ong-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 4px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.ong .ong-tab:hover {
  color: var(--ong-ink);
}

.ong .ong-tab.is-active {
  color: var(--ong-ink);
}

.ong .ong-tab.is-active::after {
  background: var(--ong-ink);
}

.ong .ong-tab:focus-visible {
  outline: 2px solid var(--ong-ink);
  outline-offset: 4px;
}

.ong .ong-more {
  color: var(--ong-ink) !important;
  text-decoration: none !important;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--e-global-typography-5076caa-font-family, inherit);
  font-size: var(--e-global-typography-5076caa-font-size, 13px);
  font-weight: var(--e-global-typography-5076caa-font-weight, 700);
  line-height: var(--e-global-typography-5076caa-line-height, 1.2);
  letter-spacing: var(--e-global-typography-5076caa-letter-spacing, 0.12em);
  text-transform: var(--e-global-typography-5076caa-text-transform, uppercase);
  font-style: var(--e-global-typography-5076caa-font-style, normal);
  white-space: nowrap;
}

.ong .ong-more:hover{
  color: #8d8d8d;
}

.ong .ong-more[hidden],
.ong .ong-panel[hidden] {
  display: none !important;
}

/* ---------- Panneau ---------- */
.ong-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Article vedette : texte intégré dans l'image, voile noir */
.ong .ong-feat {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ong-feat-ratio);
  background: var(--ong-ink);
  color: #fff !important;
  text-decoration: none !important;
}

.ong .ong-feat-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

/* Voile permanent pour la lisibilité du texte */
.ong-feat-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Survol : voile noir + rond blanc « + » (même effet que .img-hover-plus) */
.ong .ong-feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ong .ong-feat::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.ong .ong-feat:hover::before,
.ong .ong-feat:focus-visible::before {
  opacity: 1;
}

.ong .ong-feat:hover::after,
.ong .ong-feat:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ong-feat-caption {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  max-width: min(760px, 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ong-feat-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E6E6E6;
}

.ong .ong-feat-title {
  margin: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  overflow-wrap: break-word;
  color: #fff;
  font-family: var(--e-global-typography-6fa0702-font-family, inherit);
  font-size: var(--e-global-typography-6fa0702-font-size, 40px);
  font-weight: var(--e-global-typography-6fa0702-font-weight, 800);
  line-height: var(--e-global-typography-6fa0702-line-height, 1.1);
  letter-spacing: var(--e-global-typography-6fa0702-letter-spacing, -0.01em);
  text-transform: var(--e-global-typography-6fa0702-text-transform, none);
  font-style: var(--e-global-typography-6fa0702-font-style, normal);
}

/* Grille des articles (modèle Elementor « article-img-titre ») */
.ong-grid {
  display: grid;
  grid-template-columns: repeat(var(--ong-cols), minmax(0, 1fr));
  gap: 24px;
}

.ong-item {
  min-width: 0;
}

/* ---------- Bloc moyen (≤ 1000 px) ---------- */
.ong.is-lt1000 {
  --ong-cols: 2;
  --ong-tab-fs: 48px;
  --ong-feat-ratio: 16 / 9;
}

.ong.is-lt1000 .ong-feat-caption {
  padding: 32px;
}

.ong.is-lt1000 .ong-feat-title {
  font-size: var(--e-global-typography-6fa0702-font-size, 32px);
}

/* ---------- Bloc étroit (≤ 760 px) ---------- */
.ong.is-lt760 {
  --ong-tab-fs: 36px;
  --ong-feat-ratio: 4 / 3;
}

.ong.is-lt760 .ong-in,
.ong.is-lt760 .ong-panel {
  gap: 28px;
}

.ong.is-lt760 .ong-tabs {
  gap: 24px;
}

.ong.is-lt760 .ong-feat-caption {
  padding: 24px;
}

.ong.is-lt760 .ong-feat-title {
  -webkit-line-clamp: 3;
  font-size: var(--e-global-typography-6fa0702-font-size, 26px);
}

/* ---------- Mobile (≤ 480 px) ---------- */
.ong.is-lt480 {
  --ong-cols: 2;
  --ong-tab-fs: 28px;
}

.ong.is-lt480 .ong-grid {
  gap: 20px 14px;
}

.ong.is-lt480 .ong-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 0;
}

.ong.is-lt480 .ong-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 16px; /* le soulignement reste visible dans la zone défilante */
  margin-bottom: -16px;
  -webkit-overflow-scrolling: touch;
}

/* Mobile : onglets et bouton empilés, le trait n'a plus de sens */
.ong.is-lt480 .ong-tabs::after {
  display: none;
}

.ong.is-lt480 .ong-feat-caption {
  padding: 18px;
  gap: 8px;
}

.ong.is-lt480 .ong-feat-title {
  font-size: var(--e-global-typography-6fa0702-font-size, 22px);
}

/* ---------- Très étroit (≤ 340 px) : une seule colonne ---------- */
.ong.is-lt340 {
  --ong-cols: 1;
}

/* Secours sans JavaScript : on se base sur l'écran */
@media (max-width: 760px) {
  .ong:not(.is-ready) {
    --ong-cols: 1;
    --ong-tab-fs: 30px;
    --ong-feat-ratio: 4 / 3;
  }

  .ong:not(.is-ready) .ong-feat-caption {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ong .ong-feat::before,
  .ong .ong-feat::after,
  .ong .ong-tab {
    transition: none;
  }
}



/* ##########################################################
   6. BLOG
   ########################################################## */

.bef-loop {
  margin: 40px 0;
}

.single-post .elementor-widget-theme-post-content h2{
  margin: 35px 0;
}

.single-post .elementor-widget-theme-post-content h3{
  margin: 30px 0 14px 0;
}

.single-post .elementor-widget-theme-post-content p{
  text-align:justify;
  margin-block-end: 0.4rem;
}

.single-post .elementor-widget-theme-post-content p a, .single-post .elementor-widget-theme-post-content ul li a{
  /*font-weight:800;*/
  text-decoration: underline!important;
}

.single-post .wp-block-pullquote blockquote {
    margin: 0;
    font-style: italic;
    font-size: 0.8em;
    /* text-align: center !important; */
    font-weight: 600;
    letter-spacing: 0px;
}

.single-post .wp-block-pullquote blockquote p{
  text-align: center;
}

.wp-block-pullquote {
  padding: 2em 0;
}


.cta{
  margin: 40px 0;
  padding: 30px 30px;
}

.cta.newsletter p{
  font-family: var(--e-global-typography-6fa0702-font-family, sans-serif);
  font-size: 26px;
  font-weight: var(--e-global-typography-6fa0702-font-weight, 400);
  line-height: var(--e-global-typography-6fa0702-line-height, 1.5);
  letter-spacing: var(--e-global-typography-6fa0702-letter-spacing, normal);
  text-align: left;
}

.cta.newsletter a{
  font-family: var(--e-global-typography-5076caa-font-family, sans-serif);
  font-size: var(--e-global-typography-5076caa-font-size, 16px);
  font-weight: var(--e-global-typography-5076caa-font-weight, 400);
  line-height: var(--e-global-typography-5076caa-line-height, 1.5);
  letter-spacing: var(--e-global-typography-5076caa-letter-spacing, normal);
  text-transform: uppercase;
}

.cta.newsletter a:hover{
  color:#5E5E5E!important;
  border-color:#5E5E5E!important;
}


.single-post .wp-block-gallery{
  margin: 40px 0 15px 0!important;
}

.single-post figure.wp-block-image{
  margin: 40px 0;
}

/* ##########################################################
   7. RESPONSIVE
   ########################################################## */

/* ==========================================================
   5.1 MEDIA QUERIES (largeur d'écran)
   ========================================================== */

/* --- Tablette (≤ 1024 px) --- */
@media (max-width: 1024px) {
  /* Riviera */
  .custom-animation-elementor.cae-rv {
    --cae-gap: 24px;
    --cae-card-gap: 30px;
  }

  .cae-rv .cae-rv__feature-body {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }

  .cae-rv .cae-rv__btn {
    margin-top: 48px;
  }
}

/* --- Header sticky (≤ 768 px) --- */
@media screen and (max-width: 768px) {
  .elementor-sticky--effects .mon-logo img {
    height: 40px !important;
    width: auto !important;
  }
}

/* --- Mobile (≤ 767 px) --- */
@media (max-width: 767px) {
  /* Image qui remplit : les colonnes s'empilent, on donne une hauteur à l'image */
  .img-fill {
    min-height: 150px;
  }

  /* Riviera : empilement, pas de sticky ni de parallax */
  .custom-animation-elementor.cae-rv {
    --cae-gap: 16px;
    --cae-card-gap: 28px;
  }

  .cae-rv .cae-rv__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .cae-rv .cae-rv__feature-wrap,
  .cae-rv .cae-rv__right {
    grid-column: auto;
  }

  .cae-rv .cae-rv__feature {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }


  .cae-rv .cae-rv__cols {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--cae-card-gap);
  }

  .cae-rv .cae-rv__col {
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .cae-rv .cae-rv__btn {
    margin-top: 40px;
  }
}

/* --- Bloc vedette + liste : secours sans JavaScript (≤ 760 px) --- */
@media (max-width: 760px) {
  .bvl:not(.is-ready) .bvl-body {
    flex-direction: column;
    gap: 24px;
  }

  .bvl:not(.is-ready) .bvl-main,
  .bvl:not(.is-ready) .bvl-list {
    flex: none;
    width: 100%;
  }

  .bvl:not(.is-ready) .bvl-thumb {
    flex-basis: 96px;
  }

  .bvl:not(.is-ready) .bvl-h2 {
    font-size: 30px;
  }
}


/* ==========================================================
   5.2 CONTAINER QUERIES – Slider « À la une » (.alune)
   ========================================================== */

/* Conteneur moyen : aperçu plus étroit */
@container alune (max-width: 820px) {
  .alune-main {
    flex-grow: 5;
  }

  .alune-peek-label {
    display: none;
  }

  .alune-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Conteneur étroit (mobile, colonne) : plus d'aperçu, navigation en bande défilante */
@container alune (max-width: 600px) {
  .alune .alune-peek {
    display: none;
  }

  .alune-main {
    height: clamp(240px, 75cqw, 460px);
  }

  .alune-count {
    font-size: 13px;
  }

  .alune .alune-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .alune .alune-title {
    -webkit-line-clamp: 3;
  }

  .alune-nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .alune-nav > * {
    scroll-snap-align: start;
  }
}

/* Très étroit */
@container alune (max-width: 380px) {
  .alune-nav {
    grid-auto-columns: 85%;
  }
}


/* ==========================================================
   5.3 CLASSES DE LARGEUR (JS) – Bloc vedette + liste (.bvl)
   ========================================================== */

/* Bloc moyen (≤ 1000 px) */
.bvl.is-lt1000 {
  --bvl-item-fs: 17px;
  --bvl-main-fs: 28px;
}

.bvl.is-lt1000 .bvl-h2 {
  font-size: 40px;
}

.bvl.is-lt1000 .bvl-body {
  gap: 32px;
}

.bvl.is-lt1000 .bvl-main {
  flex-grow: 7;
}

.bvl.is-lt1000 .bvl-thumb {
  flex-basis: 140px;
}

.bvl.is-lt1000 .bvl-item {
  gap: 16px;
  padding: 18px 0;
}

.bvl.is-lt1000 .bvl-item:first-child {
  padding-top: 0;
}

/* Bloc étroit (≤ 760 px) : on empile */
.bvl.is-lt760 .bvl-in {
  gap: 28px;
}

.bvl.is-lt760 .bvl-h2 {
  font-size: 34px;
}

.bvl.is-lt760 .bvl-body {
  flex-direction: column;
  gap: 24px;
}

.bvl.is-lt760 .bvl-main,
.bvl.is-lt760 .bvl-list {
  flex: none;
  width: 100%;
}

.bvl.is-lt760 .bvl-list {
  border-top: 1px solid var(--bvl-line);
}

.bvl.is-lt760 .bvl-item:first-child {
  padding-top: 18px;
}

/* Mobile (≤ 420 px) */
.bvl.is-lt420 {
  --bvl-item-fs: 16px;
  --bvl-main-fs: 24px;
}

.bvl.is-lt420 .bvl-in {
  gap: 20px;
}

.bvl.is-lt420 .bvl-head {
  justify-content: space-between;
}

.bvl.is-lt420 .bvl-h2 {
  font-size: 28px;
}

.bvl.is-lt420 .bvl-rule {
  display: none;
}

.bvl.is-lt420 .bvl-more {
  font-size: 12px;
  padding: 6px 0;
}

.bvl.is-lt420 .bvl-item {
  gap: 14px;
  padding: 16px 0;
}

.bvl.is-lt420 .bvl-thumb {
  flex-basis: 96px;
}

/* Très étroit (≤ 300 px) */
.bvl.is-lt300 {
  --bvl-item-fs: 15px;
  --bvl-main-fs: 22px;
}

.bvl.is-lt300 .bvl-item {
  gap: 12px;
}

.bvl.is-lt300 .bvl-thumb {
  flex-basis: 76px;
}


/* ==========================================================
   5.4 ACCESSIBILITÉ – Mouvements réduits
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .cae-rv .cae-rv__col {
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .alune-slide {
    transition: none;
  }
}