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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0D0D0D;
    color: #FFFFFF;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none !important;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* ============================================
   HEADER / NAVBAR - Transparent avec blur
   ============================================ */
.navbar {
    background: rgba(13, 13, 13, 0.25) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(13, 13, 13, 0.30) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: #FFFFFF !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: #FF6B35;
}

.navbar-toggler {
    filter: invert(1);
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.80) !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF !important;
}

.nav-link:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Bouton CTA dans le header - NON TRANSPARENT */
.btn-nav-cta {
    background: #FFFFFF !important;
    color: #0D0D0D !important;
    border-radius: 50px;
    padding: 10px 8px 10px 20px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-nav-cta:hover {
    background: #FF6B35 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.40);
}

.btn-nav-cta:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

.btn-nav-cta .icon-circle {
    background: #FF6B35;
    color: #FFFFFF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-nav-cta:hover .icon-circle {
    background: #FFFFFF;
    color: #0D0D0D;
    transform: rotate(45deg);
}

.btn-nav-cta,
.btn-nav-cta:hover,
.btn-nav-cta:focus,
.btn-nav-cta:active {
    text-decoration: none !important;
    outline: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 130px 0 0;
    position: relative;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 65% 30%, rgba(255, 140, 90, 0.55) 0%, transparent 55%),
        radial-gradient(circle at 75% 55%, rgba(230, 57, 70, 0.5) 0%, transparent 50%),
        linear-gradient(160deg, #b5451f 0%, #7a1f1f 45%, #2a0f0f 80%, #120808 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255, 180, 120, 0.35), transparent 60%),
        radial-gradient(ellipse at 30% 90%, rgba(0, 0, 0, 0.5), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    background: radial-gradient(circle at 60% 35%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 70px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 0;
    letter-spacing: -2px;
    color: #FFFFFF;
}

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-side-box {
    max-width: 320px;
    text-align: right;
}

.hero-side-box h5 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.hero-side-box p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 22px 0 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats-row .stat span.tag {
    color: #FF8C5A;
    font-weight: 700;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 6px;
}

.hero-stats-row .stat p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   BUTTONS - NON TRANSPARENTS
   ============================================ */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 3px;
}

.btn-primary {
    background: #FFFFFF;
    color: #0D0D0D;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #FF6B35;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.40);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #FFFFFF;
    color: #0D0D0D;
    transform: translateY(-3px);
    border-color: #FFFFFF;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 90px 0 40px;
    background: #0D0D0D;
}

.services-tag {
    color: #FF6B35;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: block;
}

.services-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.services-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    text-align: right;
}

.services-right p {
    color: #9A9A9A;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.services-marquee {
    margin-top: 30px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.services-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: scrollLeft 22s linear infinite;
}

.services-marquee:hover .services-track {
    animation-play-state: paused;
}

/* Service Item */
.service-item {
    flex: 0 0 auto;
    width: 260px;
    min-height: 170px;
    padding: 28px 22px 24px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #161616;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #FF6B35;
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15);
    background: #1a1a1a;
}

.service-item .number {
    font-size: 0.7rem;
    font-weight: 700;
    color: #FF6B35;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}

.service-item h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #FFFFFF;
    text-align: center;
}

.service-item p {
    text-align: center;
    font-size: 0.85rem;
    color: #9A9A9A;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-section {
    padding: 80px 0;
    background: #0D0D0D;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #FFFFFF;
}

.section-header h2 span {
    color: #FF6B35;
}

.section-header p {
    color: #9A9A9A;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 12px auto 0;
}

.projects-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.projects-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: scrollLeft 22s linear infinite;
}

.projects-marquee:hover .projects-track {
    animation-play-state: paused;
}

/* Utilisée quand il n'y a pas assez de cartes pour boucler proprement
   (ex : un seul projet). Désactive l'animation et centre le contenu
   au lieu de laisser un défilement infini casse (glitch). */
.projects-track.is-static {
    animation: none;
    justify-content: center;
    width: 100%;
}

/* Project Card */
.project-card {
    flex: 0 0 auto;
    width: 270px;
    border-radius: 16px;
    overflow: hidden;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #FF6B35;
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.12);
    background: #1a1a1a;
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.project-card .card-body {
    padding: 18px 20px 12px;
    flex: 1;
}

.project-card .card-body .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.project-card .card-body .tech-tags .badge {
    background: rgba(255, 107, 53, 0.12);
    color: #FF8C5A;
    font-weight: 500;
    font-size: 0.6rem;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.project-card:hover .card-body .tech-tags .badge {
    background: rgba(255, 107, 53, 0.2);
}

.project-card .card-body h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.project-card:hover .card-body h4 {
    color: #FF6B35;
}

.project-card .card-body p {
    color: #9A9A9A;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .card-footer {
    padding: 0 20px 18px;
    background: transparent;
    border: none;
}

.project-card .card-footer .btn-link {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-card .card-footer .btn-link:hover {
    color: #FF6B35;
}

.project-card .card-footer .btn-link i {
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.project-card .card-footer .btn-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   ANIMATION SCROLL
   ============================================ */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
    margin: 0 auto 60px;
    max-width: 1200px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 140, 90, 0.45) 0%, transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(230, 57, 70, 0.45) 0%, transparent 50%),
        linear-gradient(160deg, #b5451f 0%, #7a1f1f 45%, #2a0f0f 80%, #120808 100%);
}

.cta-section h2 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 34px;
    line-height: 1.8;
}

.cta-newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.cta-input-group {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(6px);
}

.cta-input-group .form-control {
    border: none;
    background: transparent;
    color: #FFFFFF;
    padding: 12px 20px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
}

.cta-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-input-group .form-control:focus {
    outline: none;
    box-shadow: none;
}

.cta-input-group .btn {
    background: #FFFFFF;
    color: #0D0D0D;
    padding: 12px 26px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-input-group .btn:hover {
    background: #0D0D0D;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.cta-input-group .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0D0D0D;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #FFFFFF;
}

.footer .brand span {
    color: #FF6B35;
}

.footer p {
    font-size: 0.9rem;
    margin: 0;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin-left: 24px;
}

.footer .social-links a:hover {
    color: #FF6B35;
    transform: translateY(-2px);
}

.discord-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: default;
    margin: 8px;
}

.discord-tag i {
    color: #5865F2;
    font-size: 0.95rem;
}

.discord-tag:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toastContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    background: #161616;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: toastIn 0.5s ease forwards;
    border-left: 4px solid transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.toast-notification.toast-success {
    border-left-color: #10B981;
}

.toast-notification.toast-error {
    border-left-color: #EF4444;
}

.toast-notification .toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}

.toast-notification.toast-success .toast-icon {
    background: #10B981;
    color: #FFFFFF;
}

.toast-notification.toast-error .toast-icon {
    background: #EF4444;
    color: #FFFFFF;
}

.toast-notification .toast-content {
    flex: 1;
    min-width: 0;
}

.toast-notification .toast-content .toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.toast-notification .toast-content .toast-message {
    font-size: 0.85rem;
    color: #9A9A9A;
    line-height: 1.5;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #9A9A9A;
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: -2px;
}

.toast-notification .toast-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.toast-notification .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
}

.toast-notification .toast-progress .bar {
    height: 100%;
    animation: progressBar 5s linear forwards;
}

.toast-notification.toast-success .toast-progress .bar {
    background: #10B981;
}

.toast-notification.toast-error .toast-progress .bar {
    background: #EF4444;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero {
        border-radius: 0 0 24px 24px;
        text-align: center;
        padding-top: 110px;
    }

    .hero-side {
        justify-content: center;
        margin-top: 24px;
    }

    .hero-side-box {
        text-align: center;
        max-width: 100%;
    }

    .hero-desc {
        margin: 22px auto 30px;
        max-width: 90%;
    }

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

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .services-right {
        align-items: center;
        text-align: center;
        margin-top: 24px;
    }

    .services-title {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .cta-section {
        border-radius: 24px;
        margin: 0 20px 40px;
    }

    .navbar {
        background: rgba(13, 13, 13, 0.25) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .navbar.scrolled {
        background: rgba(13, 13, 13, 0.30) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .navbar-collapse {
        background: rgba(13, 13, 13, 0.80);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 20px;
        border-radius: 16px;
        margin-top: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-nav {
        align-items: center;
    }

    .btn-nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }

    .hero {
        padding-top: 100px;
        min-height: 85vh;
    }

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 30px;
    }

    .hero-stats-row .stat p {
        font-size: 0.8rem;
    }

    .hero-stats-row .stat span.tag {
        font-size: 0.7rem;
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-side-box h5 {
        font-size: 1rem;
    }

    .hero-side-box p {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .cta-section {
        border-radius: 20px;
        margin: 0 16px 40px;
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .cta-newsletter-form {
        max-width: 100%;
        padding: 0 10px;
    }

    #toastContainer {
        bottom: 16px;
        right: 12px;
        left: 12px;
        max-width: 100%;
        width: auto;
    }

    .services {
        padding: 60px 0 20px;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .service-item {
        width: 200px;
        min-height: 150px;
        padding: 20px 16px;
    }

    .service-item h4 {
        font-size: 0.95rem;
    }

    .service-item p {
        font-size: 0.78rem;
    }

    .project-card {
        width: 220px;
    }

    .project-card img {
        height: 120px;
    }

    .project-card .card-body {
        padding: 14px 16px 10px;
    }

    .project-card .card-body h4 {
        font-size: 0.9rem;
    }

    .project-card .card-body p {
        font-size: 0.76rem;
        -webkit-line-clamp: 2;
    }

    .project-card .card-body .tech-tags .badge {
        font-size: 0.55rem;
        padding: 3px 10px;
    }

    .project-card .card-footer {
        padding: 0 16px 14px;
    }

    .project-card .card-footer .btn-link {
        font-size: 0.74rem;
    }

    .services-track,
    .projects-track {
        animation-duration: 18s;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar {
        background: rgba(13, 13, 13, 0.25) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .navbar.scrolled {
        background: rgba(13, 13, 13, 0.30) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .navbar-collapse {
        background: rgba(13, 13, 13, 0.80);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px;
        border-radius: 14px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Petit mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.1rem;
        text-align: center;
    }

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

    .hero-desc {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 16px 0;
        background: rgba(13, 13, 13, 0.25) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .navbar.scrolled {
        background: rgba(13, 13, 13, 0.30) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .btn-nav-cta span:last-child {
        display: none;
    }

    .btn-nav-cta {
        padding: 8px 8px 8px 16px !important;
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 26px;
        font-size: 0.85rem;
    }

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        text-align: center;
    }

    .hero-stats-row .stat p {
        font-size: 0.75rem;
    }

    .hero-stats-row .stat span.tag {
        font-size: 0.65rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 90px;
        min-height: 80vh;
    }

    .section-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .section-header p {
        font-size: 0.85rem;
        text-align: center;
    }

    .section-header .tag {
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 40px 16px;
        margin: 0 12px 30px;
        border-radius: 16px;
    }

    .services-title {
        font-size: 1.5rem;
        text-align: center;
    }

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

    .services-right {
        align-items: center;
        text-align: center;
    }

    .services {
        padding: 40px 0 10px;
    }

    .service-item {
        width: 170px;
        min-height: 130px;
        padding: 16px 14px;
    }

    .service-item .number {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }

    .service-item h4 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .service-item p {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .project-card {
        width: 180px;
    }

    .project-card img {
        height: 100px;
    }

    .project-card .card-body {
        padding: 12px 14px 8px;
    }

    .project-card .card-body h4 {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    .project-card .card-body p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }

    .project-card .card-body .tech-tags {
        gap: 4px;
        margin-bottom: 6px;
    }

    .project-card .card-body .tech-tags .badge {
        font-size: 0.5rem;
        padding: 2px 8px;
    }

    .project-card .card-footer {
        padding: 0 14px 12px;
    }

    .project-card .card-footer .btn-link {
        font-size: 0.68rem;
    }

    .project-card .card-footer .btn-link i {
        font-size: 0.6rem;
    }

    .toast-notification {
        padding: 8px 10px;
        border-radius: 8px;
    }

    .toast-notification .toast-icon {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .toast-notification .toast-content .toast-title {
        font-size: 0.74rem;
    }

    .toast-notification .toast-content .toast-message {
        font-size: 0.68rem;
    }

    .cta-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 10px;
    }

    .cta-input-group .form-control {
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 50px;
        text-align: center;
    }

    .cta-input-group .btn {
        width: 100%;
        justify-content: center;
    }

    .services-marquee,
    .projects-marquee {
        margin-top: 20px;
    }

    .services-track,
    .projects-track {
        gap: 12px;
        animation-duration: 14s;
    }

    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar-collapse {
        background: rgba(13, 13, 13, 0.80);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 14px;
        border-radius: 12px;
        margin-top: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Très petit mobile */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero-stats-row .stat p {
        font-size: 0.7rem;
    }

    .hero-stats-row .stat span.tag {
        font-size: 0.6rem;
    }

    .service-item {
        width: 150px;
        min-height: 110px;
        padding: 12px 10px;
    }

    .service-item h4 {
        font-size: 0.78rem;
    }

    .service-item p {
        font-size: 0.65rem;
    }

    .project-card {
        width: 150px;
    }

    .project-card img {
        height: 80px;
    }

    .project-card .card-body {
        padding: 10px 12px 6px;
    }

    .project-card .card-body h4 {
        font-size: 0.74rem;
    }

    .project-card .card-body p {
        font-size: 0.62rem;
        -webkit-line-clamp: 1;
    }

    .project-card .card-body .tech-tags .badge {
        font-size: 0.45rem;
        padding: 2px 6px;
    }

    .project-card .card-footer {
        padding: 0 12px 10px;
    }

    .project-card .card-footer .btn-link {
        font-size: 0.6rem;
    }

    .cta-section h2 {
        font-size: 1.3rem;
    }

    .services-title {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}