/* Variables CSS */
:root {
    --primary-color: #3B0E74;
    --secondary-color: #CDB4DB;
    --accent-color: #3DDC97;
    --background-color: #FAF3E0;
    --text-color: #2E2E2E;
    --white: #FFFFFF;
    
    --container-max-width: 1200px;
    --border-radius: 2rem;
    --section-padding: 2rem;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    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-color);
    background-color: var(--background-color);
    padding-top: 5rem;
}

/* Scroll offset pour les ancres */
html {
    scroll-behavior: smooth;
}

section[id]::before {
    content: '';
    display: block;
    height: 8rem;
    margin-top: -8rem;
    visibility: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(59, 14, 116, 0.1);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(250, 243, 224, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-svg {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #4a1091;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 14, 116, 0.3);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #34c789;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(61, 220, 151, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/9YIRZu.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--section-padding);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.card-description {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Services Section */
.services-section {
    background: var(--background-color);
}

.service-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 14, 116, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 1.5rem auto 1rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.service-card .card-title,
.service-card .card-description,
.service-card .service-features {
    padding: 0 2rem;
}

.service-card .service-features {
    padding-bottom: 2rem;
}

/* Form Section */
.form-section {
    background: var(--white);
    padding: 4rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-checkbox input {
    margin-top: 0.2rem;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    background: var(--background-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--background-color);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: var(--text-color);
}

.faq-answer.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Testimonials */
.testimonials-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--secondary-color);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Thank You Page */
.thank-you-section {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--text-color);
}

.success-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.next-steps {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.next-steps h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-info-section {
    background: var(--white);
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    text-align: center;
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin: 0 auto 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Policy Pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.policy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.disclaimer-highlight {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 1rem;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-color);
    font-weight: 600;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-features li:last-child {
    border-bottom: none;
}

.map-container {
    margin-top: 3rem;
    text-align: center;
}

.map-iframe {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .logo-svg {
        height: 40px;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        margin-top: 2rem;
        min-height: calc(100vh - 6rem);
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    section[id]::before {
        height: 7rem;
        margin-top: -7rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    .service-features {
        margin-top: 1rem;
    }
    
    .map-iframe {
        height: 200px;
    }
    
    .service-image {
        height: 150px;
    }
    
    .service-card .card-title,
    .service-card .card-description,
    .service-card .service-features {
        padding: 0 1rem;
    }
    
    .service-card .service-features {
        padding-bottom: 1.5rem;
    }
    
    .policy-content {
        padding: 0 1rem;
    }
    
    .policy-content h2 {
        font-size: 1.3rem;
    }
    
    .policy-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .header-content {
        padding: 0.3rem 0;
        gap: 0.3rem;
    }
    
    .logo-svg {
        height: 35px;
    }
    
    .nav-menu {
        gap: 0.3rem;
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        margin-top: 3rem;
        min-height: calc(100vh - 7rem);
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    section[id]::before {
        height: 6.5rem;
        margin-top: -6.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card,
    .form-container {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .hero-section {
        margin-top: 3.5rem;
        padding: 1.5rem 0;
        min-height: calc(100vh - 8rem);
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.85rem;
    }
}

/* === FAQ CSS Pure с радиокнопками (remplace le JavaScript) === */
.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: var(--background-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    text-align: left;
    transition: background-color 0.4s ease;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.4s ease, color 0.4s ease;
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: var(--white);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-toggle:checked + .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--primary-color);
}

.faq-toggle:checked + .faq-question {
    background: var(--secondary-color);
}

/* Дополнительный label для сворачивания активного элемента */
.faq-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    display: none;
}

.faq-toggle:checked + .faq-question + .faq-close {
    display: block;
}

/* Исправление селектора для ответов */
.faq-toggle:checked ~ .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

/* === Animations CSS Pures (remplace le JavaScript) === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation des cards avec delay */
.card, .service-card, .testimonial-card {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation staggered pour les éléments multiples */
.services .service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.services .service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.services .service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonials .testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}
.testimonials .testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}
.testimonials .testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Animation pour les éléments FAQ */
.faq-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour le formulaire */
.form-group {
    animation: slideUp 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* === Gestion des erreurs de formulaire (styles) === */
.form-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    color: #c62828;
}

.form-success {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    color: #2e7d32;
}

.form-input.error {
    border-color: #f44336;
    background: #ffebee;
}

.form-input.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
} 