/* ! RÈGLES POUR GRANDS FORMATS */

@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) {

  
  .hero-content {
    max-width: 45%;
  }

  .hero-text {
    width: 100%;
    
  }


  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }


  
  .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.8; /* meilleure lisibilité */
    
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.95),
      0 3px 8px rgba(0, 0, 0, 0.85),
      0 8px 24px rgba(0, 0, 0, 0.7);
  }

  .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;
    font-size: 2rem; /* taille de texte plus fine */
  }


  .program-carousel {
    margin-bottom: 40px;
  }


  

  .parallax-header .overlay h1 {
    font-size: 3rem;
  }
  .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 */
    
    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%;
  }

  .program-carousel-panel[data-program-panel="map"] {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    position: relative;
  }

  .program-map-follower {
    width: 100%;
    min-height: 520px;
  }

  .end_circuit {
    height: 50vh;
    height: 50dvh;
  }

  #map {
    width: 100%;
    height: 520px;
    min-height: 520px;
  }
}

@media (min-width: 769px) {
  .program-carousel-panel[data-program-panel="map"] {
    display: block;
    position: relative;
    min-height: 0;
  }

  .program-map-follower {
    display: block;
    position: sticky;
    top: 50px;
    width: 100%;
    height: calc(100vh);
    min-height: 520px;
    max-height: calc(100vh - 40px);
  }

  .program-map-follower #map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
  }

  


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


  .circuits-wrapper.circuit {
   display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    transition: opacity 0.3s ease;
  }

  .circuits-wrapper.home {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: 1200px;
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  /* Première ligne : 3 vignettes */
  .circuits-wrapper.home > .circuit-card:nth-child(1),
  .circuits-wrapper.home > .circuit-card:nth-child(2),
  .circuits-wrapper.home > .circuit-card:nth-child(3) {
    grid-column: span 4;
  }

  /* Deuxième ligne : 2 vignettes plus grandes */
  .circuits-wrapper.home > .circuit-card:nth-child(4),
  .circuits-wrapper.home > .circuit-card:nth-child(5) {
    grid-column: span 6;
  }

  /* On annule le style mobile de la 3e grande vignette */
  .circuits-wrapper.home > .circuit-card:nth-child(1) .img-wrapper ,
  .circuits-wrapper.home > .circuit-card:nth-child(2) .img-wrapper ,
  .circuits-wrapper.home > .circuit-card:nth-child(3) .img-wrapper {
    aspect-ratio: 4 / 3;
  }

  /* Les deux vignettes du bas peuvent être un peu plus panoramiques */
  .circuits-wrapper.home > .circuit-card:nth-child(4) .img-wrapper,
  .circuits-wrapper.home > .circuit-card:nth-child(5) .img-wrapper {
    aspect-ratio: 4 / 3;
  }


  .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;
  }


  
    
    .circuit-intro-pricing {
        padding: 2.5rem 2rem 3rem;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 3rem;
        align-items: start;
    }

    .circuit-price-card {
        max-width: none;
        margin: 0;
        position: sticky;
        top: 5.5rem;
    }

    .circuit-summary-card {
        padding: 1.8rem;
        overflow: hidden;
    }

    .circuit-summary-tabs {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .circuit-summary-tab {
        padding: 0.75rem 1rem;
        border: 0;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: var(--color-text-default);
        font-family: inherit;
        font-size: 0.95rem;
        cursor: pointer;
        opacity: 0.65;
        transition: opacity 0.2s ease, border-color 0.2s ease;
    }

    .circuit-summary-tab:hover,
    .circuit-summary-tab.is-active {
        opacity: 1;
        border-bottom-color: rgba(230, 200, 150, 0.95);
    }

    .circuit-summary-track {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        overflow: visible;
        scroll-snap-type: none;
    }

    .circuit-summary-panel {
      grid-column: 1;
      grid-row: 1;

      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: stretch;

      width: 100%;
      min-height: 100%;

      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;

      opacity: 0;
      visibility: hidden;
      pointer-events: none;

      transition:
        opacity 0.82s ease,
        visibility 0s linear 0.82s;
  }

    .circuit-summary-panel.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
          opacity 0.82s ease,
          visibility 0s linear 0s;
    }

    .circuit-info-content {
        width: 100%;
    }

    .circuit-summary-dots {
        display: none;
    }



  

  
  .program-mobile-nav {
        display: none;
    }

    .program-carousel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        gap: 2rem;

        overflow: visible;
        scroll-snap-type: none;
    }

    .program-carousel-panel {
        padding: 0;
        scroll-snap-align: none;
    }

    .program-summary-panel {
        display: none;
    }

    .program-carousel [data-program-panel="map"] {
      position: sticky;
      top: var(--header-height, 48px);
      height: calc(100vh - var(--header-height, 48px));
    }

    .program-carousel [data-program-panel="details"] {
        grid-column: 2;
        grid-row: 1;
    }

    .program-carousel [data-program-panel="map"] #map {
        width: 100%;
        height: 100%;
        min-height: 100%;
    }

    .hero-img {
        object-position:
            var(--hero-focus-x-desktop, 50%)
            var(--hero-focus-y-desktop, 50%);
    }
    

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

      

}








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



/* Tablette paysage / petit laptop */
@media (min-width: 1024px) {
  /*
  .img-wrapper .overlay p.main_info {
    font-size: 1rem;
  }
    */

  .img-wrapper .overlay p span.main_title_style {
    font-size: 1.4rem;
  }

  .img-wrapper .overlay p.secundary_info {
    font-size: 0.95rem;
  }
}



@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 */
    
    line-height: 1.4;
  }

  .intro p {

    font-size: 1.2rem;
  }
  .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: 10%;
    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 */
  /*}
  */
}












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



@media (hover: hover) and (pointer: fine) {
  .img-wrapper .overlay p.secundary_info {
    display: block;
    font-weight: normal;
    font-size: 1rem;

    opacity: 0;
    transform: translateY(12px);
    max-height: 0;
    overflow: hidden;

    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      max-height 0.35s ease;
  }

  .circuit-card:hover .overlay p.secundary_info,
  .article-card:hover .overlay p.secundary_info,
  .img-wrapper:hover .overlay p.secundary_info {
    opacity: 1;
    transform: translateY(0);
    max-height: 6em;
  }
}





























/* =====================
   💻 BREAKPOINTS RESPONSIVES
   ===================== */




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
















