/*
 * base_style.css
 * Design tokens (variables) + styles spécifiques non couverts par shared_components
 */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Couleurs Océan */
    --ocean-deep: #060942;
    --ocean-primary: #1A7FA0;
    --ocean-light: #2EA5CC;
    --ocean-lighter: #5BC2E7;
    --ocean-mist: #E8F4F8;
    --ocean-accent: #0DCAF0;
    --ocean-dark: #03273a;
    --ocean-shadow: rgba(10, 76, 111, 0.2);

    /* Couleurs Sable/Soleil */
    --sand-dark: #C9A063;
    --sand-primary: #E5C488;
    --sand-light: #F4E0B8;
    --sunset-orange: #FF6B35;
    --sunset-coral: #FF8C61;

    /* Neutres */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Statuts */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: var(--ocean-primary);

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-ocean: 0 20px 40px -10px rgba(26, 127, 160, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   LAYOUT GLOBAL — Footer collé en bas
   ========================================================================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ==========================================================================
   USER DROPDOWN (legacy, utilisé hors navbar)
   ========================================================================== */

.user-dropdown {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
    position: absolute;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.user-dropdown.visible {
    visibility: visible;
    opacity: 1;
}

/* Bordure visible sur tous les champs de formulaire */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
textarea,
select {
    border: 1px solid var(--ocean-light);
}
/* ==========================================================================
   Aperçu image
   ========================================================================== */

.image-preview img {
    max-width: 50%;
}

.btn-remove-image {
    display: block;
    min-width: 30%;
}

/* ==========================================================================
   FOOTER — Navigation (depuis render_menu)
   ========================================================================== */

.footer-nav__list,
.footer-nav__sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav__link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav__link:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-nav__heading {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.footer-nav__group + .footer-nav__group,
.footer-nav__group + li {
    margin-top: var(--space-3);
}
