/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PALETTE DE COULEURS */
:root {
    --primary-accent: #38BDF8;
    --primary-accent-darker: #0EA5E9;
    --secondary-accent: #F59E0B;
    --dark-blue: #0F172A;
    --slate-800: #1E293B;
    --slate-600: #475569;
    --slate-400: #94A3B8;
    --light-bg: #F8FAFC;
    --light-card: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--slate-600);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--light-bg);
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-accent);
}

.logo svg {
    width: 50px;
    height: 50px;
    fill: var(--light-bg);
    transition: fill 0.3s ease;
}

.logo:hover svg {
    fill: var(--primary-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--light-bg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--primary-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 60%;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--light-bg);
    border-radius: 3px;
    transition: all 0.3s;
}

/* --- Section Accueil (Hero) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark-blue);
    color: var(--light-bg);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero-visual {
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-knight {
    width: 100%;
    max-width: 500px;
    height: auto;
    color: var(--primary-accent);
    opacity: 0.15;
}

.hero-content h1.tagline {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light-bg);
    line-height: 1.2;
}

.hero-content h2.description {
    font-size: 1.6rem;
    color: var(--primary-accent);
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-accent);
    color: var(--dark-blue);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(56, 189, 248, 0.2);
    border: none;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--light-bg);
    box-shadow: 0 8px 40px rgba(248, 250, 252, 0.2);
}

/* --- Sections générales --- */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    color: var(--slate-600);
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* --- Section CIBLES --- */
#cibles {
    background-color: var(--light-bg);
}

.cibles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.cible-card {
    background: var(--light-card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.cible-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08);
}

.cible-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.cible-card .cible-headline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cible-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

.cible-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-accent);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    margin-bottom: 2rem;
}

.cible-card:nth-child(1) .cible-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 18L9 11.25l4.306 4.307a11.95 11.95 0 015.814-5.519l2.74-1.22m0 0l-3.75-2.25M21 12l-3.75 2.25' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 18L9 11.25l4.306 4.307a11.95 11.95 0 015.814-5.519l2.74-1.22m0 0l-3.75-2.25M21 12l-3.75 2.25' /%3E%3C/svg%3E");
}

.cible-card:nth-child(2) .cible-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9' /%3E%3C/svg%3E");
}


/* --- SECTION : SERVICES --- */
#services {
    background-color: var(--slate-800);
}

#services .section-title {
    color: var(--light-bg);
}

#services .section-intro {
    color: var(--slate-400);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-category {
    background-color: var(--dark-blue);
    padding: 3rem;
    border-radius: 16px;
    border-top: 4px solid var(--primary-accent);
}

.service-category:nth-child(2) {
    border-top-color: var(--secondary-accent);
}

.service-category h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-bg);
    margin-bottom: 0.75rem;
}

.service-category .objective {
    font-style: italic;
    color: var(--primary-accent);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.service-category:nth-child(2) .objective {
    color: var(--secondary-accent);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    border-left: 3px solid var(--slate-600);
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-left-color: var(--primary-accent);
}

.service-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-bg);
    margin-bottom: 0.5rem;
}

.service-item p {
    color: var(--slate-400);
}

/* --- SECTION RESSOURCES (Galerie) --- */
#ressources {
    background-color: var(--light-bg);
}

.ressources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.ressource-card {
    display: flex;
    flex-direction: column;
    background: var(--light-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: var(--slate-600);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ressource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08);
}

.ressource-card .card-icon {
    width: 45px;
    height: 45px;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

.ressource-card .card-icon svg {
    width: 100%;
    height: 100%;
}

.ressource-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.ressource-card p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.6;
    flex-grow: 1;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }


/* --- Section À propos --- */
.about {
    background: var(--slate-800);
    color: var(--light-bg);
    overflow: hidden;
}

.about .about-text .section-title {
    color: var(--light-bg);
    text-align: left;
    margin-bottom: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--slate-400);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-illustration {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.about-illustration svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    height: auto;
}

.about-illustration .draw-line,
.about-illustration .draw-line-delay,
.about-illustration .draw-line-long,
.about-illustration .draw-line-long-delay,
.about-illustration .draw-circle {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.about-illustration.is-visible .draw-line {
    animation: draw 2s ease-out forwards;
    stroke: var(--primary-accent);
}
.about-illustration.is-visible .draw-line-delay {
    animation: draw 2s ease-out 0.3s forwards;
    stroke: var(--primary-accent);
}
.about-illustration.is-visible .draw-line-long {
    animation: draw 2s ease-out 0.6s forwards;
    stroke: var(--slate-600);
}
.about-illustration.is-visible .draw-line-long-delay {
    animation: draw 2s ease-out 0.9s forwards;
    stroke: var(--slate-600);
}

.about-illustration.is-visible .draw-circle {
    animation: draw 1s ease-out 1s forwards;
    stroke: var(--secondary-accent);
    fill: var(--dark-blue);
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Section Contact --- */
.contact {
    background: var(--light-bg);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.contact-background-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
}

.contact-background-illustration svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    fill: none;
    stroke: var(--dark-blue);
}

.contact-form-wrapper {
    background: var(--light-card);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper .section-title {
    margin-bottom: 1rem;
}

.contact-form-wrapper .section-intro {
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-400);
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--light-bg);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .cta-button {
    width: auto;
    padding: 1rem 3rem;
    margin-top: 1rem;
}

/* --- Pre-Footer CTA --- */
.pre-footer-cta {
    background-color: var(--slate-800);
    padding: 5rem 0;
    text-align: center;
}

.pre-footer-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-bg);
    margin-bottom: 1rem;
}

.pre-footer-cta p {
    font-size: 1.1rem;
    color: var(--slate-400);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark-blue);
    color: var(--light-bg);
    padding: 5rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}
.footer-tagline {
    color: var(--slate-400);
    font-size: 1rem;
    max-width: 350px;
}

.footer-links {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.footer-section h4 {
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-section a:hover { color: var(--primary-accent); }

.footer-bottom {
    border-top: 1px solid var(--slate-600);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--slate-400);
}

.social-links a {
    color: var(--slate-400);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-accent);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* --- Page Mentions légales --- */
.legal-page { display: none; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    /* --- Styles tablette --- */
    .section { padding: 4rem 0; }
    .contact { padding: 5rem 0; }

    .section-title { font-size: 2.5rem; }
    .cible-card h3, .service-category h3 { font-size: 1.8rem; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1.tagline { font-size: 3.2rem; }
    .hero-content h2.description {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.4rem;
    }
    .hero-visual {
        display: none;
    }

    .cibles-grid,
    .services-grid,
    .about-content,
    .form-row,
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .about .about-text .section-title, .about-text {
        text-align: center;
    }

    .footer-main, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .footer-links {
        justify-content: center;
        gap: 3rem;
    }
    .social-links {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* --- Styles mobile --- */
    .burger { display: flex; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--dark-blue);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 2rem 0;
        gap: 2.5rem;
    }

    .nav-menu a { font-size: 1.5rem; }
    .nav-menu.active { left: 0; }

    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .nav-container, .container { padding: 0 1.5rem; }
    .cible-card, .service-category, .ressource-card, .contact-form-wrapper { padding: 2rem; }
}

/* --- Animations --- */
.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--dark-blue);
}

.cible-card, .service-category, .ressource-card, .about-illustration, .about-text, .contact-form-wrapper, .hero-content, .hero-visual {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: transform, opacity;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual.is-visible {
    animation: fadeInFromRight 1s ease-out forwards;
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 0.15;
        transform: translateX(0);
    }
}