/**
 * STYLE ULTRA MODERNE POUR PLATEFORME ÉDUCATIVE DE FRANÇAIS
 * Design basé sur ChangeMed - Adapté pour Plateforme Éducative
 * Palette: Couleurs du drapeau français - Bleu (#0055A4), Blanc (#FFFFFF), Rouge (#EF4135)
 */

/* ============================================
   VARIABLES CSS ULTRA MODERNES
   ============================================ */
:root {
    /* Palette de couleurs du drapeau français */
    --primary: #0055A4;           /* Bleu du drapeau français */
    --primary-dark: #003d7a;
    --primary-light: #1a6bc4;
    --secondary: #EF4135;         /* Rouge du drapeau français */
    --secondary-dark: #d32f2f;
    --secondary-light: #ff5c4f;
    --accent: #FFFFFF;            /* Blanc du drapeau français */
    --accent-dark: #f5f5f5;
    
    /* Couleurs fonctionnelles */
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
    
    /* Couleurs de texte */
    --text-primary: #0055A4;
    --text-secondary: #5a6c7d;
    --text-light: #8794a1;
    --text-white: #FFFFFF;
    --text-gold: #EF4135;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F3F3;
    --bg-dark: #0055A4;
    --bg-gradient: linear-gradient(135deg, #0055A4 0%, #1a6bc4 100%);
    --bg-gradient-gold: linear-gradient(135deg, #EF4135 0%, #ff5c4f 100%);
    --bg-gradient-accent: linear-gradient(135deg, #0055A4 0%, #EF4135 100%);
    
    /* Borders */
    --border-color: #dce1e6;
    --border-light: #F3F3F3;
    --border-gold: #EF4135;
    --border-primary: #0055A4;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 85, 164, 0.08);
    --shadow: 0 4px 12px -2px rgba(0, 85, 164, 0.12);
    --shadow-md: 0 8px 20px -4px rgba(0, 85, 164, 0.15);
    --shadow-lg: 0 16px 32px -8px rgba(0, 85, 164, 0.18);
    --shadow-xl: 0 24px 48px -12px rgba(0, 85, 164, 0.22);
    --shadow-gold: 0 8px 24px -4px rgba(239, 65, 53, 0.3);
    --shadow-glow: 0 0 40px rgba(239, 65, 53, 0.4);
    
    /* Radius */
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-sans: 'Satoshi', 'Inter', Helvetica, Arial, sans-serif;
    --font-heading: 'Poppins', Helvetica, Arial, sans-serif;
    --font-body: 'Satoshi', 'Inter', Helvetica, Arial, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    direction: ltr;
    text-align: left;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ne pas écraser le padding réservé au header fixe (user-header.css) */
body:not(.user-dashboard) {
    padding-top: 0 !important;
}

@media (max-width: 991.98px) {
    body:not(.user-dashboard) {
        padding-top: 0 !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* ============================================
   HEADER ULTRA MODERNE
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.99) 0%, 
        rgba(255, 255, 255, 0.97) 50%,
        rgba(255, 255, 255, 0.99) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0, 85, 164, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    box-shadow: 0 8px 32px rgba(0, 85, 164, 0.12), 
                0 0 0 1px rgba(0, 85, 164, 0.05);
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    box-sizing: border-box;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(239, 65, 53, 0.05), 
        transparent);
    transition: left 3s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.main-header:hover::before {
    left: 100%;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary) 20%,
        var(--secondary) 50%,
        var(--primary) 80%,
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.main-header.scrolled {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.99) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 12px 40px rgba(0, 85, 164, 0.15), 
                0 0 0 1px rgba(0, 85, 164, 0.08);
    backdrop-filter: blur(28px) saturate(220%);
    -webkit-backdrop-filter: blur(28px) saturate(220%);
    height: 70px;
    min-height: 70px;
    max-height: 70px;
}

.main-header.scrolled::after {
    opacity: 1;
}

.navbar {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    max-width: 100%;
    width: 100%;
}

.nav-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.875rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    z-index: 2;
    transition: padding 0.4s ease;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
}

.main-header.scrolled .nav-wrapper {
    padding: 0.875rem 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
    width: auto;
    max-width: 500px;
    font-size: 0;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 12px rgba(0, 85, 164, 0.25));
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: middle;
}

.logo-img-left {
    order: 1;
}

.logo-img-right {
    order: 3;
}

.main-header.scrolled .logo-img {
    height: 55px;
}

.logo:hover .logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 28px rgba(0, 85, 164, 0.45));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: var(--transition);
    order: 2;
    flex: 0 0 auto;
    text-align: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 1rem;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: var(--transition);
    margin-top: -2px;
}

.main-header.scrolled .logo-name {
    font-size: 1.15rem;
}

.main-header.scrolled .logo-subtitle {
    font-size: 0.65rem;
}

.logo:hover .logo-name {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover .logo-subtitle {
    color: var(--secondary);
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto;
    order: 3;
}

.nav-link {
    position: relative;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.08), 
        rgba(239, 65, 53, 0.08));
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

/* Styles pour les liens avec icônes (Connexion et Inscription) */
.nav-link-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    background: transparent;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.nav-link-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.nav-link-icon:hover {
    background: rgba(0, 85, 164, 0.1);
    transform: translateY(-2px);
    color: var(--primary);
}

.nav-link-icon:hover svg {
    stroke: currentColor;
    transform: scale(1.1);
}

.nav-link-icon.active {
    background: rgba(0, 85, 164, 0.15);
    color: var(--primary);
}

.nav-link-icon.active svg {
    stroke: currentColor;
}

/* Style spécifique pour le bouton d'inscription */
.nav-link-register {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: white !important;
}

.nav-link-register svg {
    stroke: white;
}

.nav-link-register:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 85, 164, 0.3);
}

.nav-link-register:hover svg {
    stroke: white;
    transform: scale(1.1);
}

.nav-link-register.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    color: white !important;
}

.nav-link-register.active svg {
    stroke: white;
}

/* Styles pour l'utilisateur connecté */
.nav-user-menu {
    position: relative;
}

.nav-link-user {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.08) 0%, rgba(0, 85, 164, 0.04) 100%) !important;
    border-radius: var(--radius-full) !important;
    border: 1px solid rgba(0, 85, 164, 0.15) !important;
    transition: all 0.3s ease !important;
}

.nav-link-user svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    flex-shrink: 0;
}

.nav-link-user .user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Icône de cœur qui bat pour le don */
.nav-link-don {
    position: relative;
    color: #EF4135 !important;
    font-weight: 600;
}

.nav-link-don .heart-icon {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 1.2em;
    margin-right: 5px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.2);
    }
}

.nav-link-don:hover {
    color: #d32f2f !important;
}

.nav-link-don:hover .heart-icon {
    animation-duration: 0.8s;
}

.nav-link-user:hover {
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.15) 0%, rgba(0, 85, 164, 0.08) 100%) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 85, 164, 0.2) !important;
}

.nav-link-user:hover svg {
    stroke: var(--primary-dark);
}

.nav-link-user:hover .user-name {
    color: var(--primary-dark);
}

/* Bouton Admin Dashboard */
.nav-link-admin {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
    min-width: 40px !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s ease !important;
}

.nav-link-admin svg {
    width: 20px;
    height: 20px;
    stroke: white;
    transition: all 0.3s ease;
}

.nav-link-admin:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 85, 164, 0.3) !important;
}

.nav-link-admin:hover svg {
    transform: scale(1.1);
}

/* Responsive pour menu utilisateur */
@media (max-width: 992px) {
    .nav-link-user {
        justify-content: center;
        width: 100%;
    }
    
    .nav-link-user .user-name {
        max-width: none;
    }
    
    .nav-link-admin {
        width: 100%;
        justify-content: center;
        padding: 0.75rem !important;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    margin-left: auto;
    order: 2;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 0 !important;
    padding-bottom: 40px;
    background: var(--bg-secondary);
    margin: 0 !important;
    padding-top: 0 !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Espacement entre le slider et le container des sections */
.hero-slider + .container,
.hero-slider ~ .container,
.sections-container {
    margin-top: 80px !important;
    padding-top: 0 !important;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0 !important;
    margin-top: 70px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 150px !important;
    box-shadow: var(--shadow-xl);
    display: block;
    box-sizing: content-box;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px;
    text-align: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 1;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BOUTON SLIDER AMÉLIORÉ
   ============================================ */
.slide-content .btn {
    background: linear-gradient(135deg, #EF4135 0%, #ff5c4f 50%, #ff7a6f 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(239, 65, 53, 0.25),
                0 1px 4px rgba(0, 85, 164, 0.12);
    text-shadow: none;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.slide-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.slide-content .btn:hover::before {
    left: 100%;
}

.slide-content .btn:hover {
    background: linear-gradient(135deg, #ff5c4f 0%, #ff7a6f 50%, #ff9a8f 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(239, 65, 53, 0.35),
                0 2px 6px rgba(0, 85, 164, 0.18);
}

.slide-content .btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(239, 65, 53, 0.25),
                0 1px 2px rgba(0, 85, 164, 0.15);
}



/* ============================================
   SECTIONS GRID
   ============================================ */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 0;
    margin-bottom: 60px;
}

.section-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.section-card:hover::before {
    transform: scaleX(1);
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-gold);
}

.section-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.section-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   BUTTONS PREMIUM
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--bg-gradient-gold);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    transform: translateY(-3px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   APPOINTMENT SECTION
   ============================================ */
.home-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.02) 0%, 
        rgba(239, 65, 53, 0.02) 100%);
    border-radius: var(--radius-xl);
    margin-top: 60px;
    border: 1px solid var(--border-light);
}

/* Conteneurs qui contiennent les appointment-section doivent avoir un fond blanc */
.home-section-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.home-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.home-section p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Boutons stylisés pour les sections home_sections */
.home-section .btn {
    background: linear-gradient(135deg, #EF4135 0%, #ff5c4f 50%, #ff7a6f 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1.125rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(239, 65, 53, 0.3),
                0 2px 8px rgba(0, 85, 164, 0.15);
    text-shadow: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.home-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.home-section .btn:hover::before {
    left: 100%;
}

.home-section .btn:hover {
    background: linear-gradient(135deg, #ff5c4f 0%, #ff7a6f 50%, #ff9a8f 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 24px rgba(239, 65, 53, 0.4),
                0 4px 12px rgba(0, 85, 164, 0.2);
    transform: translateY(-3px);
}

.home-section .btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(239, 65, 53, 0.3),
                0 1px 4px rgba(0, 85, 164, 0.15);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
}

.form-control:hover {
    border-color: rgba(0, 85, 164, 0.3);
    box-shadow: var(--shadow);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   CALENDRIER RENDEZ-VOUS (Flatpickr)
   ============================================ */
.flatpickr-calendar {
    font-family: var(--font-body);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 85, 164, 0.16);
    box-shadow: var(--shadow-md);
}

.flatpickr-months .flatpickr-month {
    background: var(--bg-gradient);
    color: #fff;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff;
    fill: #fff;
}

.flatpickr-weekdays {
    background: #f6f8fb;
    border-bottom: 1px solid rgba(0, 85, 164, 0.10);
}

.flatpickr-weekday {
    color: rgba(0, 85, 164, 0.75);
    font-weight: 700;
}

.flatpickr-day {
    border-radius: 10px;
    transition: var(--transition-fast);
}

.flatpickr-day:hover {
    background: rgba(0, 85, 164, 0.08);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.inRange {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Jours bloqués (non travaillés + exclusion) : barrés et non cliquables */
.flatpickr-day.pnl-day-blocked,
.flatpickr-day.flatpickr-disabled.pnl-day-blocked {
    color: rgba(0, 85, 164, 0.35) !important;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(220, 53, 69, 0.65);
    background: rgba(220, 53, 69, 0.04);
    border: 1px dashed rgba(220, 53, 69, 0.25);
    cursor: not-allowed !important;
}

.flatpickr-day.pnl-day-excluded {
    background: rgba(220, 53, 69, 0.07);
    border-color: rgba(220, 53, 69, 0.30);
}

.flatpickr-day.pnl-day-nonworking {
    background: rgba(0, 85, 164, 0.03);
    border-color: rgba(0, 85, 164, 0.18);
}

.flatpickr-day.pnl-day-blocked::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    height: 2px;
    background: rgba(220, 53, 69, 0.65);
    transform: translateY(-50%) rotate(-12deg);
    pointer-events: none;
}

/* Input alt (affiché par Flatpickr) : cohérent avec .form-control */
.flatpickr-input[readonly],
.flatpickr-input.form-control[readonly] {
    background: #fff;
    cursor: pointer;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #155724;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

/* ============================================
   BLUEPRINT PAGE
   ============================================ */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 90px;
    padding: 2rem 0;
}

.page-title h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.page-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blueprint-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.blueprint-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blueprint-card:hover::before {
    transform: scaleX(1);
}

.blueprint-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.blueprint-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blueprint-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.blueprint-card img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

/* ============================================
   BLUEPRINT ÉPINGLÉ (GRAND FORMAT)
   ============================================ */
.blueprint-pinned {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.blueprint-pinned-content {
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.blueprint-pinned-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--bg-gradient-gold);
    z-index: 1;
}

.blueprint-pinned-image {
    width: 100%;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.blueprint-pinned-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.blueprint-pinned-info {
    padding: 3rem;
}

.blueprint-pinned-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.blueprint-pinned-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.blueprint-pinned-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.blueprint-pinned-form {
    margin-top: 2rem;
}

.blueprint-pinned-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blueprint-pinned-form .form-row:last-of-type {
    grid-template-columns: 1fr;
}

.blueprint-pinned-form .form-control {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

/* ============================================
   BLUEPRINTS EN MINIATURE
   ============================================ */
.content-cards {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-light);
}

.content-cards-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.content-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.content-card-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.content-card-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.content-card-image {
    width: 100%;
    min-height: 180px;
    max-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.content-card-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.content-card-card:hover .content-card-image img {
    transform: scale(1.02);
}

.content-card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.3;
}

.content-card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.content-card-content {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.content-card-form {
    margin-top: auto;
}

.content-card-form .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.content-card-form .btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
}

@media (max-width: 768px) {
    .blueprint-pinned-image {
        min-height: 250px;
        max-height: 400px;
    }
    
    .blueprint-pinned-image img {
        max-height: 400px;
    }
    
    .content-card-image {
        min-height: 150px;
        max-height: 200px;
    }
    
    .content-card-image img {
        max-height: 200px;
    }

    .blueprint-pinned-info {
        padding: 2rem 1.5rem;
    }

    .blueprint-pinned-form .form-row {
        grid-template-columns: 1fr;
    }

    .content-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info,
.contact-form-wrapper {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 85, 164, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.contact-info::before,
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-info:hover::before,
.contact-form-wrapper:hover::before {
    transform: scaleX(1);
}

.contact-info:hover,
.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 85, 164, 0.2);
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after,
.contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bg-gradient-gold);
    border-radius: var(--radius-full);
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(0, 85, 164, 0.02);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(0, 85, 164, 0.05);
    border-color: rgba(239, 65, 53, 0.2);
    transform: translateX(5px);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover .contact-item-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-gold);
}

.contact-item-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-item-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(0, 85, 164, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-4px) scale(1.1);
    border-color: var(--secondary);
    box-shadow: var(--shadow-gold);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    transform: scale(1.15);
    filter: brightness(0.9);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    position: relative;
    background: linear-gradient(135deg, #0055A4 0%, #003d7a 50%, #0055A4 100%);
    color: var(--text-white);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
    border-top: 3px solid var(--secondary);
    overflow: hidden;
    font-family: var(--font-body);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(239, 65, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(239, 65, 53, 0.5) 20%,
        rgba(239, 65, 53, 0.8) 50%,
        rgba(239, 65, 53, 0.5) 80%,
        transparent
    );
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}


.footer-section {
    position: relative;
}

.footer-section:first-child {
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bg-gradient-gold);
    border-radius: var(--radius-full);
    opacity: 0.8;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    word-wrap: break-word;
}

.footer-logo-title span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.footer-logo {
    width: 45px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    opacity: 0.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.65rem;
    position: relative;
    padding-left: 1.2rem;
}

.footer-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.8rem;
    transition: var(--transition);
    opacity: 0.7;
}

.footer-section ul li:hover::before {
    transform: translateX(3px);
    opacity: 1;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-weight: 500;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.footer-section a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-section p strong {
    color: var(--secondary);
    font-weight: 600;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem;
}

.footer-social-link:hover {
    color: var(--secondary);
    transform: translateY(-2px) scale(1.15);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    font-size: 0.8rem;
    gap: 1rem;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        var(--secondary) 0%,
        rgba(239, 65, 53, 0.5) 100%
    );
}

.footer-bottom p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    font-size: 0.8rem;
}

.footer-bottom .copyright-left {
    text-align: left;
}

.footer-bottom .copyright-left::before {
    content: '©';
    margin-right: 5px;
    color: var(--secondary);
    font-weight: 700;
}

.footer-bottom .copyright-right {
    text-align: right;
    white-space: nowrap;
}

/* Les réseaux sociaux et copyright gardent la même position sur mobile/tablette */
/* Changement de position uniquement en desktop (min-width: 992px) */
@media (max-width: 991.98px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom::before {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .footer-bottom .copyright-left,
    .footer-bottom .copyright-right {
        text-align: center;
        width: 100%;
        white-space: normal;
    }
    
    .footer-social-links {
        justify-content: center;
    }
}


.footer-bottom .developer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.footer-bottom .developer-link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.heart-beat {
    display: inline-block;
    color: #ff1744;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 1.1em;
    vertical-align: middle;
    margin: 0 3px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.2);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    75% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body:not(.user-dashboard) {
        padding-top: 0 !important;
    }
    body {
        font-size: 15px;
    }
    
    /* Header Mobile */
    .main-header {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
    }
    
    .nav-wrapper {
        padding: 0.875rem 1.5rem;
    }
    
    .main-header.scrolled .nav-wrapper {
        padding: 0.875rem 1.5rem;
    }
    
    .main-header.scrolled {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .main-header.scrolled .logo-img {
        height: 50px;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .main-header.scrolled .logo-name {
        font-size: 1rem;
    }

    .main-header.scrolled .logo-subtitle {
        font-size: 0.55rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 1.5rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.95rem;
        text-align: left;
    }
    
    .nav-wrapper {
        padding: 1rem;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 400px;
        margin-top: 70px !important;
        margin-bottom: 80px !important;
        padding-bottom: 100px !important;
    }
    
    .page-title {
        margin-top: 85px;
        padding: 0 1.5rem;
    }
    
    .page-title h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: 0.75rem;
    }
    
    .page-title p {
        font-size: clamp(0.9rem, 2vw, 1.05rem);
    }
    
    .hero-slider + .container,
    .hero-slider ~ .container {
        margin-top: 80px !important;
    }

    .slide {
        padding: 30px 20px;
    }
    
    .slide-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    }
    
    .slide-content h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 12px;
    }
    
    .slide-content h2 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: clamp(0.9rem, 2vw, 1.05rem);
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .slide-content .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.7rem;
        margin-top: 15px;
    }
    
    .slide-content .btn:hover {
        transform: none;
    }

    /* Sections Mobile */
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 40px;
    }
    
    .section-card {
        padding: 2rem 1.5rem;
    }
    
    .section-card h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .section-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .section-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .hero-slider + .container,
    .hero-slider ~ .container,
    .sections-container {
        margin-top: 60px !important;
    }

    /* Contact Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        padding: 1.25rem 0;
    }
    
    .contact-item-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-item-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item-content p {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }

    /* Blueprint Mobile */
    .blueprint-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blueprint-pinned {
        margin-bottom: 2rem;
    }
    
    .blueprint-pinned-image {
        min-height: 250px;
        max-height: 350px;
    }
    
    .blueprint-pinned-info {
        padding: 2rem 1.5rem;
    }
    
    .blueprint-pinned-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .blueprint-pinned-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .blueprint-pinned-body {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .blueprint-pinned-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-cards {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .content-cards-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .content-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-card-card {
        margin-bottom: 0;
    }
    
    .content-card-info {
        padding: 1.25rem;
    }
    
    .content-card-title {
        font-size: 1.15rem;
    }
    
    .content-card-description {
        font-size: 0.85rem;
    }
    
    /* Appointment Section Mobile */
    .home-section {
        padding: 2.5rem 1.5rem;
        margin-top: 40px;
    }
    
    .home-section h2 {
        font-size: clamp(1.75rem, 4vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .home-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .home-section .btn {
        width: 100%;
        padding: 1.125rem 2rem;
        min-width: auto;
        font-size: 1rem;
    }

    /* Footer responsive */
    .main-footer {
        padding: 2rem 0 1rem;
        margin-top: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
        padding: 0 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
        text-align: center;
        width: 100%;
        display: block;
    }

    .footer-logo-title {
        justify-content: center;
        text-align: center;
        width: 100%;
        flex-direction: column;
    }
    
    .footer-logo-title h3 {
        justify-content: center;
    }

    .footer-logo {
        width: 40px;
        margin: 0 auto;
    }

    .footer-section h3::after,
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        display: inline-block;
        text-align: left;
    }

    .footer-section ul li {
        margin-bottom: 0.6rem;
    }

    .footer-section a {
        font-size: 0.875rem;
    }

    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Footer-bottom garde la même position centrée que mobile */
    .footer-bottom {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding-top: 1.25rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 0.75rem;
    }

    .footer-bottom::before {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80px;
    }

    .footer-bottom .copyright-left,
    .footer-bottom .copyright-right {
        text-align: center !important;
        width: 100%;
        white-space: normal;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    .footer-social-links {
        justify-content: center !important;
    }
}

/* ============================================
   STYLES MODALS BOOTSTRAP
   ============================================ */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 85, 164, 0.25);
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
}

.modal-header {
    border-radius: 1.25rem 1.25rem 0 0;
    border-bottom: none;
    padding: 1.75rem 2rem;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.modal-title {
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 2.5rem 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #0055A4;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 2rem;
    border-radius: 0 0 1.25rem 1.25rem;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: #FFFFFF;
}

.modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

.modal-footer .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: #FFFFFF;
}

.modal-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.btn-close {
    opacity: 0.85;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-backdrop {
    background-color: rgba(0, 85, 164, 0.6);
    backdrop-filter: blur(3px);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Responsive pour les modals */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.15rem;
    }
    
    .modal-body {
        padding: 1.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVE AMÉLIORÉ - TABLETTES (768px - 991px)
   ============================================ */
@media (min-width: 769px) and (max-width: 991.98px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header pour tablettes */
    .main-header {
        height: 75px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-name {
        font-size: 1.15rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero Slider pour tablettes */
    .hero-slider {
        height: 500px;
        margin-top: 75px !important;
        padding-bottom: 120px !important;
    }
    
    .slide {
        padding: 50px 40px;
    }
    
    .slide-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 15px;
    }
    
    .slide-content h2 {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        margin-bottom: 12px;
    }
    
    .slide-content p {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
        margin-bottom: 25px;
    }
    
    .slide-content .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.8rem;
    }
    
    /* Sections pour tablettes */
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section-card {
        padding: 2rem;
    }
    
    .section-card h3 {
        font-size: 1.35rem;
    }
    
    .section-card p {
        font-size: 0.95rem;
    }
    
    /* Page Title pour tablettes */
    .page-title {
        margin-top: 90px;
        padding: 0 1.5rem;
    }
    
    .page-title h1 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .page-title p {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    }
    
    /* Contact pour tablettes */
    .contact-wrapper {
        gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .contact-item {
        padding: 1rem 0;
    }
}

/* Responsive pour contact page mobile */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    .contact-item-icon {
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
    
    /* Blueprint pour tablettes */
    .blueprint-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .blueprint-pinned-image {
        min-height: 350px;
        max-height: 450px;
    }
    
    .blueprint-pinned-info {
        padding: 2.5rem;
    }
    
    .blueprint-pinned-title {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }
    
    .blueprint-pinned-description {
        font-size: 1.1rem;
    }
    
    .blueprint-pinned-body {
        font-size: 1rem;
    }
    
    .content-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    /* Appointment Section pour tablettes */
    .home-section {
        padding: 3rem 1.5rem;
    }
    
    .home-section h2 {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }
    
    .home-section p {
        font-size: 1rem;
    }
    
    /* Footer pour tablettes (uniquement pour 769px - 991.98px) */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section::before {
        left: 0;
        transform: none;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.05rem;
        text-align: left;
        width: auto;
        display: inline-block;
    }
    
    .footer-logo-title {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-section ul {
        text-align: left;
        display: block;
    }
    
    .footer-section ul li {
        padding-left: 1.2rem;
    }
    
    .footer-section ul li::before {
        display: block;
    }
    
    .footer-social-links {
        justify-content: flex-start;
    }
    
    /* Footer-bottom garde la même position que mobile (centré) */
    .footer-bottom {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }
    
    .footer-bottom::before {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80px;
    }
    
    .footer-bottom .copyright-left,
    .footer-bottom .copyright-right {
        text-align: center !important;
        width: 100%;
        white-space: normal;
    }
}

/* ============================================
   RESPONSIVE AMÉLIORÉ - TRÈS PETITS ÉCRANS (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-header {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }
    
    .main-header.scrolled {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }
    
    .nav-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .main-header.scrolled .logo-img {
        height: 40px;
    }
    
    .logo-name {
        font-size: 0.95rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .main-header.scrolled .logo-name {
        font-size: 0.9rem;
    }
    
    .main-header.scrolled .logo-subtitle {
        font-size: 0.45rem;
    }
    
    .hero-slider {
        height: 350px;
        margin-top: 60px !important;
        margin-bottom: 80px !important;
        padding-bottom: 120px !important;
    }
    
    .page-title {
        margin-top: 75px;
        padding: 0 1rem;
    }
    
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .page-title p {
        font-size: 0.95rem;
    }
    
    .slide {
        padding: 20px 15px;
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }
    
    .slide-content h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .slide-content .btn {
        padding: 0.45rem 1rem;
        font-size: 0.65rem;
        margin-top: 10px;
    }
    
    .slide-content .btn:hover {
        transform: none;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-wrapper {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .contact-item-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-item-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .blueprint-pinned-info {
        padding: 1.5rem 1rem;
    }
    
    .blueprint-pinned-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .blueprint-pinned-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .blueprint-pinned-image {
        min-height: 200px;
        max-height: 300px;
    }
    
    .blueprint-pinned-image img {
        max-height: 300px;
    }
    
    .content-card-card {
        margin-bottom: 1.5rem;
    }
    
    .content-card-image {
        min-height: 180px;
        max-height: 200px;
    }
    
    .content-card-info {
        padding: 1.25rem;
    }
    
    .content-card-title {
        font-size: 1.1rem;
    }
    
    .content-card-description {
        font-size: 0.85rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .section-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    .section-card p {
        font-size: 0.9rem;
    }
    
    .home-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .home-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .home-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: 0.875rem 1.25rem;
    }
    
    .modal-footer .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .main-footer {
        padding: 1.5rem 0 0.75rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-section {
        text-align: center;
        padding: 0;
    }
    
    .footer-logo-title {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo-title h3 {
        justify-content: center;
        width: 100%;
    }
    
    .footer-logo-title span {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .footer-logo {
        width: 35px;
        margin: 0 auto;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.875rem;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .footer-section ul {
        text-align: center;
        display: inline-block;
    }
    
    .footer-section ul li {
        margin-bottom: 0.6rem;
        padding-left: 0;
        justify-content: center;
    }
    
    .footer-section ul li::before {
        display: none;
    }
    
    .footer-social-links {
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .footer-social-link {
        width: 38px;
        height: 38px;
        padding: 0.35rem;
    }
    
    .footer-social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem 1rem;
    }
    
    .footer-bottom::before {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.5;
    }
    
    .footer-bottom .copyright-left,
    .footer-bottom .copyright-right {
        text-align: center;
        width: 100%;
    }
    
    .footer-bottom .copyright-right {
        white-space: normal;
        word-break: break-word;
    }
    
    .footer-logo {
        max-width: 60px;
        height: auto;
    }
}

/* ============================================
   RESPONSIVE POUR FORMULAIRES
   ============================================ */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-control,
    select.form-control,
    textarea.form-control {
        width: 100%;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    input[type="date"],
    input[type="time"],
    input[type="email"],
    input[type="tel"],
    input[type="text"] {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}

/* ============================================
   RESPONSIVE POUR TIME SLOTS (APPOINTMENT)
   ============================================ */
@media (max-width: 768px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .time-slot {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Formulaires appointment mobile */
    div[style*="max-width: 800px"] {
        max-width: 100% !important;
        margin: 0 1rem 16px !important;
    }
    
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
    
    .contact-form-wrapper h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: 1fr !important;
        gap: 0.625rem;
    }
    
    .time-slot {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    /* Formulaires appointment très petits écrans */
    div[style*="max-width: 800px"] {
        margin: 0 0.75rem 12px !important;
    }
    
    div[style*="padding: 14px 16px"] {
        padding: 12px 14px !important;
    }
    
    div[style*="padding: 10px 12px"] {
        padding: 8px 10px !important;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem !important;
    }
}

/* ============================================
   RESPONSIVE POUR ALERTS
   ============================================ */
@media (max-width: 768px) {
    .alert {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }
    
    .alert-error,
    .alert-success,
    .alert-warning,
    .alert-info {
        padding: 1rem 1.25rem;
    }
}

/* ============================================
   RESPONSIVE POUR GRID INLINE (appointment.php)
   ============================================ */
@media (max-width: 768px) {
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    div[style*="display: grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ============================================
   RESPONSIVE POUR EXCLUSION PERIODS (appointment.php)
   ============================================ */
@media (max-width: 768px) {
    div[style*="max-width: 800px"] {
        margin: 0 1rem 16px !important;
        max-width: 100% !important;
    }
    
    div[style*="display: flex"][style*="flex-wrap"] {
        flex-wrap: wrap !important;
    }
    
    div[style*="display: grid"][style*="gap: 8px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    div[style*="padding: 14px 16px"] {
        padding: 12px 14px !important;
    }
    
    div[style*="padding: 10px 12px"] {
        padding: 8px 10px !important;
    }
    
    strong[style*="font-size: 0.95rem"] {
        font-size: 0.85rem !important;
    }
    
    span[style*="font-size: 0.8rem"],
    span[style*="font-size: 0.82rem"],
    span[style*="font-size: 0.75rem"] {
        font-size: 0.75rem !important;
    }
}

/* ============================================
   AMÉLIORATIONS RESPONSIVE GÉNÉRALES
   ============================================ */
@media (max-width: 768px) {
    /* Images responsives */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables responsives */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Texte adaptatif */
    p, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Boutons full-width sur mobile */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Alerts responsive */
    .alert {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: var(--radius);
        margin: 1rem 0;
    }
    
    .alert-error,
    .alert-success,
    .alert-warning,
    .alert-info {
        padding: 1rem 1.25rem;
    }
    
    /* Container responsive */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Page title responsive */
    .page-title {
        padding: 0 1rem;
        margin-top: 20px;
    }
    
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .page-title p {
        font-size: 0.95rem;
    }
    
    /* Form container responsive */
    .form-container {
        padding: 1.5rem !important;
    }
    
    /* Grid responsive - toutes les grilles passent à 1 colonne */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Flex responsive - empilement vertical */
    [style*="display: flex"][style*="flex-direction: row"] {
        flex-direction: column !important;
    }
    
    /* Cards responsive */
    .card, [class*="card"] {
        margin-bottom: 1rem;
    }
    
    /* Sections responsive */
    section {
        padding: 2rem 1rem;
    }
}

/* Améliorations pour tablettes */
@media (min-width: 769px) and (max-width: 991.98px) {
    /* Images responsives */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables responsives */
    table {
        font-size: 0.95rem;
    }
    
    /* Alerts pour tablettes */
    .alert {
        padding: 1.125rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Espacement réduit sur très petits écrans */
    .container {
        padding: 0 0.875rem;
    }
    
    /* Texte plus petit sur très petits écrans */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    /* Boutons adaptatifs */
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }
    
    /* Formulaires optimisés pour mobile */
    input, select, textarea {
        font-size: 16px !important; /* Évite le zoom automatique sur iOS */
    }
    
    /* Alerts très petits écrans */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Espacement général réduit */
    .section-card,
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem 1.25rem;
    }
}

/* ============================================
   SECTION AVIS CLIENTS
   ============================================ */
.reviews-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 40px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-gold);
    z-index: 1;
}

.reviews-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.reviews-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.reviews-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient-gold);
    border-radius: 2px;
}

.reviews-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.reviews-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    padding: 0 50px;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    min-height: 280px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.reviews-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.review-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 300px;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 85, 164, 0.12);
    text-align: center;
    border: 1px solid rgba(0, 85, 164, 0.1);
    position: relative;
    scroll-snap-align: start;
}

.review-card:hover {
    box-shadow: 0 12px 40px rgba(0, 85, 164, 0.18);
    transform: translateY(-5px) scale(1.02);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 1;
}

.review-rating {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.review-rating .star {
    font-size: 1.4rem;
    color: #ddd;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.review-rating .star.filled {
    color: #f9d423;
    transform: scale(1.1);
}

.review-comment {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.review-comment p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
    position: relative;
    padding: 0 0.5rem;
}

.review-author-info {
    margin-top: 1.25rem;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.review-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 85, 164, 0.25);
    flex-shrink: 0;
}

.review-author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.review-author-details strong {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.review-author-details .review-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.review-nav {
    background: var(--primary);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 85, 164, 0.2);
}

.review-nav:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.review-nav:active {
    transform: scale(0.95);
}

.reviews-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.review-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.review-dot:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Responsive pour les avis */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }
    
    .reviews-header {
        margin-bottom: 1.5rem;
    }
    
    .reviews-header h2 {
        font-size: 1.6rem;
    }
    
    .reviews-header p {
        font-size: 0.9rem;
    }
    
    .reviews-track {
        min-height: 240px;
    }
    
    .review-card {
        padding: 1.5rem 1.25rem;
    }
    
    .review-card::before {
        font-size: 3rem;
        top: 12px;
        left: 18px;
    }
    
    .review-rating .star {
        font-size: 1.3rem;
    }
    
    .review-comment p {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }
    
    .review-author-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .review-author-details strong {
        font-size: 0.95rem;
    }
    
    .review-author-details .review-date {
        font-size: 0.8rem;
    }
    
    .reviews-controls {
        margin-top: 1.25rem;
    }
    
    .review-nav {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .review-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 280px;
    }
    
    .reviews-slider {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 90%;
        min-width: 220px;
    }
    
    .reviews-slider {
        padding: 0 15px;
    }
}

/* ============================================
   DESKTOP FOOTER - Logo et Contact côte à côte
   ============================================ */
@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        grid-auto-flow: row !important;
        display: grid !important;
        gap: 2rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 2rem !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .footer-section {
        text-align: left !important;
    }
    
    .footer-section::before {
        left: 0 !important;
        transform: none !important;
    }
    
    .footer-section h3,
    .footer-section h4 {
        text-align: left !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    .footer-logo-title {
        justify-content: flex-start !important;
        text-align: left !important;
        flex-direction: row !important;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 0 !important;
        transform: none !important;
    }
    
    .footer-section ul {
        text-align: left !important;
        display: block !important;
    }
    
    .footer-section ul li {
        padding-left: 1.2rem !important;
    }
    
    .footer-section ul li::before {
        display: block !important;
    }
    
    .footer-social-links {
        justify-content: flex-start !important;
    }
    
    .footer-bottom {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .footer-bottom::before {
        left: 2rem !important;
        transform: none !important;
        width: 100px !important;
    }
    
    .footer-bottom .copyright-left {
        text-align: left !important;
        width: auto !important;
    }
    
    .footer-bottom .copyright-right {
        text-align: right !important;
        width: auto !important;
        white-space: nowrap !important;
    }
}

/* ============================================
   PAGE D'ACCUEIL - LOGIN + TÉMOIGNAGES (ENFANTS)
   ============================================ */
.page-home {
    position: relative;
    overflow-x: hidden;
    padding-top: 0;
}

/* Flottants décoratifs */
.home-floats {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0.25;
    animation: float-bounce 6s ease-in-out infinite;
}

.float-1 { top: 12%; left: 8%; animation-delay: 0s; }
.float-2 { top: 22%; right: 12%; animation-delay: 1s; }
.float-3 { bottom: 35%; left: 15%; animation-delay: 2s; }
.float-4 { bottom: 25%; right: 8%; animation-delay: 0.5s; }
.float-5 { top: 45%; left: 5%; animation-delay: 1.5s; }
.float-6 { top: 55%; right: 10%; animation-delay: 2.5s; }

@keyframes float-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes pop-in {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes soft-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-pop {
    animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-float {
    animation: soft-float 4s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Hero Connexion */
.page-home .hero-login {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    z-index: 1;
}

.hero-login-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0055A4 0%, #1a6bc4 35%, #003d7a 70%, #EF4135 100%);
    background-size: 200% 200%;
    animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-login-inner {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
}

.hero-login-content {
    text-align: center;
}

.hero-login-logo {
    margin-bottom: 1rem;
}

.hero-login-logo .hero-logo-img {
    width: 90px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-login-logo .hero-logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.hero-login-title {
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-login-title .title-line {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    opacity: 0.95;
}

.hero-login-title .title-main {
    font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
    font-weight: 800 !important;
    margin-top: 0.25rem;
}

.hero-login-subtitle {
    color: rgba(255,255,255,0.95) !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
}

/* Boîte login */
.page-home .login-box {
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
}

.home-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.home-form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.home-input {
    width: 100%;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    border: 2px solid var(--border-color) !important;
    font-size: 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.home-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.15) !important;
    outline: none !important;
}

.home-form-links {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.home-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.home-link:hover {
    color: var(--secondary);
}

.home-link-cta {
    text-decoration: underline;
}

.home-btn-login {
    width: 100%;
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0055A4 0%, #1a6bc4 100%) !important;
    border: none !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 6px 20px rgba(0, 85, 164, 0.4) !important;
}

.home-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 85, 164, 0.5) !important;
}

.home-btn-login .btn-icon {
    font-size: 1.2rem;
}

.home-register-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.home-register-block p {
    margin: 0 !important;
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
}

.home-alert {
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* Section témoignages sur la home */
.page-home .home-reviews {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.page-home .home-review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .home-review-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 85, 164, 0.18);
}

/* Footer minimal (page d'accueil) */
.main-footer.footer-minimal {
    padding: 1.25rem 0;
    margin-top: 0;
}

.main-footer.footer-minimal .footer-bottom {
    display: block;
    text-align: center;
}

.main-footer.footer-minimal .footer-bottom::before {
    display: none;
}

.footer-bottom .copyright-single {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-home .hero-login {
        min-height: auto;
        padding: 100px 16px 50px;
    }
    .page-home .login-box {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }
    .float-item {
        opacity: 0.2;
        font-size: 1.4rem;
    }
}
