:root {
    --bg: #070b14;
    --bg-alt: #0d1626;
    --card: rgba(255, 255, 255, 0.05);
    --accent: #7c5dff;
    --accent-2: #00c6ff;
    --text: #f5f7fb;
    --muted: #9aa6c3;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(124, 93, 255, 0.25), transparent 42%),
        radial-gradient(circle at 30% 20%, rgba(0, 198, 255, 0.25), transparent 50%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(7, 11, 20, 0.7);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
}

.lang-toggle {
    background: transparent;
    border: none;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
}

.lang-toggle.active {
    color: #fff;
    font-weight: 600;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

.flag-guinea {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.flag-guinea span {
    width: 10px;
    height: 16px;
    display: inline-block;
}

.flag-guinea .red {
    background: #ce1126;
}

.flag-guinea .yellow {
    background: #fcd116;
}

.flag-guinea .green {
    background: #009460;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text);
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 14px 35px rgba(124, 93, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124, 93, 255, 0.4);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.4rem);
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
    margin: 1rem auto 0;
}

.section-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1.8rem;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow);
    margin-top: 2.5rem;
}

.section-block .grid,
.section-block .projects,
.section-block .testimonials {
    margin-top: 2.2rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 3rem;
    padding: 5rem 0 2rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 1.3rem;
}

.hero p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.hero-visuals {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    align-self: flex-start;
    justify-self: flex-start;
}

.hero-photo-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.hero-photo {
    width: 260px;
    height: 260px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-caption {
    color: var(--muted);
    text-align: left;
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.18), rgba(0, 198, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.btn-outline {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(7, 11, 20, 0.4);
    backdrop-filter: blur(14px);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn-outline:hover {
    border-color: var(--accent-2);
    color: #fff;
    background: radial-gradient(circle at top left, rgba(124, 93, 255, 0.4), rgba(7, 11, 20, 0.9));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(-2px);
}

.btn-whatsapp {
    border-color: #25d366;
    color: #25d366;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    border-color: #25d366;
    color: #fff;
    background: linear-gradient(120deg, #25d366, #128c7e);
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-choice {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: rgba(7, 11, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    min-width: 260px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.contact-choice.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-choice__title {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-choice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contact-choice__actions .btn-outline {
    flex: 1 1 120px;
    text-align: center;
}

.project-card .btn-outline {
    align-self: flex-start;
    margin-top: 1.2rem;
}

.project-card>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-card h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.badge {
    background: rgba(124, 93, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.3rem;
    padding: 1.8rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 93, 255, 0.5);
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* Styles pour les listes dans les cartes */
.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.projects {
    margin-top: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 2.1rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at top left, rgba(124, 93, 255, 0.22), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 198, 255, 0.18), transparent 60%),
        rgba(7, 11, 20, 0.94);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background-position 0.4s ease;
}

.project-card img {
    border-radius: 1.2rem;
    object-fit: cover;
    width: 100%;
    min-height: 220px;
    max-height: 260px;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(124, 93, 255, 0.85);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.78);
}

.project-card:hover::before {
    opacity: 1;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-content h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.project-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

/* Grille unifiée des projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    flex: 1;
    min-width: 160px;
    padding: 1.3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.stat strong {
    font-size: 1.4rem;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
}

blockquote {
    margin: 0;
    padding: 1.8rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

/* Section Power BI RH */
#powerbi-hr h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.contact {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.25), rgba(0, 198, 255, 0.18));
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.contact p {
    color: #e7ecff;
    max-width: 640px;
    margin: 1rem auto 2rem;
    line-height: 1.7;
}

.contact .btn-whatsapp {
    margin-top: 0.8rem;
}

footer {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.85) 40%, #05070d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 400px;
}

.footer-socials__link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-socials__link:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 93, 255, 0.6);
    background: rgba(124, 93, 255, 0.15);
}

.footer-socials__link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Menu Components */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Responsive Design - Tablette */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .hero-photo {
        width: 220px;
        height: 220px;
    }

    main {
        padding: 0 1.25rem 3.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
        max-width: 100%;
    }

    .project-card {
        padding: 1.8rem;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 11, 20, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 90;
        padding: 2rem;
        gap: 3rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

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

    /* Hamburger Animation */
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    body.no-scroll {
        overflow: hidden;
    }

    section {
        padding: 3rem 0;
    }

    main {
        padding: 0 1rem 3rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card {
        padding: 1.5rem;
        min-height: auto;
    }

    .card ul li {
        font-size: 0.85rem;
    }

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

    .hero-visuals,
    .hero-content {
        align-items: center;
        text-align: center;
        justify-self: center;
    }

    .hero-photo-row {
        flex-direction: column;
        align-items: center;
    }

    .hero-photo {
        width: 200px;
        height: 200px;
    }

    .hero-caption {
        text-align: center;
        max-width: 320px;
    }

    .hero-actions {
        justify-content: center;
    }

    .project-card {
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        max-width: 100%;
    }

    /* Bouton "Voir le projet" responsive dans les cartes projets */
    .project-card .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 1.4rem;
    }

    .contact {
        padding: 3rem 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .project-card {
        padding: 1.4rem;
        border-radius: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        max-width: 100%;
    }

    .section-block {
        padding: 2.5rem 1.5rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .btn,
    .btn-outline {
        width: 100%;
        text-align: center;
        padding: 1rem 1.2rem;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
    }

    .stats {
        flex-direction: column;
        align-items: stretch;
    }

    .stat {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .card div[style*="height: 200px"] {
        height: 150px !important;
        font-size: 2.5rem !important;
    }

    .pill {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

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

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

    h2 {
        font-size: 1.5rem;
    }

    .contact h2 {
        font-size: 1.6rem;
    }
}

@keyframes floaty {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-6px);
    }
}

.floating {
    animation: floaty 2.8s ease-in-out infinite alternate;
}