/* ======================================
   GENERAL STYLES
====================================== */
:root {
    --background: #F7F1EC;
    --indigo: #2E3A59;
    --amber: #F9A826;
    --raspberry: #D72638;
    --text-main: #1E1E1E;
    --text-light: #FFFFFF;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background-color: var(--amber);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--indigo);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--amber);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

section {
    padding: 4rem 0;
}

.required {
    color: var(--raspberry);
}

/* ======================================
   BUTTONS
====================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--amber);
    color: var(--text-main);
}

.btn-primary:hover {
    background-color: var(--indigo);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--indigo);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--amber);
    color: var(--text-main);
    transform: translateY(-3px);
}

.btn-nav {
    background-color: var(--amber);
    color: var(--text-main);
    padding: 8px 16px;
}

.btn-cookie {
    background-color: var(--amber);
    color: var(--text-main);
}

/* ======================================
   COOKIE CONSENT
====================================== */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--indigo);
    color: var(--text-light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent p {
    margin: 0;
    padding-right: 1rem;
}

/* ======================================
   HEADER & NAVIGATION
====================================== */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(247, 241, 236, 0.95);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--indigo);
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
}

.burger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--indigo);
    position: relative;
    transition: var(--transition);
}

.burger-icon::before,
.burger-icon::after {
    content: "";
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--indigo);
    position: absolute;
    transition: var(--transition);
}

.burger-icon::before {
    top: -8px;
}

.burger-icon::after {
    bottom: -8px;
}

.menu-toggle:checked + .menu-button .burger-icon {
    background-color: transparent;
}

.menu-toggle:checked + .menu-button .burger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle:checked + .menu-button .burger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-list li a {
    font-weight: 500;
    position: relative;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--amber);
    transition: var(--transition);
}

.nav-list li a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
        z-index: 102;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #696969;
        padding-top: 70px;
        transition: var(--transition);
        z-index: 101;
    }

    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-list li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-list li a {
        color: var(--text-light);
        display: block;
        padding: 10px;
        text-align: center;
    }

    .nav-list li a::after {
        display: none;
    }

    .nav-list li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
    }
}

/* ======================================
   HERO SECTION
====================================== */
.hero {
    height: 80vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(46, 58, 89, 0.7), rgba(46, 58, 89, 0.7)), url('./img/OO8i2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================
   ABOUT SECTION
====================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   SERVICES SECTION
====================================== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image {
    height: 200px;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--indigo);
}

.service-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn {
    align-self: start;
}

/* ======================================
   PROCESS SECTION
====================================== */
.process {
    background-color: var(--indigo);
    color: var(--text-light);
}

.process h2::after {
    background-color: var(--amber);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.process-step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--amber);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h3 {
    margin-bottom: 0.8rem;
    color: var(--amber);
}

/* ======================================
   BENEFITS SECTION
====================================== */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.benefit h3 {
    color: var(--indigo);
    margin-bottom: 0.8rem;
}

/* ======================================
   TESTIMONIALS SECTION
====================================== */
.testimonials {
    background-color: var(--indigo);
    color: var(--text-light);
}

.testimonials h2::after {
    background-color: var(--amber);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 300px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial-text::before {
    content: """;
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.3;
    color: var(--amber);
}

.testimonial-author {
    font-weight: 600;
    color: var(--amber);
}

/* ======================================
   FAQ SECTION
====================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-toggle {
    display: none;
}

.faq-question {
    background-color: white;
    padding: 1.2rem 1.5rem;
    display: block;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--indigo);
    transition: var(--transition);
}

.faq-toggle:checked + .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--indigo);
    color: var(--text-light);
}

.faq-toggle:checked + .faq-question::after {
    content: "−";
    color: var(--amber);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height 0.3s ease;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1.2rem 1.5rem;
}

/* ======================================
   CONTACT FORM
====================================== */
.contact {
    background-color: var(--indigo);
    color: var(--text-light);
}

.contact h2::after {
    background-color: var(--amber);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232E3A59'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--indigo);
    background-color: white;
    box-shadow: 0 0 0 2px rgba(46, 58, 89, 0.1);
}

.form-group select option {
    background-color: white;
    color: var(--text-main);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: var(--text-main);
}

.checkbox-group a {
    text-decoration: underline;
}

.contact-form button {
    justify-self: start;
    padding: 12px 30px;
}

/* ======================================
   FOOTER
====================================== */
.footer {
    background-color: var(--indigo);
    color: var(--text-light);
    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 {
    color: var(--amber);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--amber);
}

.contact-list,
.footer-links {
    list-style: none;
    padding: 0;
}

.contact-list li,
.footer-links li {
    margin-bottom: 0.8rem;
}

.contact-list li a,
.footer-links li a {
    color: var(--text-light);
    transition: var(--transition);
}

.contact-list li a:hover,
.footer-links li a:hover {
    color: var(--amber);
    text-decoration: underline;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ======================================
   POLICY PAGES
====================================== */
.policy-page {
    padding: 4rem 0;
}

.policy-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.policy-title {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--indigo);
}

.policy-content h3 {
    color: var(--indigo);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ======================================
   THANK YOU PAGE
====================================== */
.merci-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 0;
}

.merci-container {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 8rem auto 3rem;
}

.merci-icon {
    font-size: 3rem;
    color: var(--amber);
    margin-bottom: 1.5rem;
}

.merci-title {
    color: var(--indigo);
    margin-bottom: 1rem;
}

.merci-text {
    margin-bottom: 2rem;
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
====================================== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .process-steps,
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* ======================================
   ANIMATIONS
====================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.process-step,
.benefit,
.testimonial {
    animation: fadeIn 0.6s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.process-step:nth-child(2) {
    animation-delay: 0.2s;
}

.process-step:nth-child(3) {
    animation-delay: 0.4s;
}

.process-step:nth-child(4) {
    animation-delay: 0.6s;
}

.benefit:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit:nth-child(3) {
    animation-delay: 0.4s;
}

.benefit:nth-child(4) {
    animation-delay: 0.6s;
} 