/* =========================================================
   THÈME CROMWEL UNIVERS — BLEU SOMBRE & BLEU CLAIR LUMINEUX
   ========================================================= */

:root {
    --bg-dark: #070d19;
    --bg-surface: #0f1b33;
    --bg-surface-alt: #0b1426;
    --bg-card-hover: #152544;
    
    --blue-primary: #38bdf8;
    --blue-accent: #60a5fa;
    --blue-deep: #1d4ed8;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-subtle: rgba(56, 189, 248, 0.16);
    --border-bright: rgba(56, 189, 248, 0.45);
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   HEADER / NAVIGATION + SÉLECTEUR DE LANGUE
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 76px;
    background: rgba(7, 13, 25, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue-primary);
    box-shadow: 0 0 12px var(--blue-primary);
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--blue-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--blue-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher select {
    background: var(--bg-surface);
    color: var(--blue-primary);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.lang-switcher select:hover {
    background: var(--bg-card-hover);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    padding: 170px 0 110px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 420px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(7, 13, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--border-bright);
    color: var(--blue-primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 10%, var(--blue-primary) 55%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: #041024;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--blue-primary);
    background: var(--bg-card-hover);
}

/* =========================================================
   SECTIONS GÉNÉRALES
   ========================================================= */
.section {
    padding: 96px 0;
}

.section-alt {
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 48px;
}

.section-tag {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--blue-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 600px;
}

/* =========================================================
   ABOUT US
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
}

.about-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 38px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), transparent);
}

.about-card h3 {
    font-size: 1.65rem;
    margin-bottom: 18px;
}

.highlight {
    color: var(--blue-primary);
}

.lead-text {
    font-size: 1.12rem;
    color: #e2e8f0;
    font-weight: 400;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.custom-quote {
    margin-top: 24px;
    padding: 18px 22px;
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid var(--blue-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: #bae6fd;
    font-size: 1.02rem;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: var(--transition);
}

.info-box:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-box h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.info-box p {
    font-size: 0.93rem;
    color: var(--text-muted);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 32px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.project-logo-zone {
    height: 190px;
    background: linear-gradient(145deg, #0b1528 0%, #142749 100%);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.project-logo-zone img {
    max-width: 150px;
    max-height: 110px;
    object-fit: contain;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--blue-primary);
    border: 1px dashed var(--border-bright);
    padding: 22px 36px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.04);
}

.logo-placeholder span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.project-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue-primary);
}

.tag-soon {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.tag-status {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.project-body h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.project-body p {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-link-text {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--blue-primary);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.project-card:hover .project-link-text {
    transform: translateX(5px);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
}

.contact-box h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-box > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #040811;
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--blue-primary);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--blue-primary);
    color: #041024;
    border-color: var(--blue-primary);
    transform: translateY(-3px);
}

/* =========================================================
   PAGES DÉDIÉES AUX PROJETS
   ========================================================= */
.project-detail-hero {
    padding: 150px 0 60px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(7, 13, 25, 0) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.detail-logo-box {
    width: 110px;
    height: 110px;
    background: var(--bg-surface);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    flex-shrink: 0;
}

.detail-content {
    padding: 70px 0 100px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}

.detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.detail-card h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.detail-card h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.detail-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.feature-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
    color: #cbd5e1;
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-weight: bold;
}

/* =========================================================
   OPTIMISATION MOBILE & TABLETTE (RESPONSIVE)
   ========================================================= */
@media (max-width: 850px) {
    .about-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 115px;
    }

    .container {
        padding: 0 18px;
    }

    .nav-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--border-subtle);
        padding-top: 10px;
        gap: 12px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 155px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .section {
        padding: 72px 0;
    }

    .about-card,
    .contact-box,
    .detail-card {
        padding: 24px 20px;
    }

.detail-logo-box {
    width: 110px;
    height: 110px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    flex-shrink: 0;
}
}
