* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}


.logo img {
    height: 48px;
    width: auto;
    max-height: 64px; /* desktop */
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #245baf;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links .contact-btn {
    background: #a52e44;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-links .contact-btn:hover {
    background: #8a2537;
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #245baf;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #3d70bf 0%, #87b4e8 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-button {
    display: inline-block;
    background: #a52e44;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    box-shadow: 0 5px 20px rgba(165, 46, 68, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(165, 46, 68, 0.4);
    background: #8a2537;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Différentiation */
.differentiation {
    padding: 80px 0;
    background: #f8f9fa;
}

.differentiation-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.differentiation h2 {
    font-size: 2rem;
    color: #245baf;
    margin-bottom: 2rem;
}

.differentiation p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.differentiation .highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: #a52e44;
    margin-top: 2rem;
}

.differentiation .source {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #245baf;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #a52e44;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #245baf;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 10px;
}

.service-icon {
    font-size: 2.5rem;
    color: #a52e44;
}

.service-card ul {
    list-style: none;
    color: #666;
    line-height: 1.8;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #a52e44;
    font-weight: bold;
}

/* Formules Section */
.formules {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.formules-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.formule-card {
    background: #245baf;
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 15px 35px rgba(36, 91, 175, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.formule-card.standard {
    width: 350px;
    min-height: 600px;
}

.formule-card.avancee {
    width: 380px;
    min-height: 600px;
    background: linear-gradient(135deg, #245baf 0%, #3d70bf 100%);
}

.formule-card.integrale {
    width: 410px;
    min-height: 600px;
    background: linear-gradient(135deg, #1a4490 0%, #245baf 100%);
}

.formule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(36, 91, 175, 0.4);
}

.formule-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.formule-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.formule-content strong {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #ffd700;
}

.formule-content .bold-only {
    color: white;
    font-weight: bold;
}

.formule-price {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1.5rem 0;
    text-align: center;
    color: white;
}

.formule-cta {
    background: #a52e44;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.formule-cta:hover {
    background: #8a2537;
    transform: translateY(-2px);
}

.pack-premiere {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pack-premiere h4 {
    color: #245baf;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pack-premiere p {
    color: #666;
    font-style: italic;
}

/* Équipe Section */
.equipe {
    padding: 100px 0;
    background: white;
}

.equipe-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.equipe-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.equipe-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: #245baf;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #245baf;
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: white;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: white;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1a3a6b;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer .mentions-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

footer .mentions-link:hover {
    opacity: 0.8;
}

/* Pop-up Mentions Légales */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.popup-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: bold;
    line-height: 1;
}

.popup-close:hover {
    color: #a52e44;
}

.popup-content h2 {
    color: #245baf;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-right: 40px;
}

.popup-content h3 {
    color: #245baf;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.mentions-text {
    color: #333;
    line-height: 1.6;
}

.mentions-text p {
    margin-bottom: 1rem;
}

.mentions-text strong {
    color: #245baf;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        height: 56px; /* exemple : barre un peu plus petite sur mobile */
    }
    .logo img {
        max-height: 56px; /* le logo suit la taille de la barre */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .formules-container {
        flex-direction: column;
        align-items: center;
    }

    .formule-card.standard,
    .formule-card.avancee,
    .formule-card.integrale {
        width: 100%;
        max-width: 400px;
        min-height: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services,
    .equipe,
    .contact,
    .formules,
    .differentiation {
        padding: 60px 0;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-details {
        align-items: center;
    }

    .contact-details li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .popup-content {
        padding: 1.5rem;
        margin: 10px;
    }

    .popup-content h2 {
        font-size: 1.5rem;
        padding-right: 30px;
    }

    .popup-content h3 {
        font-size: 1.1rem;
    }
}