/* =========================================================
   main.css (global)
   Dépend de /css/theme.css pour toutes les couleurs
   Garde tes classes existantes : navbar, burger, footer, etc.
   ========================================================= */

/* =========================================================
   main.css (global)
   Dépend de /css/theme.css pour toutes les couleurs
   Garde tes classes existantes : navbar, burger, footer, etc.
   ========================================================= */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

textarea { resize: none; }

html { scroll-behavior: smooth; }

body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  /* le background est appliqué globalement dans theme.css */
  
  /* Force le footer en bas de page */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Le contenu principal s'étire pour prendre toute la place disponible */
main {
  flex: 1;
}

/* Container page (si tu l’utilises) */
.container-page{
  margin: 0 auto;
  padding: 0 0 60px;
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;

  padding: 18px 20px;
  font-size: 18px;

  background: color-mix(in srgb, var(--ink-1) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
  transition: padding 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}



@media (min-width: 768px) and (max-width: 1024px) {
  .navbar { padding: 16px 18px; }
}

.navbar-container {
  max-width: 1350px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 110px; /* <-- Augmente cette valeur */
  width: auto;
  display: block;
  filter: brightness(1.06) drop-shadow(0 0 4px rgba(90, 176, 255, 0.18));
  transform-origin: left center;
  transition: transform 220ms ease, filter 220ms ease, height 220ms ease;
}


.navbar-logo:hover .logo-img,
.navbar-logo:focus-visible .logo-img {
  transform: translateY(-1px) scale(1.035);
  filter: brightness(1.22) drop-shadow(0 0 10px rgba(90, 176, 255, 0.48));
}

/* Burger (desktop hidden) */
/* Burger (desktop hidden) */
.burger{
  display: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  border: none;
  background: transparent;
  align-items: center;
  position: relative;
}

.burger span{
  display: block;
  width: 100%;
  height: 2px;
  background: color-mix(in srgb, var(--text) 75%, transparent);
  position: absolute;
  pointer-events: none;
  transition: opacity 0.3s 0.15s ease-out, transform 0.3s ease-out;
}

.burger span:nth-child(1) { transform: translateY(7px); }
.burger span:nth-child(3) { transform: translateY(-7px); }

.burger.open span:nth-child(1) { transform: rotate(135deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-135deg); }

/* Links */
.navbar-links {
  display: flex;
  list-style: none;
  gap: 18px;
}

.navbar-links a {
  font-size: 0.98rem;
  font-weight: 560;
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  position: relative;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.navbar-links a:hover{
  background: var(--surface-2);
  color: var(--text);
}

/* underline animation (plus discret) */
.navbar-links a::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  background: color-mix(in srgb, var(--text) 70%, transparent);
  transition: transform 0.25s ease-out;
  border-radius: 2px;
}

.navbar-links a:hover::after { transform: scaleX(1); }

.navbar-links a[aria-current="page"],
.navbar-links a.is-active {
  color: var(--text);
  background: color-mix(in srgb, #5AB0FF 13%, var(--surface-2));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #5AB0FF 28%, transparent),
    0 0 16px rgba(90, 176, 255, 0.12);
}

.navbar-links a[aria-current="page"]::after,
.navbar-links a.is-active::after {
  transform: scaleX(1);
  background: #5AB0FF;
  box-shadow: 0 0 8px rgba(90, 176, 255, 0.55);
}


/* =========================================================
   Bouton Espace / Connexion dans la Navbar
   ========================================================= */
#navAccountLink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px !important;
  border-radius: 12px;
  background: color-mix(in srgb, #5AB0FF 8%, transparent);
  border: 1px solid color-mix(in srgb, #5AB0FF 20%, transparent);
  color: var(--text);
  transition: all 0.2s ease;
}

#navAccountLink:hover {
  background: color-mix(in srgb, #5AB0FF 15%, transparent);
  border-color: color-mix(in srgb, #5AB0FF 35%, transparent);
  color: var(--text);
  box-shadow: 0 0 12px rgba(90, 176, 255, 0.1);
}

/* Enlève la petite barre de survol classique de la navbar pour ce bouton spécifique */
#navAccountLink::after {
  display: none !important;
}

/* 
 * ASTUCE : Si votre JavaScript affiche l'avatar (display: block ou inline),
 * le CSS cache automatiquement l'icône de connexion pour éviter les doublons.
 */
#navAccountLink:has(#navAvatarIcon[style*="block"]) #navLoginIcon,
#navAccountLink:has(#navAvatarIcon[style*="inline"]) #navLoginIcon {
  display: none !important;
}

/* =========================================================
   Mobile nav (keeps your JS hooks: .open, .shadowingNav.active)
   ========================================================= */
@media (max-width: 767px) {

  .navbar-container{
    align-items: flex-start;
    gap: 16px;
  }

  .burger{ display: flex; }

  .logo-img{
      height: 56px !important;
      width: auto !important;
  }

  .navbar.is-scrolled .logo-img{ height: 56px; }

  .navbar-links{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    position: absolute;
    top: 100%;
    left: 0;

    height: 100vh;
    padding: 14px 48px 14px 18px;

    background: color-mix(in srgb, var(--ink-1) 92%, transparent);
    border-right: 1px solid var(--border-1);

    transform: translateX(-100%);
    transition: transform 0.28s ease-out;
    z-index: 5;
  }

  .navbar-links.open{
    transform: translateX(0);
  }

  .navbar-links a{
    width: 100%;
    padding: 10px 8px;
    margin: 2px 0;
  }

  /* Overlay */
  .shadowingNav{
    position: absolute;
    top: 64px; /* hauteur navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);

    background: rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1;
  }

  .shadowingNav.active{
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================================
   Footer (Cours Kerel - 3 colonnes)
   ========================================================= */
.site-footer {
  padding: 60px 20px 30px;
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
  margin-top: auto;
  text-align: left; /* Annule le centrage par défaut qui cassait la grille */
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-grid > :nth-child(2),
.footer-grid > :last-child {
  justify-self: start;
}


.footer-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  /* Couleur violette appliquée à l'ensemble du texte */
  color: rgba(var(--accent), 0.95); 
  /* Optionnel : un léger halo pour faire ressortir le nom sur le fond sombre */
  text-shadow: 0 0 20px rgba(var(--accent), 0.25);
}

.footer-logo-text span {
  /* On annule la couleur spécifique du span pour qu'il soit identique au reste */
  color: inherit; 
}

.footer-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col-title {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: var(--text);
}

/* --- Style et couleur des liens (Correction lisibilité) --- */
.footer-nav-col .no-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-col li { 
  margin-bottom: 12px; 
}

.footer-nav-col a {
  text-decoration: none;
  color: var(--muted); /* Ce gris clair résout le problème du bleu foncé illisible */
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav-col a:hover { 
  color: var(--text); /* Devient blanc pur au survol */
}

/* --- Contact & Liens spécifiques --- */
.footer-nav-col .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.footer-nav-col .contact-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.highlight-link {
  color: color-mix(in srgb, rgba(var(--accent), 0.95) 70%, var(--text)) !important;
  font-weight: 600;
}

.highlight-link:hover {
  text-decoration: underline;
}

/* --- Bas du footer (Mentions légales, etc.) --- */
.footer-separator {
  border: 0;
  border-top: 1px solid var(--border-1);
  margin-bottom: 25px;
  opacity: 0.5;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  line-height: 1.8;
}

.meta-info a {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}


.meta-info a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* --- NOUVEAUTÉS CI-DESSOUS --- */

/* Ajout du bullet avant chaque lien */
.meta-info a::before {
  content: "•";
  margin-right: 10px; /* Aligné symétriquement avec le gap de 10px */
  opacity: 0.5;
  display: inline-block;
  pointer-events: none; /* Le bullet n'est pas cliquable */
}

/* Empêche le bullet d'être souligné et de changer de couleur au survol */
.meta-info a:hover::before {
  text-decoration: none;
  color: var(--muted); 
}

/* Gestion mobile : affichage en colonne propre sans bullets */
@media (max-width: 500px) {
  .meta-info {
    flex-direction: column;
    gap: 8px; /* Un peu plus d'espace en hauteur pour faciliter le clic */
  }
  
  .meta-info a::before {
    display: none; /* On cache les bullets sur petit écran */
  }
}

/* --- Responsive pour les téléphones (1 seule colonne) --- */
@media (max-width: 768px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 30px;
  }
  
  /* Sur mobile, on recentre tous les blocs */
  .footer-grid > :nth-child(2),
  .footer-grid > :last-child {
    justify-self: center;
  }
  
  .footer-description { 
    margin: 0 auto; 
  }
  .footer-nav-col .contact-item {
    justify-content: center;
  }
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid > * {
    justify-self: center;
  }

  .footer-description {
    margin: 0 auto;
  }

  .footer-nav-col .contact-item {
    justify-content: center;
  }
}
/* ====== pour scroll décalé ===========================*/
/*html{
  scroll-padding-top: 45px;
}*/

@media (max-width: 768px) {
  #navUserIdentity {
    padding: 10px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 5px;
    justify-content: flex-start;
  }
}

/* Style des liens dans les pages légales (Mentions, CGV) */
.cgv-card article a {
  color: #5AB0FF; /* Utilise le bleu d'accentuation de votre site */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.cgv-card article a:hover {
  color: var(--text); /* Devient blanc pur au survol */
  border-bottom-color: #5AB0FF; /* Ajoute un soulignement discret au survol */
  text-shadow: 0 0 8px rgba(90, 176, 255, 0.4); /* Léger effet de lueur */
}

/* =========================================================
   ERREURS GLOBALES (Factorisation pour tous les formulaires)
   ========================================================= */
:root {
  --danger-base: rgba(180, 35, 24, 0.95);
  /* La couleur mixée parfaite pour une lisibilité optimale sur fond sombre */
  --text-danger: color-mix(in srgb, var(--danger-base) 60%, var(--text));
}

/* Boîtes d'erreur (Réservation, Copies, Forfaits, Stripe) */
.cp-error, .cc-error {
  text-align: left;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 14px 0 !important; /* Gère l'espacement avec le calendrier/champs */
  border: 1px solid rgba(180, 35, 24, 0.22) !important;
  background: rgba(180, 35, 24, 0.10) !important;
  color: var(--text-danger) !important;
}

/* Force la couleur sur le texte à l'intérieur (titres, listes) */
.cp-error *, .cc-error * {
  color: var(--text-danger) !important;
}

/* Gère automatiquement l'indentation de 18px et enlève les puces */
.cp-error ul, .cc-error ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 0 18px !important; 
}

/* Champs Invalides (Stripe & Formulaires standards) */
.cp-field-invalid, 
.cc-field-invalid,
.dt-input.StripeElement--invalid {
  border-color: rgba(180, 35, 24, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12) !important;
  background: rgba(180, 35, 24, 0.03) !important;
}

/* Les petits messages d'erreur sous les champs individuels */
.cp-field-msg.is-error, 
.cc-field-msg.is-error {
  color: var(--text-danger) !important;
  font-weight: 650;
}
