/**
 * INIGEP - Design Moderne 2025
 * Un design épuré, élégant et impressionnant
 */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    /* Couleurs principales */
    --primary: #e41e2f;
    --primary-dark: #b8182a;
    --primary-light: #ff4757;
    --primary-gradient: linear-gradient(135deg, #e41e2f 0%, #ff6b7a 100%);
    --primary-gradient-reverse: linear-gradient(135deg, #ff6b7a 0%, #e41e2f 100%);

    /* Couleurs neutres */
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;

    /* Effets */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-primary: 0 10px 40px rgba(228, 30, 47, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Bordures */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;

    /* Typographie */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

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

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(228, 30, 47, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.btn-lg {
    padding: 18px 42px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 45px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--dark);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(228, 30, 47, 0.1);
    color: var(--primary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta .btn {
    padding: 12px 28px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.header.scrolled .mobile-toggle span {
    background: var(--dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(228, 30, 47, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(228, 30, 47, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 122, 0.1) 0%, transparent 40%);
    z-index: 1;
}

/* Animated background shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(10px, 10px) rotate(3deg); }
}

/* Logo blanc en fond du hero */
.hero-logo-bg {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.hero-logo-bg img {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(228, 30, 47, 0.2);
    border: 1px solid rgba(228, 30, 47, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 12px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 25px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stat-number span {
    color: var(--primary);
}

.hero-stat-label {
    font-size: 14px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image/Visual Side */
.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    z-index: 1;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    animation: cardFloat 6s infinite ease-in-out;
}

.hero-card:nth-child(1) {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.hero-card:nth-child(2) {
    top: 40%;
    right: 5%;
    animation-delay: -2s;
}

.hero-card:nth-child(3) {
    bottom: 15%;
    right: 25%;
    animation-delay: -4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
}

.hero-card h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 5px;
}

.hero-card p {
    color: var(--gray-500);
    font-size: 13px;
    margin: 0;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.section {
    padding: 30px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-dark {
    background: var(--dark);
}

.section-gray {
    background: var(--gray-100);
}

.section-gradient {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(228, 30, 47, 0.1);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ============================================
   FEATURES / SERVICES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(228, 30, 47, 0.1) 0%, rgba(228, 30, 47, 0.05) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
}

.feature-card:hover .feature-icon i {
    color: var(--white);
}

.feature-card h4 {
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.feature-link i {
    transition: var(--transition);
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--primary-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CARDS - EXPERTS
   ============================================ */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expert-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.expert-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.expert-card:hover .expert-image img {
    transform: scale(1.1);
}

.expert-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
}

.expert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
}

.expert-content {
    padding: 25px;
}

.expert-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.expert-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 15px;
}

.expert-location i {
    color: var(--primary);
}

.expert-specialites {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.expert-tag {
    padding: 5px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--dark);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(228, 30, 47, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(228, 30, 47, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
    cursor: pointer;
    height: auto;
    min-height: 56px;
}

select {
    cursor: pointer;
}

select.form-select,
select.form-control {
    padding: 16px 50px 16px 20px;
    height: auto;
    line-height: 1.2;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.footer h5 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding-left: 0.5rem;
}

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

.footer-links a {
    color: var(--gray-400);
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: none;
    padding-left: 0;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MAP
   ============================================ */
#map-experts {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#map-experts .leaflet-container {
    width: 100%;
    height: 100%;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.leaflet-popup-content {
    margin: 12px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-primary);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .hero-stat {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .contact-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   PAGE TITLE / BREADCRUMB
   ============================================ */
.page-header {
    background: var(--dark);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(228, 30, 47, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(228, 30, 47, 0.15) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    color: var(--gray-400);
    font-size: 15px;
}

.breadcrumb li a {
    color: var(--gray-400);
}

.breadcrumb li a:hover {
    color: var(--primary);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--gray-600);
}

/* ============================================
   LOADING
   ============================================ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.filter-bar .row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-bar .col {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   ADMIN OVERRIDES
   ============================================ */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.login-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.login-box .logo img {
    height: 80px;
    margin-bottom: 30px;
}

.login-box h2 {
    margin-bottom: 30px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-header img {
    height: 40px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-nav {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 5px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(228, 30, 47, 0.1);
    color: var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 9998;
    border-radius: 0;
    transition: opacity 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flash-message.alert-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.flash-message.alert-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.flash-message.alert-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.flash-message.alert-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ============================================
   ADDITIONAL UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-gradient { background: var(--primary-gradient) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.w-100 { width: 100% !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.d-grid { display: grid !important; }

.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
    .d-md-block { display: block !important; }
}

@media (min-width: 992px) {
    .d-lg-flex { display: flex !important; }
    .d-lg-block { display: block !important; }
}

/* ============================================
   FORMATION CARDS MODERN
   ============================================ */
.formation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
}

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

.formation-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.formation-icon i {
    font-size: 32px;
    color: var(--white);
}

.formation-card h3 {
    text-align: center;
    margin-bottom: 10px;
}

.formation-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(228, 30, 47, 0.1), rgba(61, 81, 154, 0.1));
    border-radius: var(--radius);
}

.formation-card h5 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
}

.formation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formation-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.formation-list li i {
    color: var(--primary);
    margin-top: 4px;
}

/* ============================================
   VALUE BOXES
   ============================================ */
.value-box {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.value-box:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.value-box i {
    color: var(--primary);
    margin-bottom: 15px;
}

.value-box h5 {
    margin-bottom: 10px;
}

.value-box p {
    font-size: 14px;
    margin: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content h3 {
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.about-list li i {
    color: var(--primary);
    margin-top: 4px;
}

/* ============================================
   ANNUAIRE / MAP SECTION
   ============================================ */
.map-section {
    position: relative;
}

.map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.map-preview {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-preview-content {
    text-align: center;
    padding: 40px;
}

.map-preview-content i {
    color: var(--primary);
    margin-bottom: 20px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--gray-100);
    padding: 60px 0;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
}

.newsletter-form button {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ============================================
   ADVANTAGES GRID
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 28px;
    color: var(--white);
}

.advantage-card h4 {
    margin-bottom: 15px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(228, 30, 47, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    color: var(--primary);
    font-size: 20px;
}

.contact-info-text h5 {
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-info-text p {
    margin: 0;
    color: var(--gray-600);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* ============================================
   EXPERT DASHBOARD
   ============================================ */
.dashboard-header {
    background: var(--primary-gradient);
    padding: 40px 0;
    margin-top: 80px;
}

.dashboard-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.dashboard-stat {
    text-align: center;
}

.dashboard-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.dashboard-stat-label {
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 10px;
}

/* ============================================
   LOGIN/REGISTER PAGES
   ============================================ */
.auth-section {
    min-height: calc(100vh - 80px);
    padding: 160px 0 80px;
    background: var(--gray-100);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.auth-header h2 {
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-600);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.auth-divider span {
    padding: 0 20px;
    color: var(--gray-500);
    font-size: 14px;
}

/* Checkbox style */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600);
}

/* ============================================
   EXPERT NAVIGATION
   ============================================ */
.expert-nav {
    display: flex;
    flex-direction: column;
}

.expert-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    text-decoration: none;
}

.expert-nav-link:hover {
    background: rgba(228, 30, 47, 0.08);
    color: var(--primary);
}

.expert-nav-link.active {
    background: var(--primary-gradient);
    color: var(--white);
}

.expert-nav-link i {
    width: 20px;
    text-align: center;
}

/* Expert tag */
.expert-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(228, 30, 47, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   CONTACT CARD
   ============================================ */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table {
    margin-bottom: 0;
}

.table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-color: var(--gray-200);
}

.table-borderless td {
    border: none;
}

/* ============================================
   ALERT STYLES
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    border: none;
}

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

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

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

/* ============================================
   EXPERT PROFILE PAGE
   ============================================ */
.expert-hero {
    background: var(--dark);
    padding: 150px 0 80px;
    color: var(--white);
}

.expert-photo-large {
    position: relative;
    display: inline-block;
}

.expert-photo-large img,
.expert-placeholder-large {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.expert-placeholder-large {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 72px;
    font-weight: 700;
}

.expert-badge-large {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #333;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.expert-hero-content h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.expert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.expert-meta span {
    color: var(--gray-400);
    font-size: 15px;
}

.expert-meta span i {
    color: var(--primary);
    margin-right: 8px;
}

.badge-inigep {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.expert-tag-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.expert-tag-hero i {
    color: var(--primary-light);
}

.expert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Expert info sidebar */
.expert-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expert-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.expert-info-item i {
    width: 20px;
    text-align: center;
    margin-top: 3px;
}

.expert-info-item span,
.expert-info-item a {
    color: var(--gray-700);
    line-height: 1.5;
}

.expert-info-item a {
    color: var(--primary);
    text-decoration: none;
}

.expert-info-item a:hover {
    text-decoration: underline;
}

/* Specialité cards */
.specialite-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
}

.specialite-card:hover {
    background: var(--gray-200);
}

.specialite-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.specialite-content h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.specialite-content p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

/* Info items */
.info-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* Contact sidebar */
.contact-sidebar-card {
    border: 2px solid var(--gray-200);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-item > i {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 3px;
}

.contact-info-item a,
.contact-info-item span {
    color: var(--dark);
    font-weight: 500;
}

.contact-info-item a:hover {
    color: var(--primary);
}

/* Responsive expert profile */
@media (max-width: 991px) {
    .expert-hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .expert-photo-large img,
    .expert-placeholder-large {
        width: 180px;
        height: 180px;
        font-size: 48px;
    }

    .expert-hero-content h1 {
        font-size: 32px;
    }

    .expert-meta {
        justify-content: center;
    }

    .expert-specialites-hero {
        justify-content: center;
    }

    .expert-actions {
        justify-content: center;
    }
}
