@charset "UTF-8";

/* --- 1. CORE SETTINGS --- */
:root {
    /* Fond : Noir très profond légèrement bleuté */
    --bg-deep: #050508;

    /* Texte */
    --text-white: #ffffff;
    --text-gray: #94a3b8;

    /* Le Gradient "Tech-Luxe" (Bleu Roi -> Cyan) */
    --gradient-tech: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);

    /* Glass settings */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-blur: 20px;

    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-primary);
    line-height: 1.6;
    font-weight: 300;
    /* Texte fin par défaut */
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- 2. AMBIENT GLOW (Fond subtil) --- */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Essayer 0 ou 1 si le body a un background opac */
    pointer-events: none;
    /* Deux sources de lumières très diffuses et sombres */
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.08), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(8, 145, 178, 0.08), transparent 40%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 6rem 0;
}


/* --- 3. HEADER FLOTTANT --- */
.tech-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(5, 5, 8, 0.85);
    /* Fond sombre semi-transparent */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    display: block;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.logo-center {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 1.2rem;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.btn-outlined {
    text-decoration: none;
    color: var(--text-white);
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-outlined:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}


/* --- 4. THE "OBSIDIAN CARD" (Gradient Border Magic) --- */
/* C'est ici que l'effet demandé est créé */
.obsidian-card {
    position: relative;
    background: var(--glass-surface);
    /* Surface très sombre */
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(var(--glass-blur));

    /* Nécessaire pour le masque */
    background-clip: padding-box;
    border: 1px solid transparent;
    /* Placeholder */
}

/* Pseudo-élément pour la bordure dégradée */
.obsidian-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Prend toute la taille */
    border-radius: 20px;
    padding: 1px;
    /* Épaisseur de la bordure */

    /* Le dégradé de la bordure (Bleu Tech) */
    background: var(--gradient-tech);

    /* Masque pour ne garder que la bordure */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;

    pointer-events: none;
    opacity: 0.6;
    /* Subtil par défaut */
    transition: opacity 0.4s ease;
}

/* Au survol, la bordure s'illumine */
.obsidian-card:hover::before {
    opacity: 1;
}


/* --- 5. HERO TYPOGRAPHY --- */
.hero-container {
    text-align: center;
    padding-top: 2rem;
}

.main-title {
    font-weight: 200;
    /* Thin Inter */
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -1.5px;
    /* Look moderne compact */
}

.gradient-text {
    background: var(--gradient-tech);
    background-clip: text;
    /* Standard */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback important */
    font-weight: 500;
}

.presentation-box {
    max-width: 750px;
    margin: 0 auto 3.5rem;
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.highlight {
    color: var(--text-white);
    font-weight: 500;
}

/* Boutons */
.actions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-solid {
    background: var(--text-white);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-gray);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn-ghost:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}


/* --- 6. DETAILS SECTION --- */
.label-tech {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #2563eb;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 3rem;
}

.specs-wrapper {
    display: flex;
    gap: 4rem;
}

.spec-column {
    flex: 1;
}

.col-header {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 1rem;
}

.vertical-line {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}


/* --- 7. GALERIE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-card {
    /* Utilise la même logique de bordure dégradée que obsidian-card */
    position: relative;
    background: var(--glass-surface);
    border-radius: 16px;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background-clip: padding-box;
    border: 1px solid transparent;
}

/* On réapplique le masque pour la bordure des images */
.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-tech);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.4s;
    z-index: 10;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(40%);
    /* Légèrement désaturé pour le style pro */
}

.gallery-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.overlay-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 5;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.3s;
}

.gallery-card:hover .overlay-text {
    opacity: 1;
}


/* --- 8. LIGHTBOX & FOOTER --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.2);
    /* Glow bleu autour de l'image */
}

.lightbox-content img {
    width: 100%;
    display: block;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #fff;
    color: #000;
}

footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-gray);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }

    .main-title {
        font-size: 3rem;
    }

    .specs-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .vertical-line {
        display: none;
    }

    .actions-row {
        flex-direction: column;
    }
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.1s;
}

.delay-3 {
    transition-delay: 0.2s;
}