/* =====================================================
   RESET & VARIABLES
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-accent: #000000;
    --color-border: #e5e5e5;
    --color-card-bg: #fafafa;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-full: 50px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 65px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =====================================================
   ACCESSIBILITÉ
   ===================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible clavier — ne pas supprimer */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    max-width: 340px;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    pointer-events: none;
}

.toast--show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast--error {
    background: #c0392b;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(0);    opacity: 1; }
}

main {
    flex: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Bouton hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    color: var(--color-accent);
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--color-accent);
    display: block;
    transition: var(--transition);
}

.menu-toggle .icon-close { display: none; }
.menu-toggle .icon-menu  { display: block; }

.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu  { display: none; }

/* Liens de navigation */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

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

/* Liens sociaux dans la nav (desktop) */
.nav-social-item {
    border-left: 1px solid var(--color-border);
    padding-left: 1rem;
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--color-text) !important;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-social-link::after { display: none; }

.nav-social-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-social-link:hover {
    background: var(--color-accent);
    color: white !important;
    border-color: var(--color-accent);
}

.nav-social-link--linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* État scrolled */
nav.nav-scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

nav.nav-scrolled .logo,
nav.nav-scrolled .menu-toggle svg { fill: white; color: white; }

nav.nav-scrolled .nav-links a { color: rgba(255,255,255,0.75); }
nav.nav-scrolled .nav-links a:hover,
nav.nav-scrolled .nav-links a.active { color: white; }
nav.nav-scrolled .nav-links a::after { background: white; }

nav.nav-scrolled .nav-social-link {
    color: rgba(255,255,255,0.75) !important;
    border-color: rgba(255,255,255,0.2);
}
nav.nav-scrolled .nav-social-link:hover { color: white !important; }

nav.nav-scrolled .nav-social-item {
    border-left-color: rgba(255,255,255,0.2);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1rem 2rem;
    position: relative;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
}

.hero-avatar {
    width: 140px;
    min-width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

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

.hero-content {
    max-width: 700px;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-greeting {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-light);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Boutons hero */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--color-accent);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cta-button--outline {
    background: transparent;
    color: var(--color-accent);
}

.cta-button--outline:hover {
    background: var(--color-accent);
    color: white;
}

/* Icônes sociales */
.social-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
    transition: fill 0.2s ease;
}

.social-icon:hover svg {
    fill: white;
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    fill: var(--color-text-light);
    opacity: 0.5;
}

/* =====================================================
   SECTIONS COMMUNES
   ===================================================== */
section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 90px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 1.25rem auto 0;
}

/* Fade-in au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   À PROPOS
   ===================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-light);
    margin-bottom: 1.4rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.stat-card--highlight {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.stat-card--highlight .stat-number,
.stat-card--highlight .stat-label {
    color: white;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
    line-height: 1;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* =====================================================
   COMPÉTENCES — NIVEAUX QUALITATIFS
   ===================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.skill-icon {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.skill-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--color-accent);
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-item {
    margin-bottom: 1.4rem;
}

.skill-item:last-child { margin-bottom: 0; }

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Badges de niveau qualitatif — remplacent les pourcentages */
.skill-level {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.skill-level--expert {
    background: #e8f5e9;
    color: #2e7d32;
}

.skill-level--advanced {
    background: #e3f2fd;
    color: #1565c0;
}

.skill-level--intermediate {
    background: #fff8e1;
    color: #f57f17;
}

.skill-level--beginner {
    background: #f3e5f5;
    color: #6a1b9a;
}

.skill-bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--color-accent);
    border-radius: 10px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   EN COURS D'APPRENTISSAGE
   ===================================================== */
.learning-section {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
}

.learning-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.learning-title svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.learning-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learning-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.learning-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-width: 150px;
}

.learning-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.learning-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.learning-target {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* =====================================================
   FORMATIONS — TIMELINE
   ===================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd)  { flex-direction: row-reverse; }

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin: 0 2rem;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.badge-ongoing {
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* =====================================================
   PROJETS
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0;
}

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

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tag {
    padding: 0.3rem 0.85rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-text);
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 2px solid var(--color-accent);
    transition: var(--transition);
    align-self: flex-start;
}

.project-link:hover {
    background: transparent;
    color: var(--color-accent);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.contact-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
}

.contact-item-content h4 {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.contact-item-content p,
.contact-item-content a {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-word;
}

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

/* Liens sociaux dans contact */
.contact-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.contact-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-social-link:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Formulaire */
.contact-form {
    background: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-group label span {
    color: #c0392b;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #c0392b;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.field-error {
    display: block;
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.submit-button {
    width: 100%;
    padding: 1.1rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-loading { display: none; }

.submit-button.is-loading .btn-text    { display: none; }
.submit-button.is-loading .btn-loading { display: inline; }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: #000000 !important;
    color: white;
    padding: 1rem 1.5rem;
    margin-top: auto;
    width: 100%;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-info {
    flex: 1;
    min-width: auto;
}

.footer-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.5rem !important;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
}

.footer-social a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

.footer-social a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.footer-social svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    color: white;
    fill: white !important;
    stroke: white !important;
    display: inline-block;
    flex-shrink: 0;
    pointer-events: none;
}

.footer-social svg * {
    fill: white !important;
    stroke: white !important;
    color: white !important;
}


.footer-legal {
    flex: 1;
    min-width: auto;
    align-items: flex-end;
}

.footer-legal-text {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: right;
    line-height: 1.4;
    margin: 0;
}

.footer-social a {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.footer-social a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.footer-social svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    fill: white !important;
    stroke: white;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}


/* =====================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {
    section { padding: 4rem 1.5rem; }

    .about-content,
    .contact-container { gap: 2rem; }

    .hero-inner { gap: 1.5rem; }

    .nav-social-item { display: block; }
    .nav-links { justify-content: center; }
    
    /* Footer */
    footer { padding: 1rem 1.5rem; }
    .footer-content { gap: 1.5rem; flex-wrap: nowrap; }
    .footer-info p { font-size: 0.85rem; }
    .footer-social { gap: 0.6rem; }
    .footer-social a { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
    .footer-social svg { width: 15px; height: 15px; min-width: 15px; min-height: 15px; }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {
    body { padding-top: 58px; }
    
    nav { padding: 0.8rem 0; }

    .nav-container { padding: 0 0.75rem; }

    .menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 1002;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        width: 100%;
        overflow-y: auto;
    }

    nav.nav-scrolled .nav-links { background: rgba(0,0,0,0.97); }

    .nav-links.active { max-height: 1200px; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 0.75rem 0.5rem;
        border-radius: var(--radius-sm);
        color: var(--color-text);
    }

    .nav-links a::after { display: none; }
    .nav-links a:hover  { background: var(--color-card-bg); }

    nav.nav-scrolled .nav-links a { color: rgba(255,255,255,0.8); }
    nav.nav-scrolled .nav-links a:hover { background: rgba(255,255,255,0.1); color: white; }

    .nav-social-item {
        display: block;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    nav.nav-scrolled .nav-social-item { border-top-color: rgba(255,255,255,0.15); }

    .nav-social-link {
        display: inline-flex;
        padding: 0.6rem 0.75rem;
        border: none;
        border-radius: var(--radius-sm);
        width: auto;
    }

    nav.nav-scrolled .nav-social-link { color: rgba(255,255,255,0.8) !important; }

    /* Hero mobile */
    .hero {
        padding: 6rem 1rem 2rem;
        min-height: auto;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-avatar { width: 120px; height: 120px; min-width: 120px; }

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

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

    /* Sections */
    section { padding: 3.5rem 1rem; }

    .section-title {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        margin-bottom: 2.5rem;
    }

    /* À propos */
    .about-content { grid-template-columns: 1fr; }

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

    /* Skills */
    .skills-grid { grid-template-columns: 1fr; }

    .learning-section { padding: 1.5rem; }

    /* Timeline */
    .timeline::before {
        left: 0;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-dot {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-content {
        margin-left: 2rem;
        margin-right: 0;
        padding: 1.5rem;
    }

    /* Projets */
    .projects-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-container { grid-template-columns: 1fr; }

    .contact-form { padding: 1.5rem; }

    /* Footer */
    footer { padding: 2.5rem 1.5rem; }
    .footer-content { flex-direction: row; text-align: left; gap: 1.2rem; flex-wrap: nowrap; }
    .footer-section { align-items: flex-start; width: auto; flex-wrap: nowrap; }
    .footer-info { min-width: auto; }
    .footer-legal { align-items: flex-end; min-width: auto; }
    .footer-legal-text { text-align: right; }
    .footer-info p { font-size: 0.82rem; }
    .footer-social { justify-content: flex-start; gap: 0.5rem; flex-wrap: nowrap; }
    .footer-social a { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
    .footer-social svg { width: 14px; height: 14px; min-width: 14px; min-height: 14px; fill: white !important; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ===================================================== */
@media (max-width: 480px) {
    body { padding-top: 58px; padding-bottom: 80px; }

    .hero { padding: 5.5rem 0.75rem 1.5rem; }

    .hero-avatar { width: 100px; height: 100px; min-width: 100px; }

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

    .cta-button { width: 100%; justify-content: center; }

    .scroll-indicator { display: none; }

    section { padding: 2.5rem 0.75rem; }

    .about-stats { grid-template-columns: 1fr; }

    .learning-grid { flex-direction: column; }

    .learning-card { min-width: auto; }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-form { padding: 1.25rem; }
    
    /* Footer */
    footer { padding: 0.9rem 1rem; }
    .footer-content { flex-direction: row; text-align: left; gap: 1rem; flex-wrap: nowrap; }
    .footer-section { align-items: flex-start; width: auto; }
    .footer-info { min-width: auto; }
    .footer-legal { align-items: flex-end; min-width: auto; }
    .footer-legal-text { text-align: right; }
    .footer-info p { font-size: 0.8rem; }
    .footer-social { justify-content: flex-start; flex-wrap: wrap; gap: 0.4rem; }
    .footer-social a { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
    .footer-social svg { width: 13px; height: 13px; min-width: 13px; min-height: 13px; fill: white !important; }
    .footer-social svg * { fill: white !important; stroke: white !important; }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}