*{
    font-family: 'fredoka', 'arial';
}
/* ===== Séparateur en point entre éléments "duration" ===== */
:root{
  --sep-space: 3px;
  --sep-dot-color: #9ca3af;
}

.histoires-item-duration{
  display: inline-flex;
  align-items: center;
}

/* Ajoute une puce seulement ENTRE deux .histoires-item-duration */
.histoires-item-duration + .histoires-item-duration::before{
  content: "•";
  display: inline-block;
  margin: 0 var(--sep-space);   /* marges symétriques = puce centrée */
  color: var(--sep-dot-color);
  line-height: 1;
  margin-top: 3px;
  transform: translateY(-0.06em); /* micro-alignement visuel */
}

input, textarea {
  caret-color: rgb(31,31,31); /* couleur noire (tu peux l’adapter) */
  --webkit-caret-width: 1px !important; /* non standard mais parfois utile */
}
body{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: rgb(31,31,31);
    justify-content: center;
    width: 100%;
    z-index: 1;
    letter-spacing: 0.3px;
    background-color: white;
}
.head-title{
    text-transform: capitalize;
}
.account-title{
    margin-bottom: 0 !important;
}
.logo{
    width: 180px;
    display: flex;
    outline: transparent;
    margin-bottom: 14px;
}
.logo img{
    margin: 0;
}
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 3px;
    padding: 0;
    border-radius: 5px;
    margin: 0 0 10px 0;
    color: rgb(106,106,106);
}
.breadcrumb li {
    font-size: 0.85rem;
    font-weight: 380;
    display: inline;
    text-transform: lowercase;
}

.breadcrumb li a {
    text-decoration: none;
    color: rgb(106,106,106);
}
.breadcrumb li::after {
    content: '/'; 
    margin-left: 3px;
    color: rgb(106,106,106);
}
.breadcrumb li:last-child::after {
    content: '';
}

/* Dernier élément en gras (même si c'est un lien) */
.breadcrumb li:last-child,
.breadcrumb li:last-child a {
    font-weight: 450;
    color: #1f1f1f;
}

/*═══════════════════════════════════════════════════════╗
║                        @header                         ║
╠════════════════════════════════════════════════════════*/

header{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  width:100%;
  top:0;
  position:sticky;
  background-color:#fff;
  left:0;
  box-sizing:border-box;
  z-index:1000;
  border-bottom: 1px solid rgb(221,221,221);
  /* box-shadow:rgba(235,235,235,1) 0 1px 1px 0, rgba(235,235,235,1) 0 1px 1px 1px; */
}

.header-container{
  display:flex;
  align-items:center;
  width:100%;
  height:69.5px;
  padding:0 20px;
  box-sizing:border-box;
  max-width:calc(1100px - 20px);
  position:relative;
  justify-content:flex-start;
}

.header-login{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:20px;
  flex:1;
  width:100%;
}

.se-connecter{
  display:flex;
  align-items:center;
  height:40px;
  min-width:148px;
  gap:15px;
  font-size:.85rem;
  font-weight:450;
  padding:0 16px;
  box-sizing:border-box;
  border-radius:30px;
  background-color:rgb(242,242,242);
  color:rgb(31,31,31);
  text-decoration:none;
  transition:.1s filter ease-in;
}

.se-connecter:hover{ filter:brightness(.97); }

.login{
  display:flex;
  align-items:center;
  font-size:1rem;
  font-weight:500;
  gap:10px;
  text-decoration:none;
  border:1px solid rgb(106,106,106);
  border-radius:30px;
  color:rgb(106,106,106);
}

.login:visited{ color:rgb(106,106,106); }

/*═══════════════════════════════════════════════════════╗
║                @header – ajouts responsive             ║
╚═══════════════════════════════════════════════════════*/

.hamburger-btn{
  display:none;
  background:none;
  border:none;
  padding:8px;
  font-size:1.2rem;
  color:rgb(31,31,31);
  cursor:pointer;
}

.logo-center{ position:relative; z-index:2; } /* garde le logo au-dessus */

.icon-btn{
  background:none;
  border:none;
  padding:6px;
  cursor:pointer;
  font-size:1.1rem;
  color:rgb(31,31,31);
}

/* Overlay recherche (on ne touche pas ton partial, on le “pose” en plein écran) */
#searchbar-wrapper{ position:relative; z-index:2001; }

body.search-open #search-form{
  display:block !important;
  position:fixed !important;
  top:0; left:0; right:0; bottom:0;
  background:#fff;
  z-index:2001;
  padding:12px 16px;
  box-sizing:border-box;
  overflow:auto;
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
}

/* Espace pour une zone “close” fictive (on ne modifie pas ton partial) */
body.search-open #search-form{ padding-top:64px; }

body.search-open::before{
  content:"";
  position:fixed;
  top:0; left:0; right:0;
  height:56px;
  background:#fff;
  box-shadow:rgba(0,0,0,.06) 0 1px 0;
  z-index:2002;
}

/* Bouton de fermeture overlay (zone cliquable en haut à gauche) */
body.search-open::after{
  content:"\f060"; /* fa-arrow-left */
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:fixed;
  z-index:2003;
  top:12px; left:14px;
  font-size:1.1rem;
  color:rgb(31,31,31);
  cursor:pointer;
}

body.search-open{ overscroll-behavior:contain; }

/*═══════════════════════════════════════════════════════╗
║                      @mobile drawer                    ║
╚═══════════════════════════════════════════════════════*/
/* Hover identique pour le bouton "Se déconnecter" dans le drawer */
.drawer-logout-form .drawer-link.as-button{
  appearance:none;
  -webkit-appearance:none;
  background:none;
  border:none;
  width:100%;
  text-align:left;
  padding:10px 12px;           /* ajuste si besoin pour matcher tes liens */
  display:flex;
  align-items:center;
  gap:10px;
  font:inherit;
  color:inherit;
  cursor:pointer;
  border-radius:0;
}

.drawer-logout-form .drawer-link.as-button:hover,
.drawer-logout-form .drawer-link.as-button:focus-visible{
  background:#f4f4f4;     /* même hover que tes autres liens */
  border-radius:9px;
}
.drawer-links .drawer-link,
.drawer-logout-form .drawer-link.as-button{
  transition: none !important;
}
.mobile-drawer{ display:none; }

.mobile-drawer-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
  z-index:4999 !important; /* au-dessus du site, sous le panel */
}

.mobile-drawer-panel{
  position:fixed; top:0; bottom:0; left:0;
  width:84%; max-width:360px;
  background:#fff;
  transform:translateX(-105%);
  transition:transform .2s ease;
  z-index:5000 !important;           /* > overlay recherche (2001) */
  box-shadow:rgba(0,0,0,.12) 2px 0 12px;
  display:flex; flex-direction:column;
}

.mobile-drawer-topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 12px;
  position:relative;
  height:64px; /* barre stable + centrage vertical du X */
}

.mobile-drawer-topbar .drawer-logo{
  order:1;
  margin-top:-5px;
  margin-left:auto;
  margin-right:auto;
}

#drawerClose{
  font-size:1.5rem;
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  line-height:1;
  z-index:1;
  padding: 5px 10px;
  border-radius: 50%;
  box-sizing: border-box;
}

#drawerClose:hover{
  background-color: rgb(244,244,244);
}

.mobile-drawer-topbar .drawer-logo img{
  height:40px;
  margin-top:-10px;
  display:block;
}

.mobile-drawer-content{
  padding:10px 8px 24px;
  overflow:auto;
}

.drawer-section-title{
  margin:14px 8px 8px;
  font-size:.85rem;
  color:rgb(106,106,106);
  font-weight:500;
  border-top:1px solid rgb(221,221,221);
  padding-top:20px;
  box-sizing:border-box;
}

/* liens & actions du drawer */
.drawer-link{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  color:rgb(31,31,31);
  text-decoration:none;
  border-radius:10px;
}

.drawer-link:hover{ background:#f4f4f4; }

.drawer-link.as-button{
  appearance:none; -webkit-appearance:none;
  background:none; border:none; font:inherit; color:inherit;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:10px;
  width:100%; text-align:left;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
/* ── Patch "slide" du menu burger ────────────────────────── */

/* 1) Laisser l'aside exister pour que l'animation de fermeture se voie */
.mobile-drawer{ display:block !important; }

/* 2) États ouverts : fond visible + panneau translaté à 0 */
body.drawer-open .mobile-drawer-backdrop{
  opacity:1;
  pointer-events:auto;
}

body.drawer-open .mobile-drawer-panel{
  transform: translateX(0);
}

/* (Optionnel mais recommandé) confort visuel + perf */
.mobile-drawer-panel{ will-change: transform; }
@media (prefers-reduced-motion: reduce){
  .mobile-drawer-backdrop,
  .mobile-drawer-panel{ transition:none !important; }
}

/* zone notifications */
.drawer-notifs{ padding:2px 4px; }

.drawer-notif-item{
  display:flex; gap:10px;
  padding:10px 8px;
  border-bottom:1px solid #eee;
  color:rgb(106,106,106);
}

.drawer-notif-item i{ color:#ccc; min-width:20px; text-align:center; }
.drawer-notif-text{ flex:1; }
.drawer-notif-time{ font-size:.75rem; color:#999; margin-top:4px; }
.drawer-notif-empty{ color:rgb(106,106,106); padding:8px 12px; }

/* zone utilisateur */
.drawer-user{
  display:flex; gap:10px; align-items:center;
  padding:10px 8px;
}

.drawer-user img{
  width:38px; height:38px;
  border-radius:50%;
  object-fit:cover;
}

.drawer-user-name{ font-weight:500; color:rgb(31,31,31); }

.drawer-user-actions a{
  display:inline-flex; align-items:center; gap:6px;
  margin-right:12px;
  color:rgb(106,106,106);
  text-decoration:none;
  font-size:.9rem;
}

/* état ouvert du drawer */
body.drawer-open .mobile-drawer{ display:block; }
body.drawer-open .mobile-drawer-backdrop{ opacity:1; pointer-events:auto; }
body.drawer-open .mobile-drawer-panel{ transform:translateX(0); }

/* Parité visuelle du bouton "Se déconnecter" avec les liens du drawer */
.drawer-logout-form{ margin:0; }
/* ——— Notifications du BURGER uniquement ——— */
#mobile-drawer .drawer-notif-item { 
  font-size: 0.9rem !important;  /* taille du texte des notifs */
  line-height: 1.35;
}

#mobile-drawer .drawer-notif-empty {
  font-size: 0.9rem !important;     /* "Aucune notification" */
}

#mobile-drawer .drawer-notif-time {
  font-size: .8rem !important;     /* horodatage */
  color: #999;
}

/* (optionnel) taille de l’icône dans chaque notif
#mobile-drawer .drawer-notif-item i { font-size: 1rem; }
*/

/* ── Variables d'espacement icône/texte du menu burger ── */
:root{
  --drawer-gap:10px;       /* espace entre icône et texte */
  --drawer-icon-box:22px;  /* largeur fixe réservée à l'icône */
  --drawer-icon-size:1rem;
}

.mobile-drawer .drawer-link{
  display:flex; align-items:center; gap:var(--drawer-gap);
}

.mobile-drawer .drawer-link i{
  font-size:var(--drawer-icon-size);
  width:var(--drawer-icon-box);
  min-width:var(--drawer-icon-box);
  text-align:center;
  line-height:1;
  margin:0;
  display:inline-block;
}

.drawer-link.as-button i{
  font-size:var(--drawer-icon-size);
  width:var(--drawer-icon-box);
  min-width:var(--drawer-icon-box);
  text-align:center;
  line-height:1;
  margin:0;
  display:inline-block;
}

/*═══════════════════════════════════════════════════════╗
║                        @responsive                      ║
╚═══════════════════════════════════════════════════════*/

/* < 970px */
@media (max-width:970px){
  .header-container{
    justify-content:flex-start !important;
    position:relative;
    height:64px; /* plus compact */
  }

  .hamburger-btn{ display:flex; align-items:center; justify-content:center; }

  /* Logo centré absolument */
  .header-container .logo.logo-center{
    position:absolute; left:50%; transform:translateX(-50%);
  }

  /* Élts envoyés dans le drawer */
  .shop-btn,
  #notificationDropdown,
  #userDropdown{ display:none !important; }

  /* Zone droite : garde Loupe + Panier */
  .header-login{
    margin-left:auto;
    gap:5px; /* version finale */
  }

  /* Masquer la barre inline, la laisser pour l’overlay */
  #searchbar-wrapper{ display:none; }

  /* === MOBILE SEARCH OVERLAY — wrapper plein largeur avec flèche === */
  body.search-open{ position:relative; }

  /* Le wrapper devient l’overlay fixe en haut */
  body.search-open #searchbar-wrapper{
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 6000 !important;           /* > drawer (5000) */
    display: block !important;
    background: #fff;
    padding: 12px 16px !important;
    padding-left: 56px !important;      /* place pour la flèche */
    box-sizing: border-box;
  }

  /* Flèche retour interactive (Font Awesome 6 Free) */
  body.search-open #searchbar-wrapper::before{
    content:"\f060";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    position:absolute;
    left:12px; top:50%;
    transform:translateY(-50%);
    width:32px; height:32px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1rem; color:rgb(31,31,31);
    background:#f2f2f2;
    box-shadow: inset 0 0 0 1px #e0e0e0;
    pointer-events:auto;
    cursor:pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
  }
  body.search-open #searchbar-wrapper:hover::before{ background:#eaeaea; }
  body.search-open #searchbar-wrapper:active::before{
    transform: translateY(-50%) scale(0.98);
    box-shadow: inset 0 0 0 1px #dadada;
  }

  /* Contenu interne en flux normal */
  body.search-open .search{
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: block !important;
    align-items: center;
    height: 40px; /* hauteur de la barre */
  }

  /* Formulaire overlay : une seule ligne, jamais de wrap */
  body.search-open #search-form{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    position: static !important;
    padding: 0 !important;
    height: auto !important;
  }

  body.search-open .search-bar{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 40px !important;
    gap: 0 !important;                 /* évite l'overflow */
    box-sizing: border-box !important;
  }

  /* Le wrapper d’input peut se rétracter (autorise le shrink) */
  body.search-open .search-input-wrapper{
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
  }

  /* L’input n’impose plus 100% et accepte le shrink */
  body.search-open .search-input{
    flex: 1 1 0 !important;
    min-width: 0 !important;            /* crucial pour iOS/Safari */
    width: auto !important;             /* écrase width:100% du partial */
    height: 40px !important;
    margin: 0 !important;
    border-radius: 30px 0 0 30px !important;
    box-sizing: border-box !important;
  }

  /* Le bouton reste compact, sans marge parasite, “soudé” à droite */
  body.search-open .search-button{
    flex: 0 0 45px !important;
    width: 45px !important;
    height: 40px !important;
    padding: 0 !important;              /* écrase padding 0 20px du partial */
    margin-left: 0 !important;          /* supprime tout décalage */
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    box-sizing: border-box !important;
  }

  /* Filets de sécurité si les classes diffèrent dans le partial */
  body.search-open #search-form input[type="search"]{
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body.search-open #search-form button[type="submit"]{
    flex: 0 0 45px !important;
    width: 45px !important;
    height: 40px !important;
    padding: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  /* Autocomplétion en pleine largeur sous le header */
  body.search-open #autocomplete-list{
    position: fixed !important;
    top: 64px; left: 0; right: 0;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    z-index: 6001 !important;           /* au-dessus de la barre */
  }

  /* On neutralise d'anciens pseudo-éléments overlay qui décalent */
  body.search-open::before,
  body.search-open::after{
    content: none !important;
  }

  /* Si le drawer était ouvert, on le masque visuellement */
  body.search-open .mobile-drawer-panel,
  body.search-open .mobile-drawer-backdrop{
    transform: translateX(-105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Affichage barre d’actions droite (sans cœur/compte) */
  .header-login > a.dropdown-toggle,
  .header-login .se-connecter{
    display:none !important;
  }
  .header-login .search-toggle{
    display:inline-flex !important;
    order:1; /* loupe à gauche du panier */
  }
  .header-login .header-cart{
    display:inline-flex !important;
    order:2; /* panier à l’extrême droite */
  }
}

/* ≥ 970px */
@media (min-width:970px){
  .search-toggle{ display:none !important; }         /* cache la loupe en desktop */
  .hamburger-btn{ display:none !important; }
  #searchbar-wrapper{
    display:block !important;        /* barre visible en desktop */
    flex: 1 1 0 !important;          /* PATCH V2: la search grandit */
    display: flex !important;        /* pour que .search prenne width:100% */
    min-width: 0 !important;         /* autorise le shrink */
  }
  .header-login{
    flex: 0 1 auto !important;       /* pas de grow, shrink autorisé */
    width: auto !important;          /* override du width:100% */
    margin-left: 0 !important;       /* #searchbar-wrapper gère l'espace */
  }
}

/*═══════════════════════════════════════════════════════╗
║                          Layout                        ║
╚═══════════════════════════════════════════════════════*/

.mini-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(1100px - 20px);
    justify-content: center;
    margin: 20px auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.formulaire h1{
    display: flex;
    margin: 0 0 10px 0;
    justify-content: center;
}

.register-link{
    display: flex;
    justify-content: center;
    font-size: 1rem;
    font-weight: 440;
}

.register-link p{
    margin-bottom: 10px;
}

.register-link a, .data a{
    color:  #2f78c5;
    font-weight: 440;
    margin: 0;
}

.form-illustration img{
  margin-bottom: -10px;
}

/* Empêche la sélection/drag d’éléments visuels */
.no-select {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto; /* autorise les clics si besoin */
}

.form-container{
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
    flex-direction: column;
    margin: 10px auto 30px;
    padding: 0;
}

.form-container.margin{
    margin-top: 10px;
}

.illustration{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    width: 150px;
    object-fit: cover;
}

/*═══════════════════════════════════════════════════════╗
║                    Formulaire / Login                  ║
╚═══════════════════════════════════════════════════════*/

.login-form {
    width: 100%;
    box-sizing: border-box;
    max-width: 410px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 30px;
    border-radius: 30px;
}

.strong{
    font-weight: 500;
    color: rgb(31,31,31);
}

/* Eyes (toggle password) */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    font-size: 18px;
    border-radius: 50%;
}
.toggle-password .fa-eye { transform: translateX(0.13px); padding: 5px 6.2px; }
.toggle-password .fa-eye-slash { transform: translateX(0.1px); padding: 5px 5px; }
.toggle-password .fa-eye,
.toggle-password .fa-eye-slash{
    border-radius: 50%;
    transition: background-color 0.2s;
}
.toggle-password .fa-eye:hover,
.toggle-password .fa-eye-slash:hover{
    background-color: rgb(238, 238, 238);
}

/* Alertes */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px 20px;
    border-radius: 9px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(-20px);
}
.alert-success.show { opacity: 1; transform: translateY(0); }
.alert-success.fade-out { opacity: 0; transform: translateY(-20px); }

/* Remember Me */
.remember-me {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: rgb(31,31,31);
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}
.delete-info{
    font-size: 0.85rem;
    font-weight: 300;
    margin: 20px 0;
    color: rgb(106,106,106);
}
.form-actions-login{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data {
    color: rgb(106,106,106);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 20px;
    text-align: center;
}
.data a{
    text-decoration: underline;
    font-weight: 500;
}

.login-button.register {
    background-color: #e76059;
    color: white;
    border: none;
    padding: 13px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.login-button.settings {
    background-color: #e76059;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.login-button.settings:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.register{
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(31,31,31);
}
.redirection{
    display: block;
    margin-top: 10px;
    font-weight: 400;
    font-size: 1rem;
}
.redirection a {
    color: rgb(31, 31, 31) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
}
.bottom{ margin-bottom: 10px; }

.form-message {
    font-size: 1rem;
    font-weight: 500;
    color: rgb(31, 31, 31);
    margin: 20px auto;
    text-align: center;
    max-width: 700px;
}
.welcome-message {
    font-weight: 400;
    color: rgb(106, 106, 106);
    margin-top: 30px;
    margin-bottom: 0;
    text-align: center;
}
.back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 400;
}
.back-link a {
    color: rgb(31, 31, 31);
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.2s;
}
.back-link a:hover { color: black; }

/*═══════════════════════════════════════════════════════╗
║                          Avatar                        ║
╚═══════════════════════════════════════════════════════*/

.profile-card {
    border-radius: 9px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
.profile-info{ display: flex; flex-direction: column; }
.profile-avatar { margin-bottom: 5px; }

.secondary{
    text-decoration: none;
    background-color: white;
    color: rgb(31,31,31);
    border: 1px solid rgb(31,31,31);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ddd;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
}
.avatar:hover { transform: scale(1.05); border-color: rgb(106,106,106); }

.profile-pseudo{ font-size: 1.3rem !important; margin-bottom: 0; }
.profile-stats{
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
}
.profile-stat-title{ font-size: 0.85rem; font-weight: 400; color: rgb(106,106,106); }
.profile-stat-number{ font-size: 1rem; }
.profile-identite{
    display: flex;
    justify-content: center;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
}
.profile-created{ font-size: 0.8rem; color: rgb(106,106,106); font-weight: 500; }
.profile-created-date{ font-weight: 300; }
.profile-stat{ display: flex; flex-direction: column; align-items: center; justify-content: center; }

.profile-actions { margin: 0 auto 10px; }
.profile-actions .btn {
    background-color: rgb(31,31,31);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.profile-actions .btn:hover { background-color: rgb(106,106,106); }

.avatar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
}
.avatar-container span{ font-weight: 440; }
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* Menu avatar (fusion des deux variantes) */
.avatar-menu {
    position: absolute;
    background-color: #fff;              /* remplace #f9f9f9 */
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 200px;
    margin-top: 10px;
    display: none;
    z-index: 1000;                       /* plus haut que 999 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}
.avatar-menu.show { display: block; }

.avatar-menu ul,
.avatar-menu-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.avatar-menu li,
.avatar-menu-item{
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}
.avatar-menu li:hover,
.avatar-menu-item:hover{
    background-color: #f2f2f2;
}
.avatar-menu-item i {
    margin-right: 10px;
    color: #333;
}

.avatar-label {
    cursor: pointer;
    display: inline-block;
    position: absolute;
    border: 1px solid rgb(221,221,221);
    padding: 10px;
    box-sizing: border-box;
    border-radius: 7px;
    font-size: 0.8rem;
}
.form-group.with-icon input[type="file"] { display: none; }

/*═══════════════════════════════════════════════════════╗
║                     Header / Icônes                    ║
╚═══════════════════════════════════════════════════════*/

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    border: 1px solid #ccc; 
}
.header-avatar-heading{
    display: flex;
    flex-direction: column;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-left: 5px;
}
.header-login i {
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    margin-top: 1px;
}

/*═══════════════════════════════════════════════════════╗
║                      Notifications                      ║
╚═══════════════════════════════════════════════════════*/

/* Ton toast inchangé */
.custom-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}
.custom-notification.fade-out {
    opacity: 0;
    bottom: 0;
}

/* ⭐ Badge notif réutilisable (déjà utilisé sur la cloche) */
.notification-dot{
    position:absolute;
    width:9px;
    height:9px;
    background:#e76059;
    border-radius:50%;
}
/* Burger menu : pas de border-bottom sur la 1re ni la dernière notif */
#drawerNotifs .drawer-notif-item { 
  border-bottom: none;
}
#drawerNotifs .drawer-notif-item:not(:first-child):not(:last-child){
  border-bottom: 1px solid rgb(221,221,221);
}

/* ⭐ Positionner le badge sur le hamburger (mobile) */
#hamburgerBtn{ position: relative; }
.notification-dot--hamburger{
    top: 2px;          /* ajuste si besoin */
    right: 2px;        /* ajuste si besoin */
}

/* ⭐ Afficher le badge sur le hamburger uniquement < 970px */
@media (min-width: 970px){
    .notification-dot--hamburger{ display: none !important; }
}

/* (optionnel sécurité) cacher le badge de la cloche en mobile s’il est rendu */
@media (max-width: 969.98px){
    #notificationDropdown .notification-dot{ display: none !important; }
}
/* Position du DOT en DESKTOP (cloche) */
@media (min-width: 970px){
  #notificationDropdown .notification-dot{
    top: 0.5px !important;   /* ajuste ici pour desktop */
    right: -7px !important;
  }
}


/*═══════════════════════════════════════════════════════╗
║                        Settings                         ║
╚═══════════════════════════════════════════════════════*/

.settings-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.settings-grid a{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 30px;
    justify-content: flex-start;
    border: 1px solid rgb(221,221,221);
    border-radius: 9px;
    align-items: center;
    text-decoration: none;
    color: rgb(31,31,31);
}
.settings-card{ display: flex; align-items: center; }
.settings-card-details h2{
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}
.settings-card-details p{
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgb(106,106,106);
}
.settings-card i{
    font-size: 2rem;
    padding: 0 30px 0 0;
    box-sizing: border-box;
    color: rgb(106,106,106);
}

/*═══════════════════════════════════════════════════════╗
║                         @search                        ║
╚═══════════════════════════════════════════════════════*/

.search {
    display: flex;
    width: 100%;
    max-width: 550px;
    margin: 0 30px;
}
.search-bar {
    display: flex;
    flex: 1;
    position: relative;
    height: 40px;
}
.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
}
.search-input {
    width: 100%;
    border: 1px solid rgb(199,199,199);
    border-radius: 30px 0 0 30px;
    padding: 10px 20px;
    font-size: 0.99rem;
    outline: none;
    box-sizing: border-box;
    font-weight: 400;
    margin: 0 !important;
    background: none;
}
.search-input:focus{
    border: 1px solid rgb(31,31,31);
}
.search-button {
    background-color: rgb(245,245,245);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    color: rgb(31,31,31);
    border: 1px solid rgb(199,199,199);
    border-left: none;
    height: 40px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-sizing: border-box;
    padding: 0 20px;
    cursor: pointer;
}
.search-button:hover {
    filter: brightness(0.97);
    background-color: rgb(245,245,245);
}

#autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid rgb(240,240,240);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
}

.suggestions-visible {
    width: 100%;
    border-radius: 12px;
    text-transform: lowercase;
    display: flex;
    align-items: center;
}
.recent-title {
    text-transform: none !important;
}

.suggestions-visible li{
    margin: 7px;
    border-radius: 12px;
}

.suggestions-visible li a{
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #1f1f1f;
    padding: 5px 7px;
}

.suggestions-visible li:hover:not(.recent-title) {
    background: #f0f0f0;
}

.suggestions-visible i{
    color: rgb(31,31,31);
    margin-left: 10px;
    margin-bottom: -2.5px;
    font-size: 0.9rem;
}
.suggestion-content {
    display: flex;
    flex-direction: column;
}
.suggestion-item i {
    width: 26px; /* taille fixe horizontale */
    min-width: 26px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-title {
    font-size: 0.9rem;
}

.highlight {
    font-weight: 400;
}

.suggestion-subtext {
    font-size: 0.85rem;
    margin-top: 1px;
    line-height: 1.2;
}

.suggestion-dans {
    font-size: 0.8rem;
    color: rgb(106,106,106);
}

.suggestion-categorie {
    font-size: 0.85rem;
    text-transform: capitalize;
}

.main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin: 20px auto 30px; 
    width: 100%;
    max-width: calc(1100px - 20px);
    gap: 25px;
    padding: 0 20px;
    box-sizing: border-box;
}

.main-parent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 20px auto; 
    width: 100%;
    max-width: calc(1100px - 20px);
    gap: 25px;
    padding: 0 20px;
    box-sizing: border-box;
}

.home {
    display: flex;
    flex: 0 0 auto; /* Taille fixe */
    width: auto;
    justify-content: flex-end;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

.notifications-list{
    border-top: 1px solid #ccc;
    border: 1px solid #ccc;
    padding: 20px;
    list-style-type: none;
    border-radius: 8px;
    margin-bottom: 10px;
}

.notifications-list:last-child{
    margin-bottom: 0;
}
.notifications-list li{
    display: flex;
    align-items: center;
    color: rgb(106, 106, 106);
}

.notifications-list i{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    font-size: 1.3rem;
    color: #ccc;
}
.shop-btn {
    /* display: inline-flex; */
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #e76059;
    border-radius: 30px;
    color: white;
    border: none;
    padding: 0 16px;
    height: 40px;
    margin-left: 30px;
    cursor: pointer;
    gap: 8px;
    transition: filter 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    text-align: center;
}
.assurance-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 70px;
    padding: 40px 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.assurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 440;
    color: #1f1f1f;
    text-align: center;
    min-width: 120px;
}

.assurance-item i {
    font-size: 24px;
    color: #1f1f1f;
}

.notification-link{
    font-weight: 440;
    color: rgb(70,100,170);
    text-decoration: none;
}
/*═══════════════════════════════════════════════════════╗
║                         @SHOP                          ║
╠════════════════════════════════════════════════════════*/
.shop-products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.shop-product-container {
    display: flex;
    column-gap: 30px;
    width: 100%;
    margin: 20px 0 30px;
    align-items: flex-start;
}
.shop-product-container-heading{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 30px;
}
.shop-product-container-body{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    column-gap: 30px;
    width: 100%;
    align-items: flex-start;
}
.shop-product-title {
    margin: 0;
    display: flex;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: left;
}

.shop-product-editor{
    font-size: 0.9rem;
    margin: 3px 0 10px;
    color: rgb(40,93,205);
}
.shop-product-editor span{
    color: rgb(31,31,31);
}
.shop-product-price {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 5px;
    color: #e76059;
}

/* ========= NOUVELLE GALLERIE ========== */

/* ========== Accordéon ========== */
.accordion-content p {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/*═══════════════════════════════════════════════════════╗
║                        @PANIER                         ║
╠════════════════════════════════════════════════════════*/

.header-cart {
    position: relative;
}

.header-cart-link {
    font-size: 1.1rem;
    color: rgb(31,31,31);
    text-decoration: none;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e76059;
    color: white;
    width: 19px;
    height: 19px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.7rem;
    margin: 0;
    font-weight: 450;
}
#cart-badge.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}
.cart-icon{
    margin-bottom: 2px !important;
    font-size: 1.1rem !important;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.1s;
}
/* Styles pour le récapitulatif du panier */
.panier-total {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 1.1em;
}

.panier-total p {
    margin: 10px 0;
}

form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.account-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(235,235,235, 1);
    box-shadow: rgba(235,235,235, 1) 0px 1px 1px 0px, rgba(235,235,235, 1) 0px 1px 1px 1px;
}

.account-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 2px solid #ddd;
}

.account-details h2 {
    margin: 0;
    font-size: 1.8em;
}

.account-details p {
    margin: 5px 0;
    color: #777;
}
.shop-btn:hover {
    filter: brightness(1.04);
}

.shop-btn:active {
    background-color: #c3423e;
    border-color: #c3423e;
    box-shadow: none;
}

.shop-btn-title {
    margin: 0;
    font-weight: 440;
    font-size: 0.85rem;
}

/*═══════════════════════════════════════════════════════╗
║                         @menu                          ║
╠════════════════════════════════════════════════════════*/

.menu {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1080px;
    padding: 0 20px;
    box-sizing: border-box; 
    align-items: center;
    justify-content: space-between;
}

.menu-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 35px;
    height: 69.5px;
}

.menu-container a {
    text-decoration: none;
}

.menu-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.menu-box i,
.menu-box span {
    color: rgb(106,106,106);
    transition: color 0.3s ease;
}

.menu-box i, .shop-btn i{
    font-size: 1.15rem;
}

.menu-box span{
    font-weight: 400;
    font-size: 0.85rem;
}

.menu-box::before {
    content: "";
    position: absolute;
    bottom: -14.5px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 9px;
    background-color: transparent;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, background-color 0.3s ease-out;
}

/* 🎯 Effet : La barre grandit subtilement avec sa couleur */
.menu-container a:hover .menu-box::before,
.page-activites .menu-container a:nth-of-type(1) .menu-box::before,
.page-coloriages .menu-container a:nth-of-type(2) .menu-box::before,
.page-jeux .menu-container a:nth-of-type(3) .menu-box::before,
.page-histoires .menu-container a:nth-of-type(4) .menu-box::before,
.page-fiches .menu-container a:nth-of-type(4) .menu-box::before,
.page-parents .menu-container a:nth-of-type(5) .menu-box::before
{
    transform: scaleX(1);
    opacity: 1;
}

/* 🎨 Couleurs associées à chaque élément */
:root {
    --color-activites: rgb(241,154,76);
    --color-coloriages: #4d91b7;
    --color-histoires: rgb(103,160,85);
    --color-jeux: rgb(85,100,190);
    --color-fiches: rgb(226,186,101);
    --color-parents: #DEABAF;
}

/* 🎯 Fonctionnement : 
   - Hover → couleur appliquée (icône, texte, barre)
   - Page active → couleur appliquée aussi */

/* 🟡 Activités */
.menu-container a:nth-of-type(1):hover .menu-box::before,
.page-activites .menu-container a:nth-of-type(1) .menu-box::before {
    background-color: var(--color-activites);
}
.menu-container a:nth-of-type(1):hover .menu-box i,
.menu-container a:nth-of-type(1):hover .menu-box span,
.page-activites .menu-container a:nth-of-type(1) .menu-box i,
.page-activites .menu-container a:nth-of-type(1) .menu-box span {
    color: var(--color-activites);
}

/* 🔵 Coloriages */
.menu-container a:nth-of-type(2):hover .menu-box::before,
.page-coloriages .menu-container a:nth-of-type(2) .menu-box::before {
    background-color: var(--color-coloriages);
}
.menu-container a:nth-of-type(2):hover .menu-box i,
.menu-container a:nth-of-type(2):hover .menu-box span,
.page-coloriages .menu-container a:nth-of-type(2) .menu-box i,
.page-coloriages .menu-container a:nth-of-type(2) .menu-box span {
    color: var(--color-coloriages);
}

/* 🟠 Jeux */
.menu-container a:nth-of-type(3):hover .menu-box::before,
.page-jeux .menu-container a:nth-of-type(3) .menu-box::before {
    background-color: var(--color-jeux);
}
.menu-container a:nth-of-type(3):hover .menu-box i,
.menu-container a:nth-of-type(3):hover .menu-box span,
.page-jeux .menu-container a:nth-of-type(3) .menu-box i,
.page-jeux .menu-container a:nth-of-type(3) .menu-box span {
    color: var(--color-jeux);
}

/* 🟢 Histoires */
.menu-container a:nth-of-type(4):hover .menu-box::before,
.page-histoires .menu-container a:nth-of-type(4) .menu-box::before {
    background-color: var(--color-histoires);
}
.menu-container a:nth-of-type(4):hover .menu-box i,
.menu-container a:nth-of-type(4):hover .menu-box span,
.page-histoires .menu-container a:nth-of-type(4) .menu-box i,
.page-histoires .menu-container a:nth-of-type(4) .menu-box span {
    color: var(--color-histoires);
}

/* 🟤 Fiches */
.menu-container a:nth-of-type(5):hover .menu-box::before,
.page-fiches .menu-container a:nth-of-type(5) .menu-box::before {
    background-color: var(--color-fiches);
}
.menu-container a:nth-of-type(5):hover .menu-box i,
.menu-container a:nth-of-type(5):hover .menu-box span,
.page-fiches .menu-container a:nth-of-type(5) .menu-box i,
.page-fiches .menu-container a:nth-of-type(5) .menu-box span {
    color: var(--color-fiches);
}

/* 🟤 Parents */
.menu-container a:nth-of-type(6):hover .menu-box::before,
.page-parents .menu-container a:nth-of-type(6) .menu-box::before {
    background-color: var(--color-parents);
}
.menu-container a:nth-of-type(6):hover .menu-box i,
.menu-container a:nth-of-type(6):hover .menu-box span,
.page-parents .menu-container a:nth-of-type(6) .menu-box i,
.page-parents .menu-container a:nth-of-type(6) .menu-box span {
    color: var(--color-parents);
}


/* ❌ Supprime toute couleur indésirable lors du clic */
.menu-container a:active {
    color: inherit !important;
}
nav.menu{
    /* si contenu > largeur, on scrolle horizontalement */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    /* pour les dégradés de bords */
    position: relative;
}

/* Empêche le rétrécissement : laisse la largeur intrinsèque totale */
.menu-container{
    flex: 0 0 auto;          /* no shrink */
    min-width: max-content;  /* s'élargit à la largeur totale du contenu */
}

/* Réduit la largeur et l’effet du dégradé */
nav.menu.is-scrollable::before,
nav.menu.is-scrollable::after {
  width: 12px; /* au lieu de 24px */
}
nav.menu.is-scrollable::before {
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0.25));
}
nav.menu.is-scrollable::after {
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0.25));
}

/* Optionnel : scrollbar discrète (laisse par défaut si tu préfères) */
nav.menu::-webkit-scrollbar{ height: 8px; }
nav.menu::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 999px; }
nav.menu::-webkit-scrollbar-track{ background: transparent; }

/* Masque la barre sur écrans tactiles (quand le swipe suffit) */
@media (hover:none) and (pointer:coarse){
    nav.menu{ scrollbar-width: none; }
    nav.menu::-webkit-scrollbar{ display:none; }
}
.separator{
    display: flex;
    width: 100%;
    height: 1px;
    background-color: rgb(235,235,235);
}

.sidebar {
    display: flex;
    flex: 0 0 30%;
    max-width: 300px;
    min-width: 300px;
    align-self: stretch;
    background-color: white;
    gap: 10px;
    align-items: flex-start;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
}

.ads{
    display: flex;
    position: sticky;
    top: 160px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    height: 600px;
    overflow: visible;
}

.ads img{
    display: flex;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}
/*═══════════════════════════════════════════════════════╗
║                        @footer                         ║
╠════════════════════════════════════════════════════════*/
.logo-footer{
    width: 160px;
    display: flex;
    outline: transparent;
    margin-bottom: 14px;
}
.logo-footer img{
    margin: 0 auto; 
}
footer{
    display: flex;
    width: 100%;
    z-index: 10;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 0;
    font-size: 0.85em;
    font-weight: 400;
    border-top: 1px solid rgba(50, 50, 93, 0.20);
}
.footer-nav{
    display: flex;
    justify-content: center;
    margin: 10px auto;
    gap: 20px;
}
footer a{
    text-decoration: none;
    color: #1f1f1f;
}
footer:visited{
    color: #1f1f1f;
}
.reseaux{
    display: flex;
    justify-content: center;
    column-gap: 15px;
    align-items: center;
}
.facebook{
    width: 30.6px;
    height: 30.6px;
    margin-right: -5px;
}
.instagram{
    width: 25px;
    height: 25px;
}
.x{
    width: 25px;
    height: 25px;
}

/*═══════════════════════════════════════════════════════╗
║                @footer — Responsive only               ║
╠════════════════════════════════════════════════════════*/

/* ≤ 1024px : ajustements très légers */
@media (max-width: 1024px){
    .logo-footer{ width: 150px; }
}

/* ≤ 768px : autoriser le wrap et resserrer légèrement les espacements */
@media (max-width: 768px){
    .logo-footer{ width: 140px; }
    .reseaux{ column-gap: 12px; }
    .footer-nav{
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ≤ 600px : réduire très légèrement la taille du texte et des icônes */
@media (max-width: 600px){
    footer{ font-size: 0.83em; } /* discret, sans impacter le desktop */
    .footer-nav{ gap: 14px; }
    .facebook{ width: 28px; height: 28px; margin-right: -4px; }
    .instagram, .x{ width: 22px; height: 22px; }
}

/* ≤ 480px : logo un peu plus petit, liens plus respirants si wrap */
@media (max-width: 480px){
    .logo-footer{ width: 128px; margin-bottom: 12px; }
    .reseaux{ column-gap: 10px; }
    .footer-nav{
        gap: 12px;           /* léger resserrement */
        row-gap: 8px;        /* si retour à la ligne */
    }
    .footer-nav a{ line-height: 1.35; }
}

/* ≤ 390px : compacter encore un peu sans changer les marges globales */
@media (max-width: 390px){
    footer{ font-size: 0.81em; }
    .logo-footer{ width: 120px; }
    .footer-nav{
        gap: 11px;
        row-gap: 8px;
    }
    .facebook{ width: 26px; height: 26px; margin-right: -3px; }
    .instagram, .x{ width: 21px; height: 21px; }
}

/* ≤ 400px : cible demandée — tout reste centré, lisible et minimaliste */
@media (max-width: 400px){
    footer{ font-size: 0.80em; }
    .logo-footer{ width: 116px; margin-bottom: 10px; }
    .reseaux{ column-gap: 9px; }
    .footer-nav{
        gap: 10px;          /* compact mais toujours respirant */
        row-gap: 8px;
    }
    .facebook{ width: 24px; height: 24px; margin-right: -2px; }
    .instagram, .x{ width: 20px; height: 20px; }
}

/*═══════════════════════════════════════════════════════╗
║                        @filters                        ║
╠════════════════════════════════════════════════════════*/

.filters{
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative; /* nécessaire pour positionner les chevrons */
    z-index: 0;         /* base pour que les chevrons passent au-dessus */
}

.filters.bottom{
    margin: 0 auto 30px;
}

.filters-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    gap: 10px;
    box-sizing: border-box;
    justify-content: center;
    background-color: white;

    /* Par défaut, on autorise le wrap naturel */
    flex-wrap: wrap;
    overflow: hidden; /* évite un scroll inutile quand ça tient sur une ligne */
}

/* Quand on bascule en mode scroll (détecté en JS) */
.filters-container.is-scrollable{
    flex-wrap: nowrap;              /* force une seule ligne */
    overflow-x: auto;               /* scroll horizontal */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;  /* confort au stop */
}

/* Masquer la barre sur WebKit, garder accessible clavier/souris */
.filters-container.is-scrollable::-webkit-scrollbar{
    display: none;
}

.filter-item {
    display: flex;
    width: auto;
    align-items: center;
    box-sizing: border-box;
    font-size: 0.91rem;
    font-weight: 490;
    border-radius: 30px;
    color: rgb(31,31,31);
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    gap: 10px;
    padding: 7px 14px;
    background-color: rgb(242,242,242);
    margin: 0;
    transition: filter 0.1s ease-in;

    /* En mode scroller, chaque item garde sa largeur */
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.filter-item:hover {
    filter: brightness(0.97);
}

/* Chevrons injectés en JS */
.filters-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    user-select: none;
    transition: transform .12s ease, opacity .12s ease, background .12s ease;
}

.filters-arrow:hover{ transform: translateY(-50%) scale(1.05); }
.filters-arrow:active{ transform: translateY(-50%) scale(0.98); }

.filters-arrow.left{ left: 6px; }
.filters-arrow.right{ right: 6px; }

.filters-arrow[disabled]{
    opacity: 0.35;
    pointer-events: none;
}

/* Petites sécurités pour que les chevrons ne gênent pas sur mobiles */
@media (max-width: 670px){
    .filters-arrow{
        width: 32px;
        height: 32px;
        left: 4px;
        right: 4px;
    }
}

/* Légers dégradés de bord en mode scroll pour indiquer la continuité */
.filters.has-edge-fade::before,
.filters.has-edge-fade::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 1;
    opacity: 0; /* visible seulement quand scrollable et selon la position */
    transition: opacity .15s ease;
}
.filters.has-edge-fade::before{
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}
.filters.has-edge-fade::after{
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Etats des dégradés (gérés par JS via classes) */
.filters.edge-left::before{ opacity: 1; }
.filters.edge-right::after{ opacity: 1; }


.jaune{
    color: rgb(226,186,101) !important;
}

.violet{
    color: rgb(85,100,190);
}

.bleu{
    color: #4d91b7;
}
.bleu-legal{
    color:rgb(40,93,205);
}

.bleu-vert{
    color: rgb(116,195,188);
}

.vert{
    color: rgb(103,160,85);
}

.orange{
    color: rgb(241,154,76);
}

.rouge{
    color: #e76059;
}

.terre{
    color: #955149;
}

.rose{
    color: rgb(223,173,189);
}
.noir{
    color: #1f1f1f !important;
}
/* Coloriages (bleu) */
.page-activites .filter-item.filter-active {
    background-color:  var(--color-activites);
}

/* Coloriages (bleu) */
.page-coloriages .filter-item.filter-active {
    background-color:  var(--color-coloriages);
}

/* Histoires (vert) */
.page-histoires .filter-item.filter-active {
    background-color:  var(--color-histoires);
}

/* fiches (jaune) */
.page-fiches .filter-item.filter-active {
    background-color:  var(--color-fiches);
}

/* Jeux (violet) */
.page-jeux .filter-item.filter-active {
    background-color:  var(--color-jeux);
}

/* Parents */
.page-parents .filter-item.filter-active {
    background-color: var(--color-parents);
}

.filters-container .filter-item span {
    transition: color 0.1s ease;
}

.filter-img{
    font-size: 1rem;
}
/*═══════════════════════════════════════════════════════╗
║                         @about                         ║
╠════════════════════════════════════════════════════════*/

/* ======= À PROPOS (styles existants) ======= */
.about{
    margin: 30px 0;
}
.about-title{
    font-size: 1.3rem;
    font-weight: 500;
}
.about strong{
    font-weight: 500;
}
.about p{
    font-size: 0.95rem;
}

/* ======= Accent & variantes ======= */
:root{
    --about-accent: #e76059; /* couleur de ton site */
}

/* Variante "note d’auteur" façon citation */
.about.about--quote{
    position: relative;
    padding: 2rem 2.25rem 2rem;
    border: 1px solid rgb(221,221,221);
    border-left: 6px solid var(--about-accent);
    border-radius: 14px;
    background: #fff;
    /* box-shadow: 0 8px 24px rgba(0,0,0,.06); */
    overflow: visible;
}

/* Titre */
.about.about--quote .about-title{
    color: var(--about-accent);
    margin-bottom: 20px;
}

/* Corps de texte */
.about.about--quote .about-text{
    position: relative;
    line-height: 1.55;
}

/* Gros guillemets décoratifs */
.about.about--quote::before,
.about.about--quote::after{
    position: absolute;
    font-weight: 800;
    line-height: 1;
    color: rgba(231,96,89,.14); /* #e76059 avec transparence */
    pointer-events: none;
    user-select: none;
}

.about.about--quote::before{
    content: "«";
    left: 10px;
    top: -28px;
    font-size: clamp(3.5rem, 9vw, 8rem);
    /* ↓ Baisse la guillemet du haut de 10px sans impacter le reste */
    transform: translateY(10px);
}

.about.about--quote::after{
    content: "»";
    right: 10px;
    bottom: -36px;
    font-size: clamp(3.5rem, 9vw, 8rem);
    transform: translateY(-40px);
}

/* Petits affinages */
.about.about--quote .about-text p{
    margin: 0 0 20px;
}
.about.about--quote .about-text p:last-child{
    margin-bottom: 0;
}

/* Signature en valeur (ta dernière ligne en <em>) */
.about.about--quote .about-text p:last-child em{
    display: inline-block;
    font-style: italic;
    color: var(--about-accent);
    font-weight: 500;
}

/* Optionnel : fine barre en dégradé à gauche (subtil) */
.about.about--quote{
    background:
        linear-gradient(180deg, rgba(231,96,89,.06), rgba(231,96,89,0) 60%) #fff;
}
/* ===== Listing “Pour …” ===== */
.about.about--quote .about-list{
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.about.about--quote .about-list li{
  position: relative;
  margin: 0 0 10px;
  padding-left: 1.25rem;            /* espace pour la puce */
  line-height: 1.55;
}
.about.about--quote .about-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;                       /* centré sur la 1re ligne */
  transform: translateY(-50%);
  width: .45rem;
  height: .45rem;
  border-radius: 50%;               /* puce ronde */
  background: var(--about-accent);
  opacity: .35;                     /* doux, cohérent avec le style */
}

/* Responsive ≤ 640px : resserrer un peu le bloc */
@media (max-width: 640px){
    .about.about--quote{
        padding: 1.5rem 1.25rem 1.5rem;
        border-left-width: 5px;
    }
}

/* Responsive ≤ 480px : réduire et remonter légèrement les guillemets */
@media (max-width: 480px){
    .about.about--quote::before,
    .about.about--quote::after{
        font-size: 2.75rem; /* ~44px */
    }
    .about.about--quote::before{
        left: -6px;
        top: -20px;
        /* transform: translateY(10px); reste actif */
    }
    .about.about--quote::after{
        right: 4px;
        bottom: -24px;
    }
}

/* Responsive ≤ 400px : encore un cran plus petit + padding plus compact */
@media (max-width: 400px){
    .about.about--quote{
        padding: 1.25rem 1rem 1.25rem;
        border-left-width: 4px;
    }
    .about.about--quote::before,
    .about.about--quote::after{
        font-size: 2.25rem; /* ~36px, lisible sans chevaucher */
    }
    .about.about--quote::before{
        left: -4px;
    }
    .about.about--quote::after{
        right: 2px;
        bottom: -18px;
    }
}
.elements-date{
    font-size: 0.85rem;
    font-weight: 400;
    color: rgb(106,106,106);
}

/* Favoris */

.elements-item.hidden {
    display: none;
}

.elements-image, .elements-image-bis {
    position: relative;
    overflow: hidden;
}

.elements-image-bis .btn-favori, .elements-image .btn-favori  {
    position: absolute;
    top: 8px;       /* tu peux ajuster si tu veux plus bas */
    right: 8px;
    background-color: #fff;
    border: 1px solid rgb(221,221,221);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    pointer-events: none; /* désactivé au départ */
    color: rgb(31,31,31);
    cursor: pointer;
    z-index: 2;
    outline: none;
    opacity: 1;
    /* transform: translateY(10px);  */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Page Activités uniquement — retirer la bordure du bouton favori */
.page-activites .elements-image-bis .btn-favori,
.page-activites .elements-image .btn-favori{
  border: none !important;
  box-shadow: none; /* optionnel */
}

.elements-item:hover .btn-favori,
.btn-favori.always-visible {
    opacity: 1;
    transform: translateY(0); /* remonte à sa position normale */
    pointer-events: auto; /* activé */
}

.btn-favori i {
    font-size: 16px;
    line-height: 1;
    display: block;
    transform: translateY(1px);
}

.btn-favori:hover {
    background-color: rgb(242,242,242);
}

.btn-favori.processing {
    pointer-events: none;
}

.btn-favori .is-favori {
    color: #e76059 !important;
}
@media (max-width: 768px) {
  .elements-image .btn-favori {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}
/* Book */

.histoire-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(215,218,222);
}

.histoire-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ajuster la largeur selon tes besoins */
    margin-bottom: 20px; /* Espacement entre les éléments */
}

.histoires-wrap{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, 1fr); /* 4 colonnes de tailles égales */
    flex-wrap: wrap;
    gap: 20px;
    justify-items: flex-start; /* Assure que les items occupent toute la largeur */
    align-items: flex-start; /* Assure que les items occupent toute la hauteur */
    box-sizing: border-box; /* Pour bien gérer les marges et paddings */
}

.histoires-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.histoires-box{
    text-decoration: none;
    box-sizing: border-box;
    display: flex;
    color: rgb(31,31,31);
}

.answer-btn:hover{
    background-color: rgb(240, 247, 255);
}

.histoires-box:visited, .histiores-title a{
    color: rgb(31,31,31);
}

.histoires-item{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    flex-direction: column;
}

.histoires-image{
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 280px;
    box-sizing: border-box;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    object-fit: cover; 
    margin: 0;
}

.histoires-item-description{
    display: flex;
    align-items: center;
    margin-top: -2px;
}

.histoires-item-duration {
    display: flex;
    align-items: flex-start;
    margin-top: 3px;
    border: none;
    justify-content: flex-start;
    font-size: 0.77rem;
    text-transform: capitalize;
    color: rgb(106,106,106);
    font-weight: 380;
    text-transform: none;
}

.histoires-item-category{
    display: none;
}

.category{
    display: flex;
    row-gap: 20px;
    flex-direction: column;
}

.category h2{
    margin: 0;
}

.category button{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin: 0 auto;
    gap: 10px;
}



.texte-gauche {
    flex-direction: row; /* Texte à gauche, image à droite */
}

.texte-droite {
    flex-direction: row-reverse;
    align-items: center;
}

.histoire-texte {
    flex: 1;
    padding: 10px;
    text-align: left;
}

.histoire-image {
    flex: 1;
    text-align: center; 
}

.histoire-image img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

.histoire-texte p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    padding: 20px;
    box-sizing: border-box;
}

.histoire-fin{
    font-size: 3rem;
}

.question-btn {
    cursor: pointer;
    width: auto;
    height: 45px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 0;
    /* background-color: rgb(110,80,220); */
    background-color: rgb(103,160,85);
    color: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    padding: 0 30px;
    border-radius: 9px;
}

.page-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    pointer-events: none; /* Assure que l'ombre ne bloque pas les clics */
    z-index: 5;
    opacity: 0; /* Cache l'ombre par défaut */
    transition: opacity 0.3s ease-in-out;
}

.histoire-preview{
    display: flex;
    width: 100%;
    gap: 15px;
    margin-top: 10px;
    padding: 0;
    box-sizing: border-box;
}

.histoire-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

.histoire-author{
    font-size: 0.9rem;
    font-weight: 400;
    color: rgb(70,100,170);
    margin: 5px 0 15px;
}

.quiz-actions{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}   


.histoire-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    align-content: flex-start;
    flex-wrap: wrap;
}

.histoire-details{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 375;
}

.histoire-info{
    display: flex;
    margin-top: 0px;
    gap: 50px;
    color:rgb(31,31,31);
    border-top: 1px solid rgb(221,221,221);
    padding-top: 15px;
    box-sizing: border-box;
}

.histoire-duration{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.83rem;
    font-weight: 400;
    gap: 10px;
    margin: 0;
}

.histoire-duration i{
    font-size: 1.2rem;
    color: rgb(103,160,85);
}

.histoire-valeur-duration{
    color: rgb(31,31,31);
    font-weight: 400;
}

.histoire-resume{
    font-weight: 400;
    box-sizing: border-box;
    margin-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid rgb(221,221,221);
    padding-top:10px;
    padding-bottom:10px;
}

.histoire-preview img{
    display: flex;
    object-fit: cover;
    width: 210px;
    min-width: 210px;
    max-width: 210px;
    height: 320px;
    border-radius: 9px;
}
.story{
    display: flex;
    width: 100%;
    background-color: black !important;
}

.story:nth-child(1){
    background-color: white;
    gap: 20px;
}

.story-1{
    display: flex;
    width: 100%;
    margin-top: 30px;
    flex-direction: row;
}

.story-container{
    width: 100%;
    justify-content: center;
    margin: 0px auto;
    max-width: 1040px;
    flex-direction: row;
    position: relative;
}

.retour-link {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgb(221,221,221);
    z-index: 100;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.retour-link i {
    margin-right: 5px;
}

.retour-link:visited {
    color:rgb(31,31,31);
}

.retour-link:hover {
    background-color: #f0f0f0;
}

.connexion{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    max-width: 500px;
    margin-top: 30px;
}

/* Conteneur principal du livre */
.flipbook {
    display: flex;
    overflow: hidden;
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 100%;
    height: 520px !important; /* valeur de base, réajustée par JS */
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.page {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 0;
    outline: none;
}

.page p {
    background: white;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 50px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
}

.page img {
    width: 100%;
    height: 100%;
    display: flex;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

.page:nth-child(1) img{
    display: flex;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    align-items: center;
}

/* Boutons pour tourner les pages */
.prevPage, .nextPage {
    position: absolute;
    background-color: white;
    color: rgb(31,31,31);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 200; /* > flipbook */
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgb(221,221,221);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.prevPage { 
    left: -50px;
}

.nextPage { 
    right: -50px;
}

.page, 
.prevPage, 
.nextPage {
    outline: none;
    user-select: none; /* Empêche la sélection de texte */
}

.prevPage:focus, 
.nextPage:focus,
.page:focus {
    outline: none;
    box-shadow: none;
}

/* Désactive le focus visible sur Chrome et Edge */
.prevPage:focus-visible, 
.nextPage:focus-visible,
.page:focus-visible {
    outline: none;
    box-shadow: none;
}

/* =========================
   Responsivité progressive
   ========================= */

/* Large écrans, rapprocher un peu les flèches */
@media (max-width: 1400px) {
  .prevPage { left: -20px; }
  .nextPage { right: -20px; }
}

/* À partir de 1200px, mettre les flèches à l’intérieur du conteneur */
@media (max-width: 1200px) {
  .prevPage, .nextPage {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .prevPage { left: 10px; }
  .nextPage { right: 10px; }
}

/* Autour de 900px : le JS bascule en 1 page.
   On garde des flèches visibles et confortables. */
@media (max-width: 900px) {
  .flipbook {
    height: 70vh; /* valeur CSS initiale avant correction JS */
  }
  .prevPage, .nextPage {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .prevPage { left: 8px; }
  .nextPage { right: 8px; }
}

/* Tablettes étroites / mobiles */
@media (max-width: 600px) {
  .prevPage, .nextPage {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .prevPage { left: 6px; }
  .nextPage { right: 6px; }
}

/* Petits mobiles */
@media (max-width: 420px) {
  .prevPage, .nextPage {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .prevPage { left: 4px; }
  .nextPage { right: 4px; }
}

/* Tailles de base fournies, conservées */
@media (max-width: 768px) {
    .flipbook {
        width: 90vw;
        height: 70vh;
    }
}

/* Activité */

.activite{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
    box-sizing: border-box;
}

.activite-details {
    display: flex;
    margin: 0 auto;
    width: 330px;
    font-weight: 420;
    border-radius: 9px;
}

.activite-details i{
    color: rgb(106,106,106);
    font-size: 1.2rem;
}

.activite-details-box {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    margin: 0 auto;
}

.activite-details-box:last-child {
    border-right: none;
}

.activite-details-box p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    text-transform: capitalize;
}

.activite-image{
    display: flex;
    flex: 0 0 40%;
    height: 250px;
    aspect-ratio: 1;

}

.activite-image img{
    display: block; /* évite l’espace inline & comportement flex inutile */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}


.activite-actions{
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
    font-size: 1.0625rem;
}

.activite-title{
    text-transform: lowercase;
    margin-bottom: 20px;
}

.activite-detail{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.activite-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    object-position: center;
    /* width: 100%;  <-- supprimé, causait l’overflow à côté de 40% image */
    flex: 1 1 60%;
    min-width: 0;           /* crucial en flex pour autoriser le wrap */
}
.activite-paragraph{
    font-weight: 400;
    overflow-wrap: anywhere; /* modern */
    word-break: break-word;  /* fallback */
    hyphens: auto;           /* jolis césures quand possible */
}
.activite-container{
    display: flex;
    flex-direction: column; 
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.activite-step {
    display: flex;
    font-size: 1.5rem;
    font-weight: 470;
    color: rgb(106,106,106);
}

.mot-cle{
    color:  #2f78c5;
}
.result-count {
    color: rgb(31,31,31);
}

 .activite-cover{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 15px 0 20px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    z-index: 2;
    background: #f5f5f5;
    }
.activite-cover img{
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;   /* recadrage maîtrisé en desktop */
display: block;
}
/* Coloriages */

.wrap {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    flex: 1;
    background-color: white;
    border-radius: 9px;
    box-sizing: border-box;
    justify-content: center;
    min-width: 0;
}

.intro {
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: flex-start;
   box-sizing: border-box;
}

h1, .search-title {
    font-size: 2.4rem;
    font-weight: 500;
    margin: 0;
    margin-bottom: -10px;
    text-align: center;
}

.search-title.bottom{
    margin-bottom: 20px;
}

h3{
    color:rgb(106,106,106);
    font-size: 1.2rem;
    font-weight: 450;
    text-align: center;
}

.element-title{
    display: inline-flex;
    text-align: center;
    width: 100%;
    justify-content: center;
}

h1::first-letter {
    text-transform: uppercase;
}

.elements-container h2{
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 500;
}

.elements{
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    margin: 20px auto;
    border-radius: 9px;
}

.elements-container{
    display: flex;
    justify-content: center;
    width: 100%;    
    margin: 0 auto;
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: white;
    gap: 20px;
    padding: 0;
}

.elements-box-wrapper{
    display: flex;
    position: relative;
    width: 100%;
    gap: 20px;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
}

.button-wrapper {
    display: flex;
    flex-direction: column; /* Correction du tiret en trop */
    align-items: center;
    position: relative; 
    width: 100%; /* Assure que le conteneur occupe toute la largeur souhaitée */
}

/* Barre horizontale pour la classe .button-wrapper */
.button-wrapper::after {
    content: '';
    position: absolute;
    top: 50%; /* Place la barre au milieu vertical du conteneur */
    left: 0; /* Démarre la barre à gauche du conteneur */
    width: 100%;
    height: 1px;
    background-color: rgb(221,221,221); /* Couleur grise */
    z-index: 1; /* Place la barre derrière les boutons */
}

.filter-item {
    cursor: pointer;
}

.filter-item.filter-active {
    color: white;
    background-color: rgb(31,31,31);
}

.single-image {
    margin: 0 auto;
    text-align: center;
}

.single-image img {
    display: flex;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.element-actions {
    margin-top: 20px;
}

.voir-tout, .voir-plus {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
    color: rgb(31,31,31);
    border: 1px solid rgb(213,216,220);
    border-radius: 30px;
    padding: 10px 120px;
    background: none;
    width: auto;
    cursor: pointer;
    font-size: 0.9rem;
    background-color: white;
    z-index: 2;
    transition: background-color 0.1s ease-in;
    letter-spacing: 0.3px;
}

.elements-box a:nth-child(n+6) {
    display: none;
}

.elements-box a:not(:nth-child(-n+5)) {
    display: none;
}


.voir-tout {
    display: none;
}

.voir-tout:hover, .category button:hover {
    background-color: rgb(240,240,240);
}

.voir-tout:focus {
    outline: none;
}

.elements-box-article{
    grid-template-columns: repeat(3,1fr) !important;
}

/* Style des images dans .elements-box */
.elements-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    box-sizing: border-box; 
    padding: 0;
}

.elements-box-search {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    box-sizing: border-box; 
    padding: 0;
}



.elements-item {
    text-decoration: none;
    color: rgb(31, 31, 31);
}

.elements-item:visited {
    color: rgb(31,31,31);
}


.voir-tout, .voir-plus {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
    color: rgb(31,31,31);
    border: 1px solid rgb(213,216,220);
    border-radius: 30px;
    padding: 10px 120px;
    background: none;
    width: auto;
    cursor: pointer;
    font-size: 0.9rem;
    background-color: white;
    z-index: 2;
    transition: background-color 0.1s ease-in;
    letter-spacing: 0.3px;
}

.elements-box a:nth-child(n+6) {
    display: none;
}

.elements-box a:not(:nth-child(-n+5)) {
    display: none;
}

.voir-tout {
    display: none;
}

.voir-tout:hover, .category button:hover{
    background-color: rgb(240,240,240);
}

.button-text{
    font-weight: 500;
}

.voir-tout:focus {
    outline: none;
}

/* Style des images dans .elements-box */
.elements-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    box-sizing: border-box; 
    padding: 0;
}

.elements-box a, .elements-box a:visited{
    text-decoration: none;
}

/* Style du titre des images */
.elements-title, .histoires-title{
    padding-top: 10px;
    width: 100%;
    margin: 0;
    align-items: center;
    display: flex;
    color: rgb(31,31,31);
    text-decoration: none;
    font-size: 0.89rem;
    font-weight: 450;
}

.elements-price{
    text-decoration: none;
    color: rgb(31,31,31);
}

.elements-item {
    text-decoration: none;
    color: rgb(31, 31, 31);
    cursor: pointer;
}

.elements-item:visited{
    color: rgb(31,31,31);
}

/* Style de l'image */
.elements-image a{
    border: 1px solid rgb(215, 218, 222);
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 190px;
    width: 100%;
    cursor: pointer;
}
.elements-image-bis a{
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 190px;
    width: 100%;
    cursor: pointer;
}

.elements-image a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
}

.elements-image-bis a img{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: cover !important;
}

.boutique-image{
    display: flex;
    width: 100%;
    height: 210px;
    border-radius: 12px;
    border: 1px solid rgb(221,221,221);
}

.boutique-image img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Container du coloriage */
.element-container{
    display: flex;
    flex-direction: column;
    flex: 2; /* Occupation flexible de l'espace restant */
    background-color: white;
    border-radius: 9px;
    box-sizing: border-box;
    justify-content: flex-start;
    min-width: 0; /* Permet au flex de s'ajuster correctement */
}

.element-wrap{
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 9px;
    box-sizing: border-box;
    gap: 30px;
}

.element-page h1{
    font-size: 1.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.swiper-img{
    margin: 0 !important;
}


.element img{
    display: flex;
    width: 100%;
    max-height: 1000px;
    object-fit: cover;
    box-sizing: border-box;
    position: relative;
    align-items: center;
    justify-content: center;
    border-radius: 16px; 
}

.recherches-container{
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    box-sizing: border-box;
    width: 100%;
}

.recherches-box{
    display: flex;
    width: 100%;
}

.recherches-image{
    display: flex;
}

.recherches-images img{
    display: flex;
    width: 100%;
    object-fit: cover !important;
}
.element-actions{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 20px;
}

.download-link, .print-button{
    color: rgb(31,31,31);
    border: 1px solid rgb(31,31,31);
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 440;
    border-radius: 30px;
    text-decoration: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    margin: 0;
    align-items: center;
    gap: 10px;
    justify-content: center;
    height: 40px;
}

.print-button:hover{
    background-color: rgb(242,242,242);
}

.btn-heart{
    color: rgb(31,31,31);
    border: 1px solid rgb(31,31,31);
    font-weight: 500;
    border-radius: 30px;
    text-decoration: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    margin: 0;
    align-items: center;
    gap: 10px;
    justify-content: center;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 440;
}

.btn-heart i{
    font-size: 1.1rem;
}

.download-link{
    background-color: rgb(83,162,75);
    border: 1px solid rgb(83,162,75);
    border: none;
    color: white;
    transition: filter 0.1s ease-in;
}


.download-link:hover{
    filter: brightness(0.9);
}

.activite-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media screen and (max-width: 1024px) {
    .elements-box-wrapper {
        overflow-x: auto; /* Activer le défilement horizontal */
        overflow-y: hidden; /* Pas de défilement vertical */
    }

    .elements-box, .elements-box-search {
        flex-wrap: nowrap;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .histoires-wrap{
        grid-template-columns: repeat(4, 1fr); 
    }
    .element-image{
        width: 100%; 
        height: auto;
    }

    .scroll-button {
        display: block;
    }
}
@media screen and (max-width: 1024px) {
    .elements-box-article{
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .elements-image-parents a{
        height: 221px;
    }
}
@media screen and (max-width: 1000px) {
    .elements-box, .elements-box-search {
        flex-wrap: nowrap; /* Empêcher le retour à la ligne des images */
        display: grid; /* Utiliser une grille pour gérer le nombre d'images visibles */
        grid-template-columns: repeat(4, 1fr); /* 3 images visibles */
        gap: 10px; /* Espacement entre les images */
    }
        .elements-box-article{
        grid-template-columns: repeat(2, 1fr) !important;

    }
    .histoires-wrap{
        grid-template-columns: repeat(4, 1fr); 
    }
}
@media screen and (max-width: 865px) {
    .elements-box, .elements-box-search {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 864px) {
    .histoires-wrap{
        grid-template-columns: repeat(3, 1fr); 
    }
}
@media screen and (max-width: 764px) {
    .elements-box-article{
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .elements-image-parents a{
        height: 320px;
    }

}
@media screen and (max-width: 670px) {
    .elements-box, .elements-box-search {
        grid-template-columns: repeat(2, 1fr);
    }
    .histoires-wrap{
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media screen and (max-width: 430px) {
    .elements-image a{
        height: 150px;
    }
     .elements-image-bis a{
        height: 150px;
    }
    .elements-image-parents a{
        height: 221px;
    }
    .histoires-image{
        max-height: 221px;
        min-height: 221px;
    }
}
@media screen and (max-width: 400px) {
    .elements-box-article{
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .elements-image-bis a{
        height: 200px;
    }
}
/* notice */

.promo-notice {
    background-color: rgb(31,31,31);
    color: white;
    text-align: center;
    padding: 0;
    position: sticky;
    top: 0;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    box-sizing: border-box;
    z-index: 9999;
    overflow: hidden;
    height: 40px;
    letter-spacing: 0.4px;
}

.notice-text {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@media (max-width: 1000px) {
    /* Grille verticale mobile */
    .element-wrap {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
        "breadcrumb"
        "title"
        "swiper"
        "ads"
        "actions";
        gap: 16px;
    }

    /* Aplat des wrappers pour positionner les enfants dans la grille */
    .element-container,
    .element,
    .sidebar {
        display: contents;
    }

    /* Placement des zones */
    #breadcrumb { grid-area: breadcrumb; }
    .element-title { grid-area: title; }

    /* >>> IMPORTANT : couvrir .swiper (v7+) et .swiper-container (v5/v6) <<< */
    .swiper,
    .swiper-container {
        grid-area: swiper;
        position: relative;
        overflow: hidden;
        padding-bottom: 20px;
        isolation: isolate;
        z-index: 2;
    }

    /* Pagination : position et clickabilité garanties */
    .swiper .swiper-pagination,
    .swiper-container .swiper-pagination {
        position: absolute !important;
        left: 0;
        right: 0;
        bottom: 8px;
        width: 100%;
        z-index: 5;
        pointer-events: auto;
    }

    /* Pub entre image et actions (inchangé) */
    .ads { grid-area: ads; }
    .element-actions { grid-area: actions; }

    /* On masque le reste de la sidebar en mobile */
    .sidebar > :not(.ads) {
        display: none !important;
    }

    /* Style de la pub en mobile */
    .ads {
        position: static;
        top: auto;
        margin: 20px auto 0;
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    .ads img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Sécurité anti-chevauchement : actions/pub ne passent pas devant la pagination */
    .ads,
    .element-actions {
        position: relative;
        z-index: 1;
    }

    /* Tu avais mis gap:0 : on le garde */
    .element-wrap {
        gap: 0;
    }
}

    @media (max-width: 530px) {
        .element-actions{
            flex-direction: column;
            gap: 10px;
        }
    }
    /* --- Isolation Boutique vs CSS global --- */
@media (max-width: 830px){
  .boutique-wrapper .element,
  .boutique-wrapper .element-container{
    display:block !important;   /* redevient une vraie carte */
  }
}

/* Si jamais des flèches globales s’invitent en boutique */
.boutique-wrapper .scroll-button{ display:none !important; }
/* =======================================================
   Harmonisation des tuiles .elements-image & .elements-image-bis
   (À COLLER TOUT EN BAS DU FICHIER)
   ======================================================= */

/* 5 colonnes (desktop large) */
:root{ --thumb-h: 190px; }

/* 4 colonnes */
@media (max-width: 1000px){
  :root{ --thumb-h: 200px; }
}

/* 3 colonnes */
@media (max-width: 865px){
  :root{ --thumb-h: 221px; } /* cohérent avec tes parents */
}

/* 2 colonnes */
@media (max-width: 670px){
  :root{ --thumb-h: 240px; }
}

/* très petits écrans */
@media (max-width: 430px){
  :root{ --thumb-h: 150px; } /* tu peux passer à 170–180px si tu veux plus de hauteur */
}

/* Applique la même hauteur aux deux variantes (prend le dessus sur les règles plus haut) */
.elements-image a,
.elements-image-bis a{
  height: var(--thumb-h) !important;
}

/* Particularités conservées */
.elements-image a img{ object-fit: contain; }
.elements-image-bis a img{ object-fit: cover; }

/* En page Activités : garde l’absence de bordure sur la version bis */
.page-activites .elements-image-bis a{
  border: none !important;
  box-shadow: none;
}
