﻿/* ═══════════════════════════════════════════════
   HOME.CSS v4 — Mathias Alvarez Canela Portfolio
   Sans Bootstrap · CSS autonome · 2025
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    /* Couleurs */
    --bg: #0a0f1e;
    --bg-2: #0f1730;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.09);
    --border-h: rgba(255, 255, 255, 0.22);

    --text: #f0f4ff;
    --text-2: rgba(255, 255, 255, 0.62);
    --text-3: rgba(255, 255, 255, 0.35);

    --accent: #4f8ef7;
    --accent-2: #8b5cf6;
    --accent-3: #14b8a6;
    --gold: #f4b942;
    --red: #dc2626;
    --amber: #f59e0b;

    /* Géométrie */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;

    /* Typo */
    --font: 'Inter', system-ui, sans-serif;
    --fhead: 'Space Grotesk', 'Inter', sans-serif;

    /* Transition */
    --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* ── Container ── */
.section-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.1rem 2rem;
    transition: background var(--tr), box-shadow var(--tr),
        padding var(--tr), transform var(--tr);
}

.site-nav.scrolled {
    background: rgba(10, 15, 30, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 24px rgba(0, 0, 0, 0.3);
    padding: 0.7rem 2rem;
}

.site-nav.hidden {
    transform: translateY(-100%);
}

.site-nav.visible {
    transform: translateY(0);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--fhead);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    transition: opacity var(--tr);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--tr);
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    transition: opacity var(--tr), transform var(--tr) !important;
}

.nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

/* Fond décoratif */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 142, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 142, 247, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
    animation: blobFloat 9s ease-in-out infinite alternate;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #4f8ef7 0%, transparent 70%);
    top: -20%;
    left: -12%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -15%;
    right: 0%;
    animation-duration: 7s;
}

@keyframes blobFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(25px, 15px) scale(1.06);
    }
}

/* Layout hero */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

/* Badge disponibilité */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(79, 142, 247, 0.12);
    border: 1px solid rgba(79, 142, 247, 0.3);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 1.1rem;
    border-radius: 30px;
    margin-bottom: 1.6rem;
    letter-spacing: 0.2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

/* Nom */
.hero-name {
    font-family: var(--fhead);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.04;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.hero-name span {
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tagline */
.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-2);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-tagline .sep {
    color: var(--accent);
    font-weight: 700;
    margin: 0 0.25rem;
}

/* Tags scannables */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    transition: all var(--tr);
    cursor: default;
}

.hero-tags span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-h);
    transform: translateY(-2px);
}

.hero-tags span i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.7rem;
    border-radius: var(--r-md);
    transition: all var(--tr-bounce);
    white-space: nowrap;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent), #3b7de8);
    color: #fff;
    box-shadow: 0 6px 24px rgba(79, 142, 247, 0.35);
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 36px rgba(79, 142, 247, 0.5);
    color: #fff;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--border);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-h);
    transform: translateY(-3px) scale(1.03);
    color: #fff;
}

.cta-arrow {
    font-size: 0.78rem;
    transition: transform var(--tr);
}

.cta-btn:hover .cta-arrow {
    transform: translateX(4px);
}

/* Stats cards (colonne droite) */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.3rem 1rem;
    text-align: center;
    transition: all var(--tr-bounce);
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-card:hover {
    border-color: rgba(79, 142, 247, 0.4);
    background: rgba(79, 142, 247, 0.08);
    transform: translateY(-4px);
}

.stat-n {
    display: block;
    font-family: var(--fhead);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-l {
    display: block;
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 500;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(7px);
    }
}


/* ═══════════════════════════════════════════════
   HELPERS SECTIONS
   ═══════════════════════════════════════════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 142, 247, 0.1);
    border: 1px solid rgba(79, 142, 247, 0.25);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.section-label-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.section-title {
    font-family: var(--fhead);
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-title-light {
    color: #fff;
}

.section-sub {
    font-size: 1rem;
    color: #6b7280;
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.section-sub-light {
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 3rem;
}

.section-sub-light strong {
    color: #93c5fd;
}


/* ═══════════════════════════════════════════════
   PROFILS SECTION (fond blanc)
   ═══════════════════════════════════════════════ */
.profils-section {
    padding: 5.5rem 0;
    background: #f8faff;
}

.profil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Card profil */
.profil-card {
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 2.2rem;
    border: 2px solid #e8eef8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all var(--tr-bounce);
    position: relative;
    overflow: hidden;

    /* Animation entrée */
    opacity: 0;
    transform: translateY(30px);
}

.profil-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.profil-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pc-digital::before {
    background: linear-gradient(90deg, #4f8ef7, #06b6d4);
}

.pc-av::before {
    background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.profil-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
    border-color: transparent;
}

.profil-card:hover::before {
    transform: scaleX(1);
}

/* En-tête card */
.pc-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pc-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pc-digital .pc-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.pc-av .pc-icon {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.profil-card:hover .pc-icon {
    transform: scale(1.1) rotate(5deg);
}

.pc-meta {
    flex: 1;
    min-width: 0;
}

.pc-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.35rem;
}

.pc-digital .pc-tag {
    background: #dbeafe;
    color: #1d4ed8;
}

.pc-av .pc-tag {
    background: #fee2e2;
    color: #dc2626;
}

.pc-meta h3 {
    font-family: var(--fhead);
    font-size: 1.28rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.pc-desc {
    font-size: 0.93rem;
    color: #4b5563;
    line-height: 1.72;
}

.pc-skills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.pc-skills li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #374151;
    font-weight: 500;
}

.pc-digital .pc-skills li i {
    color: #2563eb;
    font-size: 0.7rem;
}

.pc-av .pc-skills li i {
    color: #dc2626;
    font-size: 0.7rem;
}

/* Projet phare */
.pc-project {
    background: #f0f4ff;
    border: 1px solid #e2e8f0;
    border-radius: var(--r-sm);
    padding: 0.9rem 1.1rem;
    font-size: 0.87rem;
    color: #374151;
    line-height: 1.55;
}

.pc-project-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.pc-project strong {
    color: #111827;
    display: block;
}

/* CTA card */
.pc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: var(--r-sm);
    transition: all var(--tr-bounce);
    align-self: flex-start;
    margin-top: auto;
}

.pc-digital .pc-cta {
    background: linear-gradient(135deg, #4f8ef7, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 142, 247, 0.3);
}

.pc-av .pc-cta {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.pc-mmi .pc-cta {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.pc-info .pc-cta {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.pc-licence .pc-cta {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.pc-amn .pc-cta {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

.pc-cta:hover {
    transform: translateY(-2px) scale(1.04);
    color: #fff;
}

.pc-cta i {
    font-size: 0.8rem;
    transition: transform var(--tr);
}

.pc-cta:hover i {
    transform: translateX(4px);
}

/* ── 5 profils card themes ── */
.pc-av::before {
    background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.pc-mmi::before {
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.pc-info::before {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.pc-licence::before {
    background: linear-gradient(90deg, #f59e0b, #dc2626);
}

.pc-amn::before {
    background: linear-gradient(90deg, #14b8a6, #22c55e);
}

.pc-av .pc-icon {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.pc-mmi .pc-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.pc-info .pc-icon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
}

.pc-licence .pc-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.pc-amn .pc-icon {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
}

.pc-av .pc-tag {
    background: #fee2e2;
    color: #dc2626;
}

.pc-mmi .pc-tag {
    background: #ede9fe;
    color: #7c3aed;
}

.pc-info .pc-tag {
    background: #e0f2fe;
    color: #0369a1;
}

.pc-licence .pc-tag {
    background: #fef3c7;
    color: #b45309;
}

.pc-amn .pc-tag {
    background: #ccfbf1;
    color: #0f766e;
}

.pc-av .pc-skills li i {
    color: #dc2626;
    font-size: 0.7rem;
}

.pc-mmi .pc-skills li i {
    color: #7c3aed;
    font-size: 0.7rem;
}

.pc-info .pc-skills li i {
    color: #0369a1;
    font-size: 0.7rem;
}

.pc-licence .pc-skills li i {
    color: #b45309;
    font-size: 0.7rem;
}

.pc-amn .pc-skills li i {
    color: #0f766e;
    font-size: 0.7rem;
}

/* ── BTS SIO theme (indigo/violet) ── */
.pc-sio::before {
    background: linear-gradient(90deg, #6366f1, #4338ca);
}

.pc-sio .pc-icon {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.pc-sio .pc-tag {
    background: #e0e7ff;
    color: #4338ca;
}

.pc-sio .pc-skills li i {
    color: #4338ca;
    font-size: 0.7rem;
}

.pc-sio .pc-cta {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* ── Grid profils : 3 colonnes par défaut, 5 seulement sur très grand écran ── */
.profil-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 5 colonnes uniquement sur écrans ≥ 1700px */
@media (min-width: 1700px) {
    .profil-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.2rem;
    }
}

/* ── Grid 6 profils ── */
.profil-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1700px) {
    .profil-grid-6 {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.2rem;
    }
}

/* ── 6 CTAs hero : grille 3×2 ── */
.hero-ctas {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0.6rem;
}

.cta-av {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.cta-mmi {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.cta-info {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.cta-licence {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.cta-amn {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}

.cta-sio {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.cta-av:hover,
.cta-mmi:hover,
.cta-sio:hover,
.cta-info:hover,
.cta-licence:hover,
.cta-amn:hover {
    transform: translateY(-3px) scale(1.04);
    color: #fff;
    filter: brightness(1.12);
}

.cta-btn {
    font-size: 0.83rem;
    padding: 0.65rem 1rem;
    justify-content: center;
}


/* ═══════════════════════════════════════════════
   FORMATIONS (fond sombre)
   ═══════════════════════════════════════════════ */
.formations-section {
    padding: 5.5rem 0 4.5rem;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #0d1b4b 100%);
    position: relative;
    overflow: hidden;
}

.formations-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.12), transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.1), transparent 40%);
    pointer-events: none;
}

/* Grille */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.formation-card-link {
    display: block;
    height: 100%;
}

/* Card formation */
.formation-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: all var(--tr-bounce);
    position: relative;
    overflow: hidden;

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
}

.formation-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.formation-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.formation-card:hover {
    transform: translateY(-10px) scale(1.01);
}

.formation-card:hover::after {
    transform: scaleX(1);
}

.fc-blue {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
}

.fc-purple {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

.fc-teal {
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.1);
}

.fc-blue:hover {
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.28);
    border-color: rgba(59, 130, 246, 0.5);
}

.fc-purple:hover {
    box-shadow: 0 24px 60px rgba(139, 92, 246, 0.28);
    border-color: rgba(139, 92, 246, 0.5);
}

.fc-teal:hover {
    box-shadow: 0 24px 60px rgba(20, 184, 166, 0.28);
    border-color: rgba(20, 184, 166, 0.5);
}

.fc-blue::after {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.fc-purple::after {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.fc-teal::after {
    background: linear-gradient(90deg, #14b8a6, #0891b2);
}

/* Contenu card */
.fc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.fc-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.fc-blue .fc-icon {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
}

.fc-purple .fc-icon {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
}

.fc-teal .fc-icon {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
}

.formation-card:hover .fc-icon {
    transform: scale(1.1) rotate(6deg);
}

.fc-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-blue .fc-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.fc-purple .fc-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.fc-teal .fc-badge {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.fc-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.fc-type {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.5;
    color: #fff;
}

.fc-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

.fc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.fc-tags span {
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
}

.fc-blue .fc-tags span {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.fc-purple .fc-tags span {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.fc-teal .fc-tags span {
    background: rgba(20, 184, 166, 0.15);
    color: #5eead4;
}

.fc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    font-weight: 700;
    margin-top: 0.4rem;
    transition: gap 0.3s ease;
}

.fc-blue .fc-cta {
    color: #93c5fd;
}

.fc-purple .fc-cta {
    color: #c4b5fd;
}

.fc-teal .fc-cta {
    color: #5eead4;
}

.formation-card:hover .fc-cta {
    gap: 0.8rem;
}

/* Candidat strip */
.candidat-strip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.candidat-quote {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.candidat-quote i {
    font-size: 1.4rem;
    color: rgba(147, 197, 253, 0.4);
    flex-shrink: 0;
    margin-top: 2px;
}

.candidat-quote span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.7;
    font-style: italic;
}

.candidat-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
}

.cf-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.25s ease;

    opacity: 0;
    transform: translateY(15px);
}

.cf-item.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cf-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cf-item i {
    font-size: 1rem;
    color: #93c5fd;
    flex-shrink: 0;
    margin-top: 3px;
}

.cf-item div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cf-item strong {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.36);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-item span {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
    background: #06080f;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: var(--fhead);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.86rem;
    color: var(--text-3);
    max-width: 320px;
    line-height: 1.65;
}

.footer-contact {
    text-align: right;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.footer-email i {
    color: var(--accent);
}

.footer-email a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--tr);
}

.footer-email a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 0.95rem;
    transition: all var(--tr);
}

.footer-socials a:hover {
    background: rgba(79, 142, 247, 0.16);
    border-color: rgba(79, 142, 247, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy span {
    font-size: 0.78rem;
    color: var(--text-3);
}


/* ══════════════════════════════════════════════════
   HAMBURGER BUTTON
   ══════════════════════════════════════════════════ */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: relative;
    transition: background var(--tr), border-color var(--tr);
}

.nav-burger:hover {
    background: rgba(79, 142, 247, 0.15);
    border-color: rgba(79, 142, 247, 0.4);
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.3s ease;
    transform-origin: center;
}

/* Animation croix quand ouvert */
.nav-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ══════════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ══════════════════════════════════════════════════ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 12, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-menu-inner {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-bottom: 0.3rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--tr-bounce);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link:hover {
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.25);
}

.mobile-nav-link>i:first-child {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-link>i:last-child {
    margin-left: auto;
    font-size: 0.78rem;
    opacity: 0.5;
    transition: transform var(--tr), opacity var(--tr);
}

.mobile-nav-link:hover>i:last-child {
    transform: translateX(4px);
    opacity: 1;
}

.mobile-nav-link span {
    flex: 1;
}

/* Couleurs des liens mobile */
.mn-av {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(245, 158, 11, 0.12));
    border-color: rgba(220, 38, 38, 0.3);
}

.mn-av:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(245, 158, 11, 0.2));
    border-color: rgba(220, 38, 38, 0.5);
}

.mn-av>i:first-child {
    color: #f87171;
}

.mn-mmi {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.12));
    border-color: rgba(139, 92, 246, 0.3);
}

.mn-mmi:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
}

.mn-mmi>i:first-child {
    color: #c4b5fd;
}

.mn-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(3, 105, 161, 0.12));
    border-color: rgba(14, 165, 233, 0.3);
}

.mn-info:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(3, 105, 161, 0.2));
    border-color: rgba(14, 165, 233, 0.5);
}

.mn-info>i:first-child {
    color: #7dd3fc;
}

.mn-licence {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(180, 83, 9, 0.12));
    border-color: rgba(245, 158, 11, 0.3);
}

.mn-licence:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(180, 83, 9, 0.2));
    border-color: rgba(245, 158, 11, 0.5);
}

.mn-licence>i:first-child {
    color: #fcd34d;
}

.mn-amn {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 118, 110, 0.12));
    border-color: rgba(20, 184, 166, 0.3);
}

.mn-amn:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(15, 118, 110, 0.2));
    border-color: rgba(20, 184, 166, 0.5);
}

.mn-amn>i:first-child {
    color: #5eead4;
}

.mn-contact {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.mn-contact:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.mn-contact>i:first-child {
    color: #93c5fd;
}

.mobile-menu-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-socials a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 1rem;
    transition: all var(--tr);
}

.mobile-menu-socials a:hover {
    background: rgba(79, 142, 247, 0.2);
    border-color: rgba(79, 142, 247, 0.5);
    color: #fff;
    transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════
   RIPPLE EFFECT
   ══════════════════════════════════════════════════ */
.cta-btn,
.pc-cta {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0);
    animation: rippleAnim 0.65s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(1);
        opacity: 0;
    }
}


/* ══════════════════════════════════════════════════
   STAT-CARDS — Stagger animation au scroll
   ══════════════════════════════════════════════════ */
.stat-card:nth-child(1).in-view {
    transition-delay: 0.05s !important;
}

.stat-card:nth-child(2).in-view {
    transition-delay: 0.15s !important;
}

.stat-card:nth-child(3).in-view {
    transition-delay: 0.25s !important;
}

.stat-card:nth-child(4).in-view {
    transition-delay: 0.35s !important;
}

/* Navbar classes renommées (JS utilise nav-hidden/nav-visible) */
.site-nav.nav-hidden {
    transform: translateY(-100%);
}

.site-nav.nav-visible {
    transform: translateY(0);
}


/* ==============================================
   RESPONSIVE — 4 breakpoints propres
   ============================================== */

/* ── LARGE LAPTOP (≤1400px) ── */
@media (max-width: 1400px) {
    .profil-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── LAPTOP (≤1100px) ── */
@media (max-width: 1100px) {
    .hero-container {
        grid-template-columns: 1fr 200px;
        gap: 2rem;
    }

    .hero-name {
        font-size: clamp(2.6rem, 5.5vw, 3.8rem);
    }

    .profil-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

/* ── TABLET (≤860px) ── */
@media (max-width: 860px) {

    /* Hamburger visible, nav-links caché */
    .nav-burger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* Hero : colonne unique centrée */
    .hero {
        padding: 5.5rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-status {
        margin: 0 auto 1.4rem;
    }

    .hero-tags,
    .hero-ctas {
        justify-content: center;
    }

    .hero-name {
        font-size: clamp(2.4rem, 6vw, 3.4rem);
    }

    /* CTAs : 3 par ligne sur tablet */
    .hero-ctas {
        gap: 0.6rem;
    }

    .cta-btn {
        font-size: 0.85rem;
        padding: 0.72rem 1.1rem;
    }

    /* Stats : 4 en ligne */
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 560px;
        margin: 0 auto;
    }

    /* Profils : 2 colonnes */
    .profil-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section padding */
    .profils-section {
        padding: 4rem 0 3.5rem;
    }

    /* Footer */
    .footer-contact {
        text-align: left;
    }

    .footer-email,
    .footer-socials {
        justify-content: flex-start;
    }
}

/* ── MOBILE (≤580px) ── */
@media (max-width: 580px) {

    .site-nav {
        padding: 0.8rem 1rem;
    }

    /* Hero */
    .hero {
        padding: 5rem 1rem 3.5rem;
    }

    .hero-name {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
        letter-spacing: -1px;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-status {
        font-size: 0.77rem;
        padding: 0.38rem 0.9rem;
    }

    /* Tags compacts */
    .hero-tags {
        gap: 0.4rem;
    }

    .hero-tags span {
        font-size: 0.78rem;
        padding: 0.38rem 0.78rem;
    }

    /* CTAs : 2 colonnes sur mobile */
    .hero-ctas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .cta-btn {
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.75rem 0.6rem;
        gap: 0.4rem;
    }

    .cta-arrow {
        display: none;
    }

    /* Stats : 2 × 2 */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 290px;
        gap: 0.7rem;
    }

    .stat-n {
        font-size: 1.65rem;
    }

    .stat-card {
        padding: 1rem 0.8rem;
    }

    .hero-scroll {
        display: none;
    }

    /* Sections */
    .profils-section {
        padding: 3rem 0 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-sub {
        font-size: 0.92rem;
    }

    /* Profils : 1 colonne */
    .profil-grid-5,
    .profil-grid-6 {
        grid-template-columns: 1fr;
    }

    .profil-card {
        padding: 1.5rem;
    }

    .pc-meta h3 {
        font-size: 1.1rem;
    }

    .pc-desc {
        font-size: 0.88rem;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-copy {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
}

/* ── EXTRA SMALL (≤420px) ── */
@media (max-width: 420px) {

    .hero-name {
        font-size: clamp(1.65rem, 9vw, 2rem);
    }

    .hero-tags span {
        font-size: 0.73rem;
        padding: 0.32rem 0.65rem;
    }

    .hero-ctas {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        font-size: 0.88rem;
        padding: 0.85rem 1.1rem;
    }

    .cta-arrow {
        display: inline;
    }

    .hero-stats {
        max-width: 100%;
    }

    .stat-n {
        font-size: 1.4rem;
    }

    .section-container {
        padding: 0 0.9rem;
    }

    .profil-card {
        padding: 1.2rem;
    }

    .pc-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}