/* Variables */
:root {
    --primary-color: #274F57;
    --primary-light: #1a3a42;
    --accent-color: #a8d5e5;
    --text-color: #333;
    --text-light: #666;
    --bg-gradient: linear-gradient(135deg, #f5f7fc 0%, #e8f2f6 100%);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --light-gray: #f5f7fc;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

footer {
    color:var(--light-gray)
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Barre de recherche */
.search-container {
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 20px 60px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.search-box i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Section FAQ */
.faq-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Catégories améliorées */
.faq-categories {
    display: flex;
    gap: 20px;
    margin: 40px auto;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    padding: 0 20px;
}

.category-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    background: white;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-btn:hover::before {
    opacity: 0.1;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(39, 79, 87, 0.2);
}

.category-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.category-btn:hover i {
    transform: scale(1.1);
}

.category-btn span {
    position: relative;
    z-index: 2;
}

.category-btn.active i {
    transform: scale(1.1);
}

/* Grille FAQ */
.faq-grid {
    display: grid;
    gap: 25px;
}

.faq-item {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(39, 79, 87, 0.2);
}

.faq-question {
    width: 100%;
    padding: 30px;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.question-content {
    flex: 1;
    margin-right: 20px;
}

.question-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.question-preview {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
}

.expand-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .expand-btn {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 30px 30px;
}

.answer-text {
    padding-top: 20px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Éléments flottants */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes categoryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-btn {
    animation: categoryFadeIn 0.5s ease forwards;
    opacity: 0;
}

.category-btn:nth-child(1) { animation-delay: 0.1s; }
.category-btn:nth-child(2) { animation-delay: 0.2s; }
.category-btn:nth-child(3) { animation-delay: 0.3s; }
.category-btn:nth-child(4) { animation-delay: 0.4s; }
.category-btn:nth-child(5) { animation-delay: 0.5s; }
.category-btn:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 60px;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .search-box input {
        padding: 15px 50px;
        font-size: 1rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: stretch;
        padding: 0 15px;
    }
    
    .category-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}
