/* ══════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════ */
:root {
  --navy-clusier:         #172535;
  --navy-clusier-mid:     #152333;
  --navy-clusier-light:   #1e3048;
  --cream:                #f2ede4;
  --white:                #ffffff;
  --gray-clusier:         #8a9bb0;
  --gray-clusier-light:   #b0bfcf;
  --border:               rgba(255,255,255,0.08);

  --serif-reg:          'addington_cfregular', Georgia, serif;
  --serif-light:        'addington_cflight', Georgia, serif;
  --serif-italic:       'addington_cfitalic', Georgia, serif;
  --serif-light-italic: 'addington_cflight_italic', Georgia, serif;
  --sans:               'karmillaregular', Helvetica, Arial, sans-serif;
  --sans-bold:          'karmillabold', Helvetica, Arial, sans-serif;

  --nav-h:   160px;
  --promo-h: 36px;
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; }
  
html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--navy-clusier);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { 
  display: block;
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

ul { 
  list-style: none;
}

/* ══════════════════════════════════════════
   LIENS DANS LE TEXTE — soulignés
══════════════════════════════════════════ */
.entry-content a,
.event-desc a,
.service-panel-content p a,
.svc-faq__answer a,
p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sécurité : jamais de soulignement sur menus, titres, boutons */
.slide-title a,
.service-title a,
.event-title a,
.cat-name a,
.online-cta-title a,
nav a,
.btn-outline,
.btn-primary,
.btn-slide,
h1 a, h2 a, h3 a, h4 a {
  text-decoration: none;
}

/* ══════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════ */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--promo-h) - var(--nav-h));
  min-height: 560px;
  overflow: hidden;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77,0,0.18,1);
  will-change: transform;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.slide-img {
  position: absolute; inset: 0;
  background: var(--navy-light) center/cover no-repeat;
  transform: scale(1);
  transition: transform 8s ease;
}
.slide.is-active .slide-img { 
  transform: scale(1.04); 
}

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,27,42,0.1) 0%,
    rgba(13,27,42,0.0) 25%,
    rgba(13,27,42,0.5) 65%,
    rgba(13,27,42,0.9) 100%
  );
}
.slide-content {
  position: absolute;
  bottom: 110px; left: 64px;
  max-width: 580px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s 0.3s, transform 0.6s 0.3s;
}
.slide.is-active .slide-content {
  opacity: 1;
  transform: translateY(0);
}
.slide-season {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.slide-title {
  font-family: var(--serif-light);
  font-size: 3rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}
.slide-title em {
  font-family: var(--serif-light-italic);
  font-style: normal;
}
.btn-slide {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border: 0.5px solid rgba(255,255,255,0.5);
  padding: 12px 28px;
  border-radius: 2px;
  transition: all 0.25s;
}
.btn-slide:hover { 
  background: var(--white); 
  color: var(--navy-clusier); 
}

/* Contrôles slider */
.slider-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  border-top: 0.5px solid var(--border);
  background: rgba(13,27,42,0.7);
  backdrop-filter: blur(8px);
  height: 56px;
  padding: 0 64px;
  gap: 24px;
}
.slider-dots {
  display: flex; gap: 8px; 
  align-items: center; 
  flex: 1;
}

.slider-dot {
  width: 24px; height: 1.5px;
  background: rgba(255,255,255,0.25);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, width 0.3s;
}
.slider-dot.is-active {
  background: var(--gold);
  width: 40px;
}
.slider-arrows { 
  display: flex; 
  gap: 12px; 
}

.slider-arrow {
  width: 36px; height: 36px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--gray-light);
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border-radius: 2px;
  font-size: 16px;
  transition: all 0.2s;
}

.slider-arrow:hover { 
  border-color: var(--gold); 
  color: var(--gold); 
}

/* Stats barre */
.hero-stats {
  display: flex;
  flex: 1; 
  justify-content: flex-end;
}

.hero-stat {
  display: flex; 
  align-items: center; 
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray);
  padding-left: 24px;
  margin-left: 24px;
  border-left: 0.5px solid var(--border);
}

.stat-icon { 
  color: var(--gold); 
  font-size: 7px;
}


/* ══════════════════════════════════════════
   MARQUES
══════════════════════════════════════════ */

.section-marques {
  padding: 60px 0;
  overflow: hidden;
  font-family: var(--serif-light) !important;
}

.section-marques__titre {
  text-align: center;
  margin-bottom: 40px;
  font-family: var(--serif-light);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
  padding-bottom: 2px;
}

.carrousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  
  /* CORRECTION 1 : Bloque les calculs de débordement qui perturbent les liens */
  contain: paint layout;
}

.marques {
  display: flex;
  align-items: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  
  /* CORRECTION 2 : Animation isolée de manière stricte */
  animation: scroll-marques 70s linear infinite;
  
  /* Supprime l'effet "ressort" du navigateur en figeant le repère 3D */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* CORRECTION 3 : La pause s'applique directement au conteneur principal 
   pour éviter que le navigateur mette en cache les déplacements des sous-éléments */
.carrousel:hover .marques {
  animation-play-state: paused !important;
}

.logo-marque {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Assure que la zone réactive reste ancrée au pixel près à sa coordonnée visuelle */
  transform: translate3d(0, 0, 0);
}

.logo-marque a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  
  /* CORRECTION 4 : Force l'élément cliquable à hériter de la couche matérielle */
  transform: translateZ(0);
}

.logo-marque img {
  height: 50px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  
  /* CORRECTION 5 : On sépare les transitions pour que le retrait de la souris 
     soit instantané (0s). Cela élimine le calcul de transition lors du redémarrage, 
     ce qui causait l'accélération brutale. */
  transition: filter 0s, opacity 0s;
  
  /* Évite les micro-saccades sur Chrome & Safari */
  backface-visibility: hidden;
  -webkit-user-drag: none;
}

/* CORRECTION 6 : On applique le fondu progressif UNIQUEMENT à l'entrée de la souris.
   Dès que la souris sort, l'image redevient grise instantanément (grâce au transition 0s ci-dessus), 
   libérant instantanément l'animation à sa vitesse normale. */
.logo-marque a:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transition: filter 0.25s linear, opacity 0.25s linear;
}

@keyframes scroll-marques {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marques {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}


/* ══════════════════════════════════════════
   CATÉGORIES
══════════════════════════════════════════ */
.categories { 
  padding: 48px 64px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card { 
  display: block; 
  overflow: hidden;
}

.cat-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--navy-clusier-light);
  margin-bottom: 10px;
  border-radius: 2px;
}

.cat-img {
  width: 100%; height: 100%;
  background: var(--white) center/cover no-repeat;
  transition: transform 0.55s ease;
}

.cat-card:hover .cat-img {
  transform: scale(1.05);
  opacity: 0.65;
}

.cat-info {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  padding: 0 2px;
}

.cat-name {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s;
}

.cat-arrow {
  font-size: 14px; color: var(--gray);
  transition: transform 0.2s, color 0.2s;
}
.cat-card:hover .cat-name { 
  color: var(--white);
}

.cat-card:hover .cat-arrow { 
  transform: translateX(4px); 
  color: var(--gold); 
}

/* ══════════════════════════════════════════
   SERVICES SPLIT
══════════════════════════════════════════ */
.services-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-top: 0.5px solid var(--border);
}
.service-panel {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.service-panel + .service-panel { 
    border-left: 0.5px solid var(--border); 
}
    
.service-panel-img {
  position: absolute; inset: 0;
  background: var(--navy-light) center/cover no-repeat;
  transition: transform 0.6s ease;
}
.service-panel:hover .service-panel-img { 
  transform: scale(1.04); 
}
.service-panel::before { /* corrigé : point manquant devant le sélecteur */
  content: '';
  position: absolute; inset: 0;
  background: var(--navy-clusier);
  opacity: 0.7;
  z-index: 1;
}
.service-panel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.08) 60%);
  z-index: 1;
}
.service-panel-content {
  position: relative; z-index: 2;
  padding: 40px 48px;
}
.service-label {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.service-title {
  font-family: var(--serif-light);
  font-size: 28px; 
  line-height: 1.2;
  color: var(--white); 
  margin-bottom: 24px; 
  max-width: 300px;
}
/* ══════════════════════════════════════════
   HEURES D'OUVERTURE
══════════════════════════════════════════ */
.hours-strip {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 0;
  display: flex; 
  align-items: center; 
  gap: 64px;
}

.hours-label { 
  display: none; 
}

/* ══════════════════════════════════════════
   ÉVÉNEMENT EN VEDETTE
══════════════════════════════════════════ */
.event-feature {
  padding: 40px 64px;
  border-bottom: 0.5px solid var(--border);
}

.event-feature-inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 48px; 
  align-items: center;
}

.event-type {
  font-family: var(--sans);
  font-size: 10px; 
  letter-spacing: 0.18em;
  text-transform: uppercase; 
  color: var(--gold); 
  margin-bottom: 6px;
}

.event-date {
  font-family: var(--sans);
  font-size: 12px; 
  color: var(--gray); 
  letter-spacing: 0.04em;
}

.event-title {
  font-family: var(--serif-light);
  font-size: 24px; 
  color: var(--white);
  margin-bottom: 8px; 
  line-height: 1.2;
}

.event-desc {
  font-family: var(--sans);
  font-size: 13px; 
  color: var(--gray);
  line-height: 1.7; 
  max-width: 460px;
}

/* ══════════════════════════════════════════
   BOUTON ÉVÉNEMENT — fix minimal
══════════════════════════════════════════ */
.btn-event {
  display: inline-block;
  font-family: var(--sans-bold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy-clusier);
  padding: 10px 22px;
  border-radius: 2px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-event:hover {
  opacity: 0.85;
}

.btn-event--complet {
  background: var(--gray-clusier-light);
  color: var(--navy-clusier);
  cursor: not-allowed;
}

.btn-event-contact {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans-bold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-clusier);
  border: 0.5px solid var(--navy-clusier);
  padding: 12px 28px;
  border-radius: 2px;
}

.event-featured-actions,
.event-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-event--outline {
  background: transparent;
  color: var(--navy-clusier);
  border: 0.5px solid var(--navy-clusier);
}

.btn-event--outline:hover {
  background: var(--navy-clusier);
  color: var(--white);
}

/* ══════════════════════════════════════════
   CTA BOUTIQUE EN LIGNE
══════════════════════════════════════════ */
.online-cta {
  padding: 96px 64px; 
  text-align: center;
  background: var(--navy-mid);
}
.online-cta-label {
  font-family: var(--sans);
  font-size: 10px; 
  letter-spacing: 0.22em;
  text-transform: uppercase; 
  color: var(--gold); 
  margin-bottom: 16px;
}

.online-cta-title {
  font-family: var(--serif-light);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white); 
  margin-bottom: 16px; 
  line-height: 1.1;
}

.online-cta-sub {
  font-family: var(--sans);
  font-size: 14px; 
  color: var(--gray);
  margin: 0 auto 36px; 
  max-width: 420px; 
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   BOUTONS GLOBAUX
══════════════════════════════════════════ */
.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px; 
  letter-spacing: 0.12em;
  text-transform: uppercase; 
  color: var(--white);
  border: 0.5px solid rgba(255,255,255,0.4);
  padding: 10px 24px; 
  border-radius: 2px;
  transition: all 0.25s;
}
.btn-outline:hover { 
  background: var(--white); 
  color: var(--navy-clusier);
}

.btn-outline--gold { 
  border-color: var(--gold); 
  color: var(--gold);
}

.btn-outline--gold:hover { 
  background: var(--gold); 
  color: var(--navy-clusier); 
  border-color: var(--gold); 
}

.btn-primary {
  display: inline-block;
  font-family: var(--sans-bold);
  font-size: 12px; 
  letter-spacing: 0.12em;
  text-transform: uppercase; 
  color: var(--navy-clusier);
  background: var(--white); 
  padding: 14px 36px;
  border-radius: 2px; 
  transition: 
  background 0.2s;
}
.btn-primary:hover { 
  background: var(--gold-light);
}

/* ══════════════════════════════════════════
   PAGES INTÉRIEURES (non-accueil)
══════════════════════════════════════════ */
.not-front body,
body.page:not(.home),
body.single,
body.archive,
body.woocommerce {
  background: var(--white);
  color: var(--navy-clusier);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .brands-strip, .categories,
  
  .event-feature, .online-cta,
  
  .hours-strip { 
  padding-left: 32px; 
  padding-right: 32px;
}
  
  .slide-content { 
  left: 40px;
}
  
  .slider-controls { 
  padding: 0 32px;
}
  
  .categories-grid { 
  grid-template-columns: repeat(2, 1fr); 
}
  
  .event-feature-inner { 
  grid-template-columns: 1fr 1fr;
}
  
  .event-feature-cta { 
  grid-column: span 2;
}
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }

  .slide-content { 
  left: 24px; 
  right: 24px; 
  bottom: 80px; 
}
 
  .slider-controls { 
  padding: 0 20px; 
}

  .brands-strip, .categories,
  .event-feature, .online-cta,
  .hours-strip { 
  padding-left: 20px; 
  padding-right: 20px;
}
  
  .categories-grid { 
  gap: 10px; 
  }
  
  .services-split { 
  grid-template-columns: 1fr;
  }
  .service-panel { 
  min-height: 360px; 
  }
  
  .service-panel + .service-panel { 
  border-left: none; 
  border-top: 0.5px solid var(--border);
}
  
  .hours-strip { 
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

  .hours-list { 
  gap: 24px; 
}

  .hours-address { 
  text-align: left;
}
  
  .event-feature-inner { 
  grid-template-columns: 1fr; 
  gap: 16px;
}
  
  .hero-stats { 
  display: none; 
}
}