:root {
    --bg-main: #030816;
    --bg-alt: #050c1f;
    --primary: #2563eb;
    --primary-soft: #1d4ed8;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: #1f2937;
    --radius-lg: 18px;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.6);
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #111827 0, #030816 55%, #020617 100%);
    color: var(--text-main);
    line-height: 1.6;
}

/* UTILS */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* HEADER / NAV */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85), transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 0, #60a5fa, #1d4ed8 45%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eef2ff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.logo-text span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Nav links */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.nav-links a {
    position: relative;
    color: #e5e7eb;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #60a5fa, #1d4ed8);
    transition: width var(--transition);
}

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

.nav-cta {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.8);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.5), rgba(15, 23, 42, 0.95));
    color: #e5e7eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

/* Burger */

.burger {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

.burger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: var(--transition);
}

.burger.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* Nav mobile */

.nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.nav-links-mobile a {
    color: #e5e7eb;
}

/* HERO */

.hero {
    padding: 3.2rem 0 2.8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.9);
    font-size: 0.75rem;
    color: #c7d2fe;
    margin-bottom: 1rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero h1 span {
    background: linear-gradient(to right, #60a5fa, #a5b4fc);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    color: #cbd5f5;
    font-size: 0.96rem;
    margin-bottom: 1.1rem;
    max-width: 500px;
}

.hero-list {
    list-style: none;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.hero-list li+li {
    margin-top: 0.35rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1.3rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #f9fafb;
    border-color: #1d4ed8;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.8);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
}

/* Hero card droite */

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

.hero-card {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.7);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem 1.3rem 1.1rem;
    position: relative;
    overflow: hidden;
}

/* halo décoratif dans le coin */
.hero-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-photo {
    width: 88px;
    height: 88px;
    border-radius: 26px;
    overflow: hidden;
    border: 2px solid rgba(191, 219, 254, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.8);
    flex-shrink: 0;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-profile h2 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    color: #f9fafb;
}

.hero-profile p {
    font-size: 0.83rem;
    color: #dbeafe;
    margin-bottom: 0.4rem;
}

.hero-tag {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    color: #bfdbfe;
    font-size: 0.75rem;
    border: 1px solid rgba(129, 140, 248, 0.7);
}

/* stats */

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
    font-size: 0.8rem;
}

.hero-stats div {
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.95);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    word-wrap: break-word;
    word-break: break-word;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-stats div:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.7);
    border-color: rgba(59, 130, 246, 0.9);
}

.hero-stats strong {
    font-size: 0.82rem;
    color: #e5e7eb;
}

.hero-stats span {
    color: #9ca3af;
}

/* Sections générales */

.section {
    padding: 3rem 0;
}

.section-alt {
    background: radial-gradient(circle at top, #050c1f 0, #020617 50%, #020617 100%);
}

.section-header {
    margin-bottom: 1.6rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #e5e7eb;
}

.section-header p {
    font-size: 0.95rem;
    color: #cbd5f5;
}

/* Cards services */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.7);
    box-shadow: var(--shadow-soft);
    padding: 1.1rem 1.1rem 1rem;
    font-size: 0.9rem;
}

.card-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    color: #e5e7eb;
}

.card p {
    color: #cbd5f5;
    margin-bottom: 0.5rem;
}

.card ul {
    list-style: none;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.card ul li+li {
    margin-top: 0.2rem;
}

/* Process */

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: flex-start;
}

.steps {
    display: grid;
    gap: 0.9rem;
}

.step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: flex-start;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #60a5fa;
    color: #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.95);
}

.step h3 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: #e5e7eb;
}

.step p {
    font-size: 0.86rem;
    color: #cbd5f5;
}

.process-aside {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.96));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.8);
    box-shadow: var(--shadow-soft);
    padding: 1.1rem 1.2rem;
    font-size: 0.9rem;
}

.process-aside h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

.process-aside p+p {
    margin-top: 0.4rem;
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.8fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-info>p {
    font-size: 0.92rem;
    color: #cbd5f5;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfdbfe;
    font-size: 1rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.contact-note {
    font-size: 0.85rem;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(37, 99, 235, 0.9);
}

/* Form */

.contact-form {
    background: rgba(15, 23, 42, 0.94);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.2rem 1.1rem;
    font-size: 0.88rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.7rem;
}

label {
    font-size: 0.8rem;
    color: #e5e7eb;
}

input,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: #020617;
    padding: 0.55rem 0.7rem;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition);
    color: #e5e7eb;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

input:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

textarea {
    min-height: 130px;
    max-height: 260px;
    /* 🌟 hauteur max */
    resize: vertical;
    /* on peut encore agrandir un peu */
    overflow-y: auto;
    /* scroll interne si le texte dépasse */
}

.form-footnote {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.4rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.95);
    padding: 1rem 0 1.3rem;
    font-size: 0.8rem;
    color: #9ca3af;
    background: #020617;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* Reveal / animations */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {

    .hero-grid,
    .cards-grid,
    .process-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        order: -1;
    }

    .cards-grid {
        gap: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-links-mobile {
        display: flex;
    }

    .hero {
        padding-top: 2.3rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* 🔥🔥 FIX COMPLET MOBILE — COLLER TOUT À LA FIN DE STYLE.CSS 🔥🔥 */

@media (max-width: 900px) {

    /* ===== HERO ===== */
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: left;
    }

    .hero-side {
        margin: 0 auto;
        order: -1;
    }

    .hero-card {
        max-width: 360px;
        margin: 0 auto;
        padding: 1rem;
        border-radius: 20px;
    }

    .hero-photo {
        width: 72px;
        height: 72px;
    }

    .hero-profile h2 {
        font-size: 1rem;
    }

    .hero-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 0.6rem;
    }

    .hero-stats div {
        padding: 0.55rem 0.7rem;
        font-size: 0.75rem;
    }

    /* ===== TITRE HERO ===== */
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.25;
    }

    .hero-text {
        font-size: 0.92rem;
        max-width: 100%;
    }
}

/* ====== MENU BURGER COMPLETEMENT FIX ====== */
@media (max-width: 768px) {

    /* Cacher le menu desktop */
    .nav-links {
        display: none !important;
    }

    /* Burger visible */
    .burger {
        display: flex !important;
    }

    /* Menu mobile caché par défaut */
    .nav-links-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding: 0 1.4rem;
        background: rgba(15, 23, 42, 0.97);
        border-bottom: 1px solid rgba(31, 41, 55, 0.7);
    }

    /* Quand ouvert (JS ajoute max-height) */
    .nav-links-mobile a {
        padding: 0.6rem 0;
        font-size: 1rem;
        color: #e5e7eb;
    }

    /* Alignement header */
    .nav {
        padding: 0.9rem 0 !important;
    }
}

/* ===== CONTACT ===== */
@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.4rem;
    }

    .contact-form,
    .contact-info {
        padding: 1rem;
    }

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

/* ===== SERVICES ===== */
@media (max-width: 850px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .card {
        padding: 1.1rem 1rem;
    }
}

/* ===== PROCESS ===== */
@media (max-width: 850px) {
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

.hero-badge .badge-dot {
    margin-right: 8px;
    /* espace entre le rond et le texte */
}