/* Reset et base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background: #0c0c0e;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Mobile: Ã©vite zoom sur inputs et amÃ©liore le scroll */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Variables CSS - ThÃ¨me sombre Ã©purÃ© */
:root {
    --primary-color: #a78bfa;
    --secondary-color: #818cf8;
    --accent-color: #22d3ee;
    --text-color: #fafafa;
    --text-light: #a1a1aa;
    --text-muted: #71717a;
    --bg-color: #0c0c0e;
    --bg-elevated: #161618;
    --bg-card: #1c1c1f;
    --white: #ffffff;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(167, 139, 250, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
    --gradient-light: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    --ease-out-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.5s;
}

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--text-color);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    opacity: 0.9;
    transition: width var(--duration-normal) var(--ease-out-smooth);
}

.section-title:hover::after {
    width: 100px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth),
                background var(--duration-normal) var(--ease-out-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left var(--duration-slow) var(--ease-out-smooth);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width var(--duration-slow) var(--ease-out-smooth),
                height var(--duration-slow) var(--ease-out-smooth);
    z-index: 0;
}

.btn-secondary * {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35);
    border-color: var(--primary-color);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Navigation â€” toujours dark, mÃªme si un script JS tente de changer */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 6, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.10);
    z-index: 1000;
    transition: border-color var(--duration-normal) var(--ease-out-smooth);
}
.navbar.scrolled,
.navbar.nav-scrolled,
.navbar[style*="background"] {
    background: rgba(6, 6, 10, 0.95) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color var(--duration-normal) var(--ease-out-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--duration-normal) var(--ease-out-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                opacity var(--duration-fast) var(--ease-out-smooth);
}

/* Hero Section */
.hero,
.hero-section,
.hero-space {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020205;
    color: var(--text-color);
    padding: 80px 0 60px 0;
    overflow: hidden;
}

/* Moteur 3D (systÃ¨me solaire + starfield) en arriÃ¨re-plan */
#solar-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 1;
    pointer-events: none;
}

#solar-system canvas {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: top;
}

/* â”€â”€ Hero : carte centrÃ©e â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-center {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    pointer-events: none;
}

/* â”€â”€ Carte glassmorphism â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-card {
    pointer-events: auto;
    background: rgba(6, 6, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 22px;
    padding: 1.8rem 2.2rem;
    text-align: left;
    max-width: 480px;
    width: 100%;
    overflow: visible;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.70),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: opacity, transform;
    /* cachÃ©e par dÃ©faut â€” rÃ©vÃ©lÃ©e par JS au scroll */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* â”€â”€ PrÃ©nom dans la carte â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-overflow-name {
    display: block;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    white-space: nowrap;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 30px rgba(167, 139, 250, 0.35);
}

/* â”€â”€ Badge disponibilitÃ© â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 1.1rem;
}

.availability-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* â”€â”€ Titre â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-title {
    margin: 0 0 0.4rem 0;
    line-height: 1;
}

/* PrÃ©nom â€” petit, en caps, discret */
.hero-fname {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

/* Wrapper h1 sÃ©mantique â€” invisible, juste pour la structure */
.hero-name-seo {
    display: contents;
    margin: 0;
    padding: 0;
}

/* Nom de famille â€” grand, gradient cyanâ†’violet */
.hero-lname {
    display: block;
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* â”€â”€ IdentitÃ© (sous-titre) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-identity {
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    margin-top: 0.6rem;
    font-weight: 400;
}

/* â”€â”€ Tags compÃ©tences â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
    margin-bottom: 1.4rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 100px;
    background: rgba(167, 139, 250, 0.07);
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 500;
    transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}

.hero-tag:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
}

/* â”€â”€ Bouton sm spÃ©cifique au hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
    border-radius: 30px;
    white-space: nowrap;
}

/* â”€â”€ Boutons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                background var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth),
                color var(--duration-normal) var(--ease-out-smooth);
}

.hero .btn-secondary::before {
    display: none;
}

.hero .btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35);
}

/* â”€â”€ Scroll indicator â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(167, 139, 250, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* â”€â”€ Gradient ambient du hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(167, 139, 250, 0.10) 0%, transparent 55%);
    pointer-events: none;
}

/* About Section */
.about {
    padding: 60px 0 0 0;
    background: var(--bg-color);
    min-height: auto;
    height: auto;
}

.about-content {
    display: block;
    max-width: 820px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-tryhackme {
    margin-top: 1rem;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.about-tryhackme iframe {
    width: 300px;
    height: 105px;
    border: none;
    border-radius: 8px;
}
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 60px 0;
    background: var(--bg-color);
    position: relative;
    overflow-x: clip; /* ne coupe pas le scroll horizontal sur mobile */
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 40% at 20% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.skills .section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* â”€â”€ Skills Grid (nouvelle version sans barres) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}

/* Dots carousel (visibles uniquement sur mobile via JS) */
.skills-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 1.2rem;
}

.skills-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(167, 139, 250, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
}

.skills-dot.active {
    width: 22px;
    background: #a78bfa;
}

.skill-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.12);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-group:hover {
    border-color: rgba(167, 139, 250, 0.30);
    transform: translateY(-3px);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.85);
}

.skill-group-header i {
    font-size: 0.9rem;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--text-light, #c8cfe0);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: default;
}

.spill:hover {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.35);
    color: #fff;
}

.spill i {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* â”€â”€ Skills : carousel horizontal sur mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .skills-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0 1.2rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .skills-grid::-webkit-scrollbar { display: none; }

    .skill-group {
        width: 82vw;
        min-width: 82vw;
        max-width: 82vw;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .skills-dots {
        display: flex;
    }
}

/* â”€â”€ Swipe hint + flÃ¨ches responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.carousel-swipe-hint {
    display: none; /* cachÃ© sur desktop */
}

@keyframes swipe-finger {
    0%, 100% { transform: translateX(0); }
    40%       { transform: translateX(7px); }
    60%       { transform: translateX(-4px); }
}

@media (max-width: 768px) {
    /* FlÃ¨ches cachÃ©es sur mobile */
    .certifications-carousel-btn,
    .projects-carousel-btn,
    .services-carousel-btn {
        display: none !important;
    }

    /* Hint swipe visible sur mobile */
    .carousel-swipe-hint {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(167, 139, 250, 0.55);
        margin-bottom: 0.8rem;
    }
    .carousel-swipe-hint i {
        animation: swipe-finger 1.6s ease-in-out 0.8s 3;
    }
}

/* Skills Carousel (ancien, conservÃ© pour compatibilitÃ©) */
.skills-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem auto;
}

.skills-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 20px;
}

.skills-carousel-track {
    display: flex;
    transition: transform var(--duration-slow) var(--ease-out-smooth);
    will-change: transform;
}

.skills-carousel-track .skill-category {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

.skills-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth);
    opacity: 0.95;
}

.skills-carousel-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
    border-color: var(--primary-color);
}

.skills-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.skills-carousel-prev {
    left: 10px;
}

.skills-carousel-next {
    right: 10px;
}

.certifications-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth);
}

.certifications-carousel-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
    border-color: var(--primary-color);
}

.certifications-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.certifications-carousel-prev {
    left: 10px;
}

.certifications-carousel-next {
    right: 10px;
}

.certifications-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.certifications-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.certifications-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.certifications-carousel-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.certifications-carousel-indicator:hover {
    background: rgba(102, 126, 234, 0.6);
    transform: scale(1.2);
}


.skills-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.skills-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.skills-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.skills-carousel-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.skills-carousel-indicator:hover {
    background: rgba(102, 126, 234, 0.6);
    transform: scale(1.2);
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-smooth);
}

.skill-category:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.skill-category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-category-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    background: var(--bg-elevated);
    padding: 1.3rem;
    border-radius: 14px;
    box-shadow: none;
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    transform: translateY(-4px) translateX(2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover);
}

.skill-item:hover::before {
    transform: scaleX(1);
}


.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.skill-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 12px;
    box-shadow: none;
    transition: background var(--duration-normal) var(--ease-out-smooth),
                opacity var(--duration-normal) var(--ease-out-smooth);
    position: relative;
}

.skill-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.skill-item:hover .skill-icon {
    transform: rotate(8deg) scale(1.12);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
}

.skill-item:hover .skill-icon::after {
    opacity: 0.1;
}

.skill-item:hover .skill-icon i {
    transform: scale(1.1);
}

.skill-icon i {
    font-size: 1.3rem;
}

/* Couleurs spÃ©cifiques pour chaque technologie */
.skill-icon i.fa-html5 {
    color: #E34F26;
}

.skill-icon i.fa-css3-alt {
    color: #1572B6;
}

.skill-icon i.fa-js-square {
    color: #F7DF1E;
}

.skill-icon i.fa-react {
    color: #61DAFB;
}

.skill-icon i.fa-vuejs {
    color: #4FC08D;
}

.skill-icon i.fa-node-js {
    color: #339933;
}

.skill-icon i.fa-python {
    color: #3776AB;
}

.skill-icon i.fa-php {
    color: #777BB4;
}

.skill-icon i.fa-database {
    color: #4479A1;
}

.skill-icon i.fa-shield-alt {
    color: #FF6B35;
}

.skill-icon i.fa-linux {
    color: #FCC624;
}

.skill-icon i.fa-server {
    color: #333333;
}

.skill-icon i.fa-microchip {
    color: #00979D;
}

.skill-icon i.fa-git-alt {
    color: #F05032;
}

.skill-icon i.fa-docker {
    color: #2496ED;
}

.skill-icon i.fa-globe {
    color: #4285F4;
}

.skill-icon i.fa-mobile-alt {
    color: #667eea;
}

.skill-icon i.fa-palette {
    color: #764ba2;
}

.skill-icon i.fa-android {
    color: #3DDC84;
}

.skill-icon i.fa-bug {
    color: #1679A7;
}

.skill-icon i.fa-user-shield {
    color: #557C94;
}

.skill-icon i.fa-search {
    color: #FF6B35;
}

.skill-icon i.fa-lock {
    color: #FFA500;
}

.skill-icon i.fa-shield-virus {
    color: #FF5722;
}

.skill-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
}

/* Barres de progression et labels de niveau */
.skill-level-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
}

.skill-level-bar {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    align-items: center;
}

.skill-block {
    flex: 1;
    height: 8px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 6px;
}

.skill-block.filled {
    background: var(--gradient);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transform: scaleY(1.1);
}

.skill-item:hover .skill-block.filled {
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
    transform: scaleY(1.15);
}

.skill-level-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.25rem 0.6rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.skill-item:hover .skill-level-label {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.skill-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skill-item.animate .skill-progress-bar {
    width: var(--progress);
}

/* Projects Section */
.projects {
    padding: 60px 0;
    background: var(--bg-color);
}

/* â”€â”€ Carousel gÃ©nÃ©rique (Projets & Certifications) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.new-carousel-wrapper {
    position: relative;
    margin-top: 2.5rem;
    padding: 0 2.8rem;
}

.new-carousel-viewport {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.new-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.new-carousel-track {
    display: flex;
    gap: 1.4rem;
    align-items: stretch;
    /* Pas de transition ni transform — géré par scrollLeft natif */
}

/* â”€â”€ Boutons FlÃ¨ches â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.new-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.12);
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    color: #a78bfa;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.new-carousel-btn:hover {
    background: rgba(167, 139, 250, 0.28);
    border-color: #a78bfa;
    transform: translateY(-50%) scale(1.08);
}

.new-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.new-carousel-prev { left: 0; }
.new-carousel-next { right: 0; }

/* â”€â”€ Dots â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.new-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.new-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.25);
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

.new-carousel-dots .dot.active {
    background: #a78bfa;
    transform: scale(1.3);
}

/* â”€â”€ Grille Projets â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.project-card-new {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    flex: 0 0 calc(33.333% - 0.94rem);
    min-width: 0;
}

.project-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

.pcn-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 80px;
}

.pcn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.pcn-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    opacity: 0.9;
}

.pcn-body {
    padding: 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pcn-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pcn-body p {
    font-size: 0.88rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.pcn-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.pcn-tech span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.7em;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    color: #d4d4d8;
    border: 1px solid rgba(255,255,255,0.1);
}

.pcn-links {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pcn-links a,
.pcn-links button {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.4em 0.9em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.pcn-links a:hover,
.pcn-links button:hover {
    background: var(--accent);
    color: #fff;
}

/* â”€â”€ Grille Certifications â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.certif-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    flex: 0 0 calc(33.333% - 0.94rem);
    min-width: 0;
}

.certif-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.certif-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certif-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certif-logo--cisco { background: #1BA0D7; }
.certif-logo--thm { background: #212c42; padding: 4px; }
.certif-logo--hackfix { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); }
.certif-logo--ebios { background: #fff; }
.certif-logo--cnil { background: #fff; }

.certif-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.certif-body h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.certif-org {
    font-size: 0.78rem;
    font-weight: 600;
    color: #a78bfa;
}

.certif-date {
    font-size: 0.72rem;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.certif-btn {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 8px;
    padding: 0.4em 0.8em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.certif-btn:hover {
    background: #a78bfa;
    color: #fff;
    border-color: #a78bfa;
}

/* Modal vidÃ©o */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.video-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.8;
}

.video-modal-close:hover { opacity: 1; }

/* ── Modale détails projet ───────────────────────────────────────────────── */
.project-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.project-detail-overlay.active { display: flex; }

.project-detail-modal {
    background: #12122a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(167,139,250,0.3) transparent;
}

.project-detail-close {
    position: sticky;
    top: 1rem;
    float: right;
    margin: 1rem 1rem 0 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #a1a1aa;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.project-detail-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.pdm-header {
    padding: 1.8rem 2rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pdm-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.pdm-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.pdm-header > div > p {
    font-size: 0.88rem;
    color: #a1a1aa;
    margin: 0 0 0.7rem;
}

.pdm-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.35);
    border-radius: 8px;
    padding: 0.3em 0.8em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pdm-live-btn:hover { background: #4ade80; color: #0a0a1a; }

.pdm-body { padding: 1.5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.6rem; }

.pdm-section h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a78bfa;
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.pdm-section > p {
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.7;
    margin: 0;
}

.pdm-features { display: flex; flex-direction: column; gap: 0.6rem; }

.pdm-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.87rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.pdm-feature i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: #4ade80;
    margin-top: 0.1em;
    font-size: 0.85rem;
}

.pdm-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pdm-tech-grid span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #d4d4d8;
}

.pdm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    background: rgba(74,222,128,0.05);
    border: 1px solid rgba(74,222,128,0.12);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.pdm-stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.pdm-stat-label {
    display: block;
    font-size: 0.72rem;
    color: #71717a;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .pdm-header { flex-direction: column; padding: 1.2rem 1.2rem 1rem; }
    .pdm-body { padding: 1rem 1.2rem 1.5rem; }
    .pdm-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .project-card-new { flex: 0 0 calc(50% - 0.7rem); }
    .certif-card { flex: 0 0 calc(50% - 0.7rem); }
    .new-carousel-wrapper { padding: 0 2.2rem; }
}

@media (max-width: 600px) {
    .project-card-new { flex: 0 0 100%; }
    .certif-card { flex: 0 0 100%; }
    .new-carousel-wrapper { padding: 0; }
    .new-carousel-btn { display: none; }
    .new-carousel-swipe-hint { display: flex; }
}

.new-carousel-swipe-hint {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    font-size: 0.78rem;
    color: rgba(167, 139, 250, 0.6);
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
    animation: swipe-pulse 2.2s ease-in-out infinite;
}

.new-carousel-swipe-hint i {
    font-size: 0.9rem;
}

@keyframes swipe-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.certification-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: var(--border-hover);
}

.certification-logo {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
}

.cisco-logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cisco-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tryhackme-logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tryhackme-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hackfix-logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hackfix-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ebios-logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ebios-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cnil-logo {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cnil-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.certification-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certification-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.certification-issuer {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.certification-details {
    margin-top: auto;
    margin-bottom: 1rem;
}

.certification-date {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.btn-certificate {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: var(--white);
}

.btn-certificate i {
    font-size: 1rem;
}

.certification-date i {
    color: var(--primary-color);
}

/* TryHackMe Section */
.tryhackme {
    padding: 100px 0;
    background: var(--white);
}

.tryhackme-container {
    max-width: 900px;
    margin: 0 auto;
}

.tryhackme-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.tryhackme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tryhackme-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tryhackme-header i {
    font-size: 3rem;
    opacity: 0.9;
}

.tryhackme-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.tryhackme-iframe-wrapper {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    position: relative;
    overflow: visible;
}

.tryhackme-iframe {
    width: 100%;
    max-width: 300px;
    height: 250px;
    min-height: 250px;
    border: none;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.tryhackme-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: var(--white);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.tryhackme-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive TryHackMe */
@media (max-width: 768px) {
    .tryhackme {
        padding: 60px 0;
    }

    .tryhackme-header {
        padding: 1.5rem;
    }

    .tryhackme-header i {
        font-size: 2.5rem;
    }

    .tryhackme-header h3 {
        font-size: 1.5rem;
    }

    .tryhackme-iframe-wrapper {
        padding: 0.5rem;
        min-height: auto;
    }

    .tryhackme-iframe {
        height: 250px;
        min-height: 250px;
        max-width: 100%;
    }

    .tryhackme-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .tryhackme-header {
        padding: 1.25rem;
    }

    .tryhackme-header i {
        font-size: 2rem;
    }

    .tryhackme-header h3 {
        font-size: 1.3rem;
    }

    .tryhackme-iframe-wrapper {
        padding: 0.5rem;
        min-height: auto;
    }

    .tryhackme-iframe {
        height: 220px;
        min-height: 220px;
        max-width: 100%;
    }
}

/* Responsive Certifications */
@media (max-width: 768px) {
    .certifications-carousel-wrapper {
        padding: 0 3rem;
    }

    .certifications-grid {
        padding: 0 0.5rem;
    }

    .certifications-carousel-wrapper {
        padding: 0 3rem;
    }

    .certifications-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .certifications-carousel-prev {
        left: 5px;
    }

    .certifications-carousel-next {
        right: 5px;
    }

    .certification-card {
        margin: 0 10px;
        pointer-events: none;
    }

    .certification-card a,
    .certification-card button {
        pointer-events: auto;
    }

    .certifications-carousel-track {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .certification-logo {
        padding: 1.5rem;
    }

    .cisco-logo {
        width: 100px;
        height: 100px;
    }

    .certification-content {
        padding: 1.5rem;
    }

    .certification-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .certifications-carousel-wrapper {
        padding: 0 1rem;
    }

    .certifications-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .certifications-carousel-prev {
        left: 5px;
    }

    .certifications-carousel-next {
        right: 5px;
    }

    .certification-card {
        margin: 0;
        padding: 0 0.5rem;
    }

    .cisco-logo {
        width: 80px;
        height: 80px;
    }

    .certification-content h3 {
        font-size: 1.2rem;
    }
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform var(--duration-normal) var(--ease-out-smooth),
                color var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35);
    border-color: var(--primary-color);
}

.social-link:hover i {
    transform: rotate(360deg);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: box-shadow var(--duration-normal) var(--ease-out-smooth),
                border-color var(--duration-normal) var(--ease-out-smooth);
}

.contact-form:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color var(--duration-normal) var(--ease-out-smooth),
                box-shadow var(--duration-normal) var(--ease-out-smooth),
                transform var(--duration-normal) var(--ease-out-smooth);
    font-family: 'Poppins', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-elevated);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.footer p {
    opacity: 0.8;
}

/* Services Section */
.services {
    padding: 60px 0;
    background: var(--bg-elevated);
}

/* Services Carousel - DESKTOP : Grille / MOBILE : Carousel */
.services-carousel-wrapper {
    position: relative;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* DESKTOP : Mode grille classique */
.services-carousel-container {
    position: relative;
    width: 100%;
}

.services-carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* DESKTOP : Cacher les contrÃ´les du carousel */
.services-carousel-btn {
    display: none;
}

.services-carousel-indicators {
    display: none;
}

.service-card {
    --primary: #a78bfa;
    --primary-hover: #8b5cf6;
    --secondary: #6366f1;
    --secondary-hover: #4f46e5;
    --accent: rgba(167, 139, 250, 0.15);
    --text: #e4e4e7;
    --bg: #16162a;
    --shadow-color: rgba(167, 139, 250, 0.3);
    --pattern-color: rgba(167, 139, 250, 0.05);

    position: relative;
    width: 100%;
    max-width: 20em;
    background: var(--bg);
    border: 0.15em solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    transform-origin: center;
}


/* Pack Essentiel - Vert */
.service-card.pack-essentiel {
    --primary: #34d399;
    --primary-hover: #10b981;
    --secondary: #059669;
    --secondary-hover: #047857;
    --accent: rgba(52, 211, 153, 0.12);
    --shadow-color: rgba(52, 211, 153, 0.3);
    --pattern-color: rgba(52, 211, 153, 0.05);
}

/* Pack Standard - Violet */
.service-card.pack-standard {
    --primary: #a78bfa;
    --primary-hover: #8b5cf6;
    --secondary: #6366f1;
    --secondary-hover: #4f46e5;
    --accent: rgba(167, 139, 250, 0.12);
    --shadow-color: rgba(167, 139, 250, 0.3);
    --pattern-color: rgba(167, 139, 250, 0.05);
}

/* Pack Premium - Or/Jaune */
.service-card.pack-premium {
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --secondary: #b45309;
    --secondary-hover: #92400e;
    --accent: rgba(245, 158, 11, 0.12);
    --shadow-color: rgba(245, 158, 11, 0.3);
    --pattern-color: rgba(245, 158, 11, 0.05);
}

.service-card:hover {
    transform: translate(0, -6px) scale(1.02);
    box-shadow: 0 20px 48px var(--shadow-color);
    border-color: var(--primary);
}

.service-card:hover .card-pattern-grid,
.service-card:hover .card-overlay-dots {
    opacity: 1;
}

.service-card:active {
    transform: translate(0, -2px) scale(0.99);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.service-card::before {
    content: "";
    position: absolute;
    top: -1em;
    right: -1em;
    width: 4em;
    height: 4em;
    background: var(--accent);
    transform: rotate(45deg);
    z-index: 1;
}

.service-card::after {
    content: none;
}

.card-pattern-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            to right,
            rgba(102, 126, 234, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(to bottom, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 0.5em 0.5em;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card-overlay-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--pattern-color) 1px, transparent 1px);
    background-size: 1em 1em;
    background-position: -0.5em -0.5em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card-title-area {
    position: relative;
    padding: 1.4em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg);
    font-weight: 700;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.35em solid var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    overflow: hidden;
}

.service-card-title-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 0.5em,
        transparent 0.5em,
        transparent 1em
    );
    pointer-events: none;
    opacity: 0.3;
}

.service-card-tag {
    background: var(--bg);
    color: var(--text);
    font-size: 0.6em;
    font-weight: 800;
    padding: 0.4em 0.8em;
    border: 0.15em solid var(--text);
    border-radius: 15px;
    box-shadow: 0.2em 0.2em 0 rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(3deg);
    transition: all 0.3s ease;
}

.service-card:hover .service-card-tag {
    transform: rotate(-2deg) scale(1.1);
    box-shadow: 0.25em 0.25em 0 rgba(0, 0, 0, 0.3);
}

.service-card-body {
    position: relative;
    padding: 1.5em;
    z-index: 2;
}

.service-card-description {
    margin-bottom: 1.5em;
    color: var(--text);
    font-size: 0.95em;
    line-height: 1.5;
    font-weight: 500;
}

.service-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin-bottom: 1.5em;
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    transition: transform 0.2s ease;
}

.service-feature-item:hover {
    transform: translateX(0.3em);
}

.service-feature-icon {
    width: 1.4em;
    height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 0.12em solid var(--text);
    border-radius: 8px;
    box-shadow: 0.2em 0.2em 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.service-feature-item:hover .service-feature-icon {
    transform: rotate(-5deg);
}

.service-feature-icon i {
    font-size: 0.8em;
    color: var(--bg);
}

.service-feature-text {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text);
}

.service-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5em;
    padding-top: 1.2em;
    border-top: 0.15em dashed rgba(102, 126, 234, 0.2);
    position: relative;
}

.service-card-actions::before {
    content: "âœ‚";
    position: absolute;
    top: -0.8em;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    background: var(--bg);
    padding: 0 0.5em;
    font-size: 1em;
    color: var(--primary);
}

.service-price {
    position: relative;
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text);
}

.service-price::before {
    content: "";
    position: absolute;
    bottom: 0.15em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--accent);
    z-index: -1;
    opacity: 0.5;
}

.service-price-currency {
    font-size: 0.6em;
    font-weight: 700;
    vertical-align: top;
    margin-right: 0.1em;
}

.service-price-period {
    display: block;
    font-size: 0.4em;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.2em;
}

.service-card-button {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg);
    font-size: 0.9em;
    font-weight: 700;
    padding: 0.7em 1.2em;
    border: 0.2em solid var(--text);
    border-radius: 25px;
    box-shadow: 0.3em 0.3em 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}

.service-card-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.service-card-button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    transform: translate(-0.1em, -0.1em);
    box-shadow: 0.4em 0.4em 0 rgba(0, 0, 0, 0.2);
}

.service-card-button:hover::before {
    left: 100%;
}

.service-card-button:active {
    transform: translate(0.1em, 0.1em);
    box-shadow: 0.15em 0.15em 0 rgba(0, 0, 0, 0.2);
}

.service-accent-shape {
    position: absolute;
    width: 2.5em;
    height: 2.5em;
    background: var(--primary);
    border: 0.15em solid var(--text);
    border-radius: 8px;
    transform: rotate(45deg);
    bottom: -1.2em;
    right: 2em;
    z-index: 0;
    transition: transform 0.3s ease;
}

.service-card:hover .service-accent-shape {
    transform: rotate(55deg) scale(1.1);
}

.service-stamp {
    position: absolute;
    bottom: 1.5em;
    left: 1.5em;
    width: 4em;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.15em solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    transform: rotate(-15deg);
    opacity: 0.3;
    z-index: 1;
}

.service-stamp-text {
    font-size: 0.6em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.service-corner-slice {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1.5em;
    height: 1.5em;
    background: var(--bg);
    border-right: 0.25em solid var(--text);
    border-top: 0.25em solid var(--text);
    border-radius: 0 15px 0 0;
    z-index: 1;
}

/* Pack recommandÃ© */
.service-card.recommended {
    transform: scale(1.05);
    z-index: 10;
}

.service-card.recommended::before {
    width: 5em;
    height: 5em;
}

.recommended-badge {
    position: absolute;
    top: -0.5em;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 0.5em 1.5em;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Responsive pour les services */
@media (max-width: 1024px) {
    .services-carousel-track {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card.recommended {
        transform: scale(1.02);
    }
}

/* MOBILE : Activer le carousel pour les services */
@media (max-width: 768px) {
    .services-carousel-wrapper::after {
        content: 'â† Swipe â†’';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.85rem;
        color: rgba(102, 126, 234, 0.7);
        animation: swipe-hint 2s ease-in-out infinite;
        pointer-events: none;
    }
    
    @keyframes swipe-hint {
        0%, 100% {
            opacity: 0.5;
            transform: translateX(-50%) scale(1);
        }
        50% {
            opacity: 1;
            transform: translateX(-50%) scale(1.05);
        }
    }
    
    .services-carousel-container {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .services-carousel-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        transition: transform 0.4s ease-out;
        will-change: transform;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    .services-carousel-track .service-card {
        min-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        flex-shrink: 0;
        margin: 0 1rem;
        box-sizing: border-box;
        max-width: none;
    }
    
    /* Afficher les boutons sur mobile */
    .services-carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .services-carousel-btn:hover {
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }
    
    .services-carousel-btn:hover i {
        color: white;
    }
    
    .services-carousel-btn i {
        color: var(--primary-color);
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }
    
    .services-carousel-prev {
        left: 10px;
    }
    
    .services-carousel-next {
        right: 10px;
    }
    
    /* Afficher les indicateurs sur mobile */
    .services-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 2rem;
    }
    
    .services-carousel-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(102, 126, 234, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .services-carousel-indicator.active {
        background: var(--primary-color);
        transform: scale(1.3);
    }
    
    /* DÃ©sactiver pointer-events sur les cartes pour faciliter le swipe */
    .service-card {
        pointer-events: none;
        max-width: 100%;
    }
    
    .service-card a,
    .service-card button {
        pointer-events: auto;
    }
    
    .service-card.recommended {
        transform: scale(1);
    }
}

/* Responsive Design - Tablettes et Ã©crans moyens */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-card {
        padding: 2.5rem 2.5rem 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        gap: 2rem;
    }

    .contact-content {
        gap: 2.5rem;
    }

    .hero-card {
        max-width: 560px;
        padding: 2.5rem 2rem;
        width: calc(100% - 40px);
        height: auto;
    }
}

/* Responsive Design - Tablettes */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-subtle);
        width: 100%;
        text-align: center;
        transition: transform var(--duration-normal) var(--ease-out-smooth);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-space {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 70px 0 40px;
    }

    .hero-center {
        justify-content: center;
        padding: 0 16px;
    }

    .hero-card {
        padding: 2rem 1.5rem 1.8rem;
        border-radius: 20px;
        text-align: center;
        max-width: calc(100vw - 32px);
    }

    .hero-overflow-name {
        font-size: clamp(1.8rem, 9vw, 3rem);
        white-space: normal;
        word-break: break-word;
    }

    .hero-tags,
    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
        max-width: 260px;
        padding: 12px 20px;
        text-align: center;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-tryhackme iframe {
        width: 100%;
        max-width: 300px;
        height: 105px;
    }

    .about-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
    }

    .stat-item {
        min-width: 0;
        padding: 1rem 0.5rem;
    }

    .stat-item h3 {
        font-size: 1.75rem;
        margin-bottom: 0.35rem;
    }

    .stat-item p {
        font-size: 0.8rem;
        line-height: 1.35;
        margin: 0;
    }

    .skills-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .skills-carousel-prev,
    .certifications-carousel-prev {
        left: 5px;
    }

    .skills-carousel-next,
    .certifications-carousel-next,
    .projects-carousel-next {
        right: 5px;
    }

    .skills-carousel-prev,
    .certifications-carousel-prev,
    .projects-carousel-prev {
        left: 5px;
    }

    .projects {
        padding: 50px 0;
    }

    .about {
        padding: 50px 0 0 0;
    }

    .skills {
        padding: 0 0 50px 0;
    }

    .certifications {
        padding: 50px 0;
    }

    .contact {
        padding: 50px 0;
    }

    .services {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .projects-carousel-wrapper {
        padding: 0 2.5rem;
        margin: 1.5rem auto;
    }

    .projects-carousel-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .projects-carousel-track .project-card {
        padding: 0 0.75rem;
    }
    
    .skill-category {
        padding: 1.25rem;
    }
    
    .skill-category-header h3 {
        font-size: 1.2rem;
    }
    
    .skill-item {
        padding: 0.9rem;
    }
    
    .skill-icon {
        width: 38px;
        height: 38px;
    }
    
    .skill-icon i {
        font-size: 1.2rem;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .skill-level-container {
        gap: 0.5rem;
        margin-top: 0.4rem;
    }
    
    .skill-level-bar {
        gap: 0.2rem;
    }
    
    .skill-block {
        height: 7px;
        min-width: 5px;
    }
    
    .skill-level-label {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }


    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Responsive Design - Petits mobiles */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero-space {
        padding: 65px 0 30px;
    }

    .hero-card {
        padding: 1.6rem 1.2rem;
        border-radius: 18px;
        max-width: calc(100vw - 24px);
    }

    .hero-overflow-name {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
    }

    .hero-lname {
        font-size: 2.8rem;
    }

    .content-wrapper {
        padding: 0 14px;
        gap: 1.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        max-width: 260px;
    }

    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .about {
        padding: 40px 0 0 0;
    }

    .skills {
        padding: 0 0 40px 0;
    }

    .projects {
        padding: 40px 0;
    }

    .certifications {
        padding: 40px 0;
    }

    .contact {
        padding: 40px 0;
    }

    .services {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 1.25rem;
        font-size: 1.8rem;
    }

    .about-content {
        gap: 1.5rem;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .skills-carousel-wrapper {
        margin: 1.5rem auto;
        padding: 0 3.5rem;
    }

    .skills-carousel-container {
        margin: 0;
        padding: 0;
    }

    .skills-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .skills-carousel-prev {
        left: 0.5rem;
    }

    .skills-carousel-next {
        right: 0.5rem;
    }

    .skills-carousel-indicators {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }

    .skills-carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .skills-carousel-indicator.active {
        width: 25px;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .projects-carousel-wrapper {
        padding: 0 0.5rem;
        margin: 1.5rem auto;
    }
    
    .projects-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .projects-carousel-prev {
        left: 0.25rem;
    }
    
    .projects-carousel-next {
        right: 0.25rem;
    }
    
    .projects-carousel-container {
        touch-action: pan-x;
    }
    
    .projects-carousel-track .project-card {
        padding: 0 0.1rem;
    }
    
}

@media (max-width: 480px) {
    .skills-carousel-wrapper {
        padding: 0 3rem;
    }

    .skills-carousel-container {
        margin: 0;
        padding: 0;
    }

    .skills-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .skills-carousel-prev {
        left: 0.5rem;
    }

    .skills-carousel-next {
        right: 0.5rem;
    }

    .skills-carousel-track .skill-category {
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .skill-category-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .skill-category-header i {
        font-size: 1.3rem;
    }
    
    .skill-category-header h3 {
        font-size: 1.1rem;
    }
    
    .skill-items {
        gap: 0.75rem;
    }
    
    .skill-item {
        padding: 0.75rem;
    }
    
    .skill-header {
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .skill-icon {
        width: 35px;
        height: 35px;
    }
    
    .skill-icon i {
        font-size: 1.1rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
    
    .skill-level-container {
        gap: 0.4rem;
        margin-top: 0.35rem;
        flex-wrap: wrap;
    }
    
    .skill-level-bar {
        gap: 0.15rem;
        width: 100%;
    }
    
    .skill-block {
        height: 6px;
        min-width: 4px;
    }
    
    .skill-level-label {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    .project-links {
        flex-direction: column;
    }
}

/* Responsive pour trÃ¨s petits Ã©crans */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 10px;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .about-content {
        gap: 1rem;
    }

    .contact-content {
        gap: 1rem;
    }

    .projects {
        padding: 60px 0;
    }

    .projects-carousel-wrapper {
        padding: 0 0.5rem;
        margin: 1.5rem auto;
    }

    .projects-carousel-container {
        border-radius: 15px;
    }

    .projects-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .projects-carousel-prev {
        left: 0.25rem;
    }

    .projects-carousel-next {
        right: 0.25rem;
    }
    
    .projects-carousel-container {
        touch-action: pan-x;
    }

    .project-card {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .projects-carousel-track .project-card {
        padding: 0 0.1rem;
    }

    .project-content {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-image i {
        font-size: 3rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-links .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .project-tech {
        margin-bottom: 1rem;
    }
    
    .project-tech span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .projects-carousel-indicators {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }

    .projects-carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .projects-carousel-indicator.active {
        width: 25px;
    }
    
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Smooth scrolling pour les ancres */
section {
    scroll-margin-top: 80px;
    min-height: auto;
    height: auto;
}

/* Fix pour Ã©viter les problÃ¨mes de scroll avec le parallax */
.hero {
    position: relative;
    will-change: transform;
}

.about {
    position: relative;
    z-index: 1;
    min-height: auto;
    height: auto;
} 

/* Modale de commande */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a1a1aa;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #a1a1aa;
    font-size: 1rem;
}

.modal-pack-info {
    background: rgba(167, 139, 250, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.modal-pack-name {
    font-weight: 600;
    color: #a78bfa;
    font-size: 1.1rem;
}

.modal-pack-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
}

.form-group-modal label {
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group-modal input,
.form-group-modal textarea {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(167, 139, 250, 0.25);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.form-group-modal input::placeholder,
.form-group-modal textarea::placeholder {
    color: #71717a;
}

.form-group-modal input:focus,
.form-group-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.form-group-modal textarea {
    resize: vertical;
    min-height: 100px;
}

/* Styles pour les onglets du formulaire */
.form-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(167, 139, 250, 0.2);
}

.form-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-tab:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.form-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.form-tab i {
    font-size: 1rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-submit-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Options de paiement */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.stripe-btn {
    background: linear-gradient(135deg, #635BFF 0%, #0A2540 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stripe-btn:hover {
    background: linear-gradient(135deg, #7B73FF 0%, #1A3550 100%);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
}

.quote-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quote-btn:hover {
    background: #6a408f;
    border-color: #6a408f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.modal-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.modal-success.active {
    display: block;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #00c851;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.success-message {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .form-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .form-tab {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .form-tab i {
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
} 

/* Pages Services Styles */
.services-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.services-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Info Section */
.services-info {
    padding: 80px 0;
    background: var(--bg-color);
}

.services-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Services CTA */
.services-cta {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.services-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation active state */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .services-hero-title {
        font-size: 2.2rem;
    }

    .services-hero-subtitle {
        font-size: 1rem;
    }

    .services-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Pages Contact Styles */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-main {
    padding: 80px 0;
    background: white;
}

.response-time {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.response-time h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.response-time p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-cta {
    padding: 80px 0;
    background: var(--bg-color);
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Labels */
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.2rem;
    }

    .contact-hero-subtitle {
        font-size: 1rem;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }
}

/* Pages Accueil Styles */
.services-preview {
    padding: 80px 0;
    background: var(--bg-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.preview-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.preview-card:hover {
    transform: translateY(-5px);
}

.preview-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.preview-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.preview-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.preview-icon.green {
    background: #00c851;
}

.preview-icon.purple {
    background: var(--gradient);
}

.preview-icon.gold {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
}

.preview-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.preview-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.preview-card p:last-child {
    color: var(--text-light);
    line-height: 1.6;
}

.skills-preview {
    padding: 80px 0;
    background: white;
}

.skills-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-icon {
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: translateY(-5px);
}

.skill-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-icon span {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.skills-cta, .services-cta {
    text-align: center;
}

.main-cta {
    padding: 80px 0;
    background: var(--bg-color);
    text-align: center;
}

.main-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.main-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .services-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-card.featured {
        transform: scale(1);
    }
    
    .skills-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-cta h2 {
        font-size: 2rem;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
}

.chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chatbot-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chatbot-status {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f9fa;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: var(--gradient);
    color: var(--white);
    border-radius: 18px 18px 4px 18px;
}

.bot-message .message-content {
    background: var(--white);
    color: #1a1a2e;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient);
    color: var(--white);
    font-size: 0.9rem;
}

.user-message .message-avatar {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message-content p {
    margin: 0;
    color: inherit;
}


.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input-container {
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-action-btn {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.chatbot-action-btn.recording {
    background: #ff6b35;
    border-color: #ff6b35;
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.chatbot-input {
    flex: 1;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chatbot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.chatbot-badge.hidden {
    display: none;
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
        left: auto;
    }

    .chatbot-window {
        position: fixed;
        bottom: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px) scale(0.9);
        width: calc(100vw - 30px);
        max-width: 100%;
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
    }

    .chatbot-window.active {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
        left: auto;
    }

    .message-content {
        max-width: 85%;
    }

    .chatbot-header {
        padding: 1rem 1.25rem;
    }

    .chatbot-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .chatbot-info h3 {
        font-size: 1rem;
    }

    .chatbot-messages {
        padding: 1rem;
    }

    .chatbot-input-container {
        padding: 0.75rem 1rem;
    }

    .chatbot-input-wrapper {
        gap: 0.4rem;
        flex-wrap: nowrap;
    }

    .chatbot-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .chatbot-input {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        min-width: 0;
    }

    .chatbot-send {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 10px;
        right: 10px;
        left: auto;
    }

    .chatbot-window {
        bottom: 70px;
        left: 50%;
        width: calc(100vw - 20px);
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
        border-radius: 15px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 10px;
        right: 10px;
    }

    .message-content {
        max-width: 90%;
        font-size: 0.9rem;
        padding: 0.6rem 0.85rem;
    }

    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .chatbot-header {
        padding: 0.85rem 1rem;
        border-radius: 15px 15px 0 0;
    }

    .chatbot-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .chatbot-info h3 {
        font-size: 0.95rem;
    }

    .chatbot-status {
        font-size: 0.7rem;
    }

    .chatbot-input-wrapper {
        gap: 0.35rem;
        flex-wrap: nowrap;
    }

    .chatbot-action-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        flex-shrink: 0;
        min-width: 38px;
    }

    .chatbot-input {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
        min-width: 0;
        flex: 1;
    }

    .chatbot-send {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        flex-shrink: 0;
        min-width: 38px;
    }
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chatbot-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chatbot-status {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f9fa;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: var(--gradient);
    color: var(--white);
    border-radius: 18px 18px 4px 18px;
}

.bot-message .message-content {
    background: var(--white);
    color: #1a1a2e;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient);
    color: var(--white);
    font-size: 0.9rem;
}

.user-message .message-avatar {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-size: 0.9rem;
}

.message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message-content p {
    margin: 0;
    color: inherit;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input-container {
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chatbot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.chatbot-badge.hidden {
    display: none;
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-height: 600px;
        bottom: 90px;
        right: 20px;
        left: 20px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 90px);
        bottom: 80px;
        right: 15px;
        left: 15px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE GLOBAL — Mobile first (≤ 768px / ≤ 480px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Sections générales ── */
    .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .section-subtitle { font-size: 0.85rem; padding: 0 0.5rem; }

    /* ── Hero ── */
    .hero-card {
        padding: 1.4rem 1.2rem 1.6rem;
        max-width: calc(100vw - 2rem);
    }
    .hero-overflow-name { font-size: clamp(1.8rem, 12vw, 3.5rem) !important; }
    .hero-lname { font-size: clamp(1.3rem, 7vw, 2rem); }
    .hero-identity { font-size: 0.78rem; }
    .hero-tags { gap: 0.3rem; }
    .hero-tag { font-size: 0.72rem; padding: 0.25em 0.6em; }
    .hero-buttons { flex-wrap: wrap; gap: 0.5rem; }
    .hero-buttons .btn { font-size: 0.8rem; padding: 0.5em 1em; }

    /* ── About ── */
    .about-content { flex-direction: column; }
    .about-text p { font-size: 0.9rem; }
    .about-info { flex-direction: column; gap: 0.6rem; }
    .about-tryhackme iframe { width: 100% !important; max-width: 300px; }

    /* ── Skills ── */
    .skills-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .skill-group {
        flex: 0 0 80vw;
        scroll-snap-align: start;
    }
    .skill-group-header span { font-size: 0.85rem; }

    /* ── Certifications carousel ── */
    .certif-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }
    .certif-logo { width: 44px; height: 44px; }
    .certif-body h3 { white-space: normal; font-size: 0.85rem; }
    .certif-btn { align-self: flex-end; }

    /* ── Projects carousel ── */
    .pcn-body h3 { font-size: 1rem; }
    .pcn-body p { font-size: 0.82rem; }
    .pcn-tech span { font-size: 0.7rem; }

    /* ── Services ── */
    .service-card { padding: 1.2rem; }
    .service-card-title-area { font-size: 1.1rem; }
    .service-card-description { font-size: 0.85rem; }
    .service-feature-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .service-feature-text { font-size: 0.75rem; }
    .service-price { font-size: 1.8rem; }

    /* ── Contact ── */
    .contact-content { flex-direction: column; gap: 2rem; }
    .contact-info h3 { font-size: 1.2rem; }
    .contact-details { gap: 0.8rem; }

    /* ── Modal commander ── */
    .modal-content { padding: 1.2rem; border-radius: 16px; }
    .modal-title { font-size: 1.2rem; }
    .modal-subtitle { font-size: 0.8rem; }
    .form-tabs { flex-direction: column; gap: 0.3rem; }
    .form-tab { font-size: 0.82rem; padding: 0.5em 0.8em; }
    .payment-options { flex-direction: column; gap: 0.6rem; }
    .modal-submit-btn { font-size: 0.85rem; padding: 0.8em 1em; }

    /* ── Modale détails projet (UMMANITARY) ── */
    .project-detail-modal { border-radius: 16px; max-height: 95vh; }
    .pdm-header { padding: 1rem; gap: 0.8rem; }
    .pdm-header h2 { font-size: 1.2rem; }
    .pdm-body { padding: 1rem; gap: 1.2rem; }
    .pdm-feature { font-size: 0.82rem; }
    .pdm-stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 0.9rem; }
    .pdm-stat-val { font-size: 1.3rem; }

    /* ── Footer ── */
    .footer { padding: 1.5rem 0; }
    .footer p { font-size: 0.8rem; }
}

@media (max-width: 480px) {

    /* ── Hero encore plus petit ── */
    .hero-card { padding: 1.1rem 1rem 1.3rem; }
    .hero-availability { font-size: 0.72rem; }
    .hero-buttons { justify-content: center; }

    /* ── Carousels ── */
    .new-carousel-dots .dot { width: 6px; height: 6px; }
    .pcn-header { padding: 1rem; min-height: 60px; }
    .pcn-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .pcn-badge { font-size: 0.65rem; }
    .pcn-body { padding: 0.9rem 1rem; }

    /* ── Certif card mini ── */
    .certif-card { padding: 0.8rem; }
    .certif-logo { width: 38px; height: 38px; border-radius: 8px; }
    .certif-body h3 { font-size: 0.8rem; }
    .certif-org, .certif-date { font-size: 0.7rem; }
    .certif-btn { font-size: 0.7rem; padding: 0.3em 0.6em; }

    /* ── Skills pills ── */
    .spill { font-size: 0.75rem; padding: 0.3em 0.7em; }

    /* ── Section titles ── */
    .section-title { font-size: 1.3rem; }

    /* ── Modale détails ── */
    .pdm-stats { grid-template-columns: repeat(2, 1fr); }
    .pdm-stat-val { font-size: 1.1rem; }
    .pdm-stat-label { font-size: 0.65rem; }

    /* ── Services ── */
    .service-feature-grid { grid-template-columns: 1fr; }
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.2rem 0 0.6rem;
}
.chatbot-suggestion-btn {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.8em;
    border-radius: 20px;
    border: 1px solid rgba(167,139,250,0.3);
    background: rgba(167,139,250,0.07);
    color: #c4b5fd;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.chatbot-suggestion-btn:hover {
    background: rgba(167,139,250,0.2);
    border-color: #a78bfa;
    color: #fff;
}
