/*
 * css/styles.css — Sankalpa Yoga
 *
 * DÉVELOPPEMENT : Ce fichier est chargé directement par index.html.
 * PRODUCTION    : Exécuter `npm run build` pour compiler avec Tailwind.
 *                 Le fichier résultant css/output.css remplace le CDN dans index.html.
 */

/* ============================================
   STYLES GLOBAUX
============================================ */
body {
    background-color: #F7F5F0;
    color: #443F38;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Hero background — desktop & mobile : Fond_home.webp */

/* ============================================
   ANIMATIONS
============================================ */

/* Quand l'admin est connecté, la barre subnav occupe top-24 + h-10 = 136px.
   Les colonnes sticky de la page À propos utilisent top-32 (128px) par défaut,
   ce qui les fait passer derrière la barre admin. On les décale en mode admin. */
body.is-admin .apropos-sticky {
    top: 10rem; /* 160px — navbar 96px + admin bar 40px + 24px marge */
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NAVIGATION SPA — Sections de page
============================================ */
.page-section {
    display: none;
    padding-top: 100px;
    min-height: 100vh;
}

.page-section.active {
    display: block;
}

/* ============================================
   IMAGES — Filtre sépia léger (effet argentique)
============================================ */
.raw-img {
    filter: sepia(5%) contrast(95%);
    transition: all 0.7s ease;
}

.group:hover .raw-img {
    filter: sepia(0%) contrast(100%);
}

/* ============================================
   NAVIGATION — État actif (ligne fine)
============================================ */
.nav-btn {
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #443F38;
    transition: width 0.3s ease;
}

.nav-btn:hover::after,
.nav-btn.active::after {
    width: 100%;
}

/* ============================================
   FILTRES DE SÉANCES
============================================ */
.filter-btn.active {
    border-bottom-color: #443F38;
    color: #443F38;
}

/* ============================================
   CALENDRIER — Scrollbar épurée
============================================ */
.calendar-scroll::-webkit-scrollbar       { height: 4px; }
.calendar-scroll::-webkit-scrollbar-track { background: #F7F5F0; }
.calendar-scroll::-webkit-scrollbar-thumb {
    background: #D1C7BD;
    border-radius: 4px;
}
.calendar-scroll::-webkit-scrollbar-thumb:hover {
    background: #8C8279;
}

/* ============================================
   FORMULAIRES — Messages d'erreur de validation
============================================ */
.field-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

input.border-red-400,
textarea.border-red-400 {
    border-bottom-color: #f87171 !important;
}

/* ============================================
   ACCESSIBILITÉ — Focus visible
============================================ */
:focus-visible {
    outline: 2px solid #8C8279;
    outline-offset: 3px;
    border-radius: 4px;
}
