/* ==========================================================================
   styles.css
   Initialize.css v1.3.1 + Custom styles
   Base : Normalize.css / HTML5 Boilerplate
   ========================================================================== */


/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

/**
 * Box-sizing universel — appliqué sur html puis hérité partout.
 * Référence : https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
 */
html {
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 1em;
    line-height: 1.4;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Suppression de la marge par défaut du body */
body {
    margin: 0;
    overflow-x: hidden;
}


/* ==========================================================================
   2. HTML5 — DISPLAY
   ========================================================================== */

/* Force le rendu block des éléments HTML5 non reconnus dans les vieux IE */
details,
main,
summary {
    display: block;
}

/* Alignement vertical des médias inline */
audio,
canvas,
progress,
video {
    vertical-align: baseline;
}

/* Masque les éléments audio sans attribut controls */
audio:not([controls]) {
    display: none;
    height: 0;
}

/* Masque les éléments [hidden] et <template> dans tous les navigateurs */
[hidden],
template {
    display: none;
}


/* ==========================================================================
   3. LIENS
   ========================================================================== */

/* Supprime l'outline sur les liens actifs/survolés */
a:active,
a:hover {
    outline: 0;
}


/* ==========================================================================
   4. TYPOGRAPHIE
   ========================================================================== */

/* Uniformise le style de abbr[title] entre navigateurs */
abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted;
}

/* Correction du font-weight sur b/strong — deux passes nécessaires pour
   couvrir Safari 6.0.2 (inherit) puis Edge/Chrome/Safari 6.2+ (bolder) */
b,
strong {
    font-weight: inherit;
}

b,
strong {
    font-weight: bolder;
}

/* Italique sur dfn (non appliqué dans Safari/Chrome anciens) */
dfn {
    font-style: italic;
}

/* Corrige la taille de h1 dans les contextes section/article (FF4+, Safari, Chrome) */
h1 {
    font-size: 2em;
}

/* Reset des marges sur tous les niveaux de titre */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

/* Uniformise la taille de <small> */
small {
    font-size: 80%;
}

/* Empêche sub/sup d'affecter le line-height */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}


/* ==========================================================================
   5. CONTENU EMBARQUÉ
   ========================================================================== */

/* Corrige l'overflow sur SVG dans IE 9/10/11 */
svg:not(:root) {
    overflow: hidden;
}

/* Alignement vertical des médias (images, vidéos, SVG, iframes…) */
audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


/* ==========================================================================
   6. CONTENU DE GROUPE
   ========================================================================== */

/* Marge cohérente sur figure */
figure {
    margin: 1em 40px;
}

/**
 * Normalise le rendu de hr :
 * 1. Corrige box-sizing: border-box dans Firefox
 * 2. Corrige overflow: hidden dans IE 8/9/10/11 et Edge 12
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;

    /* Variante H5BP : règle horizontale plus élégante */
    display: block;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* Empêche les débordements dans <pre> */
pre {
    overflow: auto;
}

/* Normalise la police et la taille des éléments de code */
code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}


/* ==========================================================================
   7. FORMULAIRES
   ========================================================================== */

/**
 * Hérite de la police du document et reset des marges hétérogènes.
 * 1. Hérite la police (non appliquée par défaut dans certains navigateurs)
 * 2. Normalise les marges entre Firefox 4+, Safari et Chrome
 */
button,
input,
optgroup,
select,
textarea {
    font: inherit;
    margin: 0;
}

/* Corrige overflow: hidden sur button dans IE 8/9/10/11 */
button {
    overflow: visible;
}

/* Normalise text-transform sur button et select */
button,
select {
    text-transform: none;
}

/**
 * Rend les boutons et inputs de type submit/reset cliquables dans iOS/WebKit.
 * 1. Évite le bug Android 4.0 sur audio/video
 * 2. Corrige le style clickable dans iOS
 * 3. Uniformise le curseur
 */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

/* Remet le curseur par défaut sur les éléments désactivés */
button[disabled],
html input[disabled] {
    cursor: default;
}

/* Supprime le padding intérieur et la bordure dans Firefox 4+ */
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Restaure le style de focus dans Firefox 4+ */
button:-moz-focusring,
input:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/* Corrige le line-height forcé sur input dans Firefox 4+ */
input {
    line-height: normal;
}

/* Corrige le curseur sur les boutons spin de Chrome */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/* Corrige l'apparence searchfield dans Safari et Chrome */
input[type="search"] {
    -webkit-appearance: textfield;
}

/* Supprime le bouton d'annulation et la décoration de recherche dans Safari/Chrome */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/* Normalise border, margin et padding sur fieldset */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Corrige la couleur et le padding de legend dans IE 8/9/10/11 */
legend {
    border: 0;
    padding: 0;
}

/* Empêche le scroll horizontal sur textarea */
textarea {
    overflow: auto;
    resize: vertical;
}

/* Restaure le font-weight sur optgroup */
optgroup {
    font-weight: bold;
}


/* ==========================================================================
   8. POLICES
   ========================================================================== */

.berlin {
    font-family: 'Berlin Sans FB', sans-serif;
}


/* ==========================================================================
   9. SÉLECTION DE TEXTE
   ========================================================================== */

/* Supprime le text-shadow sur la sélection et personnalise la couleur de fond */
::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}


/* ==========================================================================
   10. BACKGROUND — BALISE HTML
   ========================================================================== */

/**
 * L'image de fond est appliquée sur <html> pour permettre le background-attachment: fixed
 * et le scroll indépendant du contenu.
 * En portrait (mobile) : image verticale, repeat-y pour couvrir la hauteur.
 * En paysage (desktop) : image horizontale plein écran, no-repeat centré.
 */
html {
    height: 100%;
    max-width: 1920px;
    margin: auto;
    box-sizing: border-box;
}

@media (orientation: portrait) {
    html {
        background: url('../img/belledonne-hero-3-portrait.jpg') no-repeat 0 0 fixed;
        /*background-size: contain;*/
        background-size: 100%;
        background-color: #191d19;
    }
}

@media (orientation: landscape) {
    html {
        background: url('../img/belledonne-hero-3-paysage.jpg') no-repeat center center fixed;
        background-size: cover;
    }
}


/* ==========================================================================
   11. SECTIONS
   ========================================================================== */

/* Chaque section occupe au minimum la hauteur du viewport */
section {
    width: 100vw;
    max-width: 1920px;
    display: block;
}

section h2 {
    font-size: 3rem;
    line-height: 3rem;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Suppression d'espaces liés à la hauteur de ligne' */
.content {
    line-height: 0;
}

.content * {
    line-height: normal;
}


/* ==========================================================================
   12. HERO
   ========================================================================== */

.hero {
    min-height: 100vh;
    height: auto;
    padding-bottom: 5rem;
    display: block;
    color: #e7e7e7;
    background-color: transparent;
}

.hero .content {
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .hero .content {
        padding-top: 15rem;
    }
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Sous-titre adaptatif avec clamp pour une fluidité entre breakpoints */
.hero .subtitle {
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 700;
    font-family: 'Berlin Sans FB', sans-serif;
    line-height: 1.381;
    letter-spacing: 0.011em;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 0.95);
    max-width: 640px;
    margin: 0 auto 50px;
}

/*
 * Style Fluidglass
 */
.badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 1rem;
}

.badge {
  color: #712004;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}


/* Bloc de présentation du trek sous les badges */

.hero .presentation {
    color: #712004;
    line-height: 1.381;
    font-family: 'Berlin Sans FB', sans-serif;
    letter-spacing: 0.011em;
    max-width: 800px;
    margin: auto;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero .presentation p {
    margin: 0;
    line-height: 1.25em;
    padding-bottom: 1rem;
}


/* ==========================================================================
   13. EFFETS BLUR (sections à fond flou)
   ========================================================================== */

/* Classe de base — blur seul sans couleur */
.blur {
    backdrop-filter: blur(20px) saturate(0.5);
}

/* Variante claire (fond blanc translucide) */
.blur-light {
    backdrop-filter: blur(20px) saturate(0.5);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

/* Variante sombre (fond noir translucide) */
.blur-dark {
    backdrop-filter: blur(20px) saturate(0.5);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}


/* ==========================================================================
   14. LAYOUT — COLONNES
   ========================================================================== */

/* Grille en colonne unique sur mobile, deux colonnes sur ≥768px */
/*.column2 {
    column-count: 1;
    column-gap: 0;
}

@media (min-width: 768px) {
    .column2 {
        column-count: 2;
        column-gap: 0;
    }
}*/

/* Conteneur : flex avec retour à la ligne automatique */
.column2 {
  display: flex;
  flex-wrap: wrap; /* clé : permet le passage en colonne unique */}

/* Chaque colonne : 50% par défaut, mais 100% minimum si l'espace manque */
.column2 .col {
  flex: 1 1 520px; /* grandit, rétrécit, base minimale de 400px */
  width: 50vw;
  max-width: 100%;
}

.column2 .col1{
  container-type: inline-size;
  container-name: colonne; /* optionnel, utile si tu as plusieurs conteneurs */
}

/* Sur l'enfant, déclenché quand .column2 > 50vw */
@container colonne (min-width: 50vw) {
  .column2 .col1 {
    text-align: center;
  }
  .column2 .col1>* {
    max-width: 50vw;
    margin: auto;
  }
  .column2 .col1 .title {
    max-width: 95vw;
  }
}


@media (max-width: 768px) {
    .map .column2 .col1 p {
        max-width: 90vw;
    }
}


/* ==========================================================================
   15. CARTE / MAP PREVIEW
   ========================================================================== */

section.map {
    min-height: 0;
    text-align: center;
}

.map .title {
    text-align: center;
    padding-bottom: 1rem;
    color: #ff6540;
    font-size: 28px;
    font-family: 'Berlin Sans FB', sans-serif;
}

/* Bloc texte de la carte — pleine largeur sur mobile */
.map .text {
    text-align: center;
    vertical-align: middle;
    position: relative;
    top: 0;
    color: #fff;
    margin: auto;
    padding: 1rem;
    width: 100vw;
}

.map .text p {
    padding-bottom: 1rem;
}

/* Aperçu de la carte — carré adaptatif */
.map-preview {
    width: 100vw;
    height: 100vw;
    transition: transform 0.3s ease;
    max-width: 960px;
    max-height: 960px;
}

.map-img p {
    text-align: center;
    color: #fff;
    width: 50%;
    margin: auto;
}

@media (min-width: 768px) {
    .map .text {
        vertical-align: middle;
        position: relative;
        color: #fff;
        left: 0;
    }

    .map .title {
        padding-bottom: 2rem;
        font-size: 48px;
    }

    .map .text p {
      max-width: 35vw;
        margin: auto;
        line-height: 1.5rem;
        font-size: 24px;
    }

    .map-preview {
        width: 50vw;
        height: 50vw;
    }
}

.map img {
    object-fit: cover;
}


/* ==========================================================================
   16. GALERIE D'ARGUMENTS (highlights)
   ========================================================================== */

.gallery-section {
    padding: 0;
    min-height: 0;
}

/* Conteneur des vignettes — inline-block pour coller les éléments */
#arguments {
    margin: auto;
    width: auto;
    display: inline-block;
    position: relative;
    margin-bottom: -5px;
}

/* Vignette de base — quart de viewport sur desktop */
.argument {
    width: 25vw;
    height: 25vw;
    max-height: 480px;
    float: left;
    position: relative;
    text-align: center;
    margin: 0;
    padding: 0;
    max-width: 480px;
}

.argument.wide {
    width: 50vw;
}

.argument.maxwide {
    width: 100vw;
    max-width: 1920px;
    max-height: 480px;
}

/* Image de fond de la vignette */
.argument img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Légende superposée en bas de vignette */
.argument>p, .argument>figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1rem;
    color: white;
    font-weight: bolder;
    transform: translateY(0);
}

/* Sur mobile : demi-largeur */
@media (max-width: 768px) {
    .argument {
        width: 50vw;
        height: 33vw;
        margin: 0;
        padding: 0;
    }

    .argument.wide,
    .argument.maxwide {
        width: 100vw;
    }
}


/* ==========================================================================
   17. ITINÉRAIRE — JOURS
   ========================================================================== */

.itinerary {
    padding-bottom: 2rem;
}

/* Liste des étapes — centrée avec largeur maximale */
.itinerary-list {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

/* Ligne jour — flex avec espacement et alignement baseline */
.day-row {
    display: flex;
    position: relative;
    gap: 0;
    padding: 1rem 0;
    align-items: baseline;
}

/* Supprime la bordure et remonte la marge sur le dernier jour */
.day-row:last-child {
    padding-bottom: 0;
    margin-bottom: -150px;
}

.day-row:last-child .day-text {
    border: none;
}

/* Numéro de jour — accent coloré */
.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Berlin Sans FB', sans-serif;
    color: #ffbd40;
    min-width: 80px;
    position: absolute;
    top: -25px;
    left: 37vw;
    text-shadow: 1px 2px rgba(25, 0, 0, 0.8);
}

/* Contenu texte du jour */
.day-text {
    text-align: left;
    position: relative;
}
.day-text p {
    line-height: 1.375rem;
}

.day-text h3 {
    color: #ff6540;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Berlin Sans FB', sans-serif;
    text-shadow: 1px 2px rgba(25, 0, 0, 0.8);
}

.day-text-wrapper {
    position: relative;
    padding: 0 25px 60px;
}

.day-text ul {
    list-style: square;
}

.day-text li {
    margin-bottom: 1rem;
}

/* Sur desktop : mise en page avancée avec ligne verticale pointillée */
@media (min-width: 768px) {
    .itinerary-list {
        padding: 10rem 2rem 2rem;
    }

    .day-row {
        gap: 2rem;
    }

    .day-number {
        position: relative;
        top: -39px;
        left: -19px;
        color: #ff6540;
    }

    .day-text {
        border-left: 4px dotted #ff2f2f;
        padding-left: 100px;
        left: -100px;
    }

    .day-text-wrapper {
        top: -175px;
        padding: 0 25px 60px;
    }

    /* Tronque le deuxième jour quand la liste est fermée */
    .itinerary-list.closed .day-row:nth-child(2) .day-text {
        max-height: 130px;
    }

    .itinerary-list.opened .day-row:nth-child(2) .day-text {
        max-height: none;
    }
}


/* ==========================================================================
   18. READ MORE (accordion texte)
   ========================================================================== */

/* Groupe de jours repliable */
#programme details {
  margin: 2rem 0;

    max-width: 820px;
    position: relative;
    left: 16px;
    top: -80px;

    transition: max-height 1s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 40px;
}

#programme summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    padding: 1rem;
    background: rgba(255,101,64,0.1);
    border-radius: 8px;
    outline: none; /* enlève le focus par défaut */

    top: 20px;
    left: -16px;
    position: relative;
    max-width: 60vw;
    margin: auto;
    margin-bottom: 4rem;
}

#programme summary {
  color: #e9e9e9;
  background: rgb(106 171 211 / 22%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#programme summary:hover {
  background: rgb(45 158 241 / 25%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}


@media (min-width: 768px) {

    #programme summary {
        max-width: 625px;
        top: -180px;
        left: 0;
        margin-bottom: 0;
    }
}

#programme summary:focus {
  outline: 2px solid #ff6540;
  outline-offset: 2px;
}

/* Animation du contenu */

#programme details[open] {
    max-height: 8000px;
}

#programme details .day-text-wrapper {
    visibility: 0;
    max-height: 0;
}

#programme details[open] .day-text-wrapper {
    visibility: 1;
    max-height: 100%;
}

/*#programme details summary + *, */#programme details .day-text-wrapper {
  animation: slideUp 1s ease;
}
/*#programme details[open] summary + *,*/ #programme details[open] .day-text-wrapper {
  animation: slideDown 1s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 5000px; /* assez grand pour tout le contenu */
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 5000px; /* assez grand pour tout le contenu */
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
}

/* Fluidité des jours à l'intérieur */
#programme details li {
  /*animation: none; /* pas d'animation supplémentaire */*/
  margin: 0.5rem 0;
}

#programme summary::-webkit-details-marker {
  display: none;
}

#programme .toggle-icon {
  float: right;
  transition: transform 0.5s ease;
}

#programme details[open] .toggle-icon {
  transform: rotate(180deg);
}

/* Garde le style des jours dans details */
#programme details li {
  margin-left: -1rem; /* recentre */
}

#programme .contact-cta {
    top: -100px;
}

/* ==========================================================================
   19. SECTION PRÉREQUIS / NIVEAU
   ========================================================================== */

.requirement-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0rem 2rem 2rem 2rem;
}

/* Ligne de prérequis — icône + texte côte à côte */
.level-row {
    display: flex;
    position: relative;
    gap: 2rem;
    padding: 6rem 0 1rem 0;
    align-items: baseline;
}

.level-icon {
    position: absolute;
    font-size: 5rem;
    top: -10px;
    left: -12px;
}

.level-text {
    text-align: left;
    padding-bottom: 0;
}

.level-text h3 {
    color: #ff6540;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 1px 2px rgba(25, 0, 0, 0.8);
    font-family: 'Berlin Sans FB', sans-serif;
    margin-bottom: 1.375rem;
}

.level-text dd {
    margin: 0;
}

.level-text p {
    line-height: 1.375rem;
    margin: 0;
    padding-bottom: 1rem;
}

/* Sur desktop : mise en page avancée avec ligne verticale pointillée */
@media (min-width: 768px) {

  /* Ligne de prérequis — icône + texte côte à côte */
  .level-row {
      padding: 0;
  }

  .level-icon {
      font-size: 5rem;
      position: relative;
      top: 2.5rem;
      left: 0;
  }

}


/* ==========================================================================
   20. CTA — BOUTON D'APPEL À L'ACTION
   ========================================================================== */

.cta-button {
    display: inline-block;
    background: #712004;
    color: white;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

.contact-cta {
    position: relative;
    z-index: 100;
    margin: 3rem 5rem 0 5rem;
    text-align: center;
    padding-bottom: 3rem;
}


/* ==========================================================================
   21. NAVIGATION PRINCIPALE
   ========================================================================== */

/* Barre de navigation fixe en haut à droite */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    width: 100vw;
}

/* Liens de navigation alignés à droite */
.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    float: right;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}


/* ==========================================================================
   22. BURGER MENU (mobile)
   ========================================================================== */

/* Bouton hamburger — masqué sur desktop */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* Animation des traits vers une croix */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Panneau de navigation mobile — slide depuis la droite */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
}


/* ==========================================================================
   23. IMAGE PLEINE LARGEUR
   ========================================================================== */

.full-width-image {
    background-size: cover;
    max-width: 100vw;
}

.full-width-image img {
    object-fit: cover;
    max-width: 100vw;
}


/* ==========================================================================
   24. FOOTER
   ========================================================================== */

footer {
    position: relative;
  padding: 2rem;
  color: #888;
  background: #222;
  text-align: center;
}

#silhouettes {
    position: absolute;
    bottom: 0;
    left: 50px;
    z-index: 100;
}


/* ==========================================================================
   25. UTILITAIRES
   ========================================================================== */

/* Positionne un élément en fixed (helper class) */
.fixed {
    position: fixed;
}

/* FAQ — Accordéon simple */
.faq-question {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s ease;

    position: relative;
    padding-right: 2rem; /* espace pour la flèche */
}

.faq-arrow {
  position: absolute;
  right: 0;
  top: 35px;
  /*transform: translateY(-50%) rotate(0deg);*/
  transform: rotate(0deg);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ff6540; /* couleur de ta thématique */
  transition: transform 0.3s ease;
}

.faq-question.active .faq-arrow {
  /*transform: translateY(-50%) rotate(180deg);*/
  transform: rotate(180deg); /* rotation vers le bas */
}

/* Mobile : flèche un peu plus grande */
@media (max-width: 768px) {
  .faq-question {
    padding-right: 2.5rem;
  }
}

.faq-question:hover {
  color: #ff6540;
}

.faq-question.active {
  color: #ff6540;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.faq-answer.active {
  max-height: 500px; /* assez pour la réponse la plus longue */
  opacity: 1;
}

/* Menu sticky — Navigation sections */
.sticky-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  display: none; /* masqué par défaut */
}

/* Logo sticky menu */
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex-shrink: 0; /* n'est jamais écrasé */
}

.logo-link img {
  width: 24px;
  height: 24px;
  transition: filter 0.2s ease;
}

.logo-link:hover img {
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.5));
}

/* Mobile : logo un peu plus grand */
@media (max-width: 768px) {
  .logo-link img {
    width: 20px;
    height: 20px;
  }
}

.sticky-menu.active {
  display: flex;
}

.sticky-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  padding-bottom: 0;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.sticky-menu a.menu-link:hover,
.sticky-menu a.menu-link.active {
  color: white;
  background: #ff6540;
}

.cta-sticky {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1rem !important;
}


/* Mobile : plus compact */
@media (max-width: 768px) {
  .sticky-menu {
    padding: 0.6rem 1rem;
  }
  
  .sticky-menu a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Scroll fluide vers les ancres */
html {
  scroll-behavior: smooth;
}

/* Optionnel : compenser la hauteur du menu sticky */
.sticky-menu {
  scroll-margin-top: 80px; /* hauteur de ton menu */
}

/* Rend le contenu du contenu masqqué non sélectionnable */
[aria-hidden="true"] a[href],
[aria-hidden="true"] button,
[aria-hidden="true"] input,
[aria-hidden="true"] [tabindex],
[aria-hidden="true"] [contenteditable] {
  display: none !important; /* ou visibility: hidden */
}

/* Animation des images à l'apparition */
.anim-on-scroll img {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* ↑ timing + easing moderne */
}

.anim-on-scroll.in-view img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.transition-queue-index-0 img {
  transition-delay: 0.125s;
}

.transition-queue-index-1 img {
  transition-delay: 0.25s;
}

.transition-queue-index-2 img {
  transition-delay: 0.375s;
}

.transition-queue-index-3 img {
  transition-delay: 0.5s;
}

/* Hover badges : léger soulèvement */
.badge {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Liens jours : couleur progressive */
.day-number:hover {
  color: #ff8a65;
  text-shadow: 0 2px 8px rgba(255,101,64,0.3);
}

/* Icônes qui “s’illuminent” au scroll */
.level-icon {
  filter: grayscale(1);
  transition: all 0.6s ease;
}

.level-icon.anim-icon-on-scroll {
  opacity: 0.7;
  transform: scale(0.8) translateY(30px);
  transition-delay: 0.125s;
}

.level-icon.anim-icon-on-scroll.in-view {
  filter: grayscale(0);
  text-shadow: 0 0 5px currentColor;
  opacity: 1;
  transform: scale(1) translateY(0);
}


/* ==========================================================================
   26. HOMEPAGE
   ========================================================================== */

#departs #arguments {
    padding-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

/* --- TREK CARDS (Homepage) --- */
.trek-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trek-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 101, 64, 0.5);
}

.trek-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trek-image-wrapper {
  position: relative;
  height: 250px;
}

.trek-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trek-date-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ff6540;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.trek-card figcaption {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.trek-card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.4rem;
}

.trek-summary {
  color: #ff6540;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem !important;
}

/* Bouton variante contour */
.cta-button.outline {
  background: transparent;
  border: 2px solid #ff6540;
  color: #ff6540;
  margin: auto; /* Pousse le bouton tout en bas de la carte */
  align-self: flex-start;
}

.trek-card:hover .cta-button.outline {
  background: #ff6540;
  color: #fff;
}

.profil-img {
    display: flex;
}

.profil-img img {
    margin: auto;
}
