/* =========================================================
   RESET & BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at top left, #1e1b4b 0%, #0f172a 50%, #1e293b 100%);
    background-attachment: fixed;
    color: #e5e7eb;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Effets de lumière en arrière-plan - RÉDUIT */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   TYPOGRAPHIE GLOBALE
========================================================= */

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 1rem 0;
}

p {
    margin: 0 0 1.25rem 0;
    color: #cbd5f5;
}

/* =========================================================
   LIENS & BOUTONS
========================================================= */

a {
    color: #a5b4fc;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

button {
    font-family: inherit;
    font-size: inherit;
}

/* Bouton primaire avec effet glow - GLOW RÉDUIT */
.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Bouton secondaire (outline) - AMÉLIORÉ */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: rgba(15, 23, 42, 0.5);
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid #6366f1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* =========================================================
   LAYOUT GLOBAL
========================================================= */

/* Wrapper général */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Contenu principal */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    margin-top: 80px; /* Espace pour la nav horizontale */
}

/* =========================================================
   CONTENEUR DE PAGE (Index)
========================================================= */

.page {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

/* ==============================
   NAVIGATION HORIZONTALE
============================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1rem 3rem;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.navbar-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.navbar-logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(99, 102, 241, 0.2);
}

.nav-link.active {
    color: #fff;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* Menu hamburger pour mobile */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
        padding: 1rem;
        gap: 0.5rem;
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .main-content {
        margin-top: 70px;
        padding: 1.5rem 1rem;
    }
}


/* =========================================================
   SECTIONS (base neutre)
========================================================= */

.section {
    padding: 2rem 0;
    position: relative;
}

.section:first-of-type {
    padding-top: 0;
}

.section:last-of-type {
    padding-bottom: 0;
}

/* =========================================================
   CARTES GLASSMORPHISM
========================================================= */

.glass-card {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: none;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

/* Grille de cartes */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2rem;
}

/* Icône dans une carte */
.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.card-description {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Liste avec icônes */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.icon-list li::before {
    content: '⚠️';
    flex-shrink: 0;
    font-size: 1.2rem;
}

.icon-list.success li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE - BASE
========================================================= */

@media (max-width: 768px) {

    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }

    .page {
        width: 100%;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    
    .main-content {
        padding: 1rem 0.75rem;
    }

    .hero-process {
        gap: 0.25rem;
        padding: 1rem 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* AJOUT: Smooth scroll sur iOS */
        max-width: 100%; /* AJOUT: Limite la largeur */
    }

    .process-step {
        min-width: 70px;
        padding: 0.25rem 0.25rem;
        flex-shrink: 0;
    }

    .process-icon {
        font-size: 1.2rem;
    }

    .process-label {
        font-size: 0.75rem;
    }

    .process-arrow {
        margin: 0;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .services-container {
        padding: 0 1rem;
    }

    .contact-grid {
        gap: 1rem;
    }

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

/* ==============================
   Hero Editorial Section
============================== */

.hero-editorial {
    padding: 2.5rem 0 1.5rem;
}

.hero-editorial-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 600;
    color: #38bdf8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-editorial-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #e2e8f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-editorial-content p {
    margin-bottom: 1.5rem;
}

.hero-editorial-content p:last-child {
    margin-bottom: 0;
}

.hero-cards-section {
    padding: 1.5rem 0 2rem;
}

.hero-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==============================
   Footer
============================== */

.footer {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
    font-size: 0.9rem;
    color: #cbd5f5;
    position: relative;
    z-index: 1;
}

.footer a {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}


/* ==============================
   HERO - VERSION MODERNE
============================== */

.hero {
    padding: 3rem 0 2rem;
    width: 100%;
    overflow: visible;
    position: relative;
}

/* Conteneur central pour tout le contenu du Hero */
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

/* Contenu texte à gauche */
.hero-content {
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Boutons Hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Avatar avec cadre lumineux */
.hero-avatar {
    position: relative;
    z-index: 2;
}

.hero-avatar img {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4),
                0 0 80px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

/* Effet de lumière derrière l'avatar */
.hero-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto;
    padding: 1.5rem;
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 14px;
    width: 100%; /* AJOUT */
    max-width: 100%; /* AJOUT */
    box-sizing: border-box; /* AJOUT */
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    color: #e2e8f0;
    min-width: 110px;
    padding: 0.5rem 0.75rem;
}

.process-icon {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.process-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.process-arrow {
    color: #64748b;
    margin: 0 0.25rem;
    font-size: 1.2rem;
}

/* ==============================
   Responsive Hero
============================== */
@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 1.5rem;
    }

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

    .hero-avatar img {
        max-width: 280px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-intro {
        margin: 0 auto;
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-avatar img {
        max-width: 220px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ==============================
   ABOUT
============================== */

.about {
    padding: 3rem 0;
    width: 100%;
    overflow-x: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: none;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
}

.about-header {
    margin-bottom: 2rem;
    text-align: center;
}

.about-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #cbd5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-body {
    line-height: 1.8;
}

.about-body p {
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-image-float {
    float: right;
    width: 320px;
    max-width: 40%;
    margin: 0 0 2rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-body::after {
    content: "";
    display: block;
    clear: both;
}


/* ==============================
   Responsive About
============================== */

@media (max-width: 968px) {
    .about {
        padding: 1.5rem 0;
    }

    .about-content {
        padding: 2rem;
    }

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

    .about-image-float {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 1.5rem;
    }

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

/* ==============================
   SERVICES
============================== */

.services {
    padding: 3rem 0;
    width: 100%;
    overflow-x: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #cbd5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-header p {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.8;
}

/* Liste */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Service Card */
.service {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: none;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    transition: all 0.3s ease;
}

.service:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.service--reverse {
    direction: rtl;
}

.service--reverse > * {
    direction: ltr;
}

/* Image */
.service-media img {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Texte */
.service-body h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #fff;
    font-weight: 700;
}

/* Description courte - mise en avant */
.service-lead {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
    color: #8b5cf6;
    margin-bottom: 1.25rem;
}

/* Description longue - texte normal */
.service-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.service-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}

/* Lien bouton - GLOW RÉDUIT */
.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

.services-extra {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e2e8f0;
    padding: 0 1rem;
}


/* ==============================
   Responsive Services
============================== */

@media (max-width: 968px) {
    .services {
        padding: 1.5rem 0;
    }

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

    .service {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .service--reverse {
        direction: ltr;
    }

    .service-media img {
        margin: 0 auto;
    }

    .service-body h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .services-container {
        padding: 0 1rem;
    }

    .service {
        padding: 1.5rem;
    }

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

/* ==============================
   CONTACT
============================= */

.contact {
    padding: 3rem 0 0;
    width: 100%;
    overflow-x: hidden;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.contact-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #cbd5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.8;
}

/* Grille */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-hero {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: none;
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blocs */
.contact-method,
.contact-form,
.contact-info {
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: none;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-method:hover,
.contact-form:hover,
.contact-info:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.contact-method h3,
.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.contact-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

    .contact-steps li {
        counter-increment: step;
        margin-bottom: 1.5rem;
        padding-left: 2.5rem;
        position: relative;
        color: #e2e8f0;
    }

        .contact-steps li::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0.1rem;
            width: 1.6rem;
            height: 1.6rem;
            background-color: #38bdf8;
            color: #020617;
            font-weight: 600;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .contact-steps li strong {
        color: #38bdf8;
        font-weight: 600;
    }

    .contact-steps span {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.95rem;
        color: #cbd5f5;
    }

/* Formulaire */
.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-field label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cbd5f5;
}

.form-field input,
.form-field textarea {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field span {
    font-size: 0.85rem;
    color: #f87171;
    margin-top: 0.4rem;
}

/* Texte légal sous le formulaire */
.form-legal {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: left;
}

.form-legal a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.form-legal a:hover {
    color: #fff;
}

.contact-success {
    text-align: center;
    font-weight: 500;
    color: #38bdf8;
}

/* Encadr� pour email/linkedin */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    word-break: break-word; /* AJOUT: Emp�che les liens longs de d�passer */
}

.contact-item:hover {
    background-color: #1e293b;
    border-color: #38bdf8;
}

.contact-item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.contact-item-content h4 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem 0;
    color: #e5e7eb;
}

.contact-item-content a {
    color: #38bdf8;
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-all;
}

.contact-item-content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Encadr� localisation */
.contact-location {
    margin-top: 1rem;
    padding: 1.25rem;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    text-align: center;
}

.contact-location img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.contact-location-caption {
    font-size: 0.95rem;
    color: #cbd5f5;
    margin: 0;
}

/* Message de succ�s - Centr� avec image */
.contact-form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.contact-success-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-success-content {
    text-align: center;
}

.contact-success-icon {
    width: 300px;
    height: 200px;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
    max-width: 100%; /* AJOUT */
}

/* SPINNER DE CHARGEMENT */
.contact-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #1e293b;
    border-top: 4px solid #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    font-size: 1rem;
    color: #cbd5f5;
    font-weight: 500;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==============================
   Responsive Contact
============================= */
@media (max-width: 968px) {
    .contact {
        padding: 1.5rem 0 2rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

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

    .contact-hero {
        aspect-ratio: auto;
        width: 100%;
        max-height: 250px;
    }

    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-item-content h4 {
        font-size: 1rem;
    }

    .contact-location img {
        max-width: 240px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .contact-header h2 {
        font-size: 1.8rem;
    }

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

.contact-error-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-error-content {
    text-align: center;
}

.contact-error {
    color: #f87171;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* ==============================
   RESPONSIVE 2K+ (�crans larges)
============================== */

@media (min-width: 1800px) {

    .navbar-container {
        max-width: 1200px;
        justify-content: center;
        gap: 3rem;
    }

    .navbar-nav {
        gap: 1.5rem;
    }

    .main-content {
        padding: 4rem 4rem;
    }

    .page {
        max-width: 1400px;
    }

    .hero-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        justify-items: center;
        max-width: 1200px;
    }

    .hero-content {
        text-align: left;
        justify-self: start;
        max-width: 550px;
    }

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

    .hero-avatar img {
        max-width: 350px;
        max-height: 350px;
    }

    .about-content {
        max-width: 1300px;
    }

    .services-container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .services-header {
        max-width: 900px;
    }

    .contact-header {
        max-width: 900px;
    }

    .services-extra {
        max-width: 900px;
    }

    .service {
        gap: 5rem;
    }

    .service-media img {
        max-width: 500px;
    }

    .service-body p {
        max-width: 550px;
    }
}

@media (min-width: 2560px) {

    .navbar-container {
        max-width: 1200px;
        justify-content: center;
        gap: 3rem;
    }

    .navbar-nav {
        gap: 1.5rem;
    }

    .main-content {
        padding: 4rem 6rem;
    }

    .page {
        max-width: 1600px;
    }

    .hero-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        justify-items: center;
        max-width: 1200px;
    }

    .hero-content {
        text-align: left;
        justify-self: start;
        max-width: 550px;
    }

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

    .about-content {
        max-width: 1500px;
    }

    .about-image-float {
        width: 320px;
    }

    .services-container {
        max-width: 1600px;
        padding: 0 4rem;
    }

    .services-header {
        max-width: 1000px;
    }

    .contact-header {
        max-width: 1000px;
    }

    .services-extra {
        max-width: 1000px;
    }

    .service {
        gap: 4rem;
    }

    .service-media img {
        max-width: 500px;
    }

    .service-body p {
        max-width: 550px;
    }

    .hero-avatar img {
        max-width: 350px;
        max-height: 350px;
    }

    /* Am�liorations Contact */
    .contact-grid {
        gap: 3rem;
    }

    .contact-method,
    .contact-info {
        padding: 2.5rem 2rem;
        display: flex;
        flex-direction: column;
    }

    .contact-steps {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        flex: 1;
        justify-content: space-between;
    }

    .contact-method h3 {
        margin-bottom: 2rem;
    }

    /* Am�lioration formulaire */
    .contact-form {
        padding: 2.5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: auto;
    }

    .contact-form form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .form-field {
        margin-bottom: 1.5rem;
    }

    .form-field input,
    .form-field textarea {
        padding: 0.8rem 0.9rem;
        font-size: 1.05rem;
    }

    .form-field textarea {
        min-height: 150px;
        flex: 1;
    }

    .contact-form button.btn-primary {
        align-self: flex-start;
        margin-top: 1.5rem;
        padding: 0.7rem 2rem;
    }
}

@media (min-width: 768px) {
    .hero-process {
        max-width: 550px;
    }
}


