/* =====================
   RESET & BASE
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #ffffff;
}

:root {
    --bg-color: #ffffff;
    --text-color: #0b0b0b;
    --muted-color: #475569;
    --brand: #ff6a00;
    --brand-dark: #e45600;
    --black: #0b0b0b;
    --card-bg: #ffffff;
    --header-height: 72px;
}

/* Homepage hero: make hero fullscreen and prevent native scrolling on index */
.hero-page {
    overflow: hidden;
    height: 100vh;
}

.hero-page .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

/* header height used to size the hero area */
.hero-page .hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
}

/* ensure content inside hero is centered and responsive */
.hero-page .hero .container {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .hero-page .hero {
        min-height: calc(100vh - var(--header-height));
        padding-top: var(--header-height);
    }
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--black);
}

p {
    color: var(--muted-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #fbfbfb;
}

/* =====================
   HEADER & NAV
===================== */
.header {
    background-color: var(--black);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Brand / Logo image */
.brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background: transparent;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
    border: 2px solid var(--brand);
}

.brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.6px;
    color: #fff;
}

@media (max-width:768px) {
    .logo-img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .brand-text {
        font-size: 0.95rem;
    }
}

.nav a {
    color: #ffffff;
    margin-left: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.12s ease;
}

.nav a:hover {
    color: var(--brand);
    transform: translateY(-2px);
}

/* active page link styling */
.nav a.active,
.nav a[aria-current="page"] {
    color: var(--brand);
    font-weight: 600;
    position: relative;
}

.nav a.active::after,
.nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand);
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-block;
    background-color: var(--brand);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.12s ease;
}

.btn:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-light {
    background-color: transparent;
    color: var(--brand);
    padding: 8px 14px;
    border-radius: 20px;
    border: 2px solid rgba(255, 106, 0, 0.12);
}

/* =====================
   HERO
===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0.6)), url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 0;
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f1f5f9;
}

/* =====================
   SERVICES GRID
===================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background-color: var(--card-bg);
    padding: 28px 22px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 150px;
    border: 2px solid transparent;
    cursor: pointer;
}

.card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 20px rgba(228, 86, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card .card-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: #fff;
    stroke: #fff;
    stroke-width: 0.8px;
}

@media (max-width: 480px) {
    .card .card-icon {
        width: 48px;
        height: 48px;
    }

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

.card .card-body {
    max-width: 100%;
}

.card h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--black);
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted-color);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 6px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 48px rgba(2, 6, 23, 0.14);
    border-color: rgba(255, 106, 0, 0.2);
}

.card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.22);
}

@media (max-width: 768px) {
    .card {
        min-height: auto;
        padding: 20px;
    }
}

/* =====================
   TEAM
===================== */
.team-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.team-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

/* .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
} */

.bio-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    outline: none;
}

.bio-card:hover,
.bio-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.bio-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Photos parfaitement rondes */
.bio-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* Rend l'image parfaitement ronde */
    object-fit: cover;
    /* Ajuste l'image sans la déformer */
    object-position: center;
    /* Centre le visage */
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-card:hover .bio-avatar,
.bio-card:focus .bio-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.bio-caption {
    margin-bottom: 15px;
}

.bio-caption strong {
    display: block;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 5px;
}

.role-caption {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.bio {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

/* Optionnel : Version alternative avec des photos plus petites */
.bio-avatar.small {
    width: 120px;
    height: 120px;
}

/* Optionnel : Version avec bordure colorée */
.bio-avatar.colored-border {
    border-color: var(--brand, #007bff);
    /* Utilise votre couleur de marque */
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bio-avatar {
        width: 130px;
        height: 130px;
    }
}


/* =====================
   CONTACT
===================== */
#contact p {
    margin-bottom: 12px;
}

/* =====================
   FOOTER
===================== */
.footer {
    background-color: var(--black);
    color: #e6e6e6;
    text-align: center;
    padding: 28px 0;
    font-size: 0.95rem;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

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

    .section {
        padding: 60px 0;
    }
}

/* Specific adjustments for narrower desktops and tablets */
@media (max-width: 900px) {

    /* Scale down hero titles and lead a little */
    .page-hero.home-hero h1 {
        font-size: 1.9rem;
    }

    .page-hero.home-hero .lead {
        font-size: 1rem;
        max-width: 680px;
        padding: 0 14px;
    }

    /* Stack hero CTAs vertically and make buttons fill width for better tap targets */
    .hero-cta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 420px;
        box-sizing: border-box;
    }

    /* Reduce bottom padding so the hero visually fits without white gaps */
    .page-hero.home-hero {
        padding-bottom: 20px;
    }
}

/* -----------------------
   ABOUT PAGE STYLES
   ----------------------- */
.page-hero {
    background: linear-gradient(180deg, rgba(8, 18, 35, 0.85), rgba(8, 18, 35, 0.65)), url('images/couverture.jpeg') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
}

.page-hero .hero-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.lead {
    font-size: 1.05rem;
    color: #2c2c2c;
    margin-bottom: 18px;
}

/* Home hero enhancements — game landing */
.page-hero.home-hero {
    position: relative;
    overflow: hidden;
    /* Center vertically: full viewport minus header */
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 0 0 40px;
    /* keep some bottom breathing room for small screens */
    background-image: linear-gradient(rgba(8, 18, 35, 0.65), rgba(8, 18, 35, 0.5)), url('images/couverture.jpeg');
    background-position: center;
    background-size: cover;
}

.page-hero.home-hero .hero-inner {
    padding: 28px 0;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    z-index: 2;
    position: relative;
}

.page-hero.home-hero .hero-kicker {
    display: inline-block;
    background: rgba(255, 106, 0, 0.12);
    color: var(--brand);
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.page-hero.home-hero h1 {
    font-size: 3rem;
    line-height: 1.02;
    margin-bottom: 12px;
    color: #fff;
}

.page-hero.home-hero .neon {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 106, 0, 0.9), 0 0 30px rgba(228, 86, 0, 0.6);
}

.page-hero.home-hero .lead {
    font-size: 1.18rem;
    max-width: 800px;
    margin: 0 auto 18px;
    color: #f4f7fb;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.hero-cta .btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
}

.primary-cta {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 30px rgba(255, 106, 0, 0.18), inset 0 -4px 18px rgba(0, 0, 0, 0.08);
    border: none;
    color: #fff;
}

.primary-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(255, 106, 0, 0.22);
}

.hero-cta .btn-light {
    background: transparent;
    border: 2px solid rgba(255, 106, 0, 0.12);
    color: var(--brand);
}

/* Hero decorative layers */
.hero-decor {
    position: absolute;
    inset: -20% -10% -20% -10%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 106, 0, 0.10), transparent 8%), radial-gradient(circle at 80% 70%, rgba(228, 86, 0, 0.08), transparent 10%);
    filter: blur(28px);
    transform: translateZ(0);
    transition: transform 0.2s linear;
    z-index: 1;
}

.hero-scanline {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
    opacity: 0.45;
    z-index: 3;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 400px;
    }
}

/* Highlights tuned for game landing */
.home-highlights {
    padding-top: 30px;
    padding-bottom: 34px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.highlight-card {
    background: linear-gradient(180deg, #fff, #fbfbfb);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    border: 1px solid rgba(2, 6, 23, 0.04);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.14);
}

.highlight-card h4 {
    margin-bottom: 8px;
    color: var(--black);
}

.highlight-card p {
    color: var(--muted-color);
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero.home-hero {
        background-position: center top;
    }

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

    .page-hero.home-hero .lead {
        font-size: 1rem;
        padding: 0 12px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .highlight-card {
        padding: 14px;
    }
}

/* Prefer reduced motion: disable heavy animations */
@media (prefers-reduced-motion: reduce) {
    .hero-scanline {
        animation: none;
    }

    .hero-decor {
        transition: none;
    }
}

/* further scale down hero text on very small screens */
@media (max-width: 480px) {
    .page-hero.home-hero h1 {
        font-size: 1.6rem;
    }

    .page-hero.home-hero .lead {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 36px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.about-text p {
    margin-bottom: 14px;
    color: #334155;
}

.about-media img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease;
}

.about-media img:hover {
    filter: grayscale(100%) contrast(1.15);
}

/* About page enhancements */
.about-text .intro-list {
    list-style: none;
    margin-top: 14px;
    margin-bottom: 18px;
    padding-left: 0;
    display: grid;
    gap: 10px;
}

.about-text .intro-list li {
    padding-left: 18px;
    position: relative;
    color: var(--muted-color);
}

.about-text .intro-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

.about-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.values-intro {
    color: var(--muted-color);
    margin-bottom: 14px;
}

.value-card {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.12);
}

.value-card h4 {
    margin-bottom: 8px;
}

.bio-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.bio-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.bio-card h4 {
    margin-bottom: 6px;
}

.bio-card .role {
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
}

.bio-card .bio {
    color: #475569;
    font-size: 0.95rem;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.value-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.04);
}

.value-card h4 {
    margin-bottom: 8px;
    color: #0f172a;
}

.value-card p {
    color: #475569;
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.bio-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.bio-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.bio-card h4 {
    margin-bottom: 6px;
}

.bio-card p {
    color: #475569;
    font-size: 0.95rem;
}

.btn {
    text-decoration: none;
    display: inline-block;
}

.btn-light {
    background: #fff;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 20px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

/* Ensure container relative for mobile nav positioning */
.header .container {
    position: relative;
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: inherit;
}

.nav-toggle .hamburger {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease;
}

.nav-toggle .hamburger::before {
    top: -7px;
}

.nav-toggle .hamburger::after {
    top: 7px;
}

/* Mobile-specific */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        right: 12px;
        left: 12px;
        background: #fff;
        color: #0b0b0b;
        padding: 16px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
        border-radius: 8px;
        z-index: 1200;
    }

    .nav a {
        color: #0b0b0b;
        margin-left: 0;
        font-weight: 700;
        padding: 10px 14px;
        display: block;
        border-radius: 6px;
        text-align: center;
    }

    .nav a.btn {
        background: var(--brand);
        color: #fff;
    }

    .nav.nav--open {
        display: flex;
    }

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

    .hero-page {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .section {
        padding: 60px 0;
    }

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

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

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

/* Very small screens */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 12px;
    }

    .section {
        padding: 40px 0;
    }
}

/* Contact grid (moved from inline styles) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}

/* stack contact grid on narrow screens */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid aside {
        order: -1;
        /* show map after form if desired */
    }
}

/* further adjust for very small devices */
@media (max-width: 480px) {
    .contact-grid {
        gap: 16px;
    }

    .contact-form {
        width: 100%;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Modal for service details */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 1400;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    background: #fff;
    color: #0b0b0b;
    max-width: 760px;
    width: calc(100% - 40px);
    margin: 16px;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.18);
    padding: 24px;
    z-index: 1401;
    overflow: auto;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal h3 {
    margin-top: 0;
}

.modal .modal-lead {
    color: var(--muted-color);
    margin-bottom: 12px;
}

.modal .modal-body {
    color: #334155;
}

.modal-cta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(2, 6, 23, 0.1);
}

.modal-cta .btn {
    display: inline-block;
    width: 100%;
    text-align: center;
}

@media (max-width: 480px) {
    .modal-dialog {
        padding: 18px;
        width: calc(100% - 24px);
    }
}

/* =====================
   SERVICES PAGE STYLES
===================== */
.services-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #fbfbfb 100%);
    padding: 60px 0;
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.intro-content {
    max-width: 820px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--black);
}

.intro-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted-color);
    margin-bottom: 16px;
}

.intro-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted-color);
    margin-bottom: 0;
}

.services-section {
    padding: 80px 0;
}

.services-cta {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(228, 86, 0, 0.04));
    padding: 60px 0;
    border-top: 1px solid rgba(255, 106, 0, 0.12);
}

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

.cta-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--black);
}

.cta-content p {
    font-size: 1rem;
    color: var(--muted-color);
    margin-bottom: 0;
}

/* =====================
   SOCIAL FEEDS (MEDIA PAGE)
===================== */
.social-feeds {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    overflow-x: hidden;
}

.social-feed {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
}

.social-feed h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--black);
    font-size: 1.1rem;
}

.facebook-feed .fb-page {
    width: 100%;
    max-width: 100% !important;
}

.youtube-feed iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.linkedin-feed #linkedin-feed {
    border-radius: 8px;
    max-width: 100%;
}

@media (max-width: 900px) {
    .social-feeds {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .social-feed {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 10px;
        box-sizing: border-box;
    }

    .social-feed iframe,
    .social-feed .fb-page,
    .social-feed blockquote {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Team section styling */
/* .team-section .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
} */

.team-section .team-member {
    text-align: center;
    /* max-width: 180px; */
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* .team-section .team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
} */

.team-section .team-avatar {
    display: block;
    margin: 0 auto;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: transform 0.25s ease;
}

/* .team-section .team-member:hover .team-avatar {
    transform: scale(1.01);
} */

.team-section .team-info {
    margin-top: 0.5rem;
}

.team-section .team-role {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-top: 0.25rem;
}

/* overlay text on avatar */
.team-section .team-avatar-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* .team-section .team-member:hover .team-avatar-overlay {
    opacity: 1;
} */

/* Projects page: controls, grid, modal, lazy-load */
.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* responsive tweaks for filter toolbar */
@media (max-width: 600px) {
    .projects-controls .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .projects-controls label {
        width: 100%;
    }

    .projects-controls select,
    .projects-controls input[type="search"] {
        width: 100%;
    }

    .projects-controls .actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

.projects-controls .filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.projects-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--black);
}

.projects-controls select,
.projects-controls input[type="search"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(2, 6, 23, 0.06);
    background: #fff;
}

.projects-controls .actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.mission-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
    transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s ease;
    border: 1px solid rgba(2, 6, 23, 0.04);
    cursor: pointer;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(8, 20, 45, 0.08);
}

.mission-card .project-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f6f7f9;
}

.mission-card h4 {
    margin: 0 0 6px 0;
}

.load-more-wrap {
    margin-top: 12px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

/* .partner-slot {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(2, 6, 23, 0.04);
    min-height: 68px;
} */

.partner-slot .partner-logo {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: filter .2s ease, transform .2s ease;
}

.partner-slot:hover .partner-logo {
    filter: grayscale(0%);
    transform: translateY(-4px);
}

/* Modal gallery inside project modal */
.modal-gallery {
    display: flex;
    gap: 8px;
    margin: 10px 0 16px 0;
    overflow: auto;
}

.modal-gallery img {
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
}

/* small helpers */
.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .mission-card .project-thumb {
        height: 120px;
    }
}

/* Partners Section — Option A: Clean grid with grayscale→color + lift hover */
.partners-section {
    background: #fff;
    padding: 60px 0;
}

.partners-section h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
    color: var(--black);
}

.partners-section .lead {
    max-width: 700px;
    margin-bottom: 30px;
    color: var(--muted-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.partner-slot {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(2, 6, 23, 0.05);
    min-height: 100px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
    transition: transform .24s cubic-bezier(.2, .9, .3, 1), box-shadow .24s ease, border-color .24s ease;
    cursor: pointer;
}

.partner-slot:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
    border-color: rgba(2, 6, 23, 0.08);
}

.partner-slot .partner-logo {
    max-width: 85%;
    max-height: 64px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    transition: filter .28s ease, transform .28s ease;
}

.partner-slot:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* Juste pour mettre la troisième photo de l'équipe au centre sur mobile */
@media (max-width: 768px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 18px;
        justify-items: center;
    }

    .team-member:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 260px;
    }
}

@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .partner-slot {
        min-height: 80px;
        padding: 10px;
    }
}

/* =====================
   PORTFOLIO MODAL
===================== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.portfolio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    cursor: pointer;
}

.portfolio-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.portfolio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.2s ease;
}

.portfolio-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.portfolio-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-year {
    background: var(--brand);
    color: white;
}

#modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0b0b0b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-lead {
    font-size: 1.1rem;
    color: var(--muted-color);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Responsive: Stack modal content on smaller screens */
@media (max-width: 768px) {
    .portfolio-modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .portfolio-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    #modal-title {
        font-size: 1.6rem;
    }

    .modal-lead {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-modal-content {
        width: 98%;
        border-radius: 12px;
    }

    .portfolio-modal-body {
        padding: 16px;
    }

    #modal-title {
        font-size: 1.3rem;
    }

    .portfolio-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}