/* =================================
   CORE.CSS - Label Évasion Theme
   Consolidation: base.css + layout.css + utilities.css + app.css + custom.css
   Version: 1.0 - Breakpoints unifiés
   ================================= */

/* ==========================================================
   1. VARIABLES CSS & BREAKPOINTS UNIFIÉS
   ========================================================== */

:root {
  /* Breakpoints unifiés (4 valeurs standard) */

  /* Typographie */
  --codex-body-font: "Nunito", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --codex-heading-font: "Manrope", "Source Sans Pro", system-ui, -apple-system, sans-serif;

  /* Couleurs principales */
  --codex-accent: #60a5fa;
  --codex-accent-strong: #2563eb;
  --codex-accent-secondary: #38bdf8;
  --codex-muted: #475569; /* Plus doux que #334155 */

  /* Variables thème */
  --background-color: #f8fbff;
  --primary-foreground-color: #1f2937;
  --titles-color: #0f172a; /* Plus sombre pour meilleur contraste */
  --link-color: var(--codex-accent);
  --transparent-background-color: rgba(255, 255, 255, 0.85); /* Ajusté pour glassmorphism */
  --primary-border-color: rgba(226, 232, 240, 0.8); /* Plus subtil */
  --primary-subtle-color: var(--codex-accent);

  /* Border radius (système unifié) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px; /* Plus arrondi pour le moderne */
  --radius-2xl: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Ombres modernes (Colorées & Diffuses) */
  --shadow-sm: 0 2px 4px rgba(148, 163, 184, 0.05), 0 1px 2px rgba(148, 163, 184, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(148, 163, 184, 0.08), 0 4px 6px -2px rgba(148, 163, 184, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(148, 163, 184, 0.1), 0 10px 10px -5px rgba(148, 163, 184, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(148, 163, 184, 0.25);

  /* Ombres accentuées (Glow) */
  --shadow-accent-md: 0 10px 25px -5px rgba(59, 130, 246, 0.3), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
  --shadow-accent-lg: 0 20px 35px -5px rgba(59, 130, 246, 0.35), 0 10px 15px -5px rgba(59, 130, 246, 0.1);

  /* Bordures subtiles (Glassy) */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.6);
  --border-glass: 1px solid rgba(255, 255, 255, 0.8);
  
  /* Glassmorphism Utils */
  --glass-surface: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);

  /* Alias legacy */
  --button-shadow-color-normal: rgba(96,165,250,.22);
  --button-shadow-color-hover: rgba(37,99,235,.28);

  /* Gradients unifiés */

  /* Spacing */
  --space-lg: 1.5rem;
  --space-3xl: 4rem;

  /* Border width */

  /* Border colors unifiées */

  /* Transitions standardisées */

  /* Alias legacy pour compatibilité */

  /* Layout */
  --header-height: 82px;
  --announcement-bar-height: 0px;
  --show-fade-animation: 1;

  /* Skeleton loaders */
  --skeleton-base: #e2e8f0;
  --skeleton-shine: #f8fafc;

  /* Footer */
  --footer-background-color: #1e293b;

  /* Z-index scale */

  /* Transitions */
}

/* ==========================================================
   2. RESET & BASE STYLES
   ========================================================== */

/*! sanitize.css v7.0.2 | CC0 License | github.com/csstools/sanitize.css */
*, *::before, *::after {
  background-repeat: no-repeat;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::before, ::after {
  text-decoration: inherit;
  vertical-align: inherit;
}

html {
  font-family: var(--codex-body-font);
  font-size: 16px;
  line-height: 1.15;
  -moz-tab-size: 4;
  tab-size: 4;
  word-break: break-word;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  margin: 0;
  font-family: var(--codex-body-font);
  font-size: 1.02rem;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background-color);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(96,165,250,.24), transparent 55%),
    radial-gradient(circle at 88% -8%, rgba(129,140,248,.18), transparent 52%),
    radial-gradient(circle at 42% 106%, rgba(125,211,252,.16), transparent 55%);
  color: var(--primary-foreground-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--announcement-bar-height);
  transition: padding-top .2s linear;
  width: 100%;
}

body.is-loading {
  cursor: progress;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--codex-heading-font);
  letter-spacing: -0.025em; /* Tracking négatif moderne */
  color: var(--titles-color);
  font-weight: 800; /* Plus de poids */
}

h1 { font-size: 2.25em; margin: .67em 0; line-height: 1.1; }
h2 { line-height: 1.2; }

hr { height: 0; overflow: visible; }

main { display: block; }

nav ol, nav ul { list-style: none; }

pre {
  font-family: Menlo, Consolas, Roboto Mono, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
  color: var(--link-color);
  text-decoration: none;
  transition: color .18s ease, box-shadow .25s ease;
}

a:hover,
a:focus-visible {
  color: var(--codex-accent-strong);
  box-shadow: 0 14px 30px rgba(96,165,250,.2);
}

b, strong { font-weight: bolder; }

code, kbd {
  font-family: Menlo, Consolas, Roboto Mono, monospace;
  font-size: 1em;
}

small { font-size: 80%; }

::selection {
  background-color: #b3d4fc;
  color: #000;
  text-shadow: none;
}

 iframe, img, svg, video {
  vertical-align: middle;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

svg {
  fill: currentColor;
}

svg:not(:root) {
  overflow: hidden;
}

table { border-collapse: collapse; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  overflow: visible;
  text-transform: none;
  cursor: pointer;
  border: none;
  background: none;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  -webkit-appearance: button;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  position: relative;
}

input { overflow: visible; }

legend {
  color: inherit;
  display: table;
  max-width: 100%;
  white-space: normal;
}

textarea {
  margin: 0;
  overflow: auto;
  resize: vertical;
}

[type="checkbox"],
[type="radio"] {
  padding: 0;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

details, dialog { display: block; }

summary { display: list-item; }

template { display: none; }

[tabindex], a, area, button, input, label, select, summary, textarea {
  touch-action: manipulation;
}

[hidden] { display: none; }
[aria-controls] { cursor: pointer; }
[aria-disabled], [disabled] { cursor: disabled; }

/* ==========================================================
   3. ACCESSIBILITÉ
   ========================================================== */

.sr-only,
.hide {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .5rem 1rem;
  background: var(--link-color);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}


.focusable:focus,
.m-button:focus,
.m-icon-button:focus,
a:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--primary-subtle-color);
  transition: outline .2s, box-shadow .2s;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   4. LAYOUT COMPONENTS
   ========================================================== */

.main-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.l-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.l-wrapper.in-post { max-width: 960px; }
.l-wrapper.in-comments {
  color: var(--primary-foreground-color);
  max-width: 820px;
}
.l-wrapper.in-recommended { max-width: calc(100% - 60px); padding: 0; }
.l-wrapper.in-post.no-image { padding-top: 40px; }
.l-wrapper.in-caption { padding-top: 10px; }

.l-content {
  padding: 40px 0 20px;
}

/* Grids */
.l-grid,
.grid {
  display: grid;
  gap: var(--space-lg);
}

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Section spacing */
.section-pad {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* ==========================================================
   5. HEADER OFFSETS UNIFIÉS
   ========================================================== */

/* 1) Pages AVEC hero */
.page-has-hero .hero,
.colonies-hero,
.page-has-hero .aide-hero,
.photocolo-hero,
.m-hero {
  margin-top: calc(var(--header-height) - 25px);
  min-height: clamp(560px, 70vh, 860px);
}

.sej-hero {
  margin-top: 0;
  min-height: auto;
}

.gpost-hero {
  margin-top: 0;
  min-height: auto;
}

.page-has-hero .questionnaire-hero {
  margin-top: var(--header-height);
  min-height: clamp(480px, 62vh, 760px);
}

/* 2) Pages SANS hero */
.page-no-hero .content-first,
.page-no-hero .qs-wrap,
.page-no-hero .lp-wrap {
  padding-top: calc(var(--header-height) + 32px);
}

.lp-privacy[data-legal-page="engagements"] .lp-wrap {
  padding-top: calc(var(--header-height) + 48px);
}

.page-no-hero .qs-hero,
.page-no-hero .lp-hero {
  margin-top: 12px;
}

/* 3) Fallback pages génériques */
main:not(.page-has-hero):not(.page-no-hero):not(.main-wrap--sejour) > article:first-child:not(.sej),
main:not(.page-has-hero):not(.page-no-hero):not(.main-wrap--sejour) > section:first-child,
main:not(.page-has-hero):not(.page-no-hero):not(.main-wrap--sejour) > div:first-child {
  padding-top: calc(var(--header-height) + 12px);
}

/* ==========================================================
   6. BUTTONS & INPUTS
   ========================================================== */

.m-button {
  background: linear-gradient(135deg, var(--codex-accent), var(--codex-accent-secondary));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 36px var(--button-shadow-color-normal);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  outline: 0;
  padding: 13px 25px;
  position: relative;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.m-button.outlined {
  border: 1px solid var(--primary-foreground-color);
  color: var(--titles-color);
  background: transparent;
}

.m-button.filled {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px var(--button-shadow-color-normal);
}

.m-button.primary {
  background-color: var(--primary-subtle-color);
  color: #fff;
  box-shadow: 0 2px 4px var(--button-shadow-color-normal);
}

.m-button.block {
  display: block;
  width: 100%;
}

.m-button:hover,
.button:hover,
.m-button.filled:hover,
.m-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15,23,42,.18);
}

.m-button.loading {
  cursor: default;
  overflow: hidden;
}

.m-button.loading::after {
  animation: loading 1s infinite;
  background-color: #fff;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 25%;
}

@keyframes loading {
  0% { transform: translateX(0); }
  50% { transform: translateX(300%); }
  100% { transform: translateX(0); }
}

/* Icon buttons */
.m-icon-button {
  background-color: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--titles-color);
  cursor: pointer;
  font-size: 1.125rem;
  outline: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}

.m-icon-button.outlined {
  border: 1px solid var(--primary-foreground-color);
}

.m-icon-button.filled {
  background-color: var(--background-color);
  box-shadow: 0 2px 4px var(--button-shadow-color-normal);
  transition: all .25s cubic-bezier(.02,.01,.47,1);
}

.m-icon-button.filled:hover {
  box-shadow: 0 4px 8px var(--button-shadow-color-hover);
}

.m-icon-button:disabled {
  cursor: default;
  opacity: .5;
}

.m-icon-button.in-mobile-topbar {
  height: 42px; /* Réduit de 50px à 42px */
  width: 42px;
}

.m-icon-button.as-close-menu {
  font-size: .625rem;
  height: 32px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 32px;
  z-index: 2;
}

.m-icon-button.more {
  font-size: 1.25rem;
  position: relative;
  z-index: 6;
}

.m-icon-button.more.active {
  color: var(--primary-subtle-color);
}

.m-icon-button.progress {
  position: relative;
}

.m-icon-button.progress svg {
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.m-icon-button.progress svg circle {
  stroke: var(--primary-subtle-color);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset .2s;
}

/* Inputs */
.m-input {
  background-color: var(--background-color);
  border: 1px solid var(--primary-border-color);
  border-radius: 5px;
  color: var(--primary-foreground-color);
  font-size: 1rem;
  letter-spacing: .2px;
  line-height: 1.3;
  outline: 0;
  padding: 11px 15px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.m-input:focus {
  border-color: var(--primary-subtle-color);
}

.m-input.in-subscribe-section {
  margin-bottom: 15px;
}

/* Form groups */

/* ==========================================================
   7. HEADER & NAVIGATION
   ========================================================== */

.m-header {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.8); /* Plus transparent pour l'effet verre */
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Bordure subtile */
  box-shadow: var(--glass-shadow); /* Ombre diffuse */
  left: 0;
  position: fixed;
  top: 0;
  transition: transform .4s cubic-bezier(.165,.84,.44,1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
  width: 100%;
  will-change: transform;
  z-index: 4;
}

/* Header mobile : hauteur fixe de 60px, sauf quand le menu est ouvert */
@media (max-width: 1400px) {
  .m-header {
    height: 60px; /* Force une hauteur fixe en mobile pour éviter l'espace blanc */
    overflow: visible; /* Permet au logo de déborder visuellement */
  }

  .m-header.mobile-menu-opened {
    height: 100%; /* Prend toute la hauteur quand le menu est ouvert */
    overflow-y: auto; /* Permet le scroll dans le menu */
  }
}

.m-header.headroom--pinned {
  box-shadow: 0 4px 8px rgba(0,0,0,.05);
  transform: translateY(0);
}

.m-header.headroom--unpinned {
  transform: translateY(-100%);
  overflow: hidden; /* Cache le logo qui déborde quand le header se cache */
}

.m-header.submenu-is-active,
.m-header.with-picture {
  background-color: var(--background-color);
}

/* Mobile topbar */
.m-mobile-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px; /* Augmenté de 50px à 60px */
  position: relative;
  z-index: 2;
  overflow: visible; /* Permet au logo de déborder sans créer d'espace blanc */
}

.m-icon-button.in-mobile-topbar.js-open-menu {
  position: absolute;
  left: 10px; /* Décalé de 10px du bord gauche */
  top: 50%;
  transform: translateY(-50%); /* Centre verticalement dans les 60px du header */
}

.m-logo.in-mobile-topbar,
.m-site-name.in-mobile-topbar {
  margin: 0;
  /* Centré naturellement par le flex parent */
}

.m-icon-button.in-mobile-topbar.m-phone-mobile {
  position: absolute;
  right: 10px; /* Décalé de 10px du bord droit */
  top: 50%;
  transform: translateY(-50%); /* Centre verticalement dans les 60px du header */
}

/* Logo */
.m-logo {
  display: inline-flex;
  align-items: center;
  height: 48px; /* Taille de base dans le flux */
  position: relative;
  z-index: 5;
}

.m-logo img {
  height: 100%;
  max-width: 200px;
  object-fit: contain;
  width: auto;
}

.m-logo.in-mobile-topbar {
  height: 130px; /* Augmenté de 44px à 130px (x3) */
  overflow: visible; /* Empêche l'espace blanc sous le logo */
  transform: translateY(25px); /* Descend le logo pour qu'il déborde plus vers le bas */
}

.m-site-name.in-mobile-topbar {
  color: var(--titles-color);
  font-weight: 600;
}

.m-site-name.in-desktop-menu {
  font-weight: 700;
}

/* Navigation */
.m-nav__left {
  margin-bottom: 30px;
}

.m-nav__left ul:not(.m-secondary-menu) {
  margin: 0;
  padding: 0;
}

.m-nav__left li {
  color: var(--titles-color);
  font-size: 1.125rem;
  letter-spacing: .3px;
  margin-bottom: 15px;
}

.m-nav__left li:last-of-type {
  margin-bottom: 0;
}

.m-nav__left li.nav-current {
  font-weight: 600;
}

.m-nav__left li a {
  color: inherit;
}

.m-nav__left li.more a {
  align-items: center;
  display: inline-flex;
}

.m-nav__left li.more a span {
  color: inherit;
  display: inline-block;
  font-size: 1rem;
  margin-left: 8px;
  transform: translateY(1px);
}

/* Menu mobile */
.m-menu {
  -webkit-overflow-scrolling: touch;
  background-color: var(--background-color);
  height: 100%;
  left: 0;
  opacity: 0;
  overflow-y: auto;
  position: fixed;
  top: 0;
  transform: scale(1.2);
  transition: all .4s cubic-bezier(.165,.84,.44,1);
  visibility: hidden;
  width: 100%;
  z-index: 2;
  pointer-events: none; /* Empêche toute interaction quand le menu est fermé */
}

.m-menu.opened {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  z-index: 10;
  pointer-events: auto; /* Réactive les interactions quand le menu est ouvert */
}

.m-menu__main {
  min-height: 100%;
  padding: 50px 0 5px;
}

.m-secondary-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Force secondary navigation template to stay hidden */
#secondary-navigation-template {
  display: none !important;
}

.m-secondary-menu li {
  font-size: 1rem;
}

.m-secondary-menu li.nav-current a {
  font-weight: 600;
}

.m-secondary-menu li a {
  border-radius: 4px;
  display: block;
  padding: 6px 10px;
  transition: background-color .1s linear;
}

.m-secondary-menu li a:hover {
  background-color: rgba(0,0,0,.1);
}

/* CTA téléphone */
.m-phone-mobile,
.m-phone-desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--codex-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: all .2s ease;
}

/* Couleur saisonnière pour le bouton téléphone - appliqué partout */
[data-homepage-season] .m-phone-mobile,
[data-homepage-season] .m-phone-desktop {
  background: var(--season-primary, var(--codex-accent));
}

.m-phone-desktop {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: auto;
}

.m-phone-mobile svg,
.m-phone-desktop svg {
  flex-shrink: 0;
}

/* ========== Bouton Back to Top Universel ========== */
.back-to-top,
.gpost-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--codex-accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  font-size: 1.5rem;
  font-weight: 600;
}

.back-to-top.is-visible,
.gpost-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.gpost-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.22);
}

/* Couleur saisonnière pour le bouton back-to-top */
[data-homepage-season] .back-to-top,
[data-homepage-season] .gpost-top {
  background: var(--season-primary, var(--codex-accent));
}

/* Page colonies : utiliser la couleur de la saison sélectionnée */
body[data-colonies-season] .back-to-top,
body[data-colonies-season] .gpost-top {
  background: var(--colonies-primary-color, var(--season-primary, var(--codex-accent)));
}

.back-to-top svg,
.gpost-top svg {
  width: 20px;
  height: 20px;
}

/* Masquer le bouton desktop en dessous de 1400px pour éviter le doublon */
@media (max-width: 1399px) {
  .m-phone-desktop {
    display: none;
  }
}

/* ==========================================================
   8. FOOTER
   ========================================================== */

.le-footer {
  background-color: var(--footer-background-color);
  color: #fff;
  flex-shrink: 0;
}

.le-footer__band {
  padding: 2.5rem 0; /* Un peu plus d'espace */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Plus subtil */
}

.le-footer__band:last-of-type {
  border-bottom: none;
}

.le-footer__bottom {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12); /* Séparation marquée avant le bottom */
  background-color: rgba(0, 0, 0, 0.15); /* Fond légèrement plus sombre */
}

.le-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.le-band__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.le-band__text {
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.le-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--season-primary, var(--codex-accent)); /* Couleur dynamique selon la saison */
  transition: color 0.3s ease;
}

/* S'assurer que la variable est bien héritée ou définie si elle manque sur le body/html */
[data-homepage-season] .le-ico {
  color: var(--season-primary, var(--codex-accent));
}

.le-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.le-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Cartes blanches pour les logos partenaires */
.le-logos--partners .le-logo {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem; /* Padding augmenté */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Centrage strict - width auto */
  width: auto; 
  text-align: center;
}

.le-logos--partners .le-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0; /* Évite l'espace fantôme sous l'image */
}

.le-logos--partners .le-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Ajustements ciblés pour les agréments - Tailles équilibrées visuellement */
.le-logos--partners img[src*="ministere-education-jeunesse-sports"] { height: 95px; max-width: 135px; }
.le-logos--partners img[src*="resocolo"] { height: 58px; max-width: 155px; }
.le-logos--partners img[src*="unosel"] { height: 105px; max-width: 135px; }
.le-logos--partners img[src*="entreprises-du-voyage"] { height: 52px; max-width: 155px; }
.le-logos--partners img[src*="atout-france"] { height: 70px; max-width: 115px; }

/* Force la couleur SVG pour les icônes dynamiques */
.le-ico svg {
  fill: currentColor;
  color: inherit;
}

.le-footer__bottom {
  padding: 2rem 0;
  text-align: center;
}

.le-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.le-footer-nav a {
  color: rgba(255,255,255,.85);
  transition: color .2s;
}

.le-footer-nav a:hover {
  color: #fff;
}

.le-footer-meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
}

.le-slogan {
  margin-bottom: 0.5rem;
}

.le-copy {
  margin: 0;
}

/* ==========================================================
   9. ICON FONT
   ========================================================== */

[class*=" icon-"],
[class^="icon-"] {
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: icomoon;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.icon-moon::before { content: "\e90f"; }
.icon-sunny::before { content: "\e910"; }
.icon-chevron-down::before { content: "\e900"; }
.icon-star::before { content: "\e901"; }
.icon-arrow-left::before { content: "\e902"; }
.icon-arrow-right::before { content: "\e903"; }
.icon-arrow-top::before { content: "\e904"; }
.icon-close::before { content: "\e905"; }
.icon-comments::before { content: "\e906"; }
.icon-facebook::before { content: "\e907"; }
.icon-globe::before { content: "\e908"; }
.icon-menu::before { content: "\e909"; }
.icon-more::before { content: "\e90a"; }
.icon-search::before { content: "\e90b"; }
.icon-twitter::before { content: "\e90c"; }
.icon-imdb::before { content: "\e90d"; }
.icon-vk::before { content: "\e90e"; }
.icon-steam::before { content: "\e914"; }
.icon-twitch::before { content: "\e915"; }
.icon-youtube::before { content: "\e916"; }
.icon-vimeo::before { content: "\e917"; }
.icon-whatsapp::before { content: "\e918"; }
.icon-reddit::before { content: "\e919"; }
.icon-rss::before { content: "\e91a"; }
.icon-spotify::before { content: "\e91b"; }
.icon-telegram::before { content: "\e91c"; }
.icon-soundcloud::before { content: "\e91d"; }
.icon-flickr::before { content: "\e91e"; }
.icon-letterboxd::before { content: "\e91f"; }
.icon-odnoklassniki::before { content: "\e920"; }
.icon-pinterest::before { content: "\e921"; }
.icon-tiktok::before { content: "\e922"; }
.icon-tumblr::before { content: "\e923"; }
.icon-xing::before { content: "\e924"; }
.icon-mixcloud::before { content: "\e925"; }
.icon-mixer::before { content: "\e926"; }
.icon-wechat::before { content: "\e927"; }
.icon-deviantart::before { content: "\e928"; }
.icon-discord::before { content: "\e929"; }
.icon-instagram::before { content: "\e92a"; }
.icon-linkedin::before { content: "\e92b"; }
.icon-snapchat::before { content: "\e92c"; }
.icon-gitlab::before { content: "\e92d"; }
.icon-github::before { content: "\e930"; }
.icon-behance::before { content: "\e951"; }

/* ==========================================================
   10. ANIMATIONS & MICRO-INTERACTIONS
   ========================================================== */

/* Micro-interactions globales */
.m-button,
.button,
.colonies-hero__cta,
.questionnaire-hero__button,
.faq-cta__btn {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: var(--shadow-accent-md); /* Glow par défaut */
}

@media (hover: hover) {
  .m-button:hover,
  .button:hover,
  .colonies-hero__cta:hover,
  .questionnaire-hero__button:hover,
  .faq-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-lg); /* Glow plus fort */
  }
}

.le-card,
.aide-card,
.questionnaire-frame {
  transition: translate .2s ease, box-shadow .2s ease, border-color 0.2s ease;
  border: 1px solid rgba(226, 232, 240, 0.6); /* Bordure subtile de base */
  background: #fff; /* Assure un fond blanc */
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .aide-card:hover,
  .questionnaire-frame:hover {
    translate: 0 -4px;
    box-shadow: var(--shadow-lg); /* Ombre colorée douce */
    border-color: rgba(96, 165, 250, 0.3); /* Bordure légèrement colorée au survol */
  }
}

/* Fade animations */
[data-animate^="fade"] {
  animation: fadeAnimation .5s linear forwards;
  opacity: calc((var(--show-fade-animation) - 1) * -1);
}

@keyframes fadeAnimation {
  0% { opacity: calc((var(--show-fade-animation) - 1) * -1); }
  100% { opacity: 1; }
}

[data-animate="fade-up"] {
  animation: fadeUpAnimation .5s cubic-bezier(.77,0,.18,1) .3s forwards;
}

@keyframes fadeUpAnimation {
  0% {
    opacity: calc((var(--show-fade-animation) - 1) * -1);
    transform: translateY(calc(100px * var(--show-fade-animation)));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate="fade-down"] {
  animation: fadeDownAnimation .5s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes fadeDownAnimation {
  0% {
    opacity: calc((var(--show-fade-animation) - 1) * -1);
    transform: translateY(calc(-100px * var(--show-fade-animation)));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Menu mobile - Animations fluides */
.m-nav__left li {
  transition: opacity 0.3s ease,
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 1400px) {
  /* Cache complètement le menu mobile quand il n'est pas ouvert pour éviter l'espace blanc */
  .m-menu:not(.opened) {
    display: none;
  }

  .m-menu:not(.opened) .m-nav__left li {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
  }

  .m-menu.opened .m-nav__left li {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Stagger animation pour effet cascade */
  .m-menu.opened .m-nav__left li:nth-child(1) { transition-delay: 0.05s; }
  .m-menu.opened .m-nav__left li:nth-child(2) { transition-delay: 0.1s; }
  .m-menu.opened .m-nav__left li:nth-child(3) { transition-delay: 0.15s; }
  .m-menu.opened .m-nav__left li:nth-child(4) { transition-delay: 0.2s; }
  .m-menu.opened .m-nav__left li:nth-child(5) { transition-delay: 0.25s; }
  .m-menu.opened .m-nav__left li:nth-child(6) { transition-delay: 0.3s; }
  .m-menu.opened .m-nav__left li:nth-child(7) { transition-delay: 0.35s; }
  .m-menu.opened .m-nav__left li:nth-child(8) { transition-delay: 0.4s; }
}

/* Skeleton loaders */
.skeleton-line,
.skeleton-block,
.skeleton-pill {
  position: relative;
}

body.is-loading .skeleton-line,
body.is-loading .skeleton-block,
body.is-loading .skeleton-pill {
  color: transparent;
  background: var(--skeleton-base);
  border-radius: 6px;
  min-height: 1em;
  display: inline-block;
  overflow: hidden;
}

body.is-loading .skeleton-pill {
  border-radius: 999px;
  min-height: .85rem;
}

body.is-loading .skeleton-block img,
body.is-loading .skeleton-line img {
  opacity: 0;
}

body.is-loading .skeleton-line::after,
body.is-loading .skeleton-block::after,
body.is-loading .skeleton-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, var(--skeleton-shine), transparent);
  animation: skeleton-shimmer 1.4s infinite;
  opacity: .9;
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================
   11. UTILITIES
   ========================================================== */

/* Display */
.hidden, .hide { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Text */
 .align-center { text-align: center; }

/* Spacing */
.no-margin { margin: 0; }

/* Position */
.pos-relative { position: relative; }
.pointer { cursor: pointer; }
.no-scroll-y { overflow-y: hidden; }

/* Visibility */
.only-desktop { display: none; }

/* ==========================================================
   12. RESPONSIVE - BREAKPOINTS UNIFIÉS
   ========================================================== */

/* Small devices (640px and up) - Tablet portrait */
@media (min-width: 640px) {
  .l-wrapper {
    padding: 0 var(--space-lg);
  }

  .l-content {
    padding: 50px 0 30px;
  }
}

/* Medium devices (768px and up) - Tablet landscape */
@media (min-width: 768px) {

  .l-content {
    padding: 60px 0 40px;
  }

  .l-wrapper.in-post.no-image {
    padding-top: 80px;
  }

  .m-section-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }
}

/* Large devices (1400px and up) - Desktop */
@media (min-width: 1400px) {
  .m-mobile-topbar {
    display: none;
  }

  .m-header {
    padding: 20px 0; /* Augmenté de 16px à 20px */
    overflow: visible; /* Permettre au logo de déborder */
    height: auto; /* Réinitialise la hauteur fixe du mobile */
  }

  .m-nav {
    overflow: visible !important; /* Permettre au logo de déborder */
  }

  .m-nav__left {
    overflow: visible !important; /* Permettre au logo de déborder sur les côtés */
  }

    /* Logo desktop agrandi avec léger décalage */
    .m-logo img {
      transform: translate(-150px, -40px) scale(5);
      transform-origin: left top;
    }

  .m-header.mobile-menu-opened {
    height: auto;
  }

  .m-icon-button.as-close-menu {
    display: none;
  }

  .m-nav {
    align-items: center;
    display: flex;
    height: 37px;
    justify-content: space-between;
    overflow-y: hidden;
    margin: 0 -5px;
  }

  .m-nav.toggle-overflow {
    overflow-y: initial;
  }

  .m-nav__left {
    -webkit-overflow-scrolling: touch;
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    margin-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 5px 40px;
    white-space: nowrap;
  }

  .m-nav__left.toggle-overflow {
    overflow-x: hidden;
  }

  .m-nav__left ul:not(.m-secondary-menu) {
    align-items: center;
    display: flex;
  }

  .m-nav__left li {
    margin-bottom: 0;
    margin-right: 35px;
    position: relative;
  }

  .m-nav__left li.more a {
    display: flex;
  }

  .m-menu {
    background-color: transparent;
    height: auto;
    left: auto;
    opacity: 1;
    overflow: initial;
    position: relative;
    top: auto;
    transform: translateZ(0);
    visibility: visible;
    pointer-events: auto; /* Réactive les clics en desktop */
  }

  .m-menu__main {
    min-height: 0;
    padding: 0;
  }

  .m-secondary-menu li {
    margin-left: 0;
    margin-right: 0;
  }

  .m-secondary-menu li a {
    padding: 8px 10px;
  }

  .only-desktop {
    display: block;
  }

  .le-footer__band .le-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
  }
}

/* Extra large devices (1280px and up) - Large desktop */
@media (min-width: 1280px) {
  .l-wrapper {
    max-width: 1200px;
    padding: 0;
  }

  .l-wrapper.in-post {
    max-width: 960px;
  }

  .l-wrapper.in-comments {
    max-width: 820px;
  }

  .l-wrapper.in-recommended {
    max-width: 1200px;
  }

  .m-icon-button.in-share {
    font-size: 1rem;
    height: 50px;
    width: 50px;
  }

  div.gh-announcement-bar {
    font-size: 1.125rem;
  }
}

/* Print styles */
@media print {
  .m-header,
  .le-footer,
  .m-nav,
  .skip-link {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    background: white;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}

/* ==================== RECHERCHE - États améliorés ==================== */

/* Conteneur de recherche */

/* Résultats de recherche */

/* État vide */

/* Suggestions de recherche */
.search-suggestions {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.search-suggestions h5 {
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Indicateur de chargement */

/* Amélioration du champ de recherche */
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.5);
  outline: none;
}

/* ==========================================================
   13. HOTFIXES
   ========================================================== */

@media (max-width: 1399px) {
  .faq-page .content-first,
  .contact-page .content-first {
    padding-top: 160px;
  }
}

/* ==========================================================
   14. PROGRESS BAR
   ========================================================== */
.read-progress {
  position: fixed;
  top: calc(var(--header-height) - 1px); /* Juste sous le header */
  left: 0;
  width: 0; /* Initial */
  height: 3px;
  background: linear-gradient(90deg, var(--codex-accent), var(--codex-accent-secondary));
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ==========================================================
   15. GLOBAL MICRO-INTERACTIONS (Article Cards)
   ========================================================== */
.m-article-card {
  transition: translate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  will-change: translate;
}

.m-article-card__picture {
  overflow: hidden; /* Indispensable pour le zoom */
}

.m-article-card__picture-background {
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Effet au survol (Desktop uniquement) */
@media (hover: hover) {
  .m-article-card:hover {
    translate: 0 -6px;
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.15);
  }

  .m-article-card:hover .m-article-card__picture-background {
    transform: scale(1.08);
  }
  
  /* Titre qui change de couleur */
  .m-article-card:hover .m-article-card__title {
    color: var(--codex-accent-strong);
  }
}
