/* Navigation rapide */
.quick-nav {
    position: fixed;
    top: 180px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    background-color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 0;
    z-index: 1000;
    border-bottom: 1px solid #eeeeee;
    display: block;
    visibility: visible;
}

.quick-nav .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.quick-nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.quick-nav a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 8px 12px;
    color: #444444;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 4px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.quick-nav a:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(44, 62, 80, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: rgba(52, 152, 219, 0.2);
}

.quick-nav i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .quick-nav {
        top: 60px;
        padding: 5px 0;
    }
    
    .quick-nav .container {
        padding: 0 10px;
    }
    
    .quick-nav ul {
        gap: 6px;
    }
    
    .quick-nav a {
        font-size: 0.85rem;
        padding: 8px;
        width: calc(50% - 3px);
        justify-content: center;
    }

    .quick-nav i {
        margin-right: 4px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .quick-nav a {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

/* Offset pour les ancres avec menus fixes */
section[id] {
    scroll-margin-top: 240px;
}

/* Fallback pour navigateurs sans support scroll-margin */
@supports not (scroll-margin-top: 240px) {
    section[id]::before {
        content: '';
        display: block;
        height: 240px;
        margin-top: -240px;
        visibility: hidden;
    }
}

/* Section description */
.description-section {
    margin-top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: rgb(211, 255, 249);
    padding: 4rem 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.description-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.description-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.description-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.description-section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.description-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.description-section p:last-child {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 500;
    margin-top: 2rem;
    animation-delay: 0.6s;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.description-section p:last-child:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .description-section {
        padding: 3rem 1rem;
        margin: 1rem 0;
    }

    .description-section h2 {
        font-size: 2rem;
    }

    .description-section p {
        font-size: 1.1rem;
        text-align: left;
    }
}

/* Séparateurs de groupes */
.group-separator {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    background: white;
    z-index: 1;
    margin: 0;
}

.group-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.group-title {
    display: inline-block;
    background: #fff;
    padding: 0 20px;
    position: relative;
    color: #666;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Icônes des sections */
.service-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-section h2 i {
    font-size: 1.5em;
    color: #4a90e2;
}

/* Fallback pour Edge et autres navigateurs */
.quick-nav li {
    display: inline-block;
    margin: 0 5px;
}

/* Support pour gap manquant */
@supports not (gap: 10px) {
    .quick-nav ul {
        margin: 0 -5px;
    }
    
    .quick-nav li {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .quick-nav {
        top: 180px;
        padding: 5px 0;
    }
    
    .quick-nav ul {
        gap: 6px;
    }

    .quick-nav a {
        font-size: 0.85rem;
        padding: 8px;
        width: calc(50% - 3px);
        justify-content: center;
    }

    .quick-nav i {
        margin-right: 4px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .quick-nav a {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}
