/* Import des polices personnalisées */
@font-face {
    font-family: 'Rosaline';
    src: url('assets/fonts/Rosaline.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TT Chocolates Trial';
    src: url('assets/fonts/TT Chocolates Trial Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset et variables CSS */
:root {
    --primary-color: #FF6A00;
    --primary-light: #FF8533;
    --primary-dark: #E55A00;
    --secondary-color: #000000;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --light-gray: #f5f5f5;
    --lighter-gray: #fafafa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'TT Chocolates Trial', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rosaline', serif;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 1000;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.3rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo .logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    opacity: 1;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Menu central moderne avec effet d'agrandissement */
.nav-menu {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
    opacity: 0.6;
}

.nav-menu:hover {
    background: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: scale(1);
    opacity: 1;
}

.nav-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.nav-menu:hover::before {
    opacity: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    border-radius: 50px;
    display: inline-block;
    font-family: 'TT Chocolates Trial', sans-serif;
}

.nav-menu:hover .nav-link {
    padding: 0.65rem 1.3rem;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--white);
}

.nav-link.active::before {
    opacity: 1;
}

.language-switch {
    display: flex;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    padding: 0.3rem;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
    opacity: 0.6;
}

.language-switch:hover {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    opacity: 1;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'TT Chocolates Trial', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    letter-spacing: 0.01em;
    color: var(--text-light);
    position: relative;
}

.language-switch:hover .lang-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--white);
}

.lang-btn.active::before {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    gap: 4px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: var(--primary-color);
}

.bar {
    width: 24px;
    height: 2.5px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-toggle.active {
    background: rgba(255, 106, 0, 0.1);
    border-color: var(--primary-color);
}

.nav-toggle.active .bar {
    background: var(--primary-color);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: var(--transition-slow);
}

.hero:hover .hero-bg-img {
    transform: scale(1.02);
    filter: brightness(0.65);
}

/* Logo Hero */
.hero-logo-container {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-logo {
    width: auto;
    height: 280px;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.8));
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 18rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 106, 0, 0.4);
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--lighter-gray) 0%, var(--light-gray) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.about-description p {
    margin-bottom: 1.2rem;
}

.cv-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.cv-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.about-image {
    text-align: center;
}

.portrait-img {
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    border: 8px solid var(--white);
}

.portrait-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 0;
    background: var(--white);
}

.portfolio-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: var(--shadow);
    background: var(--white);
}

.portfolio-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Articles Section */
.articles {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--lighter-gray) 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

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

.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.98rem;
}

.read-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'TT Chocolates Trial', sans-serif;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
    align-self: flex-start;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.35);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: #e55a00;
}

.social-links {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Contact Form */
.contact-form {
    background: var(--lighter-gray);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'TT Chocolates Trial', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    background: var(--white);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 0.5rem;
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'TT Chocolates Trial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
    letter-spacing: 0.02em;
}

.form-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
}

/* Legal Modal */
.legal-modal-content {
    max-width: 900px;
}

.legal-content-wrapper {
    margin-top: 1.5rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-of-type {
    margin-bottom: 1.5rem;
}

.legal-section-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-family: 'Rosaline', serif;
}

.legal-section-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
}

.legal-section-content p {
    margin-bottom: 0.8rem;
}

.legal-last-update {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close:hover {
    color: var(--secondary-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        width: calc(100% - 4rem);
        margin: 0 2rem;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
        gap: 0.5rem;
        border-radius: 24px;
        /* Toujours pleine taille sur mobile */
        transform: scale(1);
        opacity: 1;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        font-size: 0.95rem;
    }

    .nav-menu:hover .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .nav-toggle {
        display: flex;
    }

    .language-switch {
        margin-top: 1rem;
        /* Toujours pleine taille sur mobile */
        transform: scale(1);
        opacity: 1;
    }

    .language-switch:hover .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-logo {
        height: 120px;
    }

    .hero-logo-container {
        top: 18%;
    }

    .hero-content {
        margin-top: 9rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about {
        padding: 5rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio,
    .articles,
    .contact {
        padding: 5rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .portfolio-carousel {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .portrait-img {
        max-width: 300px;
    }
}

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

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero-logo {
        height: 100px;
    }

    .hero-logo-container {
        top: 20%;
    }

    .hero-content {
        padding: 0 1rem;
        margin-top: 7rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .about,
    .portfolio,
    .articles,
    .contact {
        padding: 4rem 0;
    }

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

    .portfolio-carousel,
    .articles-grid {
        gap: 2rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .portfolio-item img,
    .article-image {
        height: 200px;
    }
}

/* Scroll animations */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions for all interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== EFFETS WOW ===== */


/* Effet de texte révélé lettre par lettre */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    display: inline-block;
}

.hero-title.reveal span {
    display: inline-block;
    opacity: 0;
    animation: textReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title.reveal span:nth-child(1) { animation-delay: 0.1s; }
.hero-title.reveal span:nth-child(2) { animation-delay: 0.15s; }
.hero-title.reveal span:nth-child(3) { animation-delay: 0.2s; }
.hero-title.reveal span:nth-child(4) { animation-delay: 0.25s; }
.hero-title.reveal span:nth-child(5) { animation-delay: 0.3s; }
.hero-title.reveal span:nth-child(6) { animation-delay: 0.35s; }

/* Effet de pulsation sur les boutons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 106, 0, 0);
    }
}

.hero-btn {
    animation: pulse 2s infinite;
}

.hero-btn:hover {
    animation: none;
}

/* Effet 3D sur les cards */
.article-card,
.portfolio-item {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.article-card:hover,
.portfolio-item:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-12px);
}

/* Effet de brillance qui traverse les cards */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.article-card::before,
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.article-card:hover::before,
.portfolio-item:hover::before {
    animation: shine 0.8s ease;
}

/* Effet de particules flottantes - uniquement dans le hero */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    50% {
        transform: translate(50px, -100px) scale(1.2);
        opacity: 0.15;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translate(100px, -200px) scale(0.8);
        opacity: 0;
    }
}

@keyframes floatReverse {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    50% {
        transform: translate(-70px, -120px) scale(1.3);
        opacity: 0.15;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translate(-140px, -240px) scale(0.7);
        opacity: 0;
    }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

.floating-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--primary-light) 100%);
    top: 20%;
    left: 15%;
    animation: float 8s ease-in-out 0.5s 1;
}

.floating-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary-color) 100%);
    top: 50%;
    right: 20%;
    animation: floatReverse 7s ease-in-out 1s 1;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--primary-dark) 100%);
    bottom: 25%;
    left: 25%;
    animation: float 9s ease-in-out 1.5s 1;
}

.floating-shape:nth-child(4) {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary-color) 100%);
    top: 35%;
    right: 35%;
    animation: floatReverse 6s ease-in-out 2s 1;
}

.floating-shape:nth-child(5) {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--primary-light) 100%);
    bottom: 15%;
    right: 15%;
    animation: float 7.5s ease-in-out 0.8s 1;
}

/* Effet de glitch sur le logo au hover */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.logo-img:hover {
    animation: glitch 0.3s ease;
}

/* Effet de morphing sur les boutons */
.form-btn,
.hero-btn,
.cv-btn,
.read-more-btn {
    position: relative;
    overflow: hidden;
}

.form-btn::after,
.hero-btn::after,
.cv-btn::after,
.read-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-btn:hover::after,
.hero-btn:hover::after,
.cv-btn:hover::after,
.read-more-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Effet de zoom fluide sur les images */
.article-image,
.portfolio-item img {
    will-change: transform;
}

/* Effet de ripple sur les social icons */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7),
                    0 0 0 0 rgba(255, 106, 0, 0.7);
    }
    40% {
        box-shadow: 0 0 0 10px rgba(255, 106, 0, 0),
                    0 0 0 0 rgba(255, 106, 0, 0.7);
    }
    80% {
        box-shadow: 0 0 0 10px rgba(255, 106, 0, 0),
                    0 0 0 20px rgba(255, 106, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0),
                    0 0 0 20px rgba(255, 106, 0, 0);
    }
}

.social-icon:hover {
    animation: ripple 1s ease-out;
}

/* Effet de typing sur les placeholders */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Reveal animations plus spectaculaires */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.about-content .about-text {
    animation: slideInLeft 1s ease-out;
}

.about-content .about-image {
    animation: slideInRight 1s ease-out;
}

.section-title {
    animation: scaleIn 0.8s ease-out;
}


/* Portfolio PDF Container */
.portfolio-pdf-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.pdf-viewer {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.download-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.download-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 106, 0, 0.3);
}
