/* 
 * Style principal pour domain.com
 * Palette de couleurs :
 * - Fond: #0B2545 (bleu profond)
 * - Accent: #E1C4FF (lavande clair)
 * - Boutons: #FFC857 (ambre)
 * - Titres: #89D8C4 (menthe)
 * - Texte: #F4F4F4 (blanc cassé)
 */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #F4F4F4;
    background-color: #0B2545;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #89D8C4;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #E1C4FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFC857;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #FFC857;
    color: #0B2545;
}

.btn-primary:hover {
    background-color: #ffbe34;
    color: #0B2545;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: #E1C4FF;
    border: 2px solid #E1C4FF;
}

.btn-secondary:hover {
    background-color: rgba(225, 196, 255, 0.1);
    color: #E1C4FF;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 37, 69, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #E1C4FF;
    margin-left: 0.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #E1C4FF;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #F4F4F4;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

nav ul li a:hover {
    color: #E1C4FF;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E1C4FF;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(11, 37, 69, 0.8), rgba(11, 37, 69, 0.9)), url('./img/AXCfge.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 800px;
    margin-bottom: 2.5rem;
    color: #E1C4FF;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: backwards;
}

.hero-image {
    display: none;
}

/* About Section */
.about .container {
    max-width: 1000px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Advantages Section */
.advantages {
    background-color: rgba(225, 196, 255, 0.05);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: rgba(11, 37, 69, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(11, 37, 69, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured {
    border: 2px solid #FFC857;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FFC857;
    color: #0B2545;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: bold;
    z-index: 2;
}

.service-card h3 {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 0;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-features {
    list-style: none;
    padding: 1.5rem;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #89D8C4;
}

.service-card .btn {
    margin: 0 1.5rem 1.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: rgba(11, 37, 69, 0.8);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial {
    min-width: calc(100% - 4rem);
    scroll-snap-align: center;
    background: rgba(225, 196, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
}

.testimonial-author h4 {
    color: #E1C4FF;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: #F4F4F4;
    opacity: 0.8;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(11, 37, 69, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    position: relative;
    padding-right: 2rem;
}

.faq-toggle {
    display: block;
    color: #89D8C4;
    text-decoration: none;
    width: 100%;
}

.faq-toggle::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.faq-item.active .faq-toggle::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    background-image: linear-gradient(rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.8)), url('./img/CpSFoq.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact h2 {
    color: #FFC857;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: rgba(11, 37, 69, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.contact-info {
    flex: 1;
    padding: 1rem;
    border-right: 1px solid rgba(225, 196, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    margin-right: 1rem;
    padding-top: 0.25rem;
    color: #E1C4FF;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    color: #E1C4FF;
}

.contact-form {
    flex: 2;
    padding: 1rem;
}

form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E1C4FF;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(225, 196, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(11, 37, 69, 0.5);
    color: #F4F4F4;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #E1C4FF;
    box-shadow: 0 0 0 3px rgba(225, 196, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin-bottom: 0;
    cursor: pointer;
}

form button {
    justify-self: start;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.form-error {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
    border-radius: 0.5rem;
}

.form-error p {
    color: #ff5757;
    margin-bottom: 0.5rem;
}

.form-error p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: rgba(11, 37, 69, 0.9);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo svg {
    height: 30px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #E1C4FF;
    margin-left: 0.5rem;
}

.footer-info, .footer-links, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-heading {
    color: #89D8C4;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #F4F4F4;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #E1C4FF;
    padding-left: 0.5rem;
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #F4F4F4;
    opacity: 0.7;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 400px;
    background-color: rgba(11, 37, 69, 0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content button {
    align-self: flex-end;
}

/* Legal Pages */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background-image: linear-gradient(rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.8)), url('./img/8IgdcX.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.legal-content {
    background: rgba(11, 37, 69, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #FFC857;
}

.legal-content h3 {
    font-size: 1.25rem;
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #E1C4FF;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    color: #E1C4FF;
    margin-bottom: 2rem;
}

/* Thank You Page */
.thank-you {
    padding-top: 10rem;
    padding-bottom: 5rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.8)), url('./img/NO82pU.jpg');
    background-size: cover;
    background-position: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease;
    background: rgba(11, 37, 69, 0.8);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.thank-you-content svg {
    margin-bottom: 2rem;
    width: 80px;
    height: 80px;
}

.thank-you-content h1 {
    margin-bottom: 1.5rem;
    color: #FFC857;
}

.thank-you-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #F4F4F4;
}

.thank-you-actions {
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(225, 196, 255, 0.2);
        padding-bottom: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(11, 37, 69, 0.95);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .testimonial {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .cookie-banner {
        left: 1rem;
        right: 1rem;
    }
} 