/* Variables et reset */
:root {
    --bg-color: #fef6e4;
    --primary-color: #001858;
    --secondary-color: #f582ae;
    --accent-color: #8bd3dd;
    --text-color: #172c66;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #dddddd;
    --shadow: 0 4px 15px rgba(0, 24, 88, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Ancres - correction de la position */
:target {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Conteneurs */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes formBorder {
    0% { border-color: var(--primary-color); }
    50% { border-color: var(--secondary-color); }
    100% { border-color: var(--primary-color); }
}

/* Header et Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-color);
    background-color: rgba(139, 211, 221, 0.1);
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
    font-weight: bold !important;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Menu mobile */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Main content */
main {
    margin-top: var(--header-height);
}

/* Sections */
section {
    padding: 60px 0;
    animation: fadeIn 1s ease-out;
}

section:nth-child(odd) {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* Hero section - Modifié */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    background-image: url('./img/AuUptC.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 24, 88, 0.7);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content {
    color: var(--white);
    padding: 30px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* À propos - modifié */
.about {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Avantages */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 24, 88, 0.2);
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2rem;
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 24, 88, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 20px;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question:after {
    content: '▼';
    font-size: 0.8rem;
    transition: var(--transition);
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-answer {
    background-color: var(--gray-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content {
    padding: 20px;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question {
    background-color: var(--accent-color);
}

.faq-item input[type="checkbox"]:checked ~ .faq-question:after {
    transform: rotate(180deg);
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 500px;
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
    animation: formBorder 6s infinite;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Témoignages */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-name {
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-links h4, .footer-legal h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a, .footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.5s ease;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.cookie-content {
    padding: 25px;
}

.cookie-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--gray);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 24, 88, 0.05);
}

/* Pages de politique */
.policy-page {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
}

.policy-page h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.policy-page h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.policy-page p, .policy-page li {
    margin-bottom: 15px;
}

.policy-page ul, .policy-page ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Page de remerciement */
.thank-you {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 30px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .hero {
        padding: 40px 0;
    }
    
    .about {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-toggle-label {
        display: block;
        z-index: 2;
    }

    nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    nav ul {
        flex-direction: column;
        padding: 0 20px 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        display: block;
    }

    .nav-toggle:checked ~ nav {
        max-height: 300px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    section {
        padding: 40px 0;
    }
}

@media screen and (max-width: 576px) {
    .advantage-card, .service-card, .testimonial {
        padding: 20px;
    }

    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .service-img {
        height: 160px;
    }

    .contact-form {
        padding: 20px;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .policy-page {
        padding: 20px;
    }
} 