/* style.css — version finale nettoyée */

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100dvh;
    color: #ffffff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    color-scheme: dark;
}

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.background::after {
    content: '';
    position: absolute;
    inset: -10%;
    background: url('image.jpg') center / cover no-repeat;
    filter: blur(25px) brightness(0.50);
}

.barre-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 100;
}

.barre-navigation-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #ffffff;
    white-space: nowrap;
}

.barre-navigation-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.barre-navigation-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.barre-navigation-links a:hover {
    color: #6b5cc4;
}

.menu-mobile {
    display: none;
    position: relative;
}

.menu-mobile summary {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.menu-mobile summary::-webkit-details-marker {
    display: none;
}

.menu-mobile summary span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

.menu-deroulant {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 400px;
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.menu-deroulant a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 13px 18px;
    border-radius: 12px;
    transition: background 0.15s ease, color 0.15s ease;
}

.menu-deroulant a:hover {
    background: rgba(107, 92, 196, 0.2);
    color: #fff;
}

.page-content {
    padding-top: 64px;
}

.section {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.section--compact {
    min-height: unset;
    padding: 72px 24px;
}

.section#contacts {
    min-height: unset;
    padding: 72px 24px 28px;
}

.section.legal {
    min-height: unset;
    padding: 20px 24px 72px;
}

.section-inner {
    width: 100%;
    max-width: 960px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.sub-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b5cc4;
    margin: 40px 0 0;
    letter-spacing: 0.05em;
}

.hero {
    align-items: flex-start;
}

.hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #6b5cc4;
    margin-bottom: 20px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid rgba(107, 92, 196, 0.5);
    object-fit: cover;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    margin: 0;
}

.hero-who {
    font-size: 1.3rem;
    font-weight: 600;
    color: #6b5cc4;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-desc p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.75;
}

.hero-desc strong {
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.hero-btn {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-btn--primary {
    background: rgba(107, 92, 196, 0.25);
    border: 1px solid rgba(107, 92, 196, 0.55);
    color: #fff;
}

.hero-btn--primary:hover {
    background: rgba(107, 92, 196, 0.4);
    border-color: rgba(107, 92, 196, 0.8);
}

.hero-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-btn--accent {
    background: rgba(107, 92, 196, 0.3);
    border: 1px solid rgba(107, 92, 196, 0.6);
    color: #fff;
}

.hero-btn--accent:hover {
    background: rgba(107, 92, 196, 0.5);
    border-color: rgba(107, 92, 196, 0.9);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline-item {
    position: relative;
    padding: 0 0 36px 32px;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #6b5cc4;
    box-shadow: 0 0 12px rgba(107, 92, 196, 0.6);
}

.timeline-date {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7c6fd4;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: background 0.2s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

a.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(107, 92, 196, 0.35);
    transform: translateY(-2px);
}

a.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

a.project-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-arrow {
    font-size: 1.2rem;
    color: rgba(107, 92, 196, 0.5);
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.project-card:hover .project-arrow {
    color: #6b5cc4;
    transform: translateX(3px);
}

.veille-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

a.veille-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.veille-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(107, 92, 196, 0.35);
    transform: translateY(-2px);
}

.veille-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.veille-channel {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b5cc4;
    background: rgba(107, 92, 196, 0.12);
    border: 1px solid rgba(107, 92, 196, 0.3);
    border-radius: 999px;
    padding: 4px 12px;
    display: inline-block;
}

.veille-arrow {
    font-size: 1.2rem;
    color: rgba(107, 92, 196, 0.5);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

a.veille-card:hover .veille-arrow {
    color: #6b5cc4;
    transform: translateX(3px);
}

a.veille-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
}

.contacts-inner {
    text-align: center;
}

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 24px;
    text-decoration: none;
    color: white;
    transition: background 0.2s ease;
    min-width: 210px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.09);
}

.contact-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.contact-card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.contact-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

.legal .section-inner {
    max-width: 960px;
}

.legal-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 24px;
}

.legal-content p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.75;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .barre-navigation-links {
        display: none;
    }

    .menu-mobile {
        display: block;
    }

    .barre-navigation {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-avatar {
        width: 80px;
        height: 80px;
    }

    .section {
        padding: 60px 16px;
    }

    .section--compact {
        padding: 52px 16px;
    }
}
