/*
Theme Name:  Dénarié Sport 2000
Theme URI:   https://denariesport.com
Author:      Dénarié Sport
Author URI:  https://denariesport.com
Description: Thème WordPress sur mesure pour Dénarié Sport 2000 – Morillon, Grand Massif. Compatible Elementor, responsive, optimisé SEO. Magasin de sport ski & VTT à la montagne.
Version:     1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: denarie-sport
Tags:        custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready, elementor

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

:root {
  /* Charte Sport 2000 */
  --ds-rouge:        #C91017;
  --ds-rouge-fonce:  #a40127;
  --ds-vert:         #4B7B3A;
  --ds-vert-fonce:   #365a29;
  --ds-noir:         #191919;
  --ds-noir-doux:    #111111;
  --ds-blanc:        #F5F3EE;
  --ds-gris:         #e8e6e1;
  --ds-gris-texte:   #5a5a5a;

  /* Typographie */
  --ds-font-titre:   'Bebas Neue', 'Arial Narrow', sans-serif;
  --ds-font-corps:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ds-font-accent:  'Playfair Display', 'Georgia', serif;

  /* Layout */
  --ds-container:    1280px;
  --ds-gutter:       2rem;
  --ds-radius:       4px;

  /* Transitions */
  --ds-transition:   0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  overflow-x: hidden; /* évite la barre de défilement horizontale due aux blocs .alignfull (100vw) */
  font-family: var(--ds-font-corps);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ds-noir);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ds-rouge);
  text-decoration: none;
  transition: color var(--ds-transition);
}

a:hover {
  color: var(--ds-rouge-fonce);
}

ul, ol {
  list-style: none;
}

/* === CONTAINER ===================================================== */
.ds-container {
  width: 100%;
  max-width: var(--ds-container);
  margin-inline: auto;
  padding-inline: var(--ds-gutter);
}

/* === TYPOGRAPHY ==================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ds-font-titre);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--ds-noir);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.ds-eyebrow {
  display: inline-block;
  font-family: var(--ds-font-corps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ds-rouge);
  margin-bottom: 0.5rem;
}

.ds-rouge { color: var(--ds-rouge); }
.ds-vert { color: var(--ds-vert); }

/* === BUTTONS ======================================================= */
.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ds-font-titre);
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 0.65rem 1.8rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ds-transition), color var(--ds-transition), border-color var(--ds-transition), transform 0.15s;
  text-decoration: none;
}

.ds-btn:hover {
  transform: translateY(-1px);
}

.ds-btn-rouge {
  background: var(--ds-rouge);
  color: #fff;
  border-color: var(--ds-rouge);
}
.ds-btn-rouge:hover {
  background: var(--ds-rouge-fonce);
  border-color: var(--ds-rouge-fonce);
  color: #fff;
}

.ds-btn-outline-blanc {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.ds-btn-outline-blanc:hover {
  background: #fff;
  color: var(--ds-noir);
}

.ds-btn-outline-rouge {
  background: transparent;
  color: var(--ds-rouge);
  border-color: var(--ds-rouge);
}
.ds-btn-outline-rouge:hover {
  background: var(--ds-rouge);
  color: #fff;
}

.ds-btn svg,
.ds-btn .btn-arrow {
  transition: transform var(--ds-transition);
}
.ds-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* === HEADER / NAVIGATION ========================================== */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow var(--ds-transition);
}

/* Décaler le header sous la barre d'admin WordPress */
.admin-bar #masthead {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #masthead {
    top: 46px;
  }
}

/* La topbar rouge est toujours visible */
.header-topbar {
  /* déjà défini plus bas, pas de redéfinition ici */
}

/* La zone nav a TOUJOURS un fond noir */
.header-main {
  background: var(--ds-noir);
  padding: 0.5rem 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

/* Sur la page d'accueil, état transparent quand en haut de page */
.home #masthead.is-top .header-main {
  background: rgba(25, 25, 25, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* État épinglé après scroll (toutes pages) */
#masthead.is-sticky .header-main {
  background: var(--ds-noir);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

/* Barre supérieure rouge (localisation + téléphone) */
.header-topbar {
  background: var(--ds-rouge);
  padding: 0.4rem 0;
}

.header-topbar .ds-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.header-topbar a,
.header-topbar span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.header-topbar a:hover {
  color: rgba(255,255,255,0.8);
}

.header-topbar svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Sélecteur de langue (Polylang) — voir ds_language_switcher() */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher__item {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
}

.lang-switcher__item:hover {
  color: #fff !important;
}

.lang-switcher__item.is-active {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Zone logo */
.site-logo {
  padding: 0.6rem 0;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
  text-decoration: none;
}

.site-logo img {
  height: 60px;
  width: auto;
  transition: height var(--ds-transition);
}

.is-sticky .site-logo img {
  height: 46px;
}

.site-logo .logo-text {
  font-family: var(--ds-font-titre);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.2;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-text-main {
  font-family: var(--ds-font-titre);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--ds-rouge) !important;
  line-height: 1;
}
.footer-logo-text {
  font-family: var(--ds-font-titre);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--ds-rouge) !important;
  text-decoration: none;
  display: block;
}

/* Navigation principale */
.main-navigation {
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu > li > a {
  font-family: var(--ds-font-titre);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #fff !important;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--ds-transition);
  text-decoration: none;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--ds-rouge) !important;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--ds-rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ds-transition);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Sous-menus */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ds-noir);
  border-top: 3px solid var(--ds-rouge);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ds-transition), visibility var(--ds-transition), transform var(--ds-transition);
  z-index: 100;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--ds-blanc);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--ds-transition), color var(--ds-transition);
}

.nav-menu .sub-menu li a:hover {
  background: rgba(201,16,23,0.15);
  color: var(--ds-rouge);
}

.nav-menu li {
  position: relative;
}

/* Bouton hamburger mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--ds-radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO SPLIT ==================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* header en overlay */
}

.hero-side {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.hero-side__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-side:hover .hero-side__bg {
  transform: scale(1.05);
}

.hero-side__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,25,25,0.55) 0%, rgba(25,25,25,0.3) 100%);
  transition: background var(--ds-transition);
}

.hero-side:hover .hero-side__overlay {
  background: linear-gradient(135deg, rgba(25,25,25,0.35) 0%, rgba(25,25,25,0.15) 100%);
}

.hero-side__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 3rem 2.5rem;
}

.hero-side__label {
  font-family: var(--ds-font-titre);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 3px 30px rgba(0,0,0,0.5);
}

.hero-side__sub {
  display: inline-block;
  background: var(--ds-rouge);
  font-family: var(--ds-font-titre);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #fff;
  padding: 0.3rem 1rem;
  margin: 0.6rem 0 1.5rem;
  width: fit-content;
}

/* Médaillon central */
.hero-medallion {
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-medallion__line {
  width: 3px;
  background: var(--ds-rouge);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.hero-medallion__circle {
  width: 320px;
  height: 320px;
  background: #fff;
  border: 3px solid var(--ds-rouge);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.hero-medallion__circle img {
  width: 300px;
  height: auto;
}

.hero-medallion__circle .medallion-tagline {
  font-family: var(--ds-font-corps);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

/* === BANDEAU ICONES ================================================ */
.bandeau-icones {
  background: var(--ds-noir);
  padding: 1.2rem 0;
  border-top: 3px solid var(--ds-rouge);
}

.bandeau-icones .ds-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.bandeau-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.bandeau-item:last-child {
  border-right: none;
}

.bandeau-item__icon {
  width: 42px;
  height: 42px;
  background: var(--ds-rouge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bandeau-item__icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.bandeau-item__icon .material-icons {
  font-size: 20px;
  color: #fff;
  line-height: 1;
}

.bandeau-item__title {
  font-family: var(--ds-font-titre);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.bandeau-item__sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1px;
}

/* === SECTION PRÉSENTATION ========================================= */
.section-presentation {
  padding: 3rem 0;
  background: #fff;
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.presentation-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--ds-noir);
}

/* .entry-content h2 (règle générique du contenu de page) a la même
   spécificité que .presentation-text h2 et lui impose margin-top:2rem,
   ce qui décale le titre vers le bas par rapport à l'image en vis-à-vis
   dans les patterns Présentation / Image+texte+logos. On force 0 avec
   une sélecteur plus spécifique. */
.entry-content .presentation-text h2 {
  margin-top: 0;
}

.presentation-text h2 span {
  color: var(--ds-rouge);
}

.presentation-text p {
  font-size: 0.95rem;
  color: var(--ds-gris-texte);
  line-height: 1.75;
}

/* .presentation-text p (au-dessus) est plus spécifique que .ds-eyebrow seul
   et l'emporterait sinon sur la couleur rouge de l'accroche "Le magasin". */
.presentation-text .ds-eyebrow {
  color: var(--ds-rouge);
}

.presentation-text .cta-reservation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ds-gris);
  border-left: 4px solid var(--ds-rouge);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-family: var(--ds-font-titre);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ds-rouge);
}

.presentation-text .cta-reservation svg {
  width: 22px;
  height: 22px;
  fill: var(--ds-rouge);
  flex-shrink: 0;
}

.presentation-image {
  position: relative;
}

.presentation-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.presentation-services {
  background: var(--ds-noir);
  padding: 1.5rem;
  margin-top: -3rem;
  position: relative;
}

.presentation-services h3 {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ds-rouge);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

.services-list li .material-icons {
  font-size: 18px;
  line-height: 1;
  color: var(--ds-rouge);
  flex-shrink: 0;
}

.services-list li strong {
  color: #fff;
  font-weight: 500;
  display: block;
  font-size: 0.9rem;
}

/* === SECTION UNIVERS ============================================== */
.section-univers {
  padding: 4rem 0;
  background: var(--ds-gris);
}

.section-univers .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-univers .section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ds-rouge);
  margin: 0.75rem auto 0;
}

.univers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.univers-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ds-noir);
  cursor: pointer;
}

.univers-item a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  text-decoration: none;
}

.univers-item a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  transition: opacity var(--ds-transition);
}

.univers-item:hover a::after {
  opacity: 0.75;
}

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

.univers-item:hover .univers-item__icon {
  transform: scale(1.06);
}

.univers-item__label {
  position: relative;
  z-index: 1;
  font-family: var(--ds-font-titre);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* === SECTION CTA MONTAGNE ========================================= */
.section-montagne-cta {
  position: relative;
  padding: 6rem 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.section-montagne-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(25,25,25,0.65);
}

.section-montagne-cta .ds-container {
  position: relative;
  z-index: 2;
}

.montagne-cta-content {
  max-width: 600px;
}

.montagne-cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.montagne-cta-content .cta-sub {
  font-family: var(--ds-font-corps);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}

.montagne-cta-content .cta-line {
  width: 50px;
  height: 3px;
  background: var(--ds-rouge);
  margin-bottom: 1.5rem;
}

/* === SECTION SOCIAL WALL ========================================== */
.section-social-wall {
  padding: 4rem 0;
  background: #fff;
}

.section-social-wall .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.social-wall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.social-wall-grid:has(.social-wall-col:only-child) {
  grid-template-columns: 1fr;
}

.social-wall-col__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--ds-font-titre);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-noir);
}

.social-wall-col--instagram .social-wall-col__header svg {
  width: 20px;
  height: 20px;
  fill: #E1306C;
}

.social-wall-col--facebook .social-wall-col__header svg {
  width: 20px;
  height: 20px;
  fill: #1877F2;
}

@media (max-width: 768px) {
  .social-wall-grid {
    grid-template-columns: 1fr;
  }
}

/* === SECTION PARTENAIRES ========================================== */
.section-partenaires {
  padding: 3.5rem 0;
  background: var(--ds-gris);
}

.section-partenaires .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.partenaires-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.partenaires-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ds-rouge);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ds-transition), opacity var(--ds-transition);
}

.partenaires-arrow svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.partenaires-arrow:hover {
  background: var(--ds-noir);
}

.partenaires-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.partenaires-logos {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.partenaires-logos::-webkit-scrollbar {
  display: none;
}

.partenaires-item {
  flex: 0 0 calc((100% - 5 * 1.25rem) / 6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partenaires-item a {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.partenaires-item__media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

/* Carré adaptatif dans le slider : width 100% de l'item + aspect-ratio */
.partenaires-slider .partenaires-item__media {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.partenaires-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  filter: grayscale(1) opacity(0.5);
  transition: filter var(--ds-transition), transform var(--ds-transition);
}

.partenaires-item:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

.partenaires-item__name {
  margin-top: 0.5rem;
  font-family: var(--ds-font-titre);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ds-noir);
  opacity: 0.6;
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
  transition: opacity var(--ds-transition);
}

.partenaires-item:hover .partenaires-item__name {
  opacity: 1;
}

.partenaires-item__name--hidden {
  visibility: hidden;
}

/* Si pas de logos images, fallback texte */
.partner-text {
  font-family: var(--ds-font-titre);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: rgba(25,25,25,0.3);
  border: 1px solid rgba(25,25,25,0.12);
  padding: 0.5rem 1.5rem;
  transition: color var(--ds-transition), border-color var(--ds-transition);
  cursor: default;
}

.partner-text:hover {
  color: var(--ds-rouge);
  border-color: var(--ds-rouge);
}

/* === GRILLE FOURNISSEURS (scroll reveal) ========================== */
.fournisseurs-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem;
}

@media (max-width: 480px) {
  .fournisseurs-grille {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.fournisseurs-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fournisseurs-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PAGE PARTENAIRES ============================================= */
.section-partenaires-page {
  padding: 3rem 0 5rem;
}

.partenaires-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.5rem;
}

/* === PAGE CONTACT ================================================== */
.contact-bandeau {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--ds-noir); /* évite un flash blanc tant que l'image charge */
}

.contact-bandeau__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}

.contact-bandeau__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--ds-font-titre);
  letter-spacing: 0.05em;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0;
}

.contact-breadcrumb-wrap {
  margin: 2rem auto 0;
}

/* Modèle générique "Page avec bandeau" (page-bandeau.php) : espace entre
   le fil d'Ariane et le contenu de l'éditeur de blocs. */
.page-bandeau-content {
  padding: 1rem 0 4rem;
}

.section-contact-page {
  padding: 1rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-coords h2,
.contact-form-wrap h2,
.section-contact-map h2 {
  font-family: var(--ds-font-titre);
  letter-spacing: 0.05em;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-coords__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-style: normal;
}

.contact-coords__list > div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.contact-coords__list .material-icons {
  color: var(--ds-rouge);
  font-size: 1.3rem;
  line-height: 1.5;
}

.contact-coords__list a {
  color: inherit;
  text-decoration: none;
}
.contact-coords__list a:hover {
  color: var(--ds-rouge);
}

/* Formulaire */
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--ds-font-corps);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ds-gris);
  border-radius: var(--ds-radius);
  background: #fff;
  transition: border-color var(--ds-transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ds-rouge);
}

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

.contact-form .g-recaptcha {
  transform-origin: left;
}

.contact-form__rgpd {
  font-size: 0.8rem;
  color: var(--ds-gris-texte);
  margin-bottom: 1.25rem;
}
.contact-form__rgpd a {
  color: var(--ds-gris-texte);
  text-decoration: underline;
}

.contact-form__admin-note {
  font-size: 0.85rem;
  color: var(--ds-rouge);
  background: rgba(201, 16, 23, 0.08);
  border: 1px dashed var(--ds-rouge);
  padding: 0.75rem 1rem;
  border-radius: var(--ds-radius);
  margin-bottom: 1.25rem;
}

.contact-form button[type='submit'] {
  border: none;
}
.contact-form button[type='submit'].is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.contact-form .form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--ds-radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.contact-form .form-feedback.is-success {
  display: block;
  background: rgba(75, 123, 58, 0.1);
  color: var(--ds-vert-fonce);
  border: 1px solid var(--ds-vert);
}
.contact-form .form-feedback.is-error {
  display: block;
  background: rgba(201, 16, 23, 0.08);
  color: var(--ds-rouge-fonce);
  border: 1px solid var(--ds-rouge);
}

/* Carte OpenStreetMap */
.section-contact-map {
  padding: 0 0 5rem;
}

.contact-map {
  position: relative;
  width: 100%;
  padding-bottom: 38%;
  border-radius: var(--ds-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ds-rouge);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-map {
    padding-bottom: 70%;
  }
}

/* === BOUTON RETOUR EN HAUT ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ds-rouge);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--ds-transition);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--ds-noir);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* === FOOTER ======================================================= */
#colophon {
  background: var(--ds-noir);
  border-top: 3px solid var(--ds-rouge);
}

.footer-widgets {
  padding: 4rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
}

.footer-brand .site-footer-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand .footer-brand-name {
  font-family: var(--ds-font-titre);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--ds-rouge);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(245,243,238,0.45);
  line-height: 1.7;
}

.footer-brand address {
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(245,243,238,0.45);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.footer-brand address a {
  color: rgba(245,243,238,0.45);
  transition: color var(--ds-transition);
}

.footer-brand address a:hover {
  color: var(--ds-rouge);
}

.footer-col h4 {
  font-family: var(--ds-font-titre);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--ds-rouge);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(245,243,238,0.5);
  transition: color var(--ds-transition), padding-left var(--ds-transition);
}

.footer-col ul li a:hover {
  color: var(--ds-blanc);
  padding-left: 4px;
}

.footer-horaires p {
  font-size: 0.82rem;
  color: rgba(245,243,238,0.5);
  line-height: 1.8;
}

.footer-horaires strong {
  color: rgba(245,243,238,0.8);
  font-weight: 500;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,243,238,0.6);
  transition: background var(--ds-transition), color var(--ds-transition);
}

.footer-social a:hover {
  background: var(--ds-rouge);
  color: #fff;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom-bar {
  background: #0a0a0a;
  padding: 1rem 0;
}

.footer-bottom-bar .ds-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom-bar p,
.footer-bottom-bar a {
  font-size: 0.72rem;
  color: rgba(245,243,238,0.25);
}

.footer-bottom-bar a:hover {
  color: rgba(245,243,238,0.6);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* === PAGE CONTENU (hors Elementor) ================================ */
.page-content {
  padding: 6rem 0 4rem;
}

/* Fil d'Ariane — sans ça, la liste <ol> garde son retrait par défaut
   du navigateur et ne s'aligne pas avec le titre de page. */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ds-gris-texte);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  color: var(--ds-gris-texte);
}
.breadcrumb-list a { color: var(--ds-gris-texte); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--ds-rouge); }
.breadcrumb-list [aria-current="page"] { color: var(--ds-noir); }

/* Page dont le titre est masqué (ex. pattern "Hero page produit" qui a déjà son H1) */
.page-content--no-title {
  padding-top: 0;
  padding-bottom: 0;
}

/* Fil d'Ariane repositionné juste après le hero (voir ds_move_breadcrumb_after_hero).
   Le wrapper casse la contrainte 800px de .entry-content (comme .alignfull)
   pour que .breadcrumb-below-hero (.ds-container, 1280px) retombe sur le
   même repère gauche que les sections pleine largeur qui suivent (ex.
   l'accroche "Le magasin" du pattern Présentation). */
.entry-content .breadcrumb-below-hero-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.breadcrumb-below-hero {
  margin: 2rem auto 0;
}

.entry-content {
  max-width: 800px;
  margin-inline: auto;
}

.entry-content p { margin-bottom: 1.1rem; }
.entry-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.4rem; }

/* Blocs Gutenberg alignwide/alignfull : permet aux patterns (Hiver, Été...)
   d'utiliser des bandeaux pleine largeur dans le gabarit page.php, malgré
   la colonne de texte étroite (800px) de .entry-content. */
.entry-content .alignwide {
  max-width: var(--ds-container);
  width: 100%;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* === PATTERNS PAGES HIVER / ÉTÉ ==================================== */
/* Note : les blocs core/columns imposent déjà leur propre display:flex
   (classe .is-layout-flex). On ne le combat pas avec du display:grid
   (perdant en cascade face au CSS core chargé après le thème) — on
   s'appuie sur ce flex natif et on ajoute juste les écarts qui manquent.
   (.presentation-grid reste inchangée : utilisée telle quelle, en grid,
   par la page d'accueil sur un simple <div>, pas un bloc Gutenberg.) */
.wp-block-columns.ds-pattern-columns { gap: 3rem; align-items: flex-start; }

/* Bandeau avantages sur fond sombre ("Pourquoi choisir...") — pattern
   dédié, indépendant de .bandeau-icones (mise en page différente :
   titre + rangée de cartes, pas 4 cartes directement dans .ds-container). */
.bandeau-sombre {
  background: var(--ds-noir);
  border-top: 3px solid var(--ds-rouge);
  color: #fff;
  padding: 3rem 0;
}
.bandeau-sombre h2, .bandeau-sombre h3 { color: #fff; }
.bandeau-sombre p { color: rgba(255,255,255,0.75); }
.bandeau-sombre .bandeau-item {
  flex-direction: column;
  text-align: center;
  padding-top: 1rem;
}
/* Réserve la hauteur de 2 lignes de titre, pour que le texte en dessous
   reste aligné entre les cartes même si un seul titre passe sur 2 lignes. */
.bandeau-sombre .bandeau-item h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3em;
}

/* Titre de section centré, générique (utilisé seul, sans .section-univers) */
.section-header { text-align: center; margin-bottom: 2rem; }

/* Titre de section sur fond sombre (variante de .section-header) */
.section-header--sombre h2 { color: #fff; }
.section-header--sombre p  { color: rgba(255,255,255,0.65); }

/* Hero page produit (Hiver / Été) — la photo est un vrai bloc image
   (remplaçable depuis l'éditeur), positionnée en fond via CSS. */
.hero-page {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
/* .hero-page est un wp:group "classique" : son vrai enfant flex n'est
   pas .ds-container mais le .wp-block-group__inner-container que
   WordPress ajoute automatiquement. Sans largeur forcée à 100%, cet
   inner-container se comporte en "shrink-to-fit", ce qui rend le
   width:100% de .ds-container indéterminé (il se réduit au contenu le
   plus large au lieu de faire 1280px) — d'où le texte du hero calé à
   gauche au lieu d'être centré dans son .ds-container. */
.hero-page > .wp-block-group__inner-container {
  width: 100%;
}
.hero-page__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.hero-page__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.1) 100%);
}
.hero-page .ds-container {
  position: relative;
  z-index: 2;
}
.hero-page h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; margin-bottom: 0; }
.hero-page h1 em { font-style: italic; font-family: var(--ds-font-accent); color: var(--ds-vert); }

/* Contenu du hero centré comme une bande .ds-container classique
   (largeur limitée), aligné à gauche du bandeau .ds-container (pas
   centré), au lieu de flotter sur toute la largeur du hero. */
.hero-page__content {
  max-width: 600px;
  padding-left: 1.5rem;
}

/* Petite séparation, fine, entre le titre et l'accroche, et entre
   l'accroche et les badges. */
.hero-page__separateur.wp-block-separator {
  width: 60px;
  height: 1px;
  margin: 0.85rem 0;
  border: none;
  background: var(--ds-rouge);
  opacity: 1;
}
.hero-page__separateur--vert.wp-block-separator { background: var(--ds-vert); }

/* Accroche : "Votre spécialiste Sport 2000" (rouge) puis
   "Au cœur du Grand Massif" (blanc), même taille, même police élégante. */
.hero-page__accroche {
  font-family: var(--ds-font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 0;
}
.hero-page__accroche--rouge { color: var(--ds-rouge); }
.hero-page__accroche--blanc { color: #fff; }
.hero-page__accroche--vert { color: var(--ds-vert); }

.hero-page .hero-page__badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.25rem 0; padding: 0; list-style: none; font-size: 0.85rem; }
.hero-page .hero-page__badges li { display: flex; align-items: center; gap: 0.4rem; }
.hero-page .hero-page__badges li .material-icons { color: var(--ds-rouge); font-size: 1.1rem; }
.hero-page .hero-page__badges--vert li .material-icons { color: var(--ds-vert); }

/* Texte + liste sur fond photo ("Explorez la montagne autrement") — même
   principe que .hero-page (image de fond + dégradé) mais plus bas et
   sans les badges/CTA du hero. */
.section-montagne-libre {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
/* Même correctif que .hero-page > .wp-block-group__inner-container
   (voir commentaire à cet endroit) : sans width:100% forcé, ce wrapper
   auto-généré se réduit à son contenu et rend .ds-container/.__content
   trop étroits et non centrés. */
.section-montagne-libre > .wp-block-group__inner-container {
  width: 100%;
}
.section-montagne-libre__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.section-montagne-libre__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-montagne-libre::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}
.section-montagne-libre .ds-container {
  position: relative;
  z-index: 2;
}
.section-montagne-libre__content {
  max-width: 560px;
}
.section-montagne-libre__content h2 { color: #fff; margin-top: 0; }
.section-montagne-libre__content p { color: rgba(255,255,255,0.85); }
.section-montagne-libre__content .liste-check li { color: #fff; }

/* Ligne de logos (stations, marques...) */
.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}
.logos-row img { max-height: 70px; width: auto; }

/* Liste à puces "check" */
.liste-check { list-style: none; padding: 0; margin-top: 1rem; }
.liste-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.liste-check li::before {
  content: '✓';
  color: var(--ds-rouge);
  font-weight: 700;
  flex-shrink: 0;
}
.liste-check--vert li::before { color: var(--ds-vert); }

/* Les 4 atouts du pattern Présentation, sur 2 colonnes avec un picto
   dédié par atout (au lieu du simple ✓ de .liste-check). */
.liste-atouts {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}
.liste-atouts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.liste-atouts li .material-icons {
  color: var(--ds-rouge);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.liste-atouts--vert li .material-icons { color: var(--ds-vert); }
@media (max-width: 480px) {
  .liste-atouts { grid-template-columns: 1fr; }
}

/* Grille produits/matériel (icône + image + libellé) — s'appuie sur la
   mise en page flex native du bloc Galerie (columns:4), on ajoute juste
   un rendu photo cohérent (recadrage carré). */
.wp-block-gallery.grille-produits { gap: 1.5rem; }
.grille-produits img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Encart lieu/info (pattern "Réservation en ligne") — bloc gris avec
   liseré coloré, icône + titre + description. */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--ds-gris);
  border-left: 4px solid var(--ds-rouge);
  padding: 1.1rem 1.25rem;
  margin-top: 1.5rem;
}
.info-box__icone .material-icons { color: var(--ds-rouge); font-size: 1.5rem; }
.info-box__titre {
  font-family: var(--ds-font-titre);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ds-noir);
  margin-bottom: 0.25rem;
}
.info-box__desc { font-size: 0.85rem; color: var(--ds-gris-texte); }
.info-box--vert { border-left-color: var(--ds-vert); }
.info-box--vert .info-box__icone .material-icons { color: var(--ds-vert); }

/* Cartes activités (pattern "Activités 3 cartes") — photo avec label
   superposé, titre et texte en dessous. */
.wp-block-columns.activites-grid { gap: 2rem; }
.activite-card__media {
  position: relative;
  margin-bottom: 1rem;
}
.activite-card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.activite-card__label {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(25,25,25,0.85);
  color: #fff;
  font-family: var(--ds-font-titre);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--ds-radius);
}
.activite-card__label--vert { background: var(--ds-vert); }
.activite-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.activite-card p { font-size: 0.9rem; color: var(--ds-blanc); }

/* Bandeau CTA rouge pleine largeur */
.cta-bandeau-rouge {
  background: var(--ds-rouge);
  padding: 1.75rem 0;
}
/* Le bloc "ds-container" est ici un wp:group "classique" (sans attribut
   layout, volontairement — cf. bug groupe/layout de WP 7.0 en tête de ce
   fichier). WordPress enveloppe alors son contenu dans un
   .wp-block-group__inner-container supplémentaire : c'est CE conteneur,
   pas le .ds-container lui-même, qui porte réellement l'icône/le texte/
   le bouton comme enfants directs — le display doit donc cibler ce
   niveau pour que les 3 colonnes s'alignent. */
.cta-bandeau-rouge .ds-container > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cta-bandeau-rouge__icone { display: flex; align-items: center; color: #fff; flex-shrink: 0; }
.cta-bandeau-rouge__icone svg { width: 58px; height: 58px; fill: #fff; flex-shrink: 0; display: block; }
.cta-bandeau-rouge__info { flex-shrink: 0; }
/* Le bouton est repoussé à l'extrême droite par une marge automatique,
   indépendamment du petit espace icône/texte à gauche. */
.cta-bandeau-rouge .wp-block-buttons { margin-left: auto; }

@media (max-width: 700px) {
  .cta-bandeau-rouge .ds-container > .wp-block-group__inner-container {
    flex-direction: column;
    text-align: center;
  }
  .cta-bandeau-rouge .wp-block-buttons { margin-left: 0; }
  .cta-bandeau-rouge__atouts { justify-content: center; }
}

.cta-bandeau-rouge__titre {
  font-family: var(--ds-font-titre);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.6rem;
  text-align: left;
  color: #fff;
}
/* .entry-content p (style générique de contenu de page) est plus
   spécifique que .cta-bandeau-rouge__titre seul et lui impose
   margin-bottom:1.1rem — d'où le grand espace avant la 2ème ligne. */
.entry-content .cta-bandeau-rouge__titre {
  margin-bottom: 0.15rem;
}
/* .entry-content ul/ol (style générique de contenu de page) est plus
   spécifique que .cta-bandeau-rouge__atouts seul et lui impose
   padding-left:1.5rem + margin-bottom:1rem — ce qui décale la 2ème
   ligne vers la droite par rapport au titre. On neutralise avec un
   sélecteur plus spécifique. */
.entry-content .cta-bandeau-rouge__atouts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
  gap: 0.25rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cta-bandeau-rouge__atouts li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
}
.cta-bandeau-rouge__atouts li .material-icons { font-size: 1rem; color: #fff; }

/* Témoignages + note Google — repose sur le flex natif de core/columns
   (colonnes égales par défaut), on ajoute juste l'écart. */
.section-temoignages {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: #fff;
}
/* Fond photo en vrai bloc image (comme .hero-page__bg) plutôt qu'une
   image fixée en CSS : remplaçable par page depuis l'éditeur, pour
   pouvoir mettre une photo hiver ou été selon la page. */
.section-temoignages__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  opacity: 0.12;
}
.section-temoignages__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-temoignages .ds-container {
  position: relative;
  z-index: 1;
}
.wp-block-columns.temoignages-grid { gap: 1.5rem; align-items: stretch; }
.temoignage-card { background: var(--ds-gris); padding: 1.5rem; }
.temoignage-card .stars { color: var(--ds-rouge); margin-bottom: 0.5rem; letter-spacing: 0.15em; }
.temoignage-card p { font-style: italic; font-size: 0.9rem; color: var(--ds-noir); margin-bottom: 0.75rem; }
.temoignage-card .auteur { font-family: var(--ds-font-titre); letter-spacing: 0.05em; color: var(--ds-gris-texte); font-size: 0.85rem; }
.google-card {
  background: var(--ds-noir);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}
.google-card .note { font-family: var(--ds-font-titre); font-size: 2rem; }
.google-card .stars { color: #FBBC05; letter-spacing: 0.15em; }
.google-card a { color: #fff; }

@media (max-width: 900px) {
  .hero-page .ds-container { grid-template-columns: 1fr; }
  .hero-page__card { width: 100%; }
}

/* Boutons Gutenberg (core/button) stylés comme .ds-btn dans les patterns */
.wp-block-button.ds-btn-rouge > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ds-rouge);
  color: #fff;
  font-family: var(--ds-font-titre);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 6px !important;
}
.wp-block-button.ds-btn-rouge > .wp-block-button__link:hover { background: var(--ds-rouge-fonce); color: #fff; }

/* Picto chevron à la fin du texte du bouton (ex. "Réserver mon matériel") */
.wp-block-button.ds-btn-rouge > .wp-block-button__link::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.wp-block-button.ds-btn-outline-blanc > .wp-block-button__link {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--ds-font-titre);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.8rem;
  border-radius: 0;
}
.wp-block-button.ds-btn-outline-blanc > .wp-block-button__link:hover { background: #fff; color: var(--ds-noir); }

/* === ELEMENTOR OVERRIDES ========================================== */
.elementor-section,
.e-con {
  --ds-rouge: #C91017;
  --ds-noir: #191919;
}

/* Assure que l'Elementor ne casse pas le sticky header */
.elementor-edit-mode #masthead {
  position: relative !important;
}

/* === RESPONSIVE ==================================================== */
@media (max-width: 1100px) {
  .footer-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .univers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-medallion__circle {
    width: 260px;
    height: 260px;
  }

  .hero-medallion__circle img {
    width: 220px;
  }
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    min-height: 100svh;
  }

  .hero-side {
    min-height: 50vh;
  }

  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bandeau-icones .ds-container {
    grid-template-columns: 1fr 1fr;
  }

  .bandeau-item:nth-child(2) {
    border-right: none;
  }

  .main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ds-noir);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 6rem 2rem 2rem;
  }

  .main-navigation.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-menu > li > a {
    font-size: 2rem;
  }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border-top: none;
    text-align: center;
  }

  .nav-menu .sub-menu li a {
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 768px) {
  .hero-medallion {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --ds-gutter: 1.25rem;
  }

  .bandeau-icones .ds-container {
    grid-template-columns: 1fr;
  }

  .bandeau-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

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

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-bar .ds-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-presentation,
  .section-univers {
    padding: 3rem 0;
  }

  .section-montagne-cta {
    background-attachment: scroll;
    padding: 4rem 0;
  }
}

/* === ACCESSIBILITÉ ================================================= */
:focus-visible {
  outline: 3px solid var(--ds-rouge);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === PRINT ======================================================== */
@media print {
  #masthead,
  .hero-split,
  .bandeau-icones {
    display: none;
  }
}
