/**
 * STYLE ULTRA MODERNE POUR PLATEFORME PNL

 * Palette: Bleu Royal (#1F4E79), Or (#C9A13B), Vert Menthe (#A7C7A9)
 */

/* ============================================
   VARIABLES CSS ULTRA MODERNES
   ============================================ */
:root {
    /* Palette de couleurs personnalisée */
    --primary: #1F4E79;           /* Bleu royal */
    --primary-dark: #163a5f;
    --primary-light: #2d6ba8;
    --secondary: #C9A13B;         /* Or doux */
    --secondary-dark: #a68530;
    --secondary-light: #d4b05f;
    --accent: #A7C7A9;            /* Vert menthe doux */
    --accent-dark: #8ab58d;
    
    /* Couleurs fonctionnelles */
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
    
    /* Couleurs de texte */
    --text-primary: #1F4E79;
    --text-secondary: #5a6c7d;
    --text-light: #8794a1;
    --text-white: #FFFFFF;
    --text-gold: #C9A13B;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F3F3;
    --bg-dark: #1F4E79;
    --bg-gradient: linear-gradient(135deg, #1F4E79 0%, #2d6ba8 100%);
    --bg-gradient-gold: linear-gradient(135deg, #C9A13B 0%, #d4b05f 100%);
    --bg-gradient-accent: linear-gradient(135deg, #1F4E79 0%, #A7C7A9 100%);
    
    /* Borders */
    --border-color: #dce1e6;
    --border-light: #F3F3F3;
    --border-gold: #C9A13B;
    --border-primary: #1F4E79;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(31, 78, 121, 0.08);
    --shadow: 0 4px 12px -2px rgba(31, 78, 121, 0.12);
    --shadow-md: 0 8px 20px -4px rgba(31, 78, 121, 0.15);
    --shadow-lg: 0 16px 32px -8px rgba(31, 78, 121, 0.18);
    --shadow-xl: 0 24px 48px -12px rgba(31, 78, 121, 0.22);
    --shadow-gold: 0 8px 24px -4px rgba(201, 161, 59, 0.3);
    --shadow-glow: 0 0 40px rgba(201, 161, 59, 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: 'Cairo', sans-serif;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', 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: rtl;
    text-align: right;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0 !important;
}

@media (max-width: 991.98px) {
    body {
        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(31, 78, 121, 0.1);
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    box-shadow: 0 8px 32px rgba(31, 78, 121, 0.12), 
                0 0 0 1px rgba(31, 78, 121, 0.05);
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    box-sizing: border-box;
}

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

.main-header:hover::before {
    right: 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(31, 78, 121, 0.15), 
                0 0 0 1px rgba(31, 78, 121, 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%;
    margin: 0;
}

.nav-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0.875rem 1rem;
    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 1rem;
}

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

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

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 12px rgba(31, 78, 121, 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(31, 78, 121, 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-right: 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(31, 78, 121, 0.08), 
        rgba(201, 161, 59, 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;
    right: 1.25rem;
    left: 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;
}

.nav-link-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem !important;
    min-width: 40px;
    border-radius: var(--radius-md);
    background: transparent;
    transition: all 0.3s ease;
}

.nav-link-login svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-link-login:hover {
    background: rgba(31, 78, 121, 0.1);
    transform: translateY(-2px);
}

.nav-link-login:hover svg {
    stroke: var(--primary);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    margin-right: 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: 70px !important;
    overflow-x: hidden;
    overflow-y: visible;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 0 !important;
    }
    
    /* Padding-top pour les pages qui n'utilisent pas .main-content */
    .section.container {
        padding-top: 90px !important;
    }
    
    .search-section {
        padding-top: 90px !important;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Section avec container - largeur complète sur desktop */
.section.container {
    width: 100%;
    max-width: none;
    padding: 0 2rem;
    padding-top: 90px;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Règle générale pour toutes les sections - pas d'overflow scrollable */
.section {
    overflow-x: hidden;
    overflow-y: visible;
}

/* 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-right: 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, #C9A13B 0%, #d4b05f 50%, #e6c87f 100%);
    color: #1F4E79;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(201, 161, 59, 0.25),
                0 1px 4px rgba(31, 78, 121, 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;
    right: -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 {
    right: 100%;
}

.slide-content .btn:hover {
    background: linear-gradient(135deg, #d4b05f 0%, #e6c87f 50%, #f0d699 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(201, 161, 59, 0.35),
                0 2px 6px rgba(31, 78, 121, 0.18);
}

.slide-content .btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(201, 161, 59, 0.25),
                0 1px 2px rgba(31, 78, 121, 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-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    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
   ============================================ */
.appointment-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(31, 78, 121, 0.02) 0%, 
        rgba(201, 161, 59, 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);
}

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

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

/* Boutons stylisés pour les sections home_sections */
.appointment-section .btn {
    background: linear-gradient(135deg, #C9A13B 0%, #d4b05f 50%, #e6c87f 100%);
    color: #1F4E79;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1.125rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(201, 161, 59, 0.3),
                0 2px 8px rgba(31, 78, 121, 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;
}

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

.appointment-section .btn:hover::before {
    right: 100%;
}

.appointment-section .btn:hover {
    background: linear-gradient(135deg, #d4b05f 0%, #e6c87f 50%, #f0d699 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 24px rgba(201, 161, 59, 0.4),
                0 4px 12px rgba(31, 78, 121, 0.2);
    transform: translateY(-3px);
}

.appointment-section .btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(201, 161, 59, 0.3),
                0 1px 4px rgba(31, 78, 121, 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(31, 78, 121, 0.3);
    box-shadow: var(--shadow);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(31, 78, 121, 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(31, 78, 121, 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(31, 78, 121, 0.10);
}

.flatpickr-weekday {
    color: rgba(31, 78, 121, 0.75);
    font-weight: 700;
}

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

.flatpickr-day:hover {
    background: rgba(31, 78, 121, 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(31, 78, 121, 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(31, 78, 121, 0.03);
    border-color: rgba(31, 78, 121, 0.18);
}

.flatpickr-day.pnl-day-blocked::after {
    content: '';
    position: absolute;
    right: 15%;
    left: 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: right;
    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
   ============================================ */
.blueprints-miniature {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-light);
}

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

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

.blueprint-miniature-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;
}

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

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

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

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

.blueprint-miniature-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

.blueprint-miniature-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);
}

.blueprint-miniature-form {
    margin-top: auto;
}

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

.blueprint-miniature-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;
    }
    
    .blueprint-miniature-image {
        min-height: 150px;
        max-height: 200px;
    }
    
    .blueprint-miniature-image img {
        max-height: 200px;
    }

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

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

    .blueprints-miniature-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(31, 78, 121, 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: right;
    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(31, 78, 121, 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;
    right: 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(31, 78, 121, 0.02);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(31, 78, 121, 0.05);
    border-color: rgba(201, 161, 59, 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(31, 78, 121, 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, #1F4E79 0%, #163a5f 50%, #1F4E79 100%);
    color: var(--text-white);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
    border-top: 3px solid var(--secondary);
    overflow-x: hidden;
    overflow-y: visible;
    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(201, 161, 59, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 199, 169, 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(201, 161, 59, 0.5) 20%,
        rgba(201, 161, 59, 0.8) 50%,
        rgba(201, 161, 59, 0.5) 80%,
        transparent
    );
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    max-width: none;
    padding: 0 2rem;
    overflow-x: hidden;
    overflow-y: visible;
}

.footer-section {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

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

.footer-section::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 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;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(15deg);
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(15deg) drop-shadow(0 0 8px var(--secondary));
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 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-right: 1.2rem;
}

.footer-section ul li::before {
    content: '▸';
    position: absolute;
    right: 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;
    right: 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: none;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    font-size: 0.8rem;
    overflow-x: hidden;
    overflow-y: visible;
    gap: 1rem;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    right: 2rem;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        var(--secondary) 0%,
        rgba(201, 161, 59, 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: right;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.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;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 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;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .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 {
        padding-top: 0 !important;
        font-size: 15px;
    }
    
    /* Header Mobile */
    .main-header {
        height: 70px;
        min-height: 70px;
        max-height: 70px;
    }
    
    .nav-wrapper {
        padding: 0.875rem 1rem;
    }
    
    .main-header.scrolled .nav-wrapper {
        padding: 0.875rem 1rem;
    }
    
    .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;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 0 !important;
        padding-top: 0 !important;
        margin-top: -1px !important;
        transition: right 0.3s ease;
        border-top: none !important;
        box-shadow: var(--shadow-lg);
        gap: 0 !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu li:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .nav-menu li:first-child .nav-link {
        border-top: none !important;
        padding-top: 1rem !important;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-light);
        margin: 0 !important;
        display: block;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.95rem;
        text-align: right;
    }
    
    .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;
    }
    
    .blueprints-miniature {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .blueprints-miniature-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .blueprints-miniature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blueprint-miniature-card {
        margin-bottom: 0;
    }
    
    .blueprint-miniature-info {
        padding: 1.25rem;
    }
    
    .blueprint-miniature-title {
        font-size: 1.15rem;
    }
    
    .blueprint-miniature-description {
        font-size: 0.85rem;
    }
    
    /* Appointment Section Mobile */
    .appointment-section {
        padding: 2.5rem 1.5rem;
        margin-top: 40px;
    }
    
    .appointment-section h2 {
        font-size: clamp(1.75rem, 4vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .appointment-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .appointment-section .btn {
        width: 100%;
        padding: 1.125rem 2rem;
        min-width: auto;
        font-size: 1rem;
    }

    /* Footer responsive - Mobile uniquement - Version simple et centrée */
    .main-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 2.5rem;
    }
    
    .main-footer .container {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        margin-bottom: 1.5rem;
        padding: 0;
        max-width: 100%;
    }

    .footer-section {
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section::before {
        display: none;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
        display: block;
        font-weight: 700;
        color: var(--secondary);
        position: relative;
        padding-bottom: 0.75rem;
    }

    .footer-section h3::after,
    .footer-section h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 60px;
        height: 2px;
        background: var(--secondary);
        border-radius: 2px;
    }

    .footer-logo-title {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
        width: 100%;
        margin: 0 auto 0.75rem;
        gap: 0.5rem;
        flex-direction: row;
    }
    
    .footer-logo-title h3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 1.2rem;
        color: #fff;
        margin: 0 auto;
        text-align: center;
        width: auto;
    }

    .footer-logo {
        width: 45px;
        height: 45px;
        object-fit: contain;
        display: block;
        margin: 0;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer-section ul li {
        margin-bottom: 0;
        padding-right: 0;
        width: auto;
    }

    .footer-section ul li::before {
        display: none;
    }

    .footer-section a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        display: inline-block;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-section a:hover {
        color: var(--secondary);
    }

    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }

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

    .footer-section p strong {
        color: var(--secondary);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Footer-bottom centré */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding-top: 1.5rem;
        padding-left: 20px;
        padding-right: 20px;
        font-size: 0.8rem;
        max-width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

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

    .footer-bottom .copyright-left {
        text-align: center;
        width: 100%;
        white-space: normal;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-bottom .copyright-right {
        text-align: center;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        display: inline-block;
        margin: 0 auto;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        margin: 0;
    }

    .footer-bottom .copyright-right .developer-link {
        white-space: nowrap;
        display: inline;
    }

    .footer-bottom .developer-link {
        color: var(--secondary);
        text-decoration: none;
        transition: color 0.3s ease;
        white-space: nowrap;
        display: inline;
    }

    .footer-bottom .developer-link:hover {
        color: #fff;
    }

    .heart-beat {
        display: inline-block;
        color: #ff1744;
    }
    
    .footer-social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .footer-social-link {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .footer-social-link:hover {
        background: rgba(201, 161, 59, 0.3);
        transform: translateY(-2px);
    }

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

/* ============================================
   STYLES MODALS BOOTSTRAP
   ============================================ */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 10px 40px rgba(31, 78, 121, 0.25);
    font-family: 'Cairo', 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: #1F4E79;
}

.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(31, 78, 121, 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;
    }
    
    /* 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;
    }
    
    .blueprints-miniature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    /* Appointment Section pour tablettes */
    .appointment-section {
        padding: 3rem 1.5rem;
    }
    
    .appointment-section h2 {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }
    
    .appointment-section p {
        font-size: 1rem;
    }
    
    /* Footer pour tablettes */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .footer-section {
        text-align: right;
    }
    
    .footer-section::before {
        left: 0;
        transform: none;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.05rem;
        text-align: right;
        width: auto;
        display: inline-block;
    }
    
    .footer-logo-title {
        justify-content: flex-start;
        text-align: right;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 0;
        transform: none;
    }
    
    /* Footer-bottom garde la même position que mobile (centré) */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }
    
    .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;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-social-links {
        justify-content: center;
    }
}

/* ============================================
   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;
    }
    
    .blueprint-miniature-card {
        margin-bottom: 1.5rem;
    }
    
    .blueprint-miniature-image {
        min-height: 180px;
        max-height: 200px;
    }
    
    .blueprint-miniature-info {
        padding: 1.25rem;
    }
    
    .blueprint-miniature-title {
        font-size: 1.1rem;
    }
    
    .blueprint-miniature-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;
    }
    
    .appointment-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .appointment-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .appointment-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: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .main-footer .container {
        padding: 0 15px;
    }
    
    .footer-content {
        padding: 0;
        gap: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-section {
        text-align: center;
        padding-bottom: 1.25rem;
    }
    
    .footer-logo-title {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
        margin: 0 auto 0.75rem;
    }
    
    .footer-logo-title h3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: auto;
        margin: 0 auto;
        font-size: 1.1rem;
    }
    
    .footer-logo-title span {
        font-size: 0.9rem;
        text-align: center;
    }

    .footer-logo {
        width: 40px;
        height: 40px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.625rem;
    }

    .footer-section h3::after,
    .footer-section h4::after {
        width: 50px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .footer-logo-title {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 0.75rem;
    }

    .footer-logo-title h3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto;
        width: auto;
    }

    .footer-section ul {
        gap: 0.625rem;
    }

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

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

    .footer-bottom {
        padding: 1.25rem 15px;
        gap: 0.875rem;
        font-size: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .footer-social-links {
        gap: 0.875rem;
        margin-top: 1rem;
    }

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

    .footer-social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 50%;
        transform: translateX(50%);
        width: 40px;
    }
    
    .footer-section ul li {
        margin-bottom: 0;
    }
    
    .footer-social-link {
        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: 1rem 1rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .footer-bottom::before {
        left: 50%;
        transform: translateX(50%);
        width: 80px;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        margin: 0;
    }
    
    .footer-bottom .copyright-left,
    .footer-bottom .copyright-right {
        text-align: center;
        width: 100%;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-bottom .copyright-right {
        white-space: normal;
        word-break: break-word;
    }
}

/* ============================================
   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;
    }
}

/* 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: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 60px;
    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: 4rem;
    position: relative;
    z-index: 1;
}

.reviews-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    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: 1000px;
    margin: 0 auto;
    z-index: 1;
}

.reviews-track {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.review-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background: white;
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(31, 78, 121, 0.15);
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

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

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

.review-rating .star {
    font-size: 1.75rem;
    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: 2.5rem;
    position: relative;
    z-index: 1;
}

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

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

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

.review-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.3);
    flex-shrink: 0;
}

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

.review-author-details strong {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

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

.review-nav {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.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: 12px;
    height: 12px;
    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 COMPLET POUR TOUS LES ÉCRANS
   ============================================ */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens (992px - 1399px) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Screens / Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Grilles */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 0;
    }
    
    .hero .title {
        font-size: clamp(28px, 4vw, 36px);
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
}

/* Small Screens / Mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Grilles */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    /* Navigation */
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
}

/* Extra Small Screens / Mobile (< 576px) */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: right;
    }
    
    /* Grilles - Une seule colonne */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .card .thumb {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero .title {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 1rem;
    }
    
    .hero .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero .cta .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    /* Sections */
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: clamp(20px, 5vw, 24px);
        margin-bottom: 1.5rem;
    }
    
    /* Boutons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Formulaires */
    .form-group,
    .form-field {
        margin-bottom: 1rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    /* Alerts */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        margin: 1rem 0;
    }
    
    /* Modals */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Très petits écrans (< 400px) */
@media (max-width: 399.98px) {
    .container {
        padding: 0 10px;
    }
    
    .hero .title {
        font-size: 20px;
    }
    
    .hero .subtitle {
        font-size: 0.85rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}

/* Orientation Landscape sur mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}

/* Touch devices - Augmenter les zones de clic */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .whatsapp-float,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Responsive pour les avis */
@media (max-width: 768px) {
    .reviews-section {
        padding: 80px 0;
    }
    
    .reviews-header {
        margin-bottom: 3rem;
    }
    
    .reviews-track {
        min-height: 380px;
    }
    
    .review-card {
        padding: 3rem 2rem;
    }
    
    .review-card::before {
        font-size: 5rem;
        top: 18px;
        right: 25px;
    }
    
    .review-rating .star {
        font-size: 1.6rem;
    }
    
    .review-comment p {
        font-size: 1.15rem;
        line-height: 1.9;
        padding: 0 0.75rem;
    }
    
    .review-author-avatar {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .review-author-details strong {
        font-size: 1.05rem;
    }
    
    .review-nav {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
}

/* ============================================
   AMÉLIORATIONS RESPONSIVE FINALES
   ============================================ */

/* Amélioration du viewport pour éviter le zoom sur iOS */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
}

/* Amélioration pour les écrans très larges */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Amélioration pour les tablettes en mode portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-wrapper {
        grid-template-columns: 250px 1fr;
    }
}

/* Amélioration pour les tablettes en mode paysage */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Amélioration pour les écrans moyens (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Amélioration pour les écrans larges (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
    
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Amélioration pour éviter le débordement horizontal */
@media (max-width: 767.98px) {
    * {
        max-width: 100%;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .container,
    .section,
    .hero {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    iframe,
    video,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }
}

/* Amélioration pour les très petits écrans (< 320px) */
@media (max-width: 319.98px) {
    .container {
        padding: 0 8px;
    }
    
    .hero .title {
        font-size: 18px !important;
    }
    
    .hero .subtitle {
        font-size: 12px !important;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .nav-wrapper {
        padding: 0.5rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .logo-name {
        font-size: 0.9rem;
    }
}
