/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    /* Couleurs exactes du CV */
    --text: #763c00;
    --accent: #ef8535;
    --accent-alt: #ffca4f;
    --bg-1: #ffd98d;
    --bg-2: #f9f7dc;

    /* Dérivés - ajustés pour meilleur contraste */
    --accent-dark: #d66a1a;
    --accent-light: #f5a86a;
    --text-light: #8a4a1f;
    --accent-intense: #e07b2e;

    /* Neutres */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F5F5F5;
    --gray: #888888;
    --dark: #2C2C2C;
    --darker: #1A1A1A;

    /* Dimensions */
    --nav-height: 70px;
    --container-max: 1200px;
    --border-radius: 12px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* Dégradés latéraux symétriques */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 40vw;
    pointer-events: none;
    z-index: -1;
}

body::before {
    left: 0;
    background: linear-gradient(90deg,
        rgba(255, 230, 180, 0.6) 0%,
        rgba(255, 220, 160, 0.52) 12%,
        rgba(255, 217, 141, 0.48) 24%,
        rgba(255, 210, 150, 0.38) 36%,
        rgba(255, 205, 140, 0.28) 48%,
        rgba(255, 202, 79, 0.18) 60%,
        transparent 100%
    );
}

body::after {
    right: 0;
    background: linear-gradient(-90deg,
        rgba(255, 230, 180, 0.6) 0%,
        rgba(255, 220, 160, 0.52) 12%,
        rgba(255, 217, 141, 0.48) 24%,
        rgba(255, 210, 150, 0.38) 36%,
        rgba(255, 205, 140, 0.28) 48%,
        rgba(255, 202, 79, 0.18) 60%,
        transparent 100%
    );
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(249, 247, 220, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(118, 60, 0, 0.08);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(239, 133, 53, 0.1);
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-intense), var(--accent-alt));
    transition: width var(--transition-normal);
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    background:
        linear-gradient(135deg,
            var(--bg-2) 0%,
            rgba(249, 247, 220, 0.97) 20%,
            rgba(252, 240, 195, 0.95) 35%,
            rgba(254, 233, 175, 0.93) 50%,
            rgba(255, 220, 150, 0.92) 65%,
            var(--bg-1) 80%,
            rgba(255, 217, 141, 0.9) 100%
        );
    position: relative;
    overflow: hidden;
}

/* Anti-banding avec bruit SVG */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: soft-light;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle,
        rgba(255, 202, 79, 0.2) 0%,
        rgba(239, 133, 53, 0.1) 50%,
        transparent 70%
    );
    animation: float 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, 8px) rotate(1deg); }
}

.hero-content {
    max-width: var(--container-max);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg,
        #c45a00 0%,
        var(--accent) 50%,
        var(--accent-alt) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(118, 60, 0, 0.1));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: float 8s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-intense) 0%, var(--accent-alt) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 133, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 133, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 6rem 2rem;
}

.section-light {
    background: var(--bg-2);
}

.section-warm {
    background: var(--bg-1);
}

.section-dark {
    background: var(--darker);
    color: var(--white);
}

.section-dark .section-title {
    color: var(--white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-intense), var(--accent-alt));
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-intense), var(--accent), var(--accent-alt));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(239, 133, 53, 0.3);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    flex: 0 0 120px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-intense), var(--accent));
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(239, 133, 53, 0.25);
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(239, 133, 53, 0.15);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.timeline-location {
    color: var(--gray);
    font-size: 0.95rem;
}

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

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(239, 133, 53, 0.15);
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.skill-title svg {
    flex-shrink: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(239, 133, 53, 0.15), rgba(255, 202, 79, 0.15));
    color: var(--text);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: var(--white);
}

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

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(239, 133, 53, 0.2);
}

.project-icon {
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    align-self: flex-start;
}

.project-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================
   EXPÉRIENCES
   ============================================ */
.experiences {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experiences::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-intense), var(--accent), var(--accent-alt));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(239, 133, 53, 0.3);
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.experience-date {
    flex: 0 0 120px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-intense), var(--accent));
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(239, 133, 53, 0.25);
}

.experience-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.experience-content:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(239, 133, 53, 0.15);
}

.experience-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.experience-duration {
    color: var(--accent-alt);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.experience-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.experience-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.form-group input.invalid {
    border-color: #e57373;
}

.form-group input.invalid:focus {
    border-color: #e57373;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--off-white);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--accent);
    font-weight: 600;
}

.recaptcha-group {
    margin: 1.5rem 0;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================
   CHECKBOX & MENTIONS RGPD
   ============================================ */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.checkbox-label span {
    flex: 1;
}

.legal-notice {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.75rem;
    margin-left: 1.9rem;
}

.legal-notice a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-notice a:hover {
    color: var(--accent-alt);
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.form-status:not(:empty) {
    opacity: 1;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ============================================
   SUGGESTIONS DE VILLES
   ============================================ */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0.5rem 0;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition-fast);
}

.suggestion-item:hover,
.suggestion-item:focus {
    background: rgba(239, 133, 53, 0.15);
}

.suggestion-item.no-result {
    cursor: default;
    color: var(--gray);
    font-style: italic;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-legal {
    max-width: 700px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent);
    color: var(--white);
}

#modal-body {
    padding: 3rem 2rem 2rem;
}

#modal-body h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-company {
    color: var(--accent-alt);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-duration {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

#modal-body h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--dark);
}

#modal-body p, #modal-body li {
    color: var(--gray);
    line-height: 1.8;
}

#modal-body ul {
    margin-left: 1.5rem;
}

#modal-body li {
    margin-bottom: 0.5rem;
}

/* ============================================
   MODALE LÉGALE
   ============================================ */
#legal-body {
    padding: 3rem 2rem 2rem;
    color: var(--text);
}

#legal-body h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

#legal-body h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

#legal-body p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

#legal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#legal-body li {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

#legal-body a {
    color: var(--accent);
    text-decoration: underline;
}

#legal-body a:hover {
    color: var(--accent-alt);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--darker);
    color: var(--gray);
    padding: 2rem;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer .heart {
    color: var(--accent-alt);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   ANIMATIONS AU SCROLL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-image {
        order: -1;
    }

    .timeline::before,
    .experiences::before {
        left: 20px;
    }

    .timeline-item,
    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
        gap: 1rem;
    }

    .timeline-date,
    .experience-date {
        margin: 0 !important;
    }

    .timeline-content,
    .experience-content {
        margin: 0 !important;
        width: 100%;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-label {
        width: 100%;
    }
}

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

    .nav-links {
        display: none;
    }

    .section {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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