/*# HEADER LIVRET + GESTIONNAIRE — RÉÉCRITURE PROPRE (Header v1)
# Scope body : .node--type-livret, .node--type-livret-code,
#              .page-view-informations-pratiques (3 sélecteurs, l'un des 3 est posé).
# Menu : .menu--livret (livret) OU .menu--reservations (gestionnaire).
# Gestionnaire = logo seul (pas de <p> de marque).
# Livret = logo + <p><a> nom de marque.
# Règle : structure (dimensions/layout) -> livret.css ; couleurs -> colors.css.

## ======================================================================
## FICHIER 1 : livret.css  (STRUCTURE & LAYOUT uniquement)
## À coller en tête de livret.css (section header).
## ======================================================================*/

/* ================================================================
   HEADER LIVRET / GESTIONNAIRE — STRUCTURE
   ================================================================ */

/* --- Navbar : padding compact --- */
.node--type-livret #navbar-main,
.node--type-livret-code #navbar-main,
.page-view-informations-pratiques #navbar-main {
  padding: 0.6rem 1rem;
  z-index: 1040;
}

/* --- Logo --- */
.node--type-livret #navbar-main .navbar-brand img,
.node--type-livret-code #navbar-main .navbar-brand img,
.page-view-informations-pratiques #navbar-main .navbar-brand img {
  height: 56px;
  width: auto;
}

/* --- Hamburger : taille & forme (structure) --- */
.node--type-livret #navbar-main .navbar-toggler,
.node--type-livret-code #navbar-main .navbar-toggler,
.page-view-informations-pratiques #navbar-main .navbar-toggler {
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  padding: 8px 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: inherit;  
}
.node--type-livret #navbar-main .navbar-toggler-icon,
.node--type-livret-code #navbar-main .navbar-toggler-icon,
.page-view-informations-pratiques #navbar-main .navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background-size: 100% 100%;
  transition: transform 0.3s ease;
}
.node--type-livret #navbar-main .navbar-toggler:hover .navbar-toggler-icon,
.node--type-livret-code #navbar-main .navbar-toggler:hover .navbar-toggler-icon,
.page-view-informations-pratiques #navbar-main .navbar-toggler:hover .navbar-toggler-icon {
  transform: scale(1.1);
}

@media (min-width: 992px) {
.node--type-livret #navbar-main .navbar-toggler-icon,
.node--type-livret #navbar-main .navbar-toggler, 
.node--type-livret-code #navbar-main .navbar-toggler,
.navbar-expand-lg .navbar-toggler {
        display: none;
    }
}
/* ================================================================
   BRAND SPLASH — logo + nom (mobile : empilé, desktop : en ligne)
   Le <p><a> n'existe que sur le livret ; le gestionnaire a le logo seul.
   ================================================================ */
@media (max-width: 991.98px) {
  .node--type-livret #navbar-main .field--name-body,
  .node--type-livret-code #navbar-main .field--name-body,
  .page-view-informations-pratiques #navbar-main .field--name-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
  }
  .node--type-livret #navbar-main .navbar-brand,
  .node--type-livret-code #navbar-main .navbar-brand,
  .page-view-informations-pratiques #navbar-main .navbar-brand {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  .node--type-livret #navbar-main .field--name-body p,
  .node--type-livret-code #navbar-main .field--name-body p,
  .page-view-informations-pratiques #navbar-main .field--name-body p {
    margin: 0;
    text-align: center;
  }
  .node--type-livret #navbar-main .field--name-body p a,
  .node--type-livret-code #navbar-main .field--name-body p a,
  .page-view-informations-pratiques #navbar-main .field--name-body p a {
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
  }
}
@media (min-width: 992px) {
  .node--type-livret #navbar-main .field--name-body,
  .node--type-livret-code #navbar-main .field--name-body,
  .page-view-informations-pratiques #navbar-main .field--name-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .node--type-livret #navbar-main .field--name-body p,
  .node--type-livret-code #navbar-main .field--name-body p,
  .page-view-informations-pratiques #navbar-main .field--name-body p {
    margin: 0;
  }
  .node--type-livret #navbar-main .field--name-body p a,
  .node--type-livret-code #navbar-main .field--name-body p a,
  .page-view-informations-pratiques #navbar-main .field--name-body p a {
    font-size: 1.4rem;
  }
}

/* ================================================================
   DRAWER PLEIN ÉCRAN (mobile) — structure
   ================================================================ */
@media (max-width: 991.98px) {
  .node--type-livret #navbar-main .navbar-collapse,
  .node--type-livret-code #navbar-main .navbar-collapse,
  .page-view-informations-pratiques #navbar-main .navbar-collapse {
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    padding: 96px 1.25rem 2rem;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
  }
  .node--type-livret #navbar-main .navbar-collapse.show,
  .node--type-livret-code #navbar-main .navbar-collapse.show,
  .page-view-informations-pratiques #navbar-main .navbar-collapse.show {
    display: flex;
  }

  .node--type-livret #navbar-main .menu--livret .nav,
  .node--type-livret-code #navbar-main .menu--livret .nav,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav,
  .node--type-livret #navbar-main .menu--reservations .nav,
  .node--type-livret-code #navbar-main .menu--reservations .nav,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    width: 100%;
  }
  .node--type-livret #navbar-main .menu--livret .nav-item,
  .node--type-livret-code #navbar-main .menu--livret .nav-item,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav-item,
  .node--type-livret #navbar-main .menu--reservations .nav-item,
  .node--type-livret-code #navbar-main .menu--reservations .nav-item,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav-item {
    width: 100%;
  }

  .node--type-livret #navbar-main .menu--livret .nav-link,
  .node--type-livret-code #navbar-main .menu--livret .nav-link,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav-link,
  .node--type-livret #navbar-main .menu--reservations .nav-link,
  .node--type-livret-code #navbar-main .menu--reservations .nav-link,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border-width: 2px;
    border-style: solid;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .node--type-livret #navbar-main .menu--livret .nav-link:hover,
  .node--type-livret-code #navbar-main .menu--livret .nav-link:hover,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav-link:hover,
  .node--type-livret #navbar-main .menu--reservations .nav-link:hover,
  .node--type-livret-code #navbar-main .menu--reservations .nav-link:hover,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav-link:hover {
    transform: translateX(4px);
  }
  .node--type-livret #navbar-main .menu--livret .nav-link:active,
  .node--type-livret-code #navbar-main .menu--livret .nav-link:active,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav-link:active,
  .node--type-livret #navbar-main .menu--reservations .nav-link:active,
  .node--type-livret-code #navbar-main .menu--reservations .nav-link:active,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav-link:active {
    transform: scale(0.98);
  }
}

/* --- Desktop : menu en ligne --- */
@media (min-width: 992px) {
  .node--type-livret #navbar-main .menu--livret .nav,
  .node--type-livret-code #navbar-main .menu--livret .nav,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav,
  .node--type-livret #navbar-main .menu--reservations .nav,
  .node--type-livret-code #navbar-main .menu--reservations .nav,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }
  .node--type-livret #navbar-main .menu--livret .nav-link,
  .node--type-livret-code #navbar-main .menu--livret .nav-link,
  .page-view-informations-pratiques #navbar-main .menu--livret .nav-link,
  .node--type-livret #navbar-main .menu--reservations .nav-link,
  .node--type-livret-code #navbar-main .menu--reservations .nav-link,
  .page-view-informations-pratiques #navbar-main .menu--reservations .nav-link {
    padding: 0.6rem 1.1rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: none;
    background-color: transparent;
  }
}


## ======================================================================
## LE DÉGRADÉ ANIMÉ, expliqué (pour que tu comprennes le code)
## ======================================================================
# Un dégradé "animé" = UN SEUL gradient, plus large que la boîte,
# qu'on DÉPLACE avec background-position.
#
#   background-image: linear-gradient(90deg, VERT 0%, VERT 50%, BLANC 50%, BLANC 100%);
#   background-size: 200% 200%;   <- le gradient fait 2x la boîte
#   background-position: right;   <- au repos on voit la partie BLANCHE
#   :hover -> background-position: left;  <- on fait glisser, le VERT arrive
#
# La transition sur background-position crée l'effet "le vert coule depuis la gauche".
# C'est ÇA le balayage. (Dans la partie 2 je basculais 2 gradients différents
# = effet "clac" net, pas de glissement.)

## ======================================================================
## FICHIER 1 : livret.css  (STRUCTURE)
## ======================================================================

/* --- Conteneur : grille 2 / 3 / 4 colonnes --- */
.node--type-livret-code .livret-grid,
.node--type-livret-code .livret-vue .view-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .node--type-livret-code .livret-grid,
  .node--type-livret-code .livret-vue .view-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1200px) {
  .node--type-livret-code .livret-grid,
  .node--type-livret-code .livret-vue .view-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- La tuile : structure + balayage (background-size/position) --- 
.node--type-livret-code .livret-tile,
.node--type-livret-code .livret-vue .views-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  border-radius: var(--ecdc-border-radius);
  border-width: 2px;
  border-style: solid;
  text-align: center;
  text-decoration: none;
  background-size: 220% 100%;          
  background-position: right center;  
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background-position 0.5s ease;
}*/
.node--type-livret-code .livret-tile:hover,
.node--type-livret-code .livret-vue .views-row:hover {
  transform: translateY(-6px) scale(1.02);
  background-position: left center;    /* au survol = le vert coule */
}
.node--type-livret-code .livret-tile:active,
.node--type-livret-code .livret-vue .views-row:active {
  transform: scale(0.97);
}

/* --- Icône : carré 56px (le mask est géré dans colors.css) --- */
.node--type-livret-code .livret-tile .livret-icon,
.node--type-livret-code .livret-vue .views-field-field-image img {
  width: 56px;
  height: 56px;
  transition: transform 0.25s ease;
}
.node--type-livret-code .livret-tile:hover .livret-icon,
.node--type-livret-code .livret-vue .views-row:hover .views-field-field-image img {
  transform: scale(1.12);
}

/* --- Label --- */
.node--type-livret-code .livret-tile__label,
.node--type-livret-code .livret-vue .views-field-title a {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
}

/* --- Footer CTA : structure --- */
.node--type-livret-code .livret-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}
.node--type-livret-code .livret-footer-cta p { margin: 0; font-weight: 600; }
.node--type-livret-code .livret-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border-width: 2px;
  border-style: solid;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  background-size: 220% 100%;
  background-position: left center;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              background-position 0.5s ease;
}
.node--type-livret-code .livret-cta:hover {
  transform: translateY(-3px);
  background-position: right center;
}

/* --- Conteneur : grille 2 / 3 / 4 colonnes --- */
.node--type-livret-code .livret-grid,
.node--type-livret-code .livret-vue .view-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .node--type-livret-code .livret-grid,
  .node--type-livret-code .livret-vue .view-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1200px) {
  .node--type-livret-code .livret-grid,
  .node--type-livret-code .livret-vue .view-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- La tuile : structure + balayage (background-size/position) --- */
.node--type-livret-code .livret-tile,
.node--type-livret-code .livret-vue .views-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 150px;           /* carré garanti, remplace aspect-ratio */
  padding: 1rem;
  border-radius: var(--ecdc-border-radius);
  border-width: 2px;
  border-style: solid;
  text-align: center;
  text-decoration: none;
  overflow: hidden;        /* le mot long ne déborde plus la tuile */
  background-size: 220% 100%;
  background-position: right center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background-position 0.5s ease;
}
.node--type-livret-code .livret-tile:hover,
.node--type-livret-code .livret-vue .views-row:hover {
  transform: translateY(-6px) scale(1.02);
  background-position: left center;    /* au survol = le vert coule */
}
.node--type-livret-code .livret-tile:active,
.node--type-livret-code .livret-vue .views-row:active {
  transform: scale(0.97);
}

/* --- Icône : carré 56px (le mask est géré dans colors.css) --- */
.node--type-livret-code .livret-tile .livret-icon,
.node--type-livret-code .livret-vue .views-field-field-image img {
  width: 56px;
  height: 56px;
  transition: transform 0.25s ease;
}
.node--type-livret-code .livret-tile:hover .livret-icon,
.node--type-livret-code .livret-vue .views-row:hover .views-field-field-image img {
  transform: scale(1.12);
}

/* --- Label --- */
.node--type-livret-code .livret-tile__label,
.node--type-livret-code .livret-vue .views-field-title a {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  overflow-wrap: break-word;   /* évite qu'un mot long déborde */
  max-width: 100%;
}

/* --- Footer CTA : structure --- */
.node--type-livret-code .livret-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}
.node--type-livret-code .livret-footer-cta p { margin: 0; font-weight: 600; }
.node--type-livret-code .livret-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border-width: 2px;
  border-style: solid;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  background-size: 220% 100%;
  background-position: left center;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              background-position 0.5s ease;
}
.node--type-livret-code .livret-cta:hover {
  transform: translateY(-3px);
  background-position: right center;
}

/* ================================================================
   PAGE LIVRET — CONFORT DE LECTURE (colonne centrée)
   ================================================================ */
.node--type-livret .node__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* --- Image de tête : carte centrée (JPG & SVG) --- */
.node--type-livret .field--name-field-image {
  display: block;
  margin: 0 auto 2rem;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  text-align: center;
  float: none;
}
.node--type-livret .field--name-field-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: inline-block;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.node--type-livret .field--name-field-image:hover img {
  transform: scale(1.03);
}

/* --- CAS SPÉCIAL SVG : illustration centrée, pas d'étirement --- */
.node--type-livret .field--name-field-image img[src$=".svg"] {
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  padding: 1.5rem;
}
.node--type-livret .field--name-field-image:hover img[src$=".svg"] {
  transform: scale(1.08);
}

/* --- Corps de texte --- */
.node--type-livret .field--name-body {
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: left;
}
.node--type-livret .field--name-body p {
  margin-bottom: 1.25rem;
}
.node--type-livret .field--name-body p:last-child {
  margin-bottom: 0;
}
.node--type-livret .field--name-body h2,
.node--type-livret .field--name-body h3 {
  font-size: 1.4rem;
  margin: 1.75rem 0 1rem;
}
.node--type-livret .field--name-body ul,
.node--type-livret .field--name-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.node--type-livret .field--name-body li {
  margin-bottom: 0.5rem;
}
.node--type-livret .field--name-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}

/* --- Apparition douce au chargement --- */
@keyframes ecdc-livret-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.node--type-livret .field--name-field-image {
  animation: ecdc-livret-in 0.5s ease both;
}
.node--type-livret .field--name-body {
  animation: ecdc-livret-in 0.5s ease 0.12s both;
}
@media (prefers-reduced-motion: reduce) {
  .node--type-livret .field--name-field-image,
  .node--type-livret .field--name-body {
    animation: none;
  }
}

/* --- Responsive mobile --- */
@media (max-width: 575.98px) {
  .node--type-livret .node__content {
    padding: 1rem 1rem 2.5rem;
  }
  .node--type-livret .field--name-body {
    font-size: 1rem;
  }
  .node--type-livret .field--name-field-image img {
    max-height: 280px;
  }
  .node--type-livret .field--name-field-image img[src$=".svg"] {
    max-width: 140px;
    max-height: 140px;
  }
}

/* ================================================================
   VUE CATÉGORIE LIVRET — liste des sous-pages (view-id-informations_pratiques)
   Page de catégorie = liste de cartes "image + titre" menant aux pages
   enfants (node--type-livret), filtrées par la taxonomie "livret".
   Scope : .page-view-informations-pratiques.
   Structure ici ; couleurs/dégradés/filtres -> colors.css.
   ================================================================ */

/* --- Conteneur : grille responsive (le .row Bootstrap est neutralisé) --- */
.page-view-informations-pratiques .view-informations-pratiques .view-content.row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
@media (min-width: 768px) {
  .page-view-informations-pratiques .view-informations-pratiques .view-content.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}
@media (min-width: 1200px) {
  .page-view-informations-pratiques .view-informations-pratiques .view-content.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- La carte (views-row) --- */
.page-view-informations-pratiques .view-informations-pratiques .views-row {
  display: flex;
  flex-direction: column;
  border-radius: var(--ecdc-border-radius);
  border-width: 2px;
  border-style: solid;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.page-view-informations-pratiques .view-informations-pratiques .views-row:hover {
  transform: translateY(-6px);
}

/* --- Image de tête (JPG) --- */
.page-view-informations-pratiques .view-informations-pratiques .views-field-field-image {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.page-view-informations-pratiques .view-informations-pratiques .views-field-field-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.page-view-informations-pratiques .view-informations-pratiques .views-field-field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.page-view-informations-pratiques .view-informations-pratiques .views-row:hover .views-field-field-image img {
  transform: scale(1.05);
}

/* --- CAS SPÉCIAL SVG : icône centrée, pas d'étirement --- */
.page-view-informations-pratiques .view-informations-pratiques .views-field-field-image img[src$=".svg"] {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  display: block;
  margin: 1.5rem auto;
  padding: 0.5rem;
}
.page-view-informations-pratiques .view-informations-pratiques .views-row:hover .views-field-field-image img[src$=".svg"] {
  transform: scale(1.08);
}

/* --- Titre --- */
.page-view-informations-pratiques .view-informations-pratiques .views-field-title {
  display: block;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}
.page-view-informations-pratiques .view-informations-pratiques .views-field-title .field-content {
  display: block;
}
.page-view-informations-pratiques .view-informations-pratiques .views-field-title a {
  font-family: var(--ecdc-font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  overflow-wrap: break-word;
}
