/* CSS Variables - ARCEP Color Palette */
:root {
    --arcep-blue: #1B578E;
    --arcep-blue-light: #2A6BA8;
    --arcep-blue-dark: #0F3A5F;
    --primary-gradient: linear-gradient(135deg, #1B578E 0%, #2A6BA8 100%);
    --secondary-gradient: linear-gradient(135deg, #0F3A5F 0%, #1B578E 100%);
    --accent-gradient: linear-gradient(135deg, #1B578E 0%, #4A90C2 100%);
    /*--dark-gradient: linear-gradient(135deg, #0F3A5F 0%, #1B578E 100%);*/
    --success-gradient: linear-gradient(135deg, #1b578F 0%, #5ad3b7 100%);
    /* ARCEP Primary Colors */

    --arcep-blue-lighter: #4A90C2;
    --arcep-blue-lightest: #6BB6FF;

    --arcep-blue-darker: #0A2A45;
    --arcep-blue-darkest: #051D32;

    /* Complementary ARCEP Colors */
    --arcep-gold: #D4AF37;
    --arcep-gold-light: #E8C547;
    --arcep-gold-dark: #B8941F;
    --arcep-silver: #8C9AA8;
    --arcep-silver-light: #A8B5C2;
    --arcep-silver-dark: #6B7A87;

    /* ARCEP Semantic Colors */
    --arcep-success: #2E7D47;
    --arcep-success-light: #4A9D63;
    --arcep-warning: #D68910;
    --arcep-warning-light: #F39C12;
    --arcep-danger: #C0392B;
    --arcep-danger-light: #E74C3C;
    --arcep-info: #2980B9;
    --arcep-info-light: #3498DB;

    /* ARCEP Gradients */

    --primary-gradient-reverse: linear-gradient(135deg, #2A6BA8 0%, #1B578E 100%);
    --primary-gradient-dark: linear-gradient(135deg, #0F3A5F 0%, #1B578E 100%);
    --primary-gradient-light: linear-gradient(135deg, #1B578E 0%, #4A90C2 100%);



    --warning-gradient: linear-gradient(135deg, #D68910 0%, #F39C12 100%);
    --info-gradient: linear-gradient(135deg, #2980B9 0%, #3498DB 100%);
    --danger-gradient: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
    --dark-gradient: linear-gradient(135deg, #0A2A45 0%, #0F3A5F 100%);
    --silver-gradient: linear-gradient(135deg, #6B7A87 0%, #8C9AA8 100%);

    /* ARCEP Glass Effects */
    --glass-primary: rgba(27, 87, 142, 0.1);
    --glass-primary-hover: rgba(27, 87, 142, 0.2);
    --glass-secondary: rgba(212, 175, 55, 0.1);
    --glass-light: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(10, 42, 69, 0.1);

    /* ARCEP Shadows */
    --shadow-primary: 0 10px 30px rgba(27, 87, 142, 0.3);
    --shadow-primary-hover: 0 15px 40px rgba(27, 87, 142, 0.4);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.3);
    --shadow-dark: 0 10px 30px rgba(10, 42, 69, 0.3);
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* ARCEP Text Colors */
    --text-primary: #0F3A5F;
    --text-secondary: #6B7A87;
    --text-light: #8C9AA8;
    --text-white: #FFFFFF;
    --text-gold: #B8941F;

    /* ARCEP Background Colors */
    --bg-primary: #F8FAFB;
    --bg-secondary: #EDF2F7;
    --bg-accent: #E6F3FF;
    --bg-gold-light: #FDF6E3;
    --bg-success-light: #E8F5E8;
    --bg-warning-light: #FEF5E7;
    --bg-danger-light: #FDEDEC;

    /* ARCEP Border Colors */
    --border-primary: rgba(27, 87, 142, 0.2);
    --border-secondary: rgba(212, 175, 55, 0.2);
    --border-light: rgba(140, 154, 168, 0.2);
    --border-lighter: rgba(140, 154, 168, 0.1);


    --arcep-blue-ultra-light: #E8F2FA;

    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-radius: 16px;
    --shadow-soft: 0 4px 20px rgba(27, 87, 142, 0.08);
    --shadow-hover: 0 8px 32px rgba(27, 87, 142, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    /*background: var(--bg-primary);*/
    background: var(--primary-gradient);
    /*font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;*/
    /*background: linear-gradient(180deg, #FAFBFF 0%, #F0F5FF 100%);*/
    /*color: #1a1a1a;*/
    min-height: 100vh;
    position: relative;
}

.vert {
    background-color: #008751; /* Vert du drapeau */
    color: #008751; /* Vert du drapeau */
    /*width: 33.33%;*/
    height: 10px;
    padding-top: 0;
}

.jaune {
    background-color: #FCD116; /* Jaune du drapeau */
    color: #FCD116; /* Jaune du drapeau */
    /*width: 33.33%;*/
    height: 10px;
}

.rouge {
    background-color: #E8112D; /* Rouge du drapeau */
    color: #E8112D; /* Rouge du drapeau */
    /*width: 33.33%;*/
    height: 10px;
}

.flag{
    height: .63vw;
    min-height: 6px;
    min-width: 250px;
}

/*.flag > *{height: 100%}*/
.flag > *:first-child{background: RGB(16,135,87)}
.flag > *:first-child + *{background: rgb(255,190,0)}
.flag > *:first-child + * + *{background: rgb(235,0,0)}

.show-detail {
    margin-top: -20px;
    margin-right: 10px;
    z-index: 10000;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, font-size 0.3s ease;
    font-size: 20px; /* taille normale */
}

.show-detail:hover {
    transform: scale(1.3);
    font-size: 26px; /* taille agrandie */
    color: #1b578F;
}

/*.info-icon {*/
/*    margin-top: -40px;*/
/*    margin-right: 10px;*/
/*    z-index: 5000;*/
/*    position: relative;*/
/*    cursor: pointer;*/
/*}*/
/*.info-icon:hover {*/
/*    animation: pulse 0.6s infinite alternate;*/
/*    font-size: 26px;*/
/*}*/

/*@keyframes pulse {*/
/*    0% { transform: scale(1); opacity: 1; }*/
/*    100% { transform: scale(1.2); opacity: 0.7; }*/
/*}*/

/* Animated Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.navbar.scrolled .navbar-brand {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.navbar.scrolled .nav-link {
    color: #333 !important;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}



/* Hero Section */
/*.hero,*/
/*.hero {*/
/*    background: var(--primary-gradient);*/
/*    color: #1b578e;*/
/*    padding: 8rem 0 4rem;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

.hero-header,
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}



/*.hero {*/
/*    min-height: 100vh;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/



.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.5); */
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-primary-custom:hover,
.btn-outline-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: white;
    color: #1b578F;
}

/* Search Bar */
.search-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-bar {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 87, 142, 0.3);
    transform: scale(1.02);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
}



/* Search Results */
.search-results {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-results.show {
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    padding: 0.8rem;
    border-radius: 10px;
    margin: 0.3rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.search-result-item:hover {
    background: rgba(27, 87, 142, 0.1);
    border-left-color: #1B578E;
    transform: translateX(5px);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 500px; /* Hauteur fixe pour la carte */
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 500px; /* Hauteur fixe pour la carte */
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-right: 1rem;
    position: relative;
}

/*.card-icon.agrement { background: var(--primary-gradient); }*/
.card-icon.frequence { background: var(--secondary-gradient); }
.card-icon.numerotation { background: var(--accent-gradient); }
.card-icon.communication { background: var(--success-gradient); }
.card-icon.reseaux { background: var(--dark-gradient); }
.card-icon.postaux { background: linear-gradient(135deg, #1B578E 0%, #4A90C2 100%); }
.card-icon.declaration { background: linear-gradient(135deg, #2A6BA8 0%, #6BB6FF 100%); }
.card-icon.controle { background: linear-gradient(135deg, #0F3A5F 0%, #1B578E 100%); }

.card-icon.agrements { background: var(--primary-gradient); }
.card-icon.reseaux { background: var(--primary-gradient); }
.card-icon.reseaux_filaires { background: var(--primary-gradient); }
.card-icon.reseaux_radio { background: var(--primary-gradient); }
.card-icon.ressources { background: var(--primary-gradient); }
.card-icon.communications { background: var(--primary-gradient); }
.card-icon.postaux { background: linear-gradient(135deg, #1B578E 0%, #4A90C2 100%); }

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-item {

    padding: 1rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    z-index: 1;
}

.service-item span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-item:hover::before {
    width: 4px;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 27, 87, 0.56);
    background: white;
}

.service-item:hover span {
    color: #1B578E;
    font-weight: 600;
}
/*.service-item:hover i {*/
/*    color: #1B578E;*/
/*    font-weight: 600;*/
/*}*/
.service-item.highlighted {
    background: linear-gradient(135deg, #1B578E, #2A6BA8);
    color: white;
    transform: scale(1.05);
    animation: pulse 1s ease-in-out;
}

.service-item.highlighted span {
    color: white !important;
}

.service-item.highlighted i {
    color: white !important;
}

/* Stats Section */
.stats-section {
    background: var(--dark-gradient);
    padding: 4rem 0;
    color: white;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem;
    /*position: static;*/
    /*bottom: 0;*/
    /*width: 100%;*/
    /*text-align: center;*/


}

.footer-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* Tooltip */
.tooltip-custom {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tooltip-custom.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .search-input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No results message */
.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

/* Keyboard navigation indicator */
.keyboard-navigation {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}


.service-list {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    background: white;
    flex: 1; /* Prend tout l'espace disponible */
    overflow-y: auto; /* Ascenseur vertical si nécessaire */
    overflow-x: hidden;
}

/* Style personnalisé pour l'ascenseur */
.service-list::-webkit-scrollbar {
    width: 6px;
}

.service-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.service-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.service-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.service-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item span {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 0.95rem;
}

/*.service-item i {*/
/*    color: #333;*/
/*    margin-right: 0.5rem;*/
/*    width: 25px;*/
/*}*/

/*.service-item:hover i {*/
/*    color: var(--arcep-blue);*/
/*    margin-right: 0.5rem;*/
/*    width: 25px;*/
/*}*/

/*.service-item:hover span {*/
/*    color: var(--arcep-blue);*/
/*    transform: translateX(5px);*/
/*    transition: all 0.2s ease;*/
/*}*/

/* Indicateur de scroll si nécessaire */
.scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #1b578F;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover .scroll-indicator {
    opacity: 1;
}