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

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


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

/* 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%;
  }
}


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



/* 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;
  }
}