/* ! STYLES */
/* <div>Icons made from <a href="https://www.onlinewebfonts.com/icon">svg icons</a>is licensed by CC BY 4.0</div> */



/* ! STYLE GÉNÉRALISTE DES COULEURS */
/* Tumbo */
:root {
  --font-brand-default: serif;
}

.brand-tumbo {
  --font-brand-default: "Rosarina", serif;
  --font-brand-size: 1.5rem;
  --font-h1-brand-header-size: 2.5rem;
  --font-h1-brand-size: 2rem;
  --font-h2-brand-size: 1.5rem;
  --font-h2-img-wrapper-brand-size: 2.2rem;
}

/* Puka Nina */
.brand-pukanina {
  --font-brand-default: "Amatic SC", serif;
  --font-brand-size: 2rem;
  --font-h1-brand-header-size: 3.5rem;
  --font-h1-brand-size: 2.5rem;
  --font-h2-brand-size: 1.8rem;
  --font-h2-img-wrapper-brand-size: 2.2rem;
}



:root {
  
  --font-h2-default: "QuicksandBold", serif;
  --font-h3-default: "QuicksandBold", serif;
  --font-text-default: "QuicksandBook", serif;
  --font-header-slogan-default: "QuicksandBook", serif;
  --size-header-h1-portable-default: 1.1rem;
  --size-header-slogan-portable-default: 0.75rem;
  --size-header-h1-desktop-default: 1.4rem;
  --size-header-slogan-desktop-default: 1rem;

  --color-hero-logo: #fff2df;
  --footer-logo-height-default: 80px;
  

  --color-body-background: #fff2df;
  --color-header-background: #e8e6cf;
  --color-header-overlay-text: #fff2df;
  --color-header-overlay-background: rgba(58, 42, 20, 0.5);
  --color-footer-background: #b28453;
  --color-parallax-content-text: var(--color-header-overlay-text);
  --color-parallax-content-background: var(--color-header-overlay-background);
  --color-footer-text: #fff2df;
  --color-footer-copyright: #704214;
  --color-menu-background: #fff2df;
  --color-contact-form-background: #fff2df;
  --color-language-menu-background: #fff2df;
  --color-table-background-default: #ffe5be;
  --color-encart-default: #a14444;
  --color-trip-info-background-default: #fff2df;
  --color-intro-background-default: #fffbe7;
  --color-intro-border-default: #ffd89e;
  --color-header-titles-border-default: #985b1a;

  --color-h1-default: #985b1a;
  --color-h2-default: #985b1a;
  --color-h1-parallax-default: #fff2df;
  --color-h3-default: #985b1a;
  --color-text-default: #985b1a;
  --color-text-muted: #985b1a;
  --color-required-field-default: #f55151;
  --color-a-menu-default: #985b1a;
  --color-a-menu-background-hover-default: #e8e6cf;
  --color-a-menu-border-hover-default: #d1cea0;
  --color-a-background-default: #e8e6cf;
  --color-a-border-default: #d1cea0;
  --color-a-background-hover-default: #fff6eb;
  --color-hero-h1-default: #fff2df;
  --color-hero-h2-default: #fff2df;
  --color-hero-text-default: #fff2df;
  --color-p-cookie-banner-default: #fff2df;
  --color-background-cookie-banner-default: #671919bf;
  --color-border-cookie-banner-default: var(--color-text-default);
  --warning-color-link: tomato;
  --color-pre-background-default: #ffe5be;
  --color-pre-border-default: #ffe5be;
  --color-pre-default: #985b1a;
  --color-background-blog-content: #e8e6cf;

  --color-button-default: #ffe5be;
  --color-button-border-default: #b28453;

  --color-submit-text-default: #985b1a;
  --color-submit-border-default: #985b1a;
  --color-submit-background-default: #fff2df;
  --color-submit-text-hover: #fff2df;
  --color-submit-border-hover: #985b1a;
  --color-submit-background-hover: #b28453;

  --color-border-table-default: #b28453;
  --color-border-map-default: #b28453;
  --color-border-div-default: #b28453;
  --color-border-circuit-default: #b28453;
  --color-border-input-default: #b28453;
  --color-border-input-focus-default: #ea6710;
  --color-border-header-default: #b28453;
  --shadow-header: 0px 4px 10px rgba(0, 0, 0, 0.3);

  --color-border-language-menu: #ddd0d0;

  --radius-default: 5px;
  --border-default: 1px;
  --color-scroll-bar-default: #985b1a;
  --color-placeholder-default: #c3a98a; /* un beige plus pâle que #985b1a */
  --color-map-pin-fill-outer: #fff2df;
  --color-map-pin-stroke-outer: #464544;
  --color-map-pin-fill-inner: #fff2df;
  --color-map-pin-stroke-inner: #f32606;
  --color-map-standard-line: green;
  --color-map-relief-line: #e18631;
  --color-map-satellite-line: #80002f;

  /* ! FLATPICKR */
    --fp-bg: var(--color-body-background);
    --fp-text: var(--color-text-default);
    --fp-muted: #a7a7a7;

    --fp-border: var(--border-default);
    --fp-shadow: 0 14px 34px rgba(0,0,0,.55);

    --fp-day-hover: rgba(255,255,255,.08);
    --fp-selected-bg: #e8e6cf;      /* tu peux garder ton beige même en dark */
    --fp-selected-text: #111213;

    --fp-accent: #f2f2f2;

    /* ... tes variables fp ... */
    --fp-outside: rgba(0,0,0,.35);
    --fp-disabled: rgba(0,0,0,.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Fonts */
    
    --font-h2-default: "Quicksand", system-ui, -apple-system, sans-serif;
    --font-h3-default: "Quicksand", system-ui, -apple-system, sans-serif;
    --font-text-default: "Quicksand", system-ui, -apple-system, sans-serif;
    --size-header-h1-portable-default: 1.1rem;
    --size-header-slogan-portable-default: 0.75rem;
    --size-header-h1-desktop-default: 1.4rem;
    --size-header-slogan-desktop-default: 1rem;

    --color-hero-logo: #fff2df;
    --footer-logo-height-default: 80px;
    

    /* Couleurs de base */
    --color-body-background: #1a1200;
    --color-header-background: #3a2a14;
    --color-header-overlay-text: #fff2df;
    --color-header-overlay-background: rgba(0, 0, 0, 0.5);
    --color-footer-background: #3a2a14;
    --color-parallax-content-text: var(--color-header-overlay-text);
    --color-parallax-content-background: var(--color-header-overlay-background);
    --color-footer-text: #e8d7bf;
    --color-footer-copyright: #704214;

    /* Surfaces et conteneurs */
    --color-menu-background: #2d2a1f;
    --color-contact-form-background: #2d2a1f;
    --color-language-menu-background: #2d2a1f;
    --color-table-background-default: #3a2a14;
    --color-encart-default: #5c2a2a;
    --color-trip-info-background-default: #2d2a1f;
    --color-intro-background-default: #3a2a14;
    --color-intro-border-default: #5c3d1a;
    --color-header-titles-border-default: #b28453;

    /* Typographie */
    --color-h1-default: #e8b86c;
    --color-h1-parallax-default: #fff2df;
    --color-h2-default: #e8b86c;
    --color-h3-default: #e8b86c;
    --color-text-default: #e8d7bf;
    --color-text-muted: #e8d7bf;
    --color-required-field-default: #ff6b6b;
    --color-a-menu-default: #e8b86c;
    --color-a-menu-background-hover-default: #3a2a14;
    --color-a-menu-border-hover-default: #b28453;
    --color-a-background-default: #3a2a14;
    --color-a-border-default: #b28453;
    --color-a-background-hover-default: #4a3a24;
    --color-hero-h1-default: #e8d7bf;
    --color-hero-h2-default: #e8d7bf;
    --color-hero-text-default: #e8d7bf;
    --color-p-cookie-banner-default: #e8d7bf;
    --color-background-cookie-banner-default: #671919;
    --color-border-cookie-banner-default: var(--color-text-default);
    --warning-color-link: #ff8a65;
    --color-pre-background-default: #3a2a14;
    --color-pre-border-default: #5c3d1a;
    --color-pre-default: #e8d7bf;
    --color-background-blog-content: #3a2a14;

    /* Boutons et interactions */
    --color-button-default: #5c4018;
    --color-button-border-default: #ccbaa8;

    /* Bordures */
    --color-border-table-default: #e8d7bf;
    --color-border-map-default: #e8d7bf;
    --color-border-div-default: #e8d7bf;
    --color-border-circuit-default: #e8d7bf;
    --color-border-language-menu: #5c5c5c;
    --color-border-header-default: #e8d7bf;
    --shadow-header: 0px 4px 10px rgba(237, 231, 231, 0.6);

    /* Conserve les mêmes */
    --radius-default: 5px;
    --border-default: 1px;
    --color-scroll-bar-default: #985b1a;
    --color-placeholder-default: #8e7a5f; /* un beige-gris plus doux que #e8d7bf */
    --color-map-pin-fill-outer: #c6b8a2;
    --color-map-pin-stroke-outer: #464544;
    --color-map-pin-fill-inner: #f2aa9f;
    --color-map-pin-stroke-inner: #f32606;
    --color-map-standard-line: green;
    --color-map-relief-line: #e18631;
    --color-map-satellite-line: #80002f;

    /* ! FLATPICKR */
    --fp-bg: var(--color-body-background);
    --fp-text: var(--color-text-default);
    --fp-muted: #a7a7a7;

    --fp-border: var(--border-default);
    --fp-shadow: 0 14px 34px rgba(0,0,0,.55);

    --fp-day-hover: rgba(255,255,255,.08);
    --fp-selected-bg: #e8e6cf;      /* tu peux garder ton beige même en dark */
    --fp-selected-text: #111213;

    --fp-accent: #f2f2f2;

    /* ... tes variables fp ... */
    --fp-outside: rgba(255,255,255,.35);
    --fp-disabled: rgba(255,255,255,.22);
  }
}

:root[data-theme="dark"] {
  /* Fonts */
  
  --font-h2-default: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-h3-default: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-text-default: "Quicksand", system-ui, -apple-system, sans-serif;
  --size-header-h1-portable-default: 1.1rem;
  --size-header-slogan-portable-default: 0.75rem;
  --size-header-h1-desktop-default: 1.4rem;
  --size-header-slogan-desktop-default: 1rem;

  --color-hero-logo: #fff2df;
  --footer-logo-height-default: 80px;
  

  /* Couleurs de base */
  --color-body-background: #1a1200;
  --color-header-background: #3a2a14;
  --color-header-overlay-text: #fff2df;
  --color-header-overlay-background: rgba(0, 0, 0, 0.5);
  --color-footer-background: #3a2a14;
  --color-parallax-content-text: var(--color-header-overlay-text);
  --color-parallax-content-background: var(--color-header-overlay-background);
  --color-footer-text: #e8d7bf;
  --color-footer-copyright: #704214;

  /* Surfaces et conteneurs */
  --color-menu-background: #2d2a1f;
  --color-contact-form-background: #2d2a1f;
  --color-language-menu-background: #2d2a1f;
  --color-table-background-default: #3a2a14;
  --color-encart-default: #5c2a2a;
  --color-trip-info-background-default: #2d2a1f;
  --color-intro-background-default: #3a2a14;
  --color-intro-border-default: #5c3d1a;
  --color-header-titles-border-default: #b28453;

  /* Typographie */
  --color-h1-default: #e8b86c;
  --color-h1-parallax-default: #fff2df;
  --color-h2-default: #e8b86c;
  --color-h3-default: #e8b86c;
  --color-text-default: #e8d7bf;
  --color-text-muted: #e8d7bf;
  --color-required-field-default: #ff6b6b;
  --color-a-menu-default: #e8b86c;
  --color-a-menu-background-hover-default: #3a2a14;
  --color-a-menu-border-hover-default: #b28453;
  --color-a-background-default: #3a2a14;
  --color-a-border-default: #b28453;
  --color-a-background-hover-default: #4a3a24;
  --color-hero-h1-default: #e8d7bf;
  --color-hero-h2-default: #e8d7bf;
  --color-hero-text-default: #e8d7bf;
  --color-p-cookie-banner-default: #e8d7bf;
  --color-background-cookie-banner-default: #671919;
  --color-border-cookie-banner-default: var(--color-text-default);
  --warning-color-link: #ff8a65;
  --color-pre-background-default: #3a2a14;
  --color-pre-border-default: #5c3d1a;
  --color-pre-default: #e8d7bf;
  --color-background-blog-content: #3a2a14;

  /* Boutons et interactions */
  --color-button-default: #5c4018;
  --color-button-border-default: #ccbaa8;

  --color-submit-text-default: #e8d7bf;
  --color-submit-border-default: #e8d7bf;
  --color-submit-background-default: #2b1f02;
  --color-submit-text-hover: #e8d7bf;
  --color-submit-border-hover: #e8d7bf;
  --color-submit-background-hover: #504438;

  /* Bordures */
  --color-border-table-default: #e8d7bf;
  --color-border-map-default: #e8d7bf;
  --color-border-div-default: #e8d7bf;
  --color-border-circuit-default: #e8d7bf;
  --color-border-language-menu: #5c5c5c;
  --color-border-header-default: #e8d7bf;
  --shadow-header: 0px 4px 10px rgba(237, 231, 231, 0.6);

  /* Conserve les mêmes */
  --radius-default: 5px;
  --border-default: 1px;
  --color-scroll-bar-default: #985b1a;
  --color-placeholder-default: #8e7a5f; /* un beige-gris plus doux que #e8d7bf */
  --color-map-pin-fill-outer: #c6b8a2;
  --color-map-pin-stroke-outer: #464544;
  --color-map-pin-fill-inner: #f2aa9f;
  --color-map-pin-stroke-inner: #f32606;
  --color-map-standard-line: green;
  --color-map-relief-line: #e18631;
  --color-map-satellite-line: #80002f;

  /* ! FLATPICKR */
    --fp-bg: var(--color-body-background);
    --fp-text: var(--color-text-default);
    --fp-muted: #a7a7a7;

    --fp-border: var(--border-default);
    --fp-shadow: 0 14px 34px rgba(0,0,0,.55);

    --fp-day-hover: rgba(255,255,255,.08);
    --fp-selected-bg: #e8e6cf;      /* tu peux garder ton beige même en dark */
    --fp-selected-text: #111213;

    --fp-accent: #f2f2f2;

    --fp-outside: rgba(255,255,255,.35);
    --fp-disabled: rgba(255,255,255,.22);
}

:root[data-theme="light"] {
  /* Fonts */
  
  --font-h2-default: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-h3-default: "Quicksand", system-ui, -apple-system, sans-serif;
  --font-text-default: "Quicksand", system-ui, -apple-system, sans-serif;
  --size-header-h1-portable-default: 1.1rem;
  --size-header-slogan-portable-default: 0.75rem;
  --size-header-h1-desktop-default: 1.4rem;
  --size-header-slogan-desktop-default: 1rem;

  --color-hero-logo: #fff2df;
  --footer-logo-height-default: 80px;
  

  --color-body-background: #fff2df;
  --color-header-background: #e8e6cf;
  --color-header-overlay-text: #fff2df;
  --color-header-overlay-background: rgba(58, 42, 20, 0.5);
  --color-footer-background: #b28453;
  --color-parallax-content-text: var(--color-header-overlay-text);
  --color-parallax-content-background: var(--color-header-overlay-background);
  --color-footer-text: #fff2df;
  --color-footer-copyright: #704214;
  --color-menu-background: #fff2df;
  --color-contact-form-background: #fff2df;
  --color-language-menu-background: #fff2df;
  --color-table-background-default: #ffe5be;
  --color-encart-default: #a14444;
  --color-trip-info-background-default: #fff2df;
  --color-intro-background-default: #fffbe7;
  --color-intro-border-default: #ffd89e;
  --color-header-titles-border-default: #985b1a;

  --color-h1-default: #985b1a;
  --color-h2-default: #985b1a;
  --color-h1-parallax-default: #fff2df;
  --color-h3-default: #985b1a;
  --color-text-default: #985b1a;
  --color-text-muted: #985b1a;
  --color-required-field-default: #f55151;
  --color-a-menu-default: #985b1a;
  --color-a-menu-background-hover-default: #e8e6cf;
  --color-a-menu-border-hover-default: #d1cea0;
  --color-a-background-default: #e8e6cf;
  --color-a-border-default: #d1cea0;
  --color-a-background-hover-default: #fff6eb;
  --color-hero-h1-default: #fff2df;
  --color-hero-h2-default: #fff2df;
  --color-hero-text-default: #fff2df;
  --color-p-cookie-banner-default: #fff2df;
  --color-background-cookie-banner-default: #671919bf;
  --color-border-cookie-banner-default: var(--color-text-default);
  --warning-color-link: tomato;
  --color-pre-background-default: #ffe5be;
  --color-pre-border-default: #ffe5be;
  --color-pre-default: #985b1a;
  --color-background-blog-content: #e8e6cf;

  --color-button-default: #ffe5be;
  --color-button-border-default: #b28453;

  --color-submit-text-default: #985b1a;
  --color-submit-border-default: #985b1a;
  --color-submit-background-default: #fff2df;
  --color-submit-text-hover: #fff2df;
  --color-submit-border-hover: #985b1a;
  --color-submit-background-hover: #b28453;

  --color-border-table-default: #b28453;
  --color-border-map-default: #b28453;
  --color-border-div-default: #b28453;
  --color-border-circuit-default: #b28453;
  --color-border-input-default: #b28453;
  --color-border-input-focus-default: #ea6710;

  --color-border-language-menu: #ddd0d0;
  --color-border-header-default: #b28453;
  --shadow-header: 0px 4px 10px rgba(0, 0, 0, 0.3);

  --radius-default: 5px;
  --border-default: 1px;
  --color-scroll-bar-default: #985b1a;
  --color-placeholder-default: #c3a98a; /* un beige plus pâle que #985b1a */
  --color-map-pin-fill-outer: #fff2df;
  --color-map-pin-stroke-outer: #464544;
  --color-map-pin-fill-inner: #fff2df;
  --color-map-pin-stroke-inner: #f32606;
  --color-map-standard-line: green;
  --color-map-relief-line: #e18631;
  --color-map-satellite-line: #80002f;

  /* ! FLATPICKR */
    --fp-bg: var(--color-body-background);
    --fp-text: var(--color-text-default);
    --fp-muted: #a7a7a7;

    --fp-border: var(--border-default);
    --fp-shadow: 0 14px 34px rgba(0,0,0,.55);

    --fp-day-hover: rgba(255,255,255,.08);
    --fp-selected-bg: #e8e6cf;      /* tu peux garder ton beige même en dark */
    --fp-selected-text: #111213;

    --fp-accent: #f2f2f2;

    /* ... tes variables fp ... */
    --fp-outside: rgba(0,0,0,.35);
    --fp-disabled: rgba(0,0,0,.25);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body,
* {
  transition: background-color 0.25s ease, color 0.25s ease,
  border-color 0.25s ease;
}

body {
  font-family: var(--font-text-default);
  font-size: 16px; /* texte par défaut */
  line-height: 1.3;
  background-color: var(--color-body-background);
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Assure que le footer reste visible */
  margin: 0;
  transition: background-color 0.5s ease-in-out;
  opacity: 1;
  transition: opacity 2s ease;
}

pre {
  font-family: var(--font-text-default);
  background-color: var(--color-pre-background-default);
  border: 1px solid var(--color-pre-border-default);
  padding: 10px;
  margin-top: 30px;
  margin-bottom: 50px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--color-pre-default);
  border-radius: var(--radius-default);
}

* {
  box-sizing: border-box;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Assure que le wrapper couvre toute la hauteur de l'écran */
}

/* ! HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px; /* Hauteur fixe du header */
  background: var(--color-header-background);
  color: var(--color-text-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  z-index: 1000; /* Pour être au-dessus de la hero */
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--color-border-header-default);
}

main {
  flex: 1;
  padding-top: 39px;
}

.column_admin.right hr {
  margin-top: 30px;
}

/* Police spécifique pour les titres */
h1 {
  font-family: var(--font-brand-default);
  font-size: var(--font-h1-brand-size);
  color: var(--color-h1-default);
  margin-left: 20px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-h2-default);
  color: var(--color-h2-default);
  font-size: 22px;
  padding-left: 3%;
  font-weight: 400;
}

h3 {
  font-family: var(--font-h3-default);
  color: var(--color-h3-default);
  font-size: 18px;
}

p,
a,
button,
input,
select,
textarea {
  font-family: var(--font-text-default);
}

p {
  color: var(--color-text-default);
}

.header {
  font-size: 125%;
}

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

#main_menu,
#backend_main_menu {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left; /* Pour centrer le texte */
}



#main_menu li a, 
#backend_main_menu li a {
  display: block;
  padding: 8px 16px; /* Ajuste le padding comme tu veux */
  text-decoration: none;
  color: var(--color-text-default);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  border-radius: var(--radius-default);
}


#main_menu li a:hover,
#main_menu li a:focus,
#backend_main_menu li a:hover,
#backend_main_menu li a:focus {
  background-color: var(
    --color-a-menu-background-hover-default
  ); /* ou ta couleur d’hover */
  border: 1px solid var(--color-a-menu-border-hover-default);
}

#main_menu li.spaced {
  margin-bottom: 20px;
}
#main_menu li.make_separation {
  border-top: 1px solid white;
}

#log { margin-top: 14px; padding: 12px; background: #f6f6f6; border-radius: 10px; white-space: pre-wrap; }
    .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    #barcode { width: min(420px, 100%); }

a.special_link,
button[type="button"].special_link {
  margin: 5px;
  padding: 8px 16px; /* Ajuste le padding comme tu veux */
  text-decoration: none;
  color: var(--color-text-default);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: var(--border-default) solid var(--color-a-menu-border-hover-default);
  border-radius: var(--radius-default);
}

a.special_link:hover,
button[type="button"].special_link:hover {
  background-color: var(
    --color-a-menu-background-hover-default
  ); /* ou ta couleur d’hover */
}

#backend_main_menu {
  margin-top: 20px; /* Espace au-dessus du deuxième menu */
}

#not_found_menu li a {
  color: var(--color-text-default); /* hérite de la couleur parent */
}

#not_found_menu a:hover {
  text-decoration: underline;
}



.display_none {
  display: none;
}

.js-file-dropzone {
  width: 100%;
  position: relative;
  display: inline-block;
  padding: 1rem;
  border: 2px solid var(--color-border-circuit-default, #ccc);
  border-radius: 3px;
  cursor: pointer;
}

/* L'input recouvre toute la zone mais est invisible */
.js-file-dropzone .js-file-input {
  position: absolute;
  inset: 0; /* top/right/bottom/left: 0 */
  opacity: 0;
  cursor: pointer;
}

.mail_form {
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Le message flottant */
.form_feedback {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px; /* Ajuste la position verticale */
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 50; /* Devant tout */
}

.form-separator {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 15px 0;
}

.textarea_space,
.drag_and_drop_space {
  padding-top: 18px;
  padding-bottom: 18px;
}

.theme-form {
  max-width: 600px;
  margin: 2.5rem auto 0;
}

/* Le cadre, même logique qu’un input */
.theme-field {
  border: 1px solid var(--color-form-border, #e1a95a);
  border-radius: 10px;
  padding: 0.45rem 1rem 0.7rem;
  margin-bottom: 1rem;
  background: transparent;
}

/* Texte type "label" en haut */
.theme-help {
  margin: 0 0 0.35rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted, rgba(0, 0, 0, 0.7)); /* adapte pour dark */
}

/* Ligne avec radio + nom du thème */
.theme-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.theme-row input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--color-accent, #e1a95a); /* si supporté */
}

.theme-label-text {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Hover et focus comme tes inputs */
.theme-field:hover {
  border-color: var(--color-accent, #f0b769);
}

.theme-row input[type="radio"]:focus-visible + .theme-label-text {
  outline: 2px solid var(--color-accent, #f0b769);
  outline-offset: 3px;
}

/* Option : mettre en valeur l’option choisie */
.theme-row input[type="radio"]:checked + .theme-label-text {
  color: var(--color-accent, #f0b769);
}

/* Visible state */
.form_feedback.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Success */
.form_feedback.ok {
  background-color: #d4f4dd;
  color: #0c6b2f;
  border-left: 4px solid #0c6b2f;
}

/* Error */
.form_feedback.err {
  background-color: #fde2e2;
  color: #8b0000;
  border-left: 4px solid #8b0000;
}

/* Info */
.form_feedback.info {
  background-color: #e8f3ff;
  color: #0a4fa3;
  border-left: 4px solid #0a4fa3;
}

.hp-row {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

td a {
  display: table-cell;
  width: 100%;
  height: 100%;
  /*padding: 0.7em 1em; /* Mets le padding ici */
  box-sizing: border-box; /* Pour que le padding ne déborde pas */
  text-decoration: none; /* optionnel */
  color: inherit; /* hérite de la couleur parent */
  /* Transition sur toutes les propriétés utiles (ici background + color) */
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

td a:hover {
  color: tomato;
}

hr {
  width: 80%;
  border: none;
  height: 1px;
  background-color: var(--color-border-div-default);
  margin: 1em auto;
}

.header_links {
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.header_links.menu_bnt {
  text-align: right;
  width: 5%;
}

.header_links.contact_bnt {
  text-align: left;
  width: 5%;
}

a.liens {
  border: 1px solid var(--color-a-border-default);
  background-color: var(--color-a-background-default);
  padding: 5px 5px 5px 5px;
  margin: 25px 0;
  border-radius: var(--radius-default);
  color: var(--color-text-default);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.liens:hover {
  background-color: var(--color-a-background-hover-default);
  color: var(--color-text-default);
}

a.link_in_phrase {
  color: var(--warning-color-link);
}

button {
  cursor: pointer;
}

button.liens,
button#connexion,
button.magic_request_main_curtain,
button.private_request_main_content,
button.private_request_updates,
button.send_circuit_content,
button.jump-lang {
  color: var(--color-text-default);
  border-radius: var(--radius-default);
  padding: 5px 5px 5px 5px !important;
  border: var(--border-default) solid var(--color-border-div-default) !important;
}

/* ! Format des tables html */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  border: 1px solid var(--color-border-table-default);
}
th {
  padding: 2px;
}
td {
  padding: 5px; /* Important ! */
}

th,
td {
  border: 1px solid var(--color-border-table-default);
  /*min-height: 20px;*/
  font-size: 90%;
  color: var(--color-text-default);
}

th {
  background-color: var(--color-table-background-default);
  text-align: left;
}
td {
  text-align: center;
}

td.private_request_main_content,
td.magic_request_main_curtain {
  cursor: pointer;
}

li.public_request_main_content,
li.private_request_main_content,
li.magic_request_main_curtain {
  cursor: pointer;
  padding: 4px 2px 2px 2px;
  border: 1px solid transparent;
}

td.private_request_main_content:hover,
td.magic_request_main_curtain:hover {
  background-color: var(--color-body-background);
}

li.private_request_main_content:hover,
li.magic_request_main_curtain:hover {
  background-color: var(--color-body-background);
  border: var(--border-default) solid var(--color-border-div-default);
}

label {
  font-weight: 100;
  color: var(--color-text-default);
}

textarea {
  resize: vertical;
}

/* COULEURS */
.red {
  color: tomato;
}

.green {
  color: #31a84d;
}
.orange {
  color: rgb(216, 144, 8);
}

.gras {
  font-weight: bold;
}

.intro {
  font-size: normal;
  max-width: 100%; /* largeur maximale du bloc */
  margin: 2rem auto 2rem auto; /* centré horizontalement + marge verticale */
  text-align: left; /* texte justifié */
  line-height: 1.3;
  padding: 10px 30px; /* un peu d'espace intérieur pour respirer */

  border-left: 3px solid var(--color-border-div-default);
  border-right: 3px solid var(--color-border-div-default);
  unicode-bidi: plaintext;
}

#error-box {
  position: fixed;
  bottom: 1em;
  right: 1em;
  max-width: 300px;
  background: rgba(200, 0, 0, 0.85);
  color: var(--color-text-default);
  padding: 0.7em 1em;
  border-radius: var(--radius-default);
  font-size: 0.9em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: none; /* masqué par défaut */
  z-index: 9999;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  font-size: 0.95rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden,
.form-field.children_ages {
  display: none;
}

.form-field.children_ages {
  padding-left: 10%;
}

.child-age-group + .child-age-group {
  margin-top: 0.3rem; /* espace entre les champs */
}

.child-age-group label {
  display: block; /* label sur sa propre ligne */
  margin-bottom: 0.25rem; /* petit espace au-dessus de l'input */
  font-size: 0.9rem;
}

.child-age-group input {
  width: 100%; /* si tu veux garde le même style que les autres */
}

.column_admin.right table th {
  background-color: var(--color-table-background-default);
}

.icon {
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin-right: 3px;
}

.centre {
  text-align: center;
  vertical-align: middle;
}

/* ! Rideaux cachés par défaut */
.curtain {
  position: fixed;
  top: 0;
  min-width: auto;
  max-width: 80%;
  height: 100%;
  padding-top: 40px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

/* ! FORMULAIRE DE CONTACT DÉBUT */
.container_contact_form {
  display: flex;
  flex-direction: column; /* par défaut : tout en colonne */
  width: 100%;
}

.container_contact_form .left {
  display: none; /* par défaut : pas de photo */
}

.container_contact_form .right {
  /*padding: 1.5rem;*/
  background: var(--color-body-background);
}

.contact-content {
  width: 100%;
}

.breadscrumb {
  margin: 20px 0;
  padding-left: 0;
  font-size: 90%;
  color: var(--color-text-default);
  text-align: center;
}
/*
.breadscrumb a {
  
}
*/
.breadscrumb a:hover {
  text-decoration: underline;
}

#results-info {
  display: none;
}

/* ! Video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid, transparent;
}

/* ! FORMULAIRE DE CONTACT FIN */

/* Positionnement des rideaux */
#menu_curtain {
  left: 0;
  transform: translateX(-100%);
  z-index: 999;
  border-right: var(--border-default) solid var(--color-border-div-default);
  background: var(--color-menu-background);
}

#menu_curtain.show {
  transform: translateX(0);
}

#contact_curtain {
  right: 0;
  transform: translateX(100%);
  z-index: 999;
  background-color: var(--color-body-background);
  
}

#contact_curtain.show {
  transform: translateX(0);
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-left: var(--border-default) solid var(--color-border-div-default);
  display: block;
  overflow: auto;
  height: 100vh;
}

#contact_curtain_container {
  background-color: var(--color-body-background);
  margin: 50px 20px 80px 20px;
  
}

#menu_curtain,
#contact_curtain {
  transition: transform 0.75s ease-in-out; /* Transition plus fluide et plus lente */
}

.menu_btn {
  margin-left: 3%;
  vertical-align: middle;
}

.menu_right_buttons {
  display: flex;
  align-items: center;
  gap: 5px; /* Espace entre les boutons */
  margin-right: 3%;
}

.menu_right_buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.menu_right_buttons svg {
  width: 20px;
  height: 20px;
}

.menu_right_buttons img {
  width: 20px; /* Taille uniforme avec le SVG */
  height: 20px;
  object-fit: contain; /* Pour éviter toute distorsion */
}

/* Quand le rideau est visible */
.curtain.show {
  transform: translateX(0);
}

/* Style du menu */
.menu-content {
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centre verticalement */
  /*align-items: center; /* Centre horizontalement */
  height: 100%;
  width: 100%;
}

.contact-content {
  overflow-y: auto;
}
/* ! GESTION DES COLONNES */
.columns {
  display: flex;
  flex-wrap: wrap; /* Permet aux colonnes de passer à la ligne */
  gap: 20px;
}

.column {
  flex: 1;
  min-width: 250px; /* Empêche les colonnes de devenir trop petites */
}

/* ! ADMIN */
/* ! Gestion des colonnes de la partie ADMIN */
.columns_admin {
  display: flex;
  flex-wrap: wrap; /* Permet aux colonnes de passer à la ligne */
  gap: 20px;
}

.column_admin {
  flex: 1; /* Les colonnes prennent un espace égal */
  padding: 10px;
  background: var(--color-body-background);
}

.column_admin.left {
  position: sticky;
  top: 0;
  margin-top: -40px;
  padding-top: 40px;
  max-width: 20%;
  height: 100%;
}

.column_admin.left ul {
  padding-left: 5px;
}

.column_admin.right {
  flex: 1;
  padding-bottom: 300px;
  /*height: 100vh;*/
  /*overflow-y: auto;*/
}

ul {
  list-style: none;
  padding-left: 10px;
}

ul li,
ol li {
  /*text-indent: -10px; /* Décale le texte vers la gauche si nécessaire */
  margin-left: 10px; /* Ajoute un espace à gauche */
  color: var(--color-text-default);
  
}

ul li a {
  text-decoration: none;
  color: var(--color-text-default);
  font-size: 100%;
}

li.public_request_main_content {
  cursor: pointer;
}

/* ! IMAGE HERO BEGINING */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-content {
  z-index: 2;
  max-width: 75%;
  height: 100%;
  padding-top: 30px;
  margin-left: 0;

  /*margin-right: 10%;*/
  background: rgba(0, 0, 0, 0.2); /* Fond semi-transparent pour lisibilité */
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%; /* Mobile-first focus plus haut */
  will-change: transform;
  z-index: -1;
}

.hero-logo {
  margin-bottom: 20px;
}

.hero-logo svg {
  max-width: 100%;
  height: 60px;
  fill: var(--color-hero-logo);
}

.hero-logo p {
  color: var(--color-header-overlay-text);
  font-weight: bold;
  font-size: 1.2em;
  line-height: normal;
}

/*
.hero-text {
  display: flex;
  align-items: center;
}
  */

.hero-text h1,
.hero-text h2,
.hero-logo {
  margin-left: 5%;
  padding-left: 0px;
  margin-right: 5%;
  padding-right: 0px;
}

.hero-text h1 {
  font-weight: bold;
  color: var(--color-hero-h1-default);
  font-size: var(--font-h1-brand-header-size);
}

.hero-text h2 {
  /*font-size: 1.3rem;*/
  margin-top: 10px;
  color: var(--color-hero-h2-default);
}

.btn-hero {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  color: white;
  background: #cf8b34;
  text-decoration: none;
  border-radius: var(--radius-default);
  transition: 0.3s;
}

.btn-hero:hover {
  background: #cf8b34;
}
/* ! IMAGE HERO END */

.main_content {
  z-index: 100;
}

/* ! DÉBUT IMAGE DE HEADER PARALLAX POUR D'AUTRES PAGES */
.parallax-header,
.parallax-section {
  position: relative;
  width: 100%;
  overflow: hidden; /* Empêche le débordement */
  z-index: 1; /* S'assurer que le header est au-dessus */
}

.parallax-header {
  height: 400px;
  display: flex;
  align-items: flex-end; /* bas vertical */
}

.parallax-section {
  margin-top: 50px;
  height: 300px;
}

.parallax-header-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

.parallax-header .overlay {
  /*position: sticky;*/ /* <- clé: reste “collé” quand on scrolle */
  top: 0; /* position par rapport au haut de la fenêtre */
  z-index: 1;

  display: flex;
  flex-direction: column;
  /*justify-content: center;*/ /* centre verticalement dans le header */
  align-items: flex-end; /* texte aligné à droite, cohérent avec text-align:right */

  height: auto;
  max-width: 100%;
  margin: 5px 5px 5px auto; /* colle le bloc à droite */

  text-align: right;
  padding: 10px 15px;
  background-color: var(--color-header-overlay-background);
  border-radius: 70px 5px 5px 70px;

  /* si tu ne cliques rien dedans, tu peux ajouter : */
  /* pointer-events: none; */
}

.parallax-header .overlay h1 {
  margin-bottom: 2px;
  font-size: var(--font-h1-brand-size) !important;
}
.parallax-header .overlay h2 {
  margin-top: 2px;
  font-size: 1.1rem;
}

.parallax-header .overlay h1,
.parallax-header .overlay h2 {
  line-height: normal;
  color: var(--color-h1-parallax-default); /* couleur du texte */
}

/* ! FIN IMAGE DE HEADER PARALLAX POUR D'AUTRES PAGES */

/* ! DÉBUT IMAGE DE PARALLAX POUR MILIEU DE PAGE */
.parallax-section-middle-page,
.parallax-section-mini-page,
.parallax-section-super-mini-page {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: white;
  font-size: 2rem;
}

.parallax-section-middle-page {
  height: 40vh; /* Hauteur de la section */
}

.parallax-section-mini-page {
  height: 20vh; /* Hauteur de la section */
}

.parallax-section-super-mini-page {
  margin-top: 5vh;
  margin-bottom: 5vh;
  height: 10vh; /* Hauteur de la section */
}

.parallax-section-middle-page.left,
.parallax-section-mini-page.left {
  justify-content: flex-start; /* avant */
}

.parallax-section-middle-page.right,
.parallax-section-mini-page.right {
  justify-content: flex-end; /* avant */
}

/* Ajoute une règle générique pour le centrage */
.parallax-section-middle-page.center,
.parallax-section-mini-page.center {
  justify-content: center;
}

.parallax-content-middle-page {
  max-width: 800px; /* largeur max du bloc */
  background-color: var(
    --color-parallax-content-background
  ); /* couleur de fond semi-transparente (marron/brun, ajustable) */
  opacity: 0.65;
  border-radius: var(--radius-default);
  padding: 30px; /* espace intérieur */
  margin: 20px; /* espace extérieur */
  text-align: left; /* texte aligné à gauche */
  line-height: 1.6; /* meilleure lisibilité */
  font-size: 1.2rem; /* taille de texte plus fine */
}

.parallax-content-middle-page h2 {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-parallax-content-text);
  line-height: 0.9;
}

.parallax-content-middle-page p {
  margin-bottom: 1em;
  color: var(--color-parallax-content-text);
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0;
}

/* ! FIN IMAGE DE PARALLAX POUR MILIEU DE PAGE */

/* ! Ligne */
/*
.row {
  display: flex;
  width: 100vw; /* Largeur totale de l'écran */
/*height: 50vw; /* Hauteur égale à la moitié de la largeur */
/*} */

/* ! Styles des carrés */
.box {
  position: relative;
  width: 50vw; /* Largeur = 50% de l'écran */
  height: 50vw; /* Hauteur = Largeur (carré parfait) */
  overflow: hidden; /* Empêche le dépassement */
}

/* Ajuste l’image pour qu’elle remplisse totalement le div */
.box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit tout sans déformation */
  position: absolute;
  top: 0;
  left: 0;
}

.box .container {
  display: flex; /* Ajout obligatoire */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  height: 100%;
}

/* ! Contenu centré pour le texte */
.centered-content {
  width: 100%;
  margin: 0 auto 0px auto;
  max-width: 1320px;

  /* Fallback pour anciens navigateurs */
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ! Contenu centré pour le texte spécial formulaire de connexion*/
.centered-content.connexion_form {
  /*max-width: 1200px; /* Largeur max pour éviter une lecture trop étalée */
  margin: 0 auto; /* Centre le bloc */
  padding: 0 15%; /* Marge latérale de 15% sur les grands écrans */
}

td.left {
  text-align: left;
}

/* ! SCROLLBAR */
/* Largeur de la scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Largeur verticale */
  height: 12px; /* Largeur horizontale */
}

/* Fond de la scrollbar */
::-webkit-scrollbar-track {
  background: transparent; /* Couleur de fond */
  border-radius: var(--radius-default);
}

/* Curseur de la scrollbar */
::-webkit-scrollbar-thumb {
  background: var(--color-scroll-bar-default);
  border-radius: var(--radius-default);
  border: 1px solid transparent;
  background-clip: content-box;
}

/* Effet au survol */
::-webkit-scrollbar-thumb:hover {
  background: var(
    --color-scroll-bar-default
  ); /* Changement de couleur au survol */
}
/* Appliquer la couleur au curseur et au fond */
html {
  scrollbar-color: var(--color-scroll-bar-default) transparent;
  scrollbar-width: thin; /* Options: auto | thin | none */
  scrollbar-gutter: stable !important; /* Sur Firefox, garde les barres de défilement visibles et stables */
  overflow-y: scroll;
  overflow-x: hidden; /* Empêcher le scroll horizontal */
}

/* ! Itinéraire des circuits */
.itinerary-timeline {
  position: relative;
  /*margin-left: 40px;*/
  padding-right: 10px;
}
.day {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 40px;
}
.circle-num {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-header-background);
  border: 2px solid var(--color-text-default);
  color: var(--color-text-default);
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-right: 18px;
  margin-bottom: 2px;
  box-sizing: border-box;
  padding-top: 5px;
}

/* Ligne verticale positionnée derrière chaque cercle, sauf le dernier jour */
.day::after {
  content: "";
  position: absolute;
  left: 16px; /* moitié de la largeur du cercle */
  top: 35px; /* juste sous le cercle */
  width: 2px;
  height: calc(100% - 32px);
  background: var(--color-text-default);
  z-index: 1;
}

.content {
  margin-left: -5px;
  flex: 1;
}

td.content {
  padding: 10px 10px;
  text-align: left;
}

ul.itinerary-minimal li {
  display: flex;
  align-items: center;
  margin-left: -5px;
  margin-top: 2px;
  margin-right: 4px;
}
ul.itinerary-minimal li a {
  color: var(--color-text-default);
}

.circle-num-itinerary-minimal {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  line-height: 30px; /* Astuce pour bien centrer verticalement */
  border-radius: 50%;
  border: 1px solid var(--color-text-default);
  text-align: center; /* Centrage horizontal de secours */
  padding: 0; /* Aucune marge intérieure */
  box-sizing: border-box;
  font-variant-numeric: tabular-nums; /* Chiffres de même largeur si la police le permet */
  font-weight: bold;
  overflow: hidden; /* Coupe si trop long */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px; /* <-- espace à droite */
}

.circuit_info {
  border: 1px solid var(--color-border-div-default);
  border-radius: var(--radius-default);
  background-color: var(--color-encart-background);
  margin-top: 15px;
  padding: 5px 10px;
  font-size: 85%;
  color: var(--color-text-default);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: flex-start;
}


.circuit_info_col {
    flex: 1 1 320px;
    min-width: 0;
}

.circuit_info_col_left,
.circuit_info_col_right {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.circuit_info ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
}


.circuit_info p {
    margin: 0;
}

.circuit_info .hotel_proposed a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meals_included_or_not,
.hotel_proposed {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* ! FOOTER */
/* ! Image de fond intégrée au footer */

footer {
  background-color: var(--color-footer-background);
  margin-top: 30px;
  text-align: center;
  width: 100%;
  position: relative;
}

footer p {
  font-size: 90%;
  letter-spacing: 0.5px;
}
footer ul li {
  font-size: 90%;
  letter-spacing: 0.5px;
}

footer ul li.spaced {
  margin-bottom: 20px;
}

footer ul li.title-footer-section-list {
  color: var(--color-footer-text);
  font-weight: bolder;
  text-decoration: underline;
  margin-top: 25px;
}

.footer-commercial-name {
  font-size: var(--font-brand-size);
  font-family: var(--font-brand-default);
}

/* ! Partie noire en bas du footer */

/* ! Amélioration de la lisibilité */

.footer-container {
  position: relative;
  z-index: 1; /* S'assure que le texte est visible au-dessus de l'image */
  display: flex;
  flex-wrap: wrap; /* Permet aux colonnes de passer à la ligne */
  gap: 20px;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: inherit;
}

.footer-section {
  flex: 1;
  padding: 10px;
  min-width: 250px;
  text-align: left;
  order: 0;
}

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

.footer-section h4 {
  color: var(--color-footer-text);
  font-size: 100%;
  margin-bottom: 10px;
}

.footer-section ul {
  text-align: left;

  list-style: none;
  padding: 0;
}

.footer-section ul li {
  font-size: 90%;
  margin: 5px 0;
}

.footer-section ul li a {
  color: var(--color-footer-text);
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-section p {
  color: var(--color-footer-text);
  margin: 0;
}

.footer-logo {
  text-align: center;
}

.footer-logo.center-column {
  display: none;
}

.footer-logo svg {
  height: var(--footer-logo-height-default);
  width: auto; /* garde les proportions */
  display: block; /* évite l'espace blanc inline */
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
  color: var(--color-footer-text);
}

.footer-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  color: var(--color-footer-text); /* 🔥 LA clé */
  stroke: var(--color-footer-text);
  fill: none;
}

/*
.footer-icone {
  color: var(--color-footer-text);
  fill: currentColor;
  width:'15px';
  height:'15px'
}
  */

footer div.copyright {
  text-align: center;
  padding-bottom: 15px;
  color: var(--color-footer-text);
  background-color: var(--color-footer-copyright);
  font-size: small;
}

.footer-contact {
  margin-top: 20px;
}

p.footer-socials {
  margin-bottom: 15px;
}

.footer-socials a svg,
.menu-socials a svg {
  width: 25px;
  height: 25px;
}
.footer-socials {
  color: var(--color-footer-text);
  fill: var(--color-footer-text);
}
.menu-socials a svg {
  color: var(--color-text-default);
  fill: var(--color-text-default);
}
.contact-whatsapp {
  text-align: center;
}
.contact-whatsapp a svg {
  width: 35px;
  height: 35px;
  color: var(--color-text-default);
  fill: var(--color-text-default);
}

.menu-socials {
  display: flex;
  justify-content: center; /* centrage horizontal */
  gap: 10px; /* espace entre icônes */
  margin: 12px 0; /* respiration visuelle */
}

.menu-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-mountains {
  background: url("/assets/icons/misc/mountains.svg") no-repeat center bottom;
  background-size: cover;
  height: 80px; /* hauteur ajustable */
}

/* ! Gallerie de photos de bord à bord */
/* Conteneur global */
.gallery {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-height: none; /* Assure un espace pour le footer */
}

/* Chaque ligne */
.gallery-row {
  display: flex;
  flex: 1; /* Chaque ligne prend une part égale de la hauteur */
}

/* Images dans chaque ligne */
.gallery-row a {
  flex: 1; /* Chaque image prend une part égale de la largeur */
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit bien le cadre */
  transition: transform 0.3s ease-in-out;
}

/* Effet au survol */
.gallery-row a:hover img {
  transform: scale(1.02);
  filter: brightness(0.7) blur(1px);
}

.cls-1 {
  color: red; /* => va colorer tout le SVG en rouge */
  width: 60px;
}

.admin-image-block {
  display: flex;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
}

.admin-image-preview img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.admin-image-preview img:hover {
  transform: scale(1.02);
}

/* Structure générale déjà existante */
.admin-image-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;  
}

/* 🎯 BANNIÈRE */
.admin-image-block.is-banner .admin-image-preview {
  height: auto; /* ajuste: 120–180px selon ton goût */
  overflow: hidden;
  border-radius: 10px;
}

.admin-image-block.is-banner .admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 clé */
  object-position: center top; /* peut être top/center/bottom */
}

/* IMAGES VERTICALES */
.admin-image-block:not(.is-banner) .admin-image-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.admin-image-fields label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-image-fields input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.admin-image-fields button {
  margin-bottom: 16px;
}

/* ! Gestion de l'acceptation des cookies */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-background-cookie-banner-default);
  color: var(--color-p-cookie-banner-default);
  text-align: center;
  padding: 5px;
  font-size: 80%;
  z-index: 2;
  border-top: 1px solid var(--color-border-cookie-banner-default);
  opacity: 0; /* Commence invisible */
  visibility: hidden; /* Empêche l'interaction tant que l'élément est caché */
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  
}
#cookie-banner.show {
  opacity: 0.8;
  visibility: visible;
}
#cookie-banner a {
  color: var(--color-footer-text);
  text-decoration: underline;
}
#cookie-banner p {
  color: var(--color-cookie-banner-default);
  font-weight: bold;
}
#cookie-banner button {
  font-weight: bolder;
  padding: 5px 10px;
  margin: -10px 5px 10px 5px;
  border: var(--border-default) solid var(--color-text-default);
  background-color: var(--color-body-background);
  color: var(--color-text-default);
  cursor: pointer;
  border-radius: var(--radius-default);
}

/* ! AJAX LOADER */
#ajax-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  display: grid;
  opacity: 1;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #cf8b34;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ! Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
  flex-wrap: wrap;
}
.page-btn {
  color: var(--color-text-default);
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  text-decoration: none;
  user-select: none;
}
.page-btn.is-active {
  font-weight: 700;
  pointer-events: none;
}
.page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.dots {
  padding: 0 6px;
  opacity: 0.6;
}

/* ! DÉBUT MENU DE CHANGEMENT DE lang */
.language-menu {
  display: none;
  position: absolute;
  top: 100%; /* Place le menu juste en dessous du bouton */
  background-color: var(--color-language-menu-background);
  border: 1px solid var(--color-border-language-menu);
  border-radius: var(--radius-default);
  padding: 5px;
  margin-left: -25px;
  list-style: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.language-menu li {
  display: flex;
  align-items: center;
  padding: 5px 5px;
  cursor: pointer;
}

.language-menu img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
/* ! FIN MENU DE CHANGEMENT DE lang */

/* ! DÉBUT PHOTO COLLAGE */
.photo-collage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -30px; /* Superposition des images */
  overflow: hidden;
  position: relative;
  padding: 20px;
  max-width: 100%;
}

.photo-collage img {
  width: auto;
  height: 180px; /* Taille standard des images */
  border-radius: var(--radius-default);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

/* Appliquer des rotations aléatoires */
.photo-collage img:nth-child(odd) {
  transform: rotate(-7deg);
}
.photo-collage img:nth-child(even) {
  transform: rotate(5deg);
}

/* Effet hover (zoom + réalignement) */
.photo-collage img:hover {
  transform: scale(1.1) rotate(0deg);
  z-index: 10;
}

/* ! Logo translucide en fond lors du changement de lang */
/* Applique un fond gris progressif au changement de lang */
#transition-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: var(--color-body-background);
}

body.transition #transition-overlay {
  opacity: 1;
  pointer-events: auto;
}

.transition-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
}

#transition-logo svg {
  width: 300px;
  height: auto;
  color: var(--color-text-default); /* <--- pilote currentColor */
}

/* si ton SVG est en fill="currentColor" / stroke="currentColor" */
#transition-logo svg * {
  fill: currentColor;
  stroke: none; /* ou garde stroke si tu en as besoin */
}

.transition-text {
  text-align: center;
  color: var(--color-text-default);
  letter-spacing: 0.02em;
  font-weight: bolder;
}

input,
textarea,
select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--color-border-div-default);
}

.input-error {
  border: 1px solid #d85d69; /* rouge Bootstrap */
  background-color: #e7cfcf;
}

.preview-error {
  border: 1px solid #d85d69; /* rouge Bootstrap */
}

/* ! Formulaire d'upload d'images  */
.upload-container {
  border: 2px dashed #ccc;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-default);
  background: #f9f9f9;
}
.dropzone {
  border: 2px dashed #aaa;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: #fff;
}

.dropzone-file-list {
  text-align: left;
  margin-bottom: 0px;
  margin-top: 0px;
}

.dropzone-file-list li {
  display: flex;
  align-items: center; /* centre verticalement */
  gap: 8px; /* espace entre bouton et nom */
  margin-bottom: 0px;
  margin-top: 0px;
}

.upload-config label {
  display: block;
  margin: 10px 0;
}
.upload-config input,
.upload-config select {
  width: 100%;
  padding: 5px;
}

.preview img {
  max-width: 100%;
  border: 2px solid transparent;
}

.delete-file-in-list {
  color: var(--color-text-default);
}

.contact-alt {
  margin-top: 2rem;
  padding: 1.2rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-alt h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.contact-alt a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

.contact-alt .small-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.reassurance-block {
  display: block;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Barre de progression de l'UPLOAD */
#uploadOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#uploadOverlay.show {
  opacity: 1;
  visibility: visible;
}

.upload-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
}

.upload-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: bold;
}

#uploadProgress {
  width: 100%;
  height: 16px;
  appearance: none;
  border: none;
  background-color: transparent;
}

/* Chrome / Edge / Safari */
#uploadProgress::-webkit-progress-bar {
  background-color: #eee;
  border-radius: var(--radius-default);
}

#uploadProgress::-webkit-progress-value {
  background-color: #cf8b34; /* TA couleur ! */
  border-radius: var(--radius-default);
}

/* Firefox */
#uploadProgress::-moz-progress-bar {
  background-color: #cf8b34;
}

#uploadMessage {
  margin-top: 20px;
  margin-bottom: 200px;
  padding: 10px 10px;
}

.upload-confirm img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* Traitement soft du preview... */
#preview img {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
#preview img.visible {
  opacity: 1;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background-color: #111;
  overflow: visible;
}

#cropImage {
  max-width: 100%;
  display: block;
}

.cropper-container {
  border: 2px dashed limegreen !important;
}
.cropper-canvas {
  background-color: rgba(255, 0, 0, 0.2) !important;
}
.cropper-crop-box {
  border: 2px solid orange !important;
}
.cropper-crop-box {
  outline: 2px solid red !important;
}
.cropper-canvas {
  opacity: 1 !important;
  visibility: visible !important;
  background-color: transparent !important;
  display: block !important;
}
.cropper-container img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* ! Messages de feedback */
#feedback_message {
  padding: 10px;
  border-radius: var(--radius-default);
  margin-top: 10px;
}
.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #155724;
}
.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #721c24;
}

.warning_color {
  color: var(--warning-color-link);
}

.warning_error svg {
  stroke: var(--color-text-default);
  fill: var(--color-body-background);
  width: 30%;
}

.char-info {
  font-size: 80%;
}

/* ! RIDEAUX */
#main_curtain,
#secondary_curtain {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  background: var(--color-body-background);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  transition: right 0.8s ease;
  padding: 1rem;
  overflow-y: auto;
  scrollbar-width: thin; /* Options: auto | thin | none */
  border-left: 2px solid var(--color-border-div-default);
}

#main_curtain {
  max-width: 80%;
  z-index: 998;
}

#secondary_curtain {
  min-width: 40%;
  max-width: 70%;
  z-index: 999; /* Doit être au-dessus de main_curtain */
}

#main_curtain.show {
  right: 0;
}
#secondary_curtain.show {
  right: 0;
  max-width: 30%;
}
#main_curtain_container,
#secondary_curtain_container {
  margin-top: 40px;
  margin-bottom: 200px;
}

td.private_request_updates {
  cursor: pointer;
}

.svg_in_table {
  text-align: center;
  width: 20px;
}

.sitemap_link:hover {
  text-decoration: underline;
  color: tomato;
}

.sitemap-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 2;
  /*border-bottom: 1px solid var(--color-border-div-default); */
  margin-top: 10px;
}

/* Thumbnail */
.sitemap-thumb {
  aspect-ratio: 32 / 9;
  overflow: hidden;
  cursor: pointer;
}

.sitemap-thumb picture,
.sitemap-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: var(--border-default) solid var(--color-border-div-default);
}

/* Text */
.sitemap-text {
  display: flex;
  align-items: center;
  vertical-align: middle;
  color: var(--color-text-default);
}

h2 .sitemap {
  font-size: 140%;
  margin-bottom: 15px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sitemap-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 820px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

.sitemap-card,
.article-card {
  position: relative;
  display: block;
  border-radius: var(--radius-default);
  overflow: hidden;
  text-decoration: none;
  transform: translateZ(0);
}

.article-card-media {
  margin-bottom: 5px;
}


.sitemap-card-media picture,
.sitemap-card-media img,
.article-card-media picture,
.article-card-media img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.sitemap-card-media picture,
.sitemap-card-media img {
  height: 260px; /* ajuste: 220-340 selon ton style */
}

.article-card-media picture,
.article-card-media img {
  height: 130px; /* ajuste: 220-340 selon ton style */
}

.sitemap-card-overlay,
.article-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0) 60%
  );
}

.sitemap-card-kicker {
  font-weight: bolder;
  color: var(--color-header-overlay-text);
  font-size: 0.9rem;
  opacity: 0.95;
}

.sitemap-card-title,
.article-card-title {
  color: var(--color-header-overlay-text);
  margin: 6px 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
  text-wrap: balance;
  text-transform: uppercase;
}

.sitemap-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (hover: hover) {
  .sitemap-card img {
    transition: transform 0.35s ease;
  }
  .sitemap-card:hover img {
    transform: scale(1.03);
  }
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.map-link svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.no_content_message {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--color-border-div-default);
  border-radius: var(--radius-default);
}

.daddy_sugar {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-wrapper {
  max-width: 90%;
  margin: 0;
  padding: 0;
  background: var(--color-body-background);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5em;
}

.form-group label {
  margin-bottom: 0.5em;
  font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius-default);
}

textarea {
  resize: none;
}

/* Conteneur de la case + texte */

.privacy-consent {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  max-width: 100%;
}

.privacy-checkbox {
  flex: 0 0 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.privacy-checkbox input[type="checkbox"] {
  transform: translateY(1px);
}

.privacy-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.45;
}

.privacy-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Conteneur général : checkbox à gauche + texte à droite */
/* Conteneur général : checkbox à gauche + texte à droite */
/*
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.5rem;
  cursor: pointer;
}


.privacy-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy-consent span {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.45;
  display: inline-flex;         
  align-items: flex-start;
}


.privacy-consent span::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #b58c54;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  margin-right: 0.5rem;          
  margin-top: 2px;               
  transition: 0.2s ease;
}


.privacy-consent input:checked + span::before {
  background: #b58c54;
  border-color: #b58c54;
  box-shadow: inset 0 0 0 4px #fff;
}


.privacy-consent span a {
  color: var(--color-accent);
  text-decoration: underline;
}
*/

.field-help {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.15rem;
}

.obligatory {
  color: red;
}

button[type="button"] {
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: var(--color-button-default);
  border: var(--border-default) solid var(--color-button-border-default);
  padding: 3px 3px 3px 3px;
}

button[type="submit"] {
  display: block;
  background-color: var(--color-submit-background-default);
  color: var(--color-submit-text-default);
  padding: 0.4em 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  border: var(--border-default) solid var(--color-submit-border-default);
  border-radius: var(--radius-default);
  font-size: 1rem;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #dfddda;
  color: var(--color-submit-text-hover);
  border: var(--border-default) solid var(--color-submit-border-hover);
  background-color: var(--color-submit-background-hover);
}

button.js-remove-file {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px; /* tu peux augmenter si tu veux */
  line-height: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center; /* centre l’icône dans le bouton */
  justify-content: center; /* idem */
  padding: 0;
}

input.required_field,
select.required_field {
  border: 1px solid var(--color-required-field-default) !important;
}

.button_container {
  margin: 10px 0px;
}

.checkbox label {
  font-weight: normal;
}

.form-wrapper ol,
.form-wrapper ul {
  margin-left: 1.5em;
  padding-left: 1em;
  margin-bottom: 1.5em;
  line-height: 1.6;
  color: #333;
  font-size: 0.95rem;
}

.form-wrapper li {
  margin-bottom: 0.5em;
}

select {
  padding: 0.8em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius-default);
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1.2em;
}

/* ! Le bouton de retour au top page */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 10px;
  font-size: 20px;
  border-radius: 50%;
  border: 1px solid var(--color-border-div-default);
  background: var(--color-header-background);
  color: var(--color-text-default);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  transform: scale(0.8);
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* =====================
   🧱 BASE CSS MOBILE FIRST
   ===================== */

/* Root variables */
/*:root {
  --font-base: clamp(1rem, 2.5vw, 1.2rem);
  --spacing: clamp(1rem, 2vw, 2rem);
  --color-bg: #fff;
  --color-text: #111;
}

/* Global Reset */
/** {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: system-ui, sans-serif;
  font-size: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  scroll-behavior: smooth;
}

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

/* Utility spacing */
/*.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--spacing);
}








/* =====================
   📱 MOBILE FIRST STYLES
   ===================== */

/* ... Tes styles par défaut ici ... */

.circuits-wrapper,
.articles-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  /*padding-top: 2rem;
  
  margin-top: 2rem; */
  padding-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.circuit-card,
.article-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  display: block;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-default);
}


.img-wrapper {
  position: relative;
  line-height: 0;
  /* Carré responsive */
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.img-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  
}

.img-wrapper img {
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
}

.img-wrapper[data-focus="left"] img {
  object-fit: cover;
  object-position: left center;
}

.img-wrapper[data-focus="right"] img {
  object-position: right center;
}

.img-wrapper[data-focus="top"] img {
  object-position: center top;
}

.img-wrapper[data-focus="bottom"] img {
  object-position: center bottom;
}

/* Superposition */
.img-wrapper .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 0.5rem;
  box-sizing: border-box;
  
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--color-header-overlay-background);
}

.img-wrapper .overlay h2,
.img-wrapper .overlay h3,
.img-wrapper .overlay p {
  color: var(--color-header-overlay-text);
  padding-left: 0px;
  line-height: 1.1;
  margin: 0.2em 0; /* réduit l'espacement vertical */
}
.img-wrapper .overlay h2 {
  font-family: var(--font-brand-default);
  text-transform: uppercase;
  font-size: var(--font-h2-img-wrapper-brand-size);
}
.img-wrapper .overlay h3 {
  font-weight: normal;
  font-size: 1rem;
  display: none;
}

.lazy-img {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.lazy-img.lazy-loaded {
  opacity: 1;
}

.circuit-card {
  transition: opacity 0.4s ease;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

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

.video-external {
  display: block;
  text-decoration: none;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

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

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-external:hover .video-play {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.video-note {
  font-size: 0.9rem;
  opacity: 0.9;
}


.article_layout{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "sidebar"
    "main";
  gap: 24px;
}

/* important: évite que le contenu “pousse” la grid et déborde */
.article_main{
  grid-area: main;
  min-width: 0;
}

.article_sidebar{
  grid-area: sidebar;
  min-width: 0;
  color: var(--color-text-default);
}

/* Sticky: la sidebar suit le scroll */
.sidebar_sticky{
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.sidebar_nav {
  text-align: center;
}

a.nav_btn svg {
  width: 35px;
}

/* Grand format ensuite */
@media (min-width: 901px){
  .article_layout{
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    grid-template-areas: "main sidebar";
  }

  .sidebar_sticky{
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding-right: 6px;
  }
}




.article_content {
  background-color: var(--color-background-blog-content);
  padding: 5%;
  border-radius: var(--radius-default);
  overflow-x: hidden;
}


.sidebar_empty pre {
  background-color: var(--color-background-blog-content);
}



/* 2) un bloc image ne dépasse jamais le conteneur */
.article_content figure.rimg {
  display: block;
  margin: 18px 0;
  max-width: 100%;
}

/* 3) picture/img: 100% du figure, jamais plus */
.article_content figure.rimg picture,
.article_content figure.rimg img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* Tailles: c'est le figure qui limite */
.article_content .rimg--xs { max-width: 240px; }
.article_content .rimg--sm { max-width: 360px; }
.article_content .rimg--md { max-width: 520px; }
.article_content .rimg--lg { max-width: 720px; }
.article_content .rimg--full { max-width: 100%; }

/* Floats: le texte s’enroule autour */
.article_content .rimg--left{
  float: left;
  margin: 6px 18px 12px 0;
}

.article_content .rimg--right{
  float: right;
  margin: 6px 0 12px 18px;
}

/* Center: pas de float */
.article_content .rimg--center{
  margin-left: auto;
  margin-right: auto;
}

/* Full: pas de float, toujours bloc */
.article_content .rimg--full{
  float: none;
  clear: both;
}


.article_title_container {
  background-color: inherit;
  margin-bottom: 20px;
  padding-left: 4%;
  border-radius: var(--radius-default);
}

.subtitle_blog {
  margin-left: 10%;
  font-style: italic;
  font-weight: bolder;
}

/* Base: aucune image ne sort du cadre */
.article-content img,
.article-content picture {
  max-width: 100%;
  height: auto;
}

/* Wrapper standard */
.article-content .rimg {
  display: block;
  margin: 18px 0;
}

.article-content .rimg picture,
.article-content .rimg img {
  display: block;
  width: 100%;
  height: auto;
}

/* Alignements */
.article-content .rimg--left {
  float: left;
  margin: 6px 18px 12px 0;
}

.article-content .rimg--right {
  float: right;
  margin: 6px 0 12px 18px;
}

.article-content .rimg--center {
  margin-left: auto;
  margin-right: auto;
}

/* Tailles */
.article-content .rimg--xs {
  max-width: 240px;
}
.article-content .rimg--sm {
  max-width: 360px;
}
.article-content .rimg--md {
  max-width: 520px;
}
.article-content .rimg--lg {
  max-width: 720px;
}
.article-content .rimg--full {
  max-width: 100%;
}

/* Mobile: on casse les floats */
@media (max-width: 700px) {
  .article-content .rimg--left,
  .article-content .rimg--right {
    float: none;
    margin: 18px 0;
    max-width: 100%;
  }
}

/* Optionnel: captions */
.article-content figcaption {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 6px;
}

#results-count {
  font-weight: bold;
  /*margin-bottom: 0px;*/
}

.no-results {
  padding: 20px;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  text-align: center;
  color: #666;
}

#preview-overlay {
  position: fixed;
  top: 10;
  left: 0;
  width: 100vw;
  max-height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#preview-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
#preview-img {
  max-width: 100%;
  max-height: 90vh; /* 🔥 essentiel pour les formats portrait */
  object-fit: contain;
}
#preview-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2em;
  color: white;
  cursor: pointer;
}

/* ! FIL d'ARIANE */
.breadcrumb {
  font-size: 1rem;
  margin-top: 25px;
  border-radius: var(--radius-default);
  background-color: var(--color-background-blog-content);
}

.breadcrumb a {
  color: var(--color-text-default);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 5px;
}

.pdf_generate {
  margin: 5px 0;
}

.footer_to_print {
  display: none;
}

/* ! Circuits Tags */
#tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  padding: 1em;
  margin: 1em 0;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: var(--radius-default);
}

.tag-cloud-item {
  text-decoration: none;
  padding: 0.2em 0.5em;
  border-radius: var(--radius-default);
  transition: all 0.2s ease;
  font-weight: bold;
}

.tag-cloud-item:hover {
  background-color: #eee;
  transform: scale(1.1);
}

/* ! FAQ */
.faq-answer{
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .4s ease,
    opacity .35s ease,
    margin-top .35s ease;
  margin-top: 0;
}

.faq-answer > *{
  overflow: hidden;
}

.faq-item.open .faq-answer{
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}

.faq-item{
  padding: 2px 0;
}

.faq-question{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
}

.faq_icon{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}

.faq_icon svg{
  width: 100%;
  height: 100%;
}

.faq-item.open .faq_icon{
  transform: rotate(45deg);
}
/* ! FAQ */

section {
  margin-bottom: 4rem;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Base */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

/* Grilles spécifiques */
.row.grid-66-33,
.row.grid-33-66 {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  min-height: 60vh; /* ou 70vh si tu aimes comme sur la page actuelle */
}

/* 66 / 33 */
.row.grid-66-33 {
  grid-template-columns: 66.667% 33.333%;
}

/* 33 / 66 (inversé) */
.row.grid-33-66 {
  grid-template-columns: 33.333% 66.667%;
}

.col {
  padding-top: 4px;
  padding-right: 4px;
  padding-bottom: 4px;
}

.col.col-text {
  padding-left: 10px;
}

/* Colonne photo (quel que soit le côté) */
.col.col-photo {
  padding-left: 4px;
  display: flex;
  align-items: center; /* centrage vertical */
  justify-content: center;
}

.col.col-photo picture {
  width: 100%;
  height: 100%;
}

.col.col-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.col.col-photo-left img {
  border-top-left-radius: 35px;
  border-top-right-radius: 3px;
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 3px;
}

.col.col-photo-right img {
  border-top-left-radius: 3px;
  border-top-right-radius: 35px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 35px;
}

.trip_info {
  border: 1px solid var(--color-border-div-default);
  /*border-radius: 5px;*/
  background-color: var(--color-trip-info-background-default);
}

.icon-medium {
  width: 60px;
  height: 60px;
}

.float-left {
  float: left;
}

.trip-info-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 0.5rem;
  column-gap: 1.2rem;
  font-size: 1rem;
}

.trip-info-list dt {
  font-weight: 600;
  color: var(--color-text-default);
  margin: 0;
  padding: 0.2rem 0;
}

.trip-info-list dd {
  color: var(--color-text-default);
  margin: 0;
  padding: 0.2rem 0;
}

.trip-info-list dd ul {
  margin: 0.2rem 0 0 0;
  padding-left: 1.2rem;
}

.trip-info-list dd.no-indent ul {
  margin-left: 0;
  padding-left: 0;
  list-style-position: inside; /* optionnel */
}

#map {
  padding: -1rem;
  height: calc(100vh);
  min-height: 400px; /* Pour éviter que la carte soit trop petite sur petits écrans */
  z-index: 10;
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Optionnel */
  border: 1px solid var(--color-border-map-default);
  width: 100%; /* Prend toute la largeur disponible de la colonne */
  min-height: 380px;
  box-sizing: border-box;
}

.show-day-on-map {
  float: right;
}

/* ! 404  */
.error_container {
  margin-top: 40px;
}

.error_container.split {
  display: flex;
  height: 100vh;
  gap: 1rem; /* ou ce que tu veux */
}

.error_container .left {
  flex: 1;
  background: var(--color-body-background);
}

.error_container .left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) blur(0.5px);
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.error_container .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--color-body-background);
  color: var(--color-text-default);
}

.error_icon {
  width: 50px;
  height: 50px;
  color: #cc0000;
  margin-bottom: 1rem;
}

.error_container h1 {
  font-style: italic;
  margin-left: 0;
}

.autocomplete-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 999;
  max-height: 200px;
  overflow-y: auto;
  width: 300px;
  display: none;
}
.autocomplete-dropdown div {
  padding: 6px 10px;
  cursor: pointer;
}
.autocomplete-dropdown div:hover {
  background: #f0f0f0;
}
.location {
  border: 1px dashed var(--color-border-div-default);
  margin: 15px;
  padding: 15px 15px;
}

tr.location td.private_request_updates::first-letter {
  font-weight: bold;
}

.handle {
  cursor: grab; /* Affiche une main ouverte au survol */
}

.handle:active {
  cursor: grabbing; /* Affiche une main fermée pendant le drag */
}

/* ! Légendes de la carte */
.legend {
  background: rgb(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: var(--radius-default);
  font-size: 12px;
  line-height: 18px;
  color: #333;
}
.legend i {
  width: 18px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}
.leaflet-bottom.leaflet-left .info.legend {
  margin-bottom: 50px;
}

/* Optionnel : ajouter une classe "map-active" en JS si l'utilisateur clique */
.map-active {
  pointer-events: auto;
}

/* ! Style TESTOMINIALS */
.testimonial-card {
  border: 1px solid var(--color-border-div-default);
  border-radius: var(--radius-default);
  margin: 20px 0;
  padding: 15px;
  background: var(--color-body-background);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border-div-default);
  margin-bottom: 5px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: var(--color-body-background);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  color: var(--color-text-default);
  border-top-left-radius: var(--radius-default);
  border-top-right-radius: var(--radius-default);
}

.tab-btn.active {
  background: var(--color-footer-background);
  border-top: 1px solid var(--color-border-div-default); /* ta couleur de marque */
  border-left: 1px solid var(--color-border-div-default); /* ta couleur de marque */
  border-right: 1px solid var(--color-border-div-default); /* ta couleur de marque */
  color: var(--color-text-default);
}

.tab-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.tab-content.active {
  max-height: 1000px; /* valeur arbitraire + grande que ton plus gros témoignage */
  opacity: 1;
}

/* === Patch overlay "h2 seul" + slide-up au hover === */

/* Petits réglages paramétrables */
:root {
  --overlay-height: auto; /* hauteur au repos (déjà 40% chez toi) */
  --overlay-lift: 18%; /* remontée verticale de l’overlay au hover */
  --overlay-pad-y: 0.75rem;
  --overlay-pad-x: 1rem;
}

/* Contexte : déjà présent, on ajoute juste overflow et will-change */
.img-wrapper {
  overflow: hidden;
}

/* Overlay : transitions pour le slide */
.img-wrapper .overlay {
  height: var(--overlay-height);
  transition: transform 0.35s ease, height 0.35s ease,
    background-color 0.35s ease;
  will-change: transform;
}

/* Bloc translucide : on garde ta couleur, on ajoute un padding homogène */
.img-wrapper .overlay .translu {
  padding: var(--overlay-pad-y) var(--overlay-pad-x);
  box-sizing: border-box;
  /* Option (au choix) : un léger dégradé sombre améliore la lisibilité :
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.25));
  */
}

/* Titres : transitions douces */
.img-wrapper .overlay h2,
.img-wrapper .overlay h3 {
  transition: opacity 0.3s ease, transform 0.35s ease, max-height 0.35s ease;
}

/* Cacher le h3 au repos */
.img-wrapper .overlay h3 {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0; /* empêche de prendre de la place */
  overflow: hidden;
}

/* Hover carte : l’overlay remonte… */
.circuit-card .overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0) 60%
  );
}

.circuit-card:hover .overlay,
.article-card:hover .overlay,
.img-wrapper:hover .overlay {
  transform: translateY(calc(-1 * var(--overlay-lift)));
}

/* …et le h3 se déploie */
.circuit-card:hover .overlay h3,
.article-card:hover .overlay h3,
.img-wrapper:hover .overlay h3 {
  opacity: 1;
  transform: translateY(0);
  max-height: 6em; /* assez pour 2–3 lignes */
}

/* Wrapper global */
.file-field {
  position: relative;
  margin-bottom: 40px;
}

/* Label flottant */
.file-field .file-label {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--color-body-background, #f5f2e5);
  padding: 0 6px;
  font-size: 16px;
  color: var(--color-text-default);
  pointer-events: none;
  z-index: 2;
}

/* Zone drag & drop */
.dropzone {
  border: 2px dashed var(--color-border-input-default);
  border-radius: 8px;
  padding: 18px 14px;
  background: var(--color-body-background);
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Hover + focus */
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--color-border-input-focus-default);
  background: var(--color-body-background);
}

/* Texte du label interne */
.dropzone-label {
  color: var(--color-text-default);
  transition: all 0.25s ease;
}

/* Liste des fichiers */
.dropzone-file-list {
  margin-top: 10px;
  list-style: none;
  padding-left: 0;
}

.dropzone-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 10px;
  margin-bottom: 6px;

  background: var(--color-body-background);
  border: var(--border-default) solid var(--color-border-div-default);
  border-radius: var(--radius-default);

  font-size: 14px;
  color: var(--color-text-default);

  animation: fadeIn 0.25s ease;
}

/* Bouton supprimer */
.dropzone-file-list li button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  color: var(--color-button-default);
}

.dropzone-file-list li button:hover {
  color: #c94224;
}

.updated {
  text-align: right;
  font-size: small;
}

/* ! END STYLE */

/* ===========================
   THEME-AWARE FORM FIELDS
   Place ce bloc à la FIN de ton CSS
   =========================== */

/* Champs communs */
.form-field {
  position: relative;
  margin-bottom: 20px;
}

.form-field label {
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 16px;
  color: var(--color-text-default);
  background: var(--color-body-background);
  padding: 0 4px;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* Input / textarea / select : base commune */
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 12px 12px;
  font-size: 16px;
  border: 2px solid var(--color-border-input-default);
  border-radius: 8px;
  background: var(--color-body-background) !important;
  transition: border-color 0.2s ease;
  color: var(--color-text-default) !important;
  -webkit-text-fill-color: var(--color-text-default) !important;
}

/* Focus */
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-border-input-focus-default);
  outline: none;
}

/* Autofill (Chrome) */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0 1000px var(--color-body-background) inset !important;
  background-color: var(--color-body-background) !important;
  color: var(--color-text-default) !important;
  -webkit-text-fill-color: var(--color-text-default) !important;
}

/* Placeholders */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-placeholder-default) !important;
  -webkit-text-fill-color: var(--color-placeholder-default) !important;
  opacity: 1;
}

/* Label flottant pour input / textarea */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  background: var(--color-body-background);
  color: var(--color-text-default);
}

/* Spécifique SELECT : apparence native désactivée */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
}

/* Label flottant pour SELECT (si tu utilises la technique value="") */
.form-field select:focus + label,
.form-field select:not([value=""]) + label {
  background: var(--color-body-background);
  color: var(--color-text-default);
}

/* Spécifique TEXTAREA */
.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.day-nav {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn-nav svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  color: var(--color-text-default);
}

.btn-nav:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.custom-marker .marker-outer {
  fill: var(--color-map-pin-fill-outer); /* corps du pin */
  stroke: var(--color-map-pin-stroke-outer);
  stroke-width: 1;
}

.custom-marker .marker-inner {
  fill: var(--color-map-pin-fill-inner); /* centre blanc, par exemple */
  stroke: var(--color-map-pin-stroke-inner);
  stroke-width: 1;
}

/* Overlay plein écran */
.map-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* caché par défaut */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Quand visible */
.map-overlay.is-visible {
  display: flex;
}

/* Boîte intérieure */
.map-overlay-inner {
  position: relative;
  width: 95vw;
  height: 80vh;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Conteneur de la carte mobile */
#map-mobile {
  width: 100%;
  height: 100%;
}

/* Bouton de fermeture */
.map-overlay-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 10;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
}

.itinerary-minimal {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  row-gap: 0.6rem;
  align-items: center; /* 🔑 alignement vertical dt + dd */
}

.itinerary-minimal dt,
.itinerary-minimal dd {
  margin: 0;
  display: flex;
  align-items: center; /* 🔑 alignement interne */
  color: var(--color-text-default);
}

.section-title {
  display: flex;
  align-items: center; /* 🔑 alignement vertical parfait */
  gap: 0.6rem;
}

.section-title h2 {
  margin: 0;
  text-align: left;
  font-size: 110%;
  color: var(--color-text-default);
}

.icon-medium {
  width: 40px;
  height: 40px;
  color: var(--color-text-default);
  flex-shrink: 0;
}

.site-header,
.site-header h1 {
  margin: 0;
  padding: 0;
}

.site-header {
  height: 100%;
  display: flex;
  align-items: center; /* centrage vertical */
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-default);
}

.brand-logo {
  width: 100%;
  height: 45px;
  display: inline-flex;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-default);
}

.brand-logo svg path {
  fill: var(--color-text-default); /* (au cas où) */
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 🔑 clé absolue */
  line-height: 1.15;
  min-height: 2.4em; /* ajuster selon ta typo */
}

.brand-logo-footer svg {
  width: 80%;
  color: var(--color-footer-text);
}

.brand-title {
  font-size: var(--size-header-h1-portable-default);
  font-weight: 600;
  font-family: var(--font-brand-default, inherit);
  line-height: 1; /* 🔑 important */
  padding-top: 5px;
  color: var(--color-text-default);
}

.brand-slogan {
  font-size: var(--size-header-slogan-portable-default);
  font-weight: 500;
  font-family: var(--font-header-slogan-default, inherit);
  color: var(--color-text-default);
}

/* MEDIA QUERIES */

@media (max-width: 380px) {
  .circuits-wrapper,
  .articles-wrapper {
    grid-template-columns: 1fr; /* ultra petits écrans */
  }

  .intro {
    font-size: smaller;
  }
}

@media (max-width: 600px) {
  .sitemap-row {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 768px) {
  #map {
    width: 80%;
    min-height: 260px;
  }

  .circuits-wrapper,
  .articles-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .col.sticky {
    display: none;
  }

  .row.grid-66-33,
  .row.grid-33-66 {
    grid-template-columns: 1fr;
  }

  .row.grid-66-33 .col.col-photo,
  .row.grid-33-66 .col.col-photo {
    display: none;
  }

  .footer-container {
    justify-content: flex-start;
  } /* évite l'espacement bizarre */
  .footer-logo {
    text-align: left;
  } /* aligne le logo comme la colonne 1 */

  #contact_curtain {
    max-width: 50%;
  }
}

/* Mobile */
/* Responsive : sur mobile, on empile proprement */
@media (max-width: 900px) {
  .circuit-summary {
    grid-template-columns: 1fr; /* une seule colonne */
    gap: 2rem !important; /* ← espace vertical entre les deux cartes */
  }

  .circuit-summary-card {
    padding: 1.4rem 1rem;
    border-radius: 10px;
  }

  .circuit-summary-card + .circuit-summary-card {
    margin-top: 1.5rem;
  }
}

@media (min-width: 992px) {
  /* Tablettes landscape, petits laptops */
}

@media (max-width: 1024px) {
  .parallax-header {
    height: 300px; /* Réduit la hauteur sur tablettes */
    background-attachment: scroll; /* Désactive le parallax sur mobile */
  }
}

@media (min-width: 1200px) {
  /* Laptops HD */

  .intro {
    max-width: 85%; /* largeur maximale du bloc */
    margin: 1.2rem auto 2.5rem auto; /* centré horizontalement + marge verticale */
    font-size: larger;
    line-height: 1.4;
  }

  .img-wrapper .overlay h2 {
    font-size: var(--font-h2-img-wrapper-brand-size);
  }
  .img-wrapper .overlay h3 {
    font-size: 1.1rem;
    display: block;
  }
  .hero-logo svg {
    height: auto;
    width: 35%;
    fill: var(--color-hero-logo);
  }
}

@media (min-width: 1440px) {
  /* Écrans larges, desktop */
  /*
  .centered-content {
    max-width: 1320px; /* + large que 1200px */
  /*padding: 0 3rem;    /* + de respiration */
  /*}
  */
}

/* =====================
   💻 BREAKPOINTS RESPONSIVES
   ===================== */
@media (min-width: 480px) {
  .centered-content {
    padding-left: clamp(1rem, 5vw, 3rem);
    padding-right: clamp(1rem, 5vw, 3rem);
  }
}

@media (min-width: 576px) {
  /* Petits appareils > smartphones */
}

@media (min-width: 768px) {
  /* Tablettes portrait */
  /*
  .hero-content {
    max-width: 50%;
  }
    */


  .parallax-content-middle-page h2 {
    font-size: 2rem;
  }

  .parallax-content-middle-page p {
    font-size: 1.8rem;
  }

  .parallax-header .overlay h1 {
    font-size: 32px;
  }
  .parallax-header .overlay h2 {
    font-size: 24px;
  }

  .hero-img {
    object-position: center bottom; /* Ajuste pour éviter trop de ciel */
  }

  .row.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 2rem; /* optionnel mais souvent utile */
  }

  .circuit-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 2rem;
    margin-block: 3rem;
  }

  .circuit-summary-card {
    background: var(
      --color-body-background
    ); /* un poil plus clair que le fond */
    border: var(--border-default) solid var(--color-border-div-default);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  }

  .col.sticky {
    position: sticky;
    top: 41px !important;
    align-self: start;
    padding: 0 !important; /* Enlève tout padding sur la colonne sticky */
  }

  .program {
    padding-top: 10%;
    padding-bottom: 20%;
  }

  .container_contact_form {
    flex-direction: row;
    min-height: 500px;
  }

  .container_contact_form .left {
    display: flex;
    flex: 1;
    min-width: 300px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .container_contact_form .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border-radius: 8px 0 0 8px;*/
  }

  .container_contact_form .right {
    flex: 1;
    /*min-width: 350px;*/
    padding: 1rem;
    /*border-radius: 0 8px 8px 0;*/
    display: flex;
    /*align-items: center;*/
  }

  .brand-title {
    font-size: var(--size-header-h1-desktop-default);
    line-height: 0.7; /* 🔑 important */
    padding-top: 5px;
  }

  .brand-slogan {
    font-size: var(--size-header-slogan-desktop-default);
  }

  .img_sitemap {
    width: 50%;
  }
}

/* Animation smooth */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibilité : moins d’animations si l’utilisateur l’a demandé */
@media (prefers-reduced-motion: reduce) {
  .img-wrapper .overlay,
  .img-wrapper .overlay h3 {
    transition: none;
  }
}

/* Mobile/tactile : pas de hover => on montre h2 + h3 directement, sans slide */
@media (hover: none) and (pointer: coarse) {
  .img-wrapper .overlay {
    transform: none;
  }
  .img-wrapper .overlay h3 {
    opacity: 1;
    transform: none;
    max-height: 6em;
  }
}



.quote-panel.is-collapsed { display: none; }

.quote-panel {
  margin-top: 32px;
  padding: 18px 0;
  scroll-margin-top: 90px; /* utile si tu as un header fixed */
}

.quote-panel__inner {
  border-radius: var(--radius-default);
  padding: 18px;
  border: var(--border-default) solid var(--color-border-div-default);
}



.quote-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.quote-panel__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
button.quote-cta--floating {
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: var(--border-default) solid var(--color-border-div-default);
  color: var(--color-text-default);
  opacity: 0.7;
  background: var(--color-footer-background);
  height: 44px;

  /* optionnel: ombre douce */
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border-default) solid var(--color-border-div-default);
  background: var(--color-footer-background);
  opacity: 0.7;
  color: var(--color-text-default);
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 9999;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.scroll-btn:hover, .quote-cta--floating:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.scroll-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.floating-actions {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;   /* 🔥 alignement vertical parfait */
  gap: 12px;             /* espace entre les deux */
  z-index: 1000;
}

.floating-actions .quote-cta--floating {
  visibility: hidden;
  pointer-events: none;
}

body[data-page-type="circuit"] .floating-actions .quote-cta--floating {
  visibility: visible;
  pointer-events: auto;
}



/* Dark mode: ombre plus marquée */
html[data-theme="dark"] .quote-cta--floating {
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}

/* Mobile: on évite de gêner */
@media (max-width: 600px) {
  .quote-cta--floating {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
    border-radius: 14px;
  }
}



.nav-history-arrows{
  display:flex;
  gap:8px;
}

.nav-arrow{
  background:transparent;
  border:none;
  font-size:22px;
  cursor:pointer;
  opacity:.7;
}

.nav-arrow:hover{
  opacity:1;
}

.nav-arrow:disabled{
  opacity:.25;
  cursor:not-allowed;
}



.form-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.form-success-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.form-success-box {
  max-width: 560px;
  width: 100%;
  padding: 28px 24px;
  border-radius: var(--radius-default);
  border: var(--border-default) solid var(--color-border-div-default);
  background: var(--color-body-background);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.form-success-overlay.visible .form-success-box {
  transform: translateY(0) scale(1);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  background: var(--color-body-background);
  color: var(--color-text-default);
}

.form-success-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.form-success-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}





.circuits-filters{
    display:flex;
    gap:1rem;
    align-items:stretch;
    flex-wrap:wrap;
}

.circuits-filters .form-field{
    flex:1 1 280px;
    min-width:240px;
}
.no-results-box {
  padding-left: 10%;
}