/* =========================================
   VARIABLES & RESET (THEME DARK TECH)
   ========================================= */
:root {
    --bg-body: #0f172a;
    /* Dark Slate Blue */
    --bg-darker: #020617;
    /* Almost Black */
    --bg-card: #1e293b;
    /* Lighter Slate */

    --text-main: #f8fafc;
    /* Off-white */
    --text-muted: #94a3b8;
    /* Cool Grey */

    /* Couleur d'accentuation : Electric Blue */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    /* Cyan pour les dégradés */

    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

button {
    font-family: var(--font-head);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--bg-darker);
}

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

/* Background Grid Pattern */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05), transparent 70%);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

.btn-small {
    padding: 10px 20px;
    background: var(--bg-darker);
    color: white;
    border: 1px solid var(--border);
}

.btn-small:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 6px 0;
    transition: 0.3s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
}

.typewriter-container {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* HERO IMAGE RONDE */
.hero-img {
    position: relative;
    display: flex;
    justify-content: center;
}

.circle-frame {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    /* ROND */
    overflow: hidden;
    border: 4px solid var(--bg-card);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    /* Glow Bleu */
    position: relative;
    z-index: 1;
}

.circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tags Flottants & ANIMATION */
.tag {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 18px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-main);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
}

/* Positionnement des tags */
.tag-1 {
    top: 10%;
    right: -20px;
    border-left: 3px solid var(--primary);
}

.tag-2 {
    bottom: 15%;
    right: -20px;
    border-right: 3px solid var(--accent);
}

.tag-3 {
    bottom: 10%;
    left: 0;
    border-left: 3px solid white;
}

/* Animation de flottement */
.animate-float {
    animation: floating 4s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 1.5s;
}

.delay-2 {
    animation-delay: 2.5s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   ABOUT
   ========================================= */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

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

.stat-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-card .number {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
}

.stat-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* =========================================
   SERVICES
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.price-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.price-card.featured {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-card) 100%);
    border: 1px solid var(--primary);
    position: relative;
}

.badge-rec {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.card-header h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.price {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-align: center;
    color: white;
}

.payment-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 10px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.features li::before {
    content: '›';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 800;
}

.maintenance-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.m-icon {
    font-size: 2.5rem;
}

.m-text h4 {
    font-family: var(--font-head);
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.m-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.maintenance-bar .btn {
    margin-left: auto;
    white-space: nowrap;
}

/* =========================================
   PORTFOLIO
   ========================================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 25px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-main);
    color: var(--bg-body);
    border-color: var(--text-main);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* JS Card Style */
.project-card-dark {
    display: block;
    background: var(--bg-body);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
}

.project-card-dark:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.p-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    opacity: 0.8;
}

.project-card-dark:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.p-data {
    padding: 20px;
}

.p-data h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
}

.p-data p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.loader {
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

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

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

.cd-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-head);
    font-size: 1.2rem;
}

.dark-form {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
}

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

.input-wrap {
    margin-bottom: 20px;
}

.input-wrap label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.dark-form input,
.dark-form textarea {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 15px;
    color: white;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.dark-form input:focus,
.dark-form textarea:focus {
    border-color: var(--primary);
}

.dark-form textarea {
    height: 150px;
    resize: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-darker);
}

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

.f-brand strong {
    font-family: var(--font-head);
    font-size: 1.2rem;
}

.f-brand span {
    color: var(--primary);
}

.f-brand small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 5px;
}

.f-links a {
    margin-left: 20px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid var(--border);
    }

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

    .nav-list {
        padding-top: 50px;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hero-layout,
    .about-flex,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding-top: 180px;
    }

    .hero-img {
        order: -1;
        margin-bottom: 50px;
    }

    .hero-btns,
    .contact-details {
        justify-content: center;
    }

    .maintenance-bar {
        flex-direction: column;
        text-align: center;
    }

    .maintenance-bar .btn {
        margin: 20px 0 0 0;
        width: 100%;
    }

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

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

    .f-links a {
        margin: 0 10px;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .circle-frame {
        width: 300px;
        height: 300px;
    }

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