/* ===============================================
   VARIABLES & RESET
   =============================================== */
:root {
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --cyan: #00D9D9;
    --cyan-dark: #00B8B8;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-300: #E0E0E0;
    --gray-500: #9CA3AF;
    --gray-700: #4B5563;
    --gray-900: #1F2937;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --container: 1280px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============================================
   TYPOGRAPHIE
   =============================================== */
h1,
h2,
h3,
h4,
.logo,
.btn-primary,
.btn-secondary {
    font-family: 'Space Grotesk', monospace;
}

h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 span {
    color: var(--cyan);
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

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

.badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* ===============================================
   BOUTONS
   =============================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--cyan);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    color: var(--black);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.btn-whatsapp,
.btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-email {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-email:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-300);
    height: 80px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: px 24px;
}

.logo img {
    width: 90px;
    height: auto;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.btn-devis {
    padding: 10px 20px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-devis:hover {
    background: var(--cyan);
    color: var(--black);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

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

.hero-tagline {
    font-size: 18px;
    color: var(--cyan);
    font-weight: 500;
    margin: 24px 0 16px;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto 32px;
}

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

/* ===============================================
   SERVICES SECTION
   =============================================== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan);
}

.service-icon i{
    font-size: 50px;
    margin-bottom: 20px;
    margin-left: 90px;
    color: #02d8e7;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card>p {
    color: var(--gray-700);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-card ul {
    margin-bottom: 24px;
}

.service-card li {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card li i {
    color: var(--cyan);
    font-size: 12px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* Typewriter card */
.typewriter-container {
    min-height: 120px;
    margin: 20px 0;
}

.typewriter-line {
    font-size: 14px;
    color: var(--cyan);
    border-right: 2px solid var(--cyan);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
    animation: blinkCursor 0.7s step-end infinite;
}

@keyframes blinkCursor {

    0%,
    50% {
        border-color: var(--cyan);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

/* ===============================================
   PORTFOLIO SECTION
   =============================================== */
.portfolio {
    padding: 80px 0;
    background: var(--gray-100);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.portfolio-item {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.portfolio-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info h3 {
    font-size: 18px;
    margin: 8px 0 0;
}

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

/* ===============================================
   TESTIMONIALS SECTION
   =============================================== */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .fa-quote-left {
    color: var(--cyan);
    font-size: 28px;
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}

.testimonial-card p {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--black);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===============================================
   CTA FINAL SECTION
   =============================================== */
.cta-final {
    padding: 80px 0;
    background: var(--black);
    color: var(--white);
}

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

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--black);
}

.cta-buttons .btn-primary:hover {
    background: var(--cyan);
    color: var(--black);
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background: var(--gray-100);
    padding: 60px 0 24px;
    border-top: 1px solid var(--gray-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--black);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-700);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--cyan);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 20px;
    color: var(--cyan);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    color: var(--gray-700);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-300);
    font-size: 13px;
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--cyan);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header .container {
        padding: 12px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: left 0.3s ease;
        z-index: 99;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 48px 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .btn-devis {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;
    }

    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-final {
        padding: 60px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 280px;
    }

    .footer {
        padding: 48px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact ul {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Désactiver typewriter sur mobile */
    .typewriter-line {
        white-space: normal !important;
        border-right: none !important;
        animation: none !important;
    }

    .typewriter-container {
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px;
    }

    .testimonial-card {
        padding: 24px;
    }

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

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.service-card,
.portfolio-item,
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.portfolio-item.visible,
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   UTILITAIRES
   =============================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}