/* =======================
   Portfolio Léa Mathieu – Feuille de style principale
   ======================= */

/* =======================
   1. Variables CSS
   ======================= */
:root {
    --clr-bg: #f7f5f2;
    --clr-surface: #ffffff;
    --clr-primary: #aaa37f;
    --clr-accent: #f7b2a8;
    --clr-accent-dark: #eaa097;
    --clr-text: #303030;
    --clr-muted: #6b6b6b;
    --clr-subtitle: #c76060;
    
    /* Couleurs spécifiques */
    --clr-hero-bg: rgba(255, 248, 234, 1);
    --clr-role-bg: rgba(170, 170, 170, 0.39);
    --clr-role-text: rgba(74, 71, 71, 1);
    --clr-accent-strong: rgba(255, 140, 140, 1);
    --clr-projects-bg: rgba(242, 235, 230, 0.95);
    --clr-projects-title: rgba(233, 175, 163, 1);
    --clr-projects-intro: rgba(255, 140, 140, 1);
    --clr-projects-text: rgba(74, 71, 71, 1);
    --clr-modal-bg: rgba(255, 248, 234, 0.98);
    --clr-modal-overlay: linear-gradient(135deg, rgba(233, 175, 163, 0.95) 0%, rgba(247, 178, 168, 0.9) 100%);
    
    /* Ombres et effets */
    --shadow-text: 
        2px 0 0 #fff,
        -2px 0 0 #fff,
        0 2px 0 #fff,
        0 -2px 0 #fff,
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff;
    --shadow-text-small: 
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff;
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.4s ease;
    --transition-slow: all 0.8s ease;
}

/* =======================
   2. Reset & bases globales
   ======================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: var(--clr-bg);
    color: var(--clr-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p+p {
    margin-top: 1em;
}

/* =======================
   3. Utilitaires
   ======================= */
.visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.accent-strong {
    font-family: 'Young Serif', serif;
    color: var(--clr-accent-strong);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: var(--shadow-text);
}

/* =======================
   4. Layout générique
   ======================= */
section,
header,
footer {
    padding: 4rem 1rem;
}

/* Optimisations pour écrans 27 pouces et plus */
@media (min-width: 1920px) {
    section,
    header,
    footer {
        padding: 3rem 2rem;
    }
    
    #about {
        padding: 4rem 2rem;
    }
    
    #contact {
        padding: 4rem 2rem;
    }
    
    /* Optimisations des animations pour réduire le lag */
    * {
        will-change: auto;
    }
    
    .pencil-underline {
        will-change: width;
    }



    
    
    .sticker-coeur,
    .sticker-cachet,
    .sticker-lettre {
        will-change: transform;
    }
    
    /* Réduire les animations sur les grands écrans pour de meilleures performances */
    .pencil-underline {
        animation-duration: 2.5s;
    }
    
    .sticker-coeur {
        animation-duration: 3s;
    }
    
    .sticker-cachet {
        animation-duration: 4s;
    }
    
    .sticker-lettre {
        animation-duration: 3.5s;
    }
}

/* =======================
   5. Header / Hero
   ======================= */
header {
    background: var(--clr-surface);
    background-image: url('assets/fond1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-image var(--transition-slow);
}

/* Color picker */
.color-picker {
    position: absolute;
    top: 2.5rem;
    left: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.color-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: transparent;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.color-btn.active::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-btn[data-color="default"] { background: #aaa37f; }
.color-btn[data-color="color1"] { background: #E8A8A0; }
.color-btn[data-color="color2"] { background: #B5B2EA; }

/* Header menu */
.header-menu {
    position: fixed;
    top: 3rem;
    right: 2rem;
    z-index: 1000;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--clr-primary);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--clr-primary);
    transition: var(--transition-fast);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(255, 255, 255, 0.8);
}

.menu-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(255, 255, 255, 0.9);
}

.menu-items {
    position: absolute;
    top: 5.5rem;
    right: -1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--clr-accent);
    border-radius: 2rem;
    padding: 1.5rem;
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Le menu s'ouvre maintenant au clic sur mobile, pas au hover */
.header-menu:hover .menu-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sur mobile, on supprime le hover pour éviter les conflits */
@media (max-width: 768px) {
    .header-menu:hover .menu-items {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
}

.menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--clr-text);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    border-radius: 1.2rem;
    transition: var(--transition-fast);
    position: relative;
    --hover-color: var(--clr-accent);
    --hover-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-link:hover {
    background: var(--hover-color);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--hover-shadow);
}

/* Hero content */
.hero {
    max-width: 1000px;
    width: 90vw;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--clr-hero-bg);
    border-radius: 30px;
    padding: 5rem 0;
    position: relative;
}

/* Contour en pointillés autour de la section hero */
.hero::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 4px dashed var(--clr-primary);
    border-radius: 38px;
    pointer-events: none;
    z-index: 1;
    transition: border-color var(--transition-slow);
    opacity: 0.8;
}

/* Contour en pointillés pour le thème color1 */
.hero.theme-color1::before {
    border-color: #E8A8A0;
}

/* Contour en pointillés pour le thème color2 */
.hero.theme-color2::before {
    border-color: #B5B2EA;
}

.hero__intro {
    letter-spacing: 0.1em;
    font-family: nunito sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.hero__name {
    font-family: 'Young Serif', serif;
    font-size: 80px;
    color: var(--clr-primary);
    text-rendering: optimizeLegibility;
    text-shadow: var(--shadow-text);
    transition: color var(--transition-slow);
}

.hero__role {
    background: var(--clr-role-bg);
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    color: var(--clr-role-text);
    width: 80%;
    padding: 2rem;
    margin: 2rem auto;
    display: block;
    text-align: center;
    border-radius: 2rem;
    white-space: nowrap;
    overflow: hidden;
}

.role-icon {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: var(--transition-slow);
}

/* =======================
   6. Navigation
   ======================= */
.hero__nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
}

.hero__nav a {
    font-family: 'Young Serif', serif;
    font-weight: bold;
    color: var(--clr-text);
    text-transform: uppercase;
    position: relative;
    font-size: 24px;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    text-shadow: var(--shadow-text);
}

.hero__nav-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Young Serif', serif;
    font-weight: bold;
    color: var(--clr-role-text) !important;
    font-size: 24px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.hero__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.hero__cta-arrow {
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
    stroke: var(--clr-role-text) !important;
    flex-shrink: 0;
    animation: arrowBounce 2s ease-in-out infinite;
    transform-origin: center;
}

/* Animation de la flèche */
@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Animation de la flèche pour mobile (plus douce) */
@keyframes arrowBounceMobile {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Respecter les préférences d'accessibilité pour les animations */
@media (prefers-reduced-motion: reduce) {
    .hero__cta-arrow {
        animation: none;
    }
    
    .hero__cta:hover .hero__cta-arrow {
        animation: none;
        transform: translateY(-4px) scale(1.05);
    }
}

/* Animation au survol de la flèche */
.hero__cta:hover .hero__cta-arrow {
    animation: arrowBounceHover 0.6s ease-in-out;
    transform: translateY(-12px) scale(1.1);
}

@keyframes arrowBounceHover {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.1);
    }
    100% {
        transform: translateY(-12px) scale(1.1);
    }
}

/* =======================
   Responsive Header & Hero
   ======================= */
@media (max-width: 768px) {
    /* Header responsive */
    header {
        min-height: 100vh;
        padding: 2rem 1rem;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }
    
    /* Color picker mobile */
    .color-picker {
        top: 2rem;
        left: 1.5rem;
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .color-btn {
        width: 2rem;
        height: 2rem;
    }
    
    /* Header menu mobile */
    .header-menu {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .menu-toggle {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.2rem;
        /* Améliorer l'accessibilité tactile */
        min-height: 44px;
        min-width: 44px;
    }
    
    .menu-items {
        top: 3.8rem;
        right: -0.2rem;
        min-width: 160px;
        padding: 0.8rem 0.5rem;
        border-radius: 0.8rem;
    }
    
    .menu-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        margin: 0.2rem 0;
    }
    
    /* Hero mobile */
    .hero {
        width: 95vw;
        padding: 3rem 1rem;
        gap: 0.8rem;
    }
    
    .hero::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-width: 3px;
        border-radius: 33px;
    }
    
    .hero__intro {
        font-size: 20px;
    }
    
    .hero__name {
        font-size: 48px;
        line-height: 1.1;
    }
    
    .hero__role {
        width: 90%;
        padding: 1.5rem;
        margin: 1.5rem auto;
        font-size: 20px;
        white-space: normal;
        line-height: 1.4;
    }
    
    .role-icon {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .hero__nav {
        padding-top: 1.5rem;
        gap: 1rem;
    }
    
    .hero__nav a {
        font-size: 20px;
    }
    
    .hero__nav-bottom {
        bottom: 1.5rem;
    }
    
    .hero__cta {
        font-size: 20px;
        gap: 1rem;
    }
    
    .hero__cta-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    /* Header très petit écran */
    header {
        padding: 2rem 1rem;
        align-items: center;
        justify-content: center;
    }
    
    /* Color picker très petit */
    .color-picker {
        top: 1.5rem;
        left: 1rem;
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .color-btn {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    /* Menu très petit */
    .header-menu {
        top: 1rem;
        right: 1rem;
    }
    
    .menu-toggle {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .menu-items {
        top: 3.3rem;
        right: -0.3rem;
        min-width: 150px;
        padding: 0.6rem 0.4rem;
        border-radius: 0.7rem;
    }
    
    .menu-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        margin: 0.15rem 0;
    }
    
    /* Hero très petit */
    .hero {
        width: 98vw;
        padding: 2rem 0.8rem;
    }
    
    .hero__intro {
        font-size: 18px;
    }
    
    .hero__name {
        font-size: 36px;
    }
    
    .hero__role {
        width: 95%;
        padding: 1.2rem;
        margin: 1.2rem auto;
        font-size: 18px;
    }
    
    .role-icon {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    
    .hero__nav a {
        font-size: 18px;
    }
    
    .hero__cta {
        font-size: 18px;
        gap: 0.8rem;
    }
    
    .hero__cta-arrow {
        width: 28px;
        height: 28px;
    }
}

/* Améliorations pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .menu-toggle {
        /* Augmenter la zone de clic sur mobile */
        min-height: 48px;
        min-width: 48px;
    }
    
    .menu-link {
        /* Augmenter la zone de clic sur mobile */
        min-height: 48px;
    }
    
    .color-btn {
        /* Augmenter la zone de clic sur mobile */
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Réduire l'animation de la flèche sur mobile pour économiser la batterie */
    .hero__cta-arrow {
        animation-duration: 3s;
        animation-name: arrowBounceMobile;
    }
}

/* =======================
   7. Section Projets
   ======================= */
#projects {
    background-image: url('assets/background3.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.projects-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    height: 100vh;
    position: relative;
}

/* Colonne gauche */
.projects-left {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    padding: 0 2rem;
    height: 100vh;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.projects-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--clr-projects-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    min-height: 120px;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(233, 175, 163, 0.12),
        0 4px 12px rgba(233, 175, 163, 0.08);
    border: 1px solid rgba(233, 175, 163, 0.2);
    background-image: 
        linear-gradient(rgba(233, 175, 163, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 175, 163, 0.25) 1px, transparent 1px);
    background-size: 20px 20px;
    margin-bottom: 1rem;
}

.projects-title {
    font-family: 'Young Serif', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--clr-projects-title);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
    text-rendering: optimizeLegibility;
    margin: 0;
    position: relative;
    text-shadow: var(--shadow-text);
}

.projects-title::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #E9AFA3, #f7b2a8);
    border-radius: 1px;
}

.projects__intro {
    width: 100%;
    flex-direction: column;
    display: flex;
    gap: 2rem;
}

.projects__intro h2 {
    font-family: 'Young Serif', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--clr-projects-intro);
    text-rendering: optimizeLegibility;
    text-shadow: var(--shadow-text);
    margin-bottom: 1.5rem;
}

.projects__intro p {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    color: var(--clr-projects-text);
    text-align: left;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Colonne droite - Galerie */
.projects-cover {
    width: 65%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    height: 100vh;
    position: relative;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 175, 163, 0.6) transparent;
}

/* Customisation scrollbar */
.projects-cover::-webkit-scrollbar {
    width: 8px;
}

.projects-cover::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.projects-cover::-webkit-scrollbar-thumb {
    background: rgba(233, 175, 163, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(233, 175, 163, 0.3);
}

.projects-cover::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 175, 163, 0.8);
    border-color: rgba(233, 175, 163, 0.5);
}

.projects-cover::-webkit-scrollbar-thumb:active {
    background: rgba(233, 175, 163, 1);
}

/* Figures des projets */
.projects-cover figure,
.project__figure {
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.projects-cover figure img,
.project__figure img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

/* Espacement des figures */
.projects-cover figure:nth-child(1),
.project__figure:nth-child(1) { margin-top: 1rem; }

.projects-cover figure:nth-child(2),
.project__figure:nth-child(2) { margin-top: 0; }

.projects-cover figure:nth-child(3),
.project__figure:nth-child(3) { margin-top: 0; }

.projects-cover figure:nth-child(4),
.project__figure:nth-child(4) { 
    margin-top: 0; 
    margin-bottom: 1rem; 
}

/* =======================
   8. Modales des projets
   ======================= */
.project__figure {
    position: relative;
    cursor: pointer;
}

.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-modal-overlay);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: var(--transition-medium);
}

.project-modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background: var(--clr-modal-bg);
    margin: auto;
    padding: 0;
    border-radius: 30px;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transition: var(--transition-medium);
    border: 3px solid rgba(233, 175, 163, 0.3);
    box-shadow: 
        0 20px 60px rgba(233, 175, 163, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Bouton de fermeture de la modale */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(233, 175, 163, 0.8);
    background: rgba(255, 248, 234, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 
        0 20px 60px rgba(233, 175, 163, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 248, 234, 1);
    transform: scale(1.1);
    border-color: rgba(255, 140, 140, 0.8);
    box-shadow: 
        0 25px 80px rgba(233, 175, 163, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.modal-close:active {
    transform: scale(0.95);
    border-color: rgba(255, 140, 140, 1);
    box-shadow: 
        0 15px 40px rgba(233, 175, 163, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.close-icon {
    color: rgba(233, 175, 163, 1);
    transition: all 0.3s ease;
}

.modal-close:hover .close-icon {
    color: rgba(255, 140, 140, 1);
    transform: rotate(90deg);
}


/* Contenu des projets */
.project-details {
    display: none;
    padding: 3rem 2rem;
}

.project-details.active {
    display: block;
}

.project-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.project-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-projects-title), rgba(247, 178, 168, 1));
    border-radius: 2px;
}

.project-header h2 {
    font-family: 'Young Serif', serif;
    font-size: 2.5rem;
    color: var(--clr-projects-title);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: var(--shadow-text);
}

.project-category {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    color: var(--clr-projects-text);
    font-weight: 600;
    background: rgba(233, 175, 163, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid rgba(233, 175, 163, 0.3);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.project-description h3 {
    font-family: 'Young Serif', serif;
    font-size: 1.8rem;
    color: var(--clr-projects-intro);
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: var(--shadow-text-small);
}

.project-description h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    color: var(--clr-projects-text);
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    font-weight: 700;
}

.project-description p {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--clr-projects-text);
    margin-bottom: 1.2rem;
}

.project-description ul {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--clr-projects-text);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.project-description li {
    margin-bottom: 0.8rem;
    position: relative;
}

.project-description li::before {
    content: '✦';
    color: var(--project-bullet-color, var(--clr-projects-title));
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
    top: 0;
    transition: color 0.3s ease;
}

.project-maquette {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.project-maquette h3 {
    font-family: 'Young Serif', serif;
    font-size: 1.8rem;
    color: var(--clr-projects-intro);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: var(--shadow-text-small);
}

.maquette-full {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px var(--project-primary, rgba(233, 175, 163, 0.2)),
        0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    border: 3px solid var(--project-primary, rgba(233, 175, 163, 0.2));
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    cursor: zoom-in;
    position: relative;
}

.maquette-full:hover {
    transform: scale(1.02);
    box-shadow: 
        0 15px 40px var(--project-primary, rgba(233, 175, 163, 0.3)),
        0 0 0 3px var(--project-primary, rgba(233, 175, 163, 0.4));
    transition: all 0.3s ease;
}

/* Liens des projets */
.project-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--clr-projects-title);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    border: 2px solid var(--clr-projects-title);
    box-shadow: 
        0 4px 15px rgba(233, 175, 163, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.8);
}

.project-link:hover {
    background: white;
    color: var(--clr-projects-title);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(233, 175, 163, 0.4),
        0 0 0 3px rgba(233, 175, 163, 0.6);
}

.project-link.live {
    background: linear-gradient(135deg, var(--clr-projects-title), rgba(247, 178, 168, 1));
    border-color: var(--clr-projects-title);
}

.project-link.live:hover {
    background: linear-gradient(135deg, white, rgba(255, 248, 234, 1));
    color: var(--clr-projects-title);
}

.link-icon {
    font-size: 1.2rem;
}

/* Modale de zoom pour la maquette */
.maquette-zoom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.maquette-zoom-modal.show {
    display: flex;
    opacity: 1;
}

.maquette-zoom-content {
    margin: auto;
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    border: 3px solid rgba(233, 175, 163, 0.9);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(233, 175, 163, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.maquette-zoom-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(233, 175, 163, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.maquette-zoom-close:hover {
    background: rgba(233, 175, 163, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.maquette-zoom-close:active {
    transform: scale(0.95);
}

.maquette-zoom-scroll {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    position: relative;
}

.maquette-zoom-img {
    display: block;
    max-width: none;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    object-fit: contain;
}

.maquette-zoom-info {
    position: absolute;
    bottom: -40px;
    left: 0;
    color: #8B4513;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.zoom-level {
    font-weight: 700;
    color: rgba(233, 175, 163, 0.9);
    background: rgba(233, 175, 163, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(233, 175, 163, 0.3);
}

.zoom-hint {
    color: rgba(107, 107, 107, 0.8);
    font-size: 0.85rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .maquette-zoom-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 15px;
    }
    
    .maquette-zoom-header {
        padding: 0.8rem 1rem;
    }
    
    .zoom-control {
        width: 36px;
        height: 36px;
    }
    
    .maquette-zoom-close {
        width: 40px;
        height: 40px;
    }
    
    .maquette-zoom-info {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .zoom-hint {
        font-size: 0.8rem;
    }
}

/* Scrollbar de la modale */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(233, 175, 163, 0.1);
    border-radius: 6px;
    margin: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--project-scrollbar, rgba(233, 175, 163, 0.8));
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--project-primary, var(--clr-projects-title));
    transform: scale(1.05);
}

/* =======================
   9. Section À propos
   ======================= */
#about {
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 0;
}

.about__content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-inline: auto;
    align-items: flex-start;
    width: 95%;
    box-sizing: border-box;
    margin-top: 3vh;
    gap: 3rem;
    max-width: 1400px;
}

.about__text {
    font-family: 'Manrope', sans-serif;
    flex: 2;
    font-size: 24px;
    position: relative;
    line-height: 2.2;
    max-width: 800px;
    min-width: 0;
}

.about__text p {
    font-size: 24px;
    margin-bottom: 3rem;
}

/* Style pour le texte UX/UI designer */
.handdrawn-uxui {
    display: inline;
    position: relative;
    overflow: visible;
}

.pencil-underline {
    display: block;
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff8c8c 0%, #ffb6c1 50%, #ff8c8c 100%);
    border-radius: 3px;
    margin-top: 8px;
    margin-left: 45%;
    margin-right: auto;
    animation: drawPencilLine 3s ease-in-out infinite;
    animation-delay: 1s;
    box-shadow: 0 2px 4px rgba(255, 140, 140, 0.3);
    max-width: 350px;
}

.handdrawn-uxui strong {
    color: var(--clr-accent-strong) !important;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* Animation de dessin au crayon */
@keyframes drawPencilLine {
    0% {
        width: 0;
        opacity: 0;
    }
    10% {
        width: 0;
        opacity: 1;
    }
    30% {
        width: 40%;
        opacity: 1;
    }
    60% {
        width: 80%;
        opacity: 1;
    }
    85% {
        width: 100%;
        opacity: 1;
    }
    95% {
        width: 100%;
        opacity: 0.8;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

/* Animation mignonne bullet journal */
@keyframes cuteBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

/* Animation de lueur douce */
@keyframes cuteGlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

.about__portrait {
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.6s forwards;
}

.about__portrait img {
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.about__portrait:hover img {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) contrast(1.05);
}

.about__noeud {
    display: block;
    width: 800px;
    margin: 2rem 0 0 0;
    position: relative;
    top: 0.2rem;
    image-rendering: auto;
    filter: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Animation uniquement pour le portrait */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =======================
   10. Section Contact - Style Bullet Journal Mignon
   ======================= */
#contact {
    background-image: url('assets/background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 2rem 1rem;
    overflow: hidden;
}

/* Container principal du contact centré */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 700px;
    width: 100%;
    gap: 4rem;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
    padding: 0 2rem;
    flex: 1;
}

/* En-tête du contact - Style journal */
.contact-header {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 248, 234, 0.9);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(233, 175, 163, 0.2),
        0 4px 16px rgba(247, 178, 168, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(233, 175, 163, 0.3);
    backdrop-filter: blur(10px);
}

.contact-intro {
    font-family: 'Young Serif', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--clr-accent-strong);
    text-align: center;
    line-height: 1.3;
    margin: 0;
    position: relative;
    text-shadow: var(--shadow-text);
}



/* Section CTA - Style journal mignon */
.contact__cta {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 1rem 0;
    background: none;
    padding: 1.5rem;
}

.cta-bg-img {
    display: none; /* Supprimer l'image de fond */
}

.contact__cta .button {
    position: relative;
    z-index: 1;
    margin: 0;
    transform: none;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 50%, #ffb6c1 100%);
    border: 3px solid #ff69b4;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(255, 182, 193, 0.4),
        0 4px 15px rgba(255, 105, 180, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    font-family: 'Young Serif', serif;
    letter-spacing: 0.02em;
}

.button:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 50%, #ff69b4 100%);
    border-color: #ff1493;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(255, 182, 193, 0.5),
        0 6px 20px rgba(255, 105, 180, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.button-icon {
    font-size: 2rem;
    margin: 0;
    transition: all 0.4s ease;
    animation: gentleBounce 3s ease-in-out infinite;
}

.button:hover .button-icon {
    animation: excitedBounce 0.8s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes excitedBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-4px) scale(1.1); }
    50% { transform: translateY(-6px) scale(1.15); }
    75% { transform: translateY(-4px) scale(1.1); }
}









/* Section réseaux sociaux - Positionnée en bas à gauche */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    padding: 1.5rem 2rem;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    width: 400px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
}

.social-section:hover {
    transform: translateY(-2px);
}

.social-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    margin-bottom: 0.8rem;
}



.social-text {
    text-align: center;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 1.6rem;
    color: var(--clr-accent-strong);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: visible;
}

.social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
    padding: 0;
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    background: rgba(247, 178, 168, 0.9);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid rgba(233, 175, 163, 0.5);
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(233, 175, 163, 0.3),
        0 5px 15px rgba(247, 178, 168, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.social a:hover {
    animation: cuteSocialBounce 1.5s ease-in-out infinite;
    border-color: #f7b2a8;
    box-shadow: 
        0 12px 25px rgba(233, 175, 163, 0.35),
        0 6px 15px rgba(255, 182, 193, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

@keyframes cuteSocialBounce {
    0%, 100% { 
        transform: translateY(0) scale(1.05) rotate(0deg); 
    }
    25% { 
        transform: translateY(-4px) scale(1.08) rotate(2deg); 
    }
    50% { 
        transform: translateY(-6px) scale(1.1) rotate(0deg); 
    }
    75% { 
        transform: translateY(-4px) scale(1.08) rotate(-2deg); 
    }
}

.social a img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.social a:hover img {
    animation: iconFloat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(233, 175, 163, 0.3));
}

@keyframes iconFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(2deg); }
}

/* Animation d'apparition progressive des icônes sociales */
.social a:nth-child(1) { 
    transition-delay: 0.1s; 
    animation: gentleSlideIn 1s ease-out 0.1s both;
}
.social a:nth-child(2) { 
    transition-delay: 0.2s; 
    animation: gentleSlideIn 1s ease-out 0.2s both;
}
.social a:nth-child(3) { 
    transition-delay: 0.3s; 
    animation: gentleSlideIn 1s ease-out 0.3s both;
}
.social a:nth-child(4) { 
    transition-delay: 0.4s; 
    animation: gentleSlideIn 1s ease-out 0.4s both;
}

@keyframes gentleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Effet de rebond au survol des icônes */
.social a:hover img {
    animation: gentleBounce 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes gentleBounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-1deg);
    }
    50% {
        transform: scale(1.08) rotate(2deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
    100% {
        transform: scale(1.08) rotate(0deg);
    }
}

/* Stickers décoratifs */
.sticker-coeur {
    position: absolute;
    top: 120px;
    left: 60px;
    width: 140px;
    z-index: 2;
    transition: var(--transition-fast);
    opacity: 0;
    transform: scale(0.8) rotate(-15deg);
}

#contact.stickers-animate .sticker-coeur {
    animation: gentleStickOn 0.8s ease-out 0.2s forwards;
}

.sticker-coeur:hover {
    transform: translateY(-2px);
}

.sticker-cachet {
    position: absolute;
    top: 60px;
    right: 120px;
    width: 110px;
    z-index: 2;
    transition: var(--transition-fast);
    opacity: 0;
    transform: scale(0.8) rotate(-15deg);
}

#contact.stickers-animate .sticker-cachet {
    animation: gentleStickOn 0.8s ease-out 0.4s forwards;
}

.sticker-cachet:hover {
    transform: translateY(-1px);
}

.sticker-lettre {
    position: absolute;
    bottom: 220px;
    right: 120px;
    width: 200px;
    z-index: 2;
    transition: var(--transition-fast);
    opacity: 0;
    transform: scale(0.8) rotate(-15deg);
}

#contact.stickers-animate .sticker-lettre {
    animation: gentleStickOn 0.8s ease-out 0.6s forwards;
}

.sticker-lettre:hover {
    transform: translateY(-3px);
}

/* Animation d'apparition comme un sticker qu'on colle */
@keyframes gentleStickOn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-15deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Signature */
.signature-absolute {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    width: 200px;
    height: auto;
    display: block;
    z-index: 2;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-fast);
}

.signature-absolute:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    #contact {
        padding: 1.5rem 1rem;
        min-height: 80vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    
    .contact-container {
        margin-top: 2rem;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    .contact-header {
        padding: 2.5rem 2rem;
        border-radius: 22px;
        margin-bottom: 1rem;
    }
    
    .contact-intro {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    .contact__cta {
        max-width: 100%;
        aspect-ratio: auto;
        margin: 1rem 0;
    }
    
    .button {
        padding: 1.2rem 3rem;
        font-size: 1.7rem;
        width: 100%;
        max-width: 400px;
    }
    
    .button-icon {
        font-size: 2.1rem;
    }
    
    .social-section {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 450px;
        padding: 1.5rem 2rem;
        min-height: 90px;
        margin-top: 2.5rem;
        border-radius: 20px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social {
        gap: 1rem;
        padding: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0;
    }
    
    .social a {
        width: 75px;
        height: 55px;
        border-radius: 10px;
    }
    
    .social a img {
        width: 45px;
        height: 45px;
    }
    
    .social-text {
        font-size: 1.5rem;
        font-weight: 600;
        white-space: nowrap;
        text-align: center;
    }
    
    .social a {
        width: 55px;
    }
    

    
    /* Ajuster les stickers sur mobile */
    .sticker-coeur,
    .sticker-cachet,
    .sticker-lettre {
        position: absolute;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 1rem 0.8rem;
        min-height: 70vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    
    .contact-container {
        gap: 2rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .contact-header {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-bottom: 0.5rem;
    }
    
    .contact-intro {
        font-size: 1.7rem;
        line-height: 1.4;
    }
    
    .contact__cta {
        max-width: 100%;
        aspect-ratio: auto;
        margin: 0.5rem 0;
    }
    
    .button {
        padding: 1rem 2.5rem;
        font-size: 1.5rem;
        width: 100%;
        max-width: 350px;
    }
    
    .button-icon {
        font-size: 1.9rem;
    }
    
    .social-section {
        max-width: 380px;
        padding: 1.2rem 1.5rem;
        margin-top: 2rem;
        border-radius: 18px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-intro {
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-bottom: 0.6rem;
    }
    
    .social {
        gap: 0.8rem;
        padding: 0.5rem;
        flex-wrap: nowrap;
        justify-content: center;
        margin-top: 0;
    }
    
    .social a {
        width: 65px;
        height: 50px;
        border-radius: 8px;
    }
    
    .social a img {
        width: 38px;
        height: 38px;
    }
    
    .social-text {
        font-size: 1.1rem;
        font-weight: 600;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        margin: 0;
        line-height: 1.3;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    

    
    /* Ajuster encore plus les stickers sur très petit écran */
    .sticker-coeur {
        position: absolute;
        top: 60px;
        left: 20px;
        width: 80px;
        z-index: 2;
    }
    
    .sticker-cachet {
        position: absolute;
        top: 30px;
        right: 40px;
        width: 70px;
        z-index: 2;
    }
    
    .sticker-lettre {
        position: absolute;
        bottom: 150px;
        right: 40px;
        width: 120px;
        z-index: 2;
    }
    
    /* Désactiver les animations complexes sur mobile */
    .social a:hover {
        animation: none;
        transform: scale(1.02);
    }
    
    .social a:hover img {
        animation: none;
        transform: scale(1.05);
    }
    
    /* Améliorer l'alignement de l'icône de souris et du texte sur mobile */
    .social-text {
        align-self: center;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* Bloquer le scroll de la page quand une modale est ouverte */
body.modal-open {
    overflow: hidden !important;
}

/* =======================
   Responsive Section Projets
   ======================= */
@media (max-width: 768px) {
    #projects {
        height: auto;
        min-height: 100vh;
        background-attachment: scroll;
    }
    
    .projects-layout {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .projects-left {
        width: 100%;
        height: auto;
        position: static;
        gap: 2rem;
        padding: 0 1rem;
        justify-content: flex-start;
        margin-top: 2rem;
    }
    
    .projects-header {
        padding: 2rem 1.5rem;
        min-height: auto;
        margin-bottom: 0.5rem;
    }
    
    .projects-title {
        font-size: 28px;
    }
    
    .projects__intro h2 {
        font-size: 24px;
        margin-bottom: 1rem;
    }
    
    .projects__intro p {
        font-size: 18px;
        margin-bottom: 1rem;
    }
    
    .projects-cover {
        width: 100%;
        margin-left: 0;
        height: auto;
        padding: 1rem;
        gap: 1.5rem;
        overflow-y: visible;
    }
    
    .project__figure {
        max-width: 100%;
        padding: 0.8rem;
    }
    
    .project__figure img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .projects-layout {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .projects-left {
        padding: 0 0.5rem;
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
    
    .projects-header {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .projects-title {
        font-size: 24px;
    }
    
    .projects__intro h2 {
        font-size: 20px;
    }
    
    .projects__intro p {
        font-size: 16px;
    }
    
    .projects-cover {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .project__figure {
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .project__figure img {
        max-height: 350px;
    }
}

/* =======================
   Responsive Modales des Projets
   ======================= */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 20px;
        border-width: 2px;
    }
    

    
    .project-details {
        padding: 2rem 1.5rem;
    }
    
    .project-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .project-header h2 {
        font-size: 2rem;
    }
    
    .project-category {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-description h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project-description h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        margin-top: 1.5rem;
    }
    
    .project-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .project-description ul {
        font-size: 1.1rem;
        padding-left: 1.5rem;
    }
    
    .project-description li::before {
        left: -1.2rem;
    }
    
    .project-maquette h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .maquette-full {
        max-height: 60vh;
        border-radius: 15px;
        padding: 0.8rem;
    }
    
    .project-links {
        margin-top: 1.5rem;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .project-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 15px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }
    
    .close-icon {
        width: 18px;
        height: 18px;
    }
    

    
    .project-details {
        padding: 1.5rem 1rem;
    }
    
    .project-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .project-header h2 {
        font-size: 1.8rem;
    }
    
    .project-category {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
        border-radius: 20px;
    }
    
    .project-content {
        gap: 1.5rem;
    }
    
    .project-description h3 {
        font-size: 1.3rem;
    }
    
    .project-description h4 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
    }
    
    .project-description p {
        font-size: 0.95rem;
    }
    
    .project-description ul {
        font-size: 1rem;
        padding-left: 1.2rem;
    }
    
    .project-description li::before {
        left: -1rem;
    }
    
    .project-maquette h3 {
        font-size: 1.3rem;
    }
    
    .maquette-full {
        max-height: 50vh;
        border-radius: 12px;
        padding: 0.6rem;
    }
    
    .project-links {
        margin-top: 1.2rem;
        gap: 0.6rem;
        flex-direction: column;
        align-items: center;
    }
    
    .project-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* =======================
   Responsive Zoom des Maquettes
   ======================= */
@media (max-width: 768px) {
    .maquette-zoom-content {
        max-width: 98vw;
        max-height: 98vh;
        border-width: 2px;
    }
    
    .maquette-zoom-img {
        max-width: 90%;
        max-height: 80vh;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .maquette-zoom-content {
        max-width: 99vw;
        max-height: 99vh;
        border-width: 1px;
    }
    
    .maquette-zoom-img {
        max-width: 95%;
        max-height: 75vh;
        object-fit: contain;
    }
    
    .maquette-zoom-header {
        padding: 0.5rem 1rem;
    }
    
    .zoom-control {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .maquette-zoom-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}



/* =======================
   Responsive Section About
   ======================= */
@media (max-width: 768px) {
    #about {
        padding: 1rem 1rem;
        min-height: 70vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .about__content {
        flex-direction: column;
        width: 90%;
        gap: 2rem;
        margin-top: 2vh;
        align-items: center;
    }
    
    .about__text {
        flex: none;
        width: 100%;
        font-size: 20px;
        line-height: 1.8;
        max-width: 100%;
        text-align: center;
    }
    
    .about__text p {
        font-size: 20px;
        margin-bottom: 2rem;
    }
    
    .about__portrait {
        width: 100%;
        max-width: 400px;
        order: -1;
    }
    
    .about__portrait img {
        max-width: 100%;
    }
    
    .about__noeud {
        width: 100%;
        max-width: 600px;
        margin: 1.5rem auto 0 auto;
    }
}

@media (max-width: 480px) {
    #about {
        padding: 1.5rem 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .about__content {
        width: 95%;
        gap: 1.5rem;
        margin-top: 1vh;
    }
    
    .about__text {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .about__text p {
        font-size: 18px;
        margin-bottom: 1.5rem;
    }
    
    .about__portrait {
        max-width: 350px;
    }
    
    .about__noeud {
        max-width: 500px;
        margin: 1rem auto 0 auto;
    }
    
    .handdrawn-uxui strong {
        white-space: normal;
        display: inline;
    }
    
    .pencil-underline {
        height: 4px;
        margin-top: 6px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Optimisations spécifiques pour la section about sur grands écrans */
    .about__text {
        max-width: 1000px;
    }
    
    .pencil-underline {
        max-width: 400px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .handdrawn-uxui strong {
        white-space: nowrap;
        display: inline-block;
        font-size: 20px;
    }
    
    .pencil-underline {
        height: 5px;
        margin-top: 7px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .handdrawn-uxui strong {
        white-space: normal;
        display: inline;
        font-size: 16px;
    }
    
    .pencil-underline {
        height: 3px;
        margin-top: 4px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 360px) {
    .handdrawn-uxui strong {
        font-size: 14px;
    }
    
    .pencil-underline {
        height: 2px;
        margin-top: 3px;
        max-width: 180px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .close-icon {
        width: 16px;
        height: 16px;
    }
}

/* =======================
   Responsive Global - Tous les écrans
   ======================= */

/* Très grands écrans (4K, ultra-wide) */
@media (min-width: 1920px) {
    .hero {
        max-width: 1400px;
        padding: 8rem 0;
    }
    
    .hero__name {
        font-size: 110px;
    }
    
    .hero__intro {
        font-size: 32px;
    }
    
    .hero__role {
        font-size: 32px;
        padding: 3rem;
    }
    
    .projects-layout {
        max-width: 1800px;
        gap: 4rem;
    }
    
    .modal-content {
        max-width: 1800px;
    }
    
    .modal-close {
        width: 70px;
        height: 70px;
        top: 2.5rem;
        right: 2.5rem;
    }
    
    .close-icon {
        width: 32px;
        height: 32px;
    }
    
    .about__content {
        max-width: 1800px;
        gap: 6rem;
        padding: 4rem 3rem;
        width: 95%;
    }
    
    .about__text {
        font-size: 32px;
        line-height: 1.7;
        flex: 1;
        min-width: 0;
    }
    
    .about__text p {
        margin-bottom: 2.5rem;
        max-width: 100%;
    }
    
    .about__portrait {
        max-width: 650px;
        flex-shrink: 0;
    }
    
    .about__portrait img {
        max-width: 650px;
        width: 100%;
        height: auto;
    }
    
    /* Optimiser l'espacement de la section about */
    #about {
        padding: 2rem 1rem;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }
    
    /* Optimiser le background de la section contact sur très grands écrans */
    #contact {
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        height: auto;
        background-attachment: scroll;
        padding: 8rem 2rem;
    }
    
    .contact-container {
        max-width: 1200px;
        gap: 4rem;
        margin-top: 4rem;
    }
    
    .contact-intro {
        font-size: 32px;
        line-height: 1.6;
        margin-bottom: 3rem;
    }
    
    .button {
        font-size: 24px;
        padding: 1.5rem 3rem;
        border-radius: 50px;
    }
    
    .social-section {
        bottom: 3rem;
        left: 3rem;
    }
    
    .social-text {
        font-size: 20px;
    }
    
    .social a {
        border-radius: 12px;
    }
    
    .social a img {
        width: 55px;
        height: 55px;
    }
    
    /* Optimisations spécifiques pour la section contact */
    .contact-header {
        padding: 3rem 3rem;
        margin-bottom: 2rem;
    }
    
    .contact__cta {
        margin: 2rem 0;
    }
    
    /* Réduire l'espacement vertical excessif */
    #contact {
        min-height: 90vh;
        justify-content: center;
    }
}





/* Écrans ultra-larges (2560px et plus) */
@media (min-width: 2560px) {
    .hero {
        max-width: 1600px;
        padding: 8rem 0;
    }
    
    .hero__name {
        font-size: 120px;
    }
    
    .hero__intro {
        font-size: 36px;
    }
    
    .hero__role {
        font-size: 36px;
        padding: 3.5rem;
    }
    
    /* Optimiser le background de la section contact sur écrans 4K */
    #contact {
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        height: auto;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
    
    .contact-container {
        max-width: 1400px;
        gap: 5rem;
        margin-top: 3rem;
    }
    
    .contact-header {
        padding: 5rem 4rem;
        border-radius: 35px;
    }
    
    .contact-intro {
        font-size: 4rem;
        line-height: 1.2;
    }
    
    .button {
        padding: 3rem 6rem;
        font-size: 2.5rem;
        border-radius: 50px;
    }
    
    .button-icon {
        font-size: 3rem;
    }
    
    .social-section {
        max-width: 700px;
        padding: 3rem 4rem;
        bottom: 4rem;
        left: 4rem;
        border-radius: 30px;
    }
    
    .social-text {
        font-size: 2.5rem;
    }
    
    .social a {
        width: 100px;
        height: 75px;
        border-radius: 15px;
    }
    
    .social a img {
        width: 60px;
        height: 60px;
    }
    
    .role-icon {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .projects-layout {
        max-width: 2000px;
        gap: 5rem;
    }
    
    .projects-left {
        width: 45%;
        padding: 0 2rem;
        padding-top: 0.5rem;
        gap: 5rem;
    }
    
    .projects-cover {
        width: 55%;
        padding: 2rem;
    }
    
    .projects-header {
        padding: 1.5rem 1.5rem;
        margin-bottom: 0;
        min-height: auto;
    }
    
    .projects-title {
        font-size: 48px;
        margin-bottom: 0.5rem;
    }
    
    .projects__intro {
        gap: 4rem;
    }
    
    .projects__intro h2 {
        font-size: 36px;
        margin-bottom: 3rem;
        line-height: 1.4;
    }
    
    .projects__intro p {
        font-size: 24px;
        margin-bottom: 3.5rem;
        line-height: 2;
    }
    
    .modal-content {
        max-width: 2000px;
        border-radius: 40px;
        border-width: 4px;
    }
    

    
    .project-header h2 {
        font-size: 3.5rem;
    }
    
    .project-category {
        font-size: 1.6rem;
        padding: 1rem 2.5rem;
    }
    
    .project-description h3 {
        font-size: 2.4rem;
    }
    
    .project-description h4 {
        font-size: 1.6rem;
    }
    
    .project-description p {
        font-size: 1.3rem;
    }
    
    .project-description ul {
        font-size: 1.4rem;
    }
    
    .about__content {
        max-width: 1800px;
        gap: 6rem;
    }
    
    .about__text {
        font-size: 32px;
        line-height: 2.4;
    }
    
    .about__text p {
        font-size: 32px;
        margin-bottom: 4rem;
    }
    
    .about__portrait {
        max-width: 600px;
    }
    
    .about__noeud {
        width: 1000px;
    }
    
    .contact-container {
        max-width: 1000px;
    }
    
    .contact-intro {
        font-size: 3rem;
    }
    
    .button {
        padding: 2rem 4.5rem;
        font-size: 2rem;
    }
    
    .button-icon {
        font-size: 2.5rem;
    }
    
    .social-section {
        max-width: 500px;
        padding: 2rem 2.5rem;
    }
    
    .social-text {
        font-size: 2rem;
    }
    
    .social a {
        width: 85px;
        height: 65px;
        border-radius: 10px;
    }
    
    .social a img {
        width: 50px;
        height: 50px;
    }
    
    .sticker-coeur {
        width: 180px;
        top: 150px;
        left: 80px;
    }
    
    .sticker-cachet {
        width: 140px;
        top: 80px;
        right: 150px;
    }
    
    .sticker-lettre {
        width: 250px;
        bottom: 280px;
        right: 150px;
    }
    
    .signature-absolute {
        width: 250px;
        right: 4rem;
        bottom: 4rem;
    }
    
    /* Ajuster les espacements généraux */
    section,
    header,
    footer {
        padding: 6rem 2rem;
    }
    
    /* Header spécifique */
    header {
        padding: 6rem 2rem;
    }
    
    /* Section projets */
    #projects {
        padding: 0;
    }
    
    /* Section about */
    #about {
        padding: 4rem 0;
    }
    
    /* Section contact */
    #contact {
        padding: 0 3rem;
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        padding-top: 2rem;
        position: relative;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    .contact-container {
        max-width: 1200px;
        margin: 0 auto;
        gap: 3rem;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        justify-content: center;
    }
    
    .contact-header {
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    
    .contact-header {
        padding: 4rem 3rem;
        margin-bottom: 0;
    }
    
    .contact-intro {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    .contact__cta {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .button {
        padding: 2.5rem 5rem;
        font-size: 2.2rem;
        border-radius: 40px;
    }
    
    .button-icon {
        font-size: 2.8rem;
    }
    
    .social-section {
        max-width: 600px;
        bottom: 3rem;
        left: 3rem;
    }
    
    .social-text {
        font-size: 2.2rem;
    }
    
    .social a {
        width: 90px;
        height: 70px;
        border-radius: 12px;
    }
    
    .social a img {
        width: 55px;
        height: 55px;
    }
    

    
    /* Ajuster les espacements généraux */
    section,
    header,
    footer {
        padding: 6rem 2rem;
    }
    
    /* Header spécifique */
    header {
        padding: 6rem 2rem;
    }
    
    /* Section projets */
    #projects {
        padding: 0;
    }
    
    /* Section about */
    #about {
        padding: 4rem 0;
    }
}

/* Grands écrans (laptops, desktops) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .hero {
        max-width: 1100px;
    }
    
    .projects-layout {
        max-width: 1400px;
    }
    
    .about__content {
        max-width: 1200px;
    }
    
    .social-section {
        bottom: 3rem;
        left: 3rem;
    }
    
    .social-text {
        font-size: 20px;
    }
    
    .social a {
        border-radius: 12px;
    }
    
    .social a img {
        width: 55px;
        height: 55px;
    }
}







/* Tablets portrait (déjà couvert par max-width: 768px) */
/* Mobile landscape (déjà couvert par max-width: 768px) */
/* Mobile portrait (déjà couvert par max-width: 480px) */

/* Écrans moyens (tablets portrait et landscape) */
@media (min-width: 481px) and (max-width: 768px) {
    #contact {
        padding: 2rem 1.5rem;
        min-height: 75vh;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    .contact-container {
        max-width: 600px;
        gap: 3rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-header {
        padding: 3rem 2.5rem;
        border-radius: 25px;
        margin-bottom: 1rem;
    }
    
    .contact-intro {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .contact__cta {
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .button {
        padding: 1.5rem 3.5rem;
        font-size: 1.8rem;
        max-width: 450px;
    }
    
    .button-icon {
        font-size: 2.2rem;
    }
    
    .social-section {
        max-width: 420px;
        padding: 2rem 2.5rem;
        margin-top: 3rem;
        border-radius: 22px;
    }
    
    .social-text {
        font-size: 1.6rem;
    }
    
    .social a {
        width: 70px;
        height: 55px;
        border-radius: 8px;
    }
    
    .social a img {
        width: 40px;
        height: 40px;
    }
}

/* Très petits écrans (smartphones compacts) */
@media (max-width: 375px) {
    #about {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero {
        width: 99vw;
        padding: 1.5rem 0.5rem;
    }
    
    .hero__intro {
        font-size: 16px;
    }
    
    .hero__name {
        font-size: 32px;
    }
    
    .hero__role {
        width: 98%;
        padding: 1rem;
        font-size: 16px;
    }
    
    .role-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    
    .header-menu {
        top: 0.8rem;
        right: 0.6rem;
    }
    
    .menu-toggle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
    
    .color-picker {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .color-btn {
        width: 1.6rem;
        height: 1.6rem;
    }
    
    .projects-layout {
        padding: 0.3rem;
        gap: 0.8rem;
    }
    
    .projects-left {
        padding: 0 0.3rem;
        gap: 1.2rem;
    }
    
    .projects-header {
        padding: 1.2rem 0.8rem;
    }
    
    .projects-title {
        font-size: 20px;
    }
    
    .projects__intro h2 {
        font-size: 18px;
    }
    
    .projects__intro p {
        font-size: 14px;
    }
    
    .modal-content {
        width: 99%;
        max-width: 99vw;
        border-radius: 12px;
    }
    
    .project-details {
        padding: 1.2rem 0.8rem;
    }
    
    .project-header h2 {
        font-size: 1.6rem;
    }
    
    .about__content {
        width: 98%;
        gap: 1.2rem;
    }
    
    .about__text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .about__portrait {
        max-width: 300px;
    }
    
    .about__noeud {
        max-width: 400px;
    }
    
    /* Ajustements contact pour très petits écrans */
    #contact {
        padding: 0.8rem 0.5rem;
        min-height: 65vh;
        background-size: cover;
        background-position: center;
    }
    
    .contact-container {
        gap: 1.5rem;
        margin-top: 1rem;
        padding: 0 0.3rem;
    }
    
    .contact-header {
        padding: 1.8rem 1.2rem;
        border-radius: 18px;
        margin-bottom: 0.5rem;
    }
    
    .contact-intro {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .contact__cta {
        margin: 0.5rem 0;
    }
    
    .button {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
        max-width: 300px;
    }
    
    .button-icon {
        font-size: 1.7rem;
    }
    
    .social-section {
        max-width: 320px;
        padding: 1rem 1.2rem;
        margin-top: 1.5rem;
        border-radius: 16px;
    }
    
    .social a {
        width: 60px;
        height: 45px;
        border-radius: 6px;
    }
    
    .social a img {
        width: 35px;
        height: 35px;
    }
    
    .social-text {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    .sticker-coeur {
        top: 40px;
        left: 10px;
        width: 60px;
    }
    
    .sticker-cachet {
        top: 20px;
        right: 25px;
        width: 50px;
    }
    
    .sticker-lettre {
        bottom: 100px;
        right: 25px;
        width: 80px;
    }
}

/* =======================
   Responsive Stickers Contact
   ======================= */
@media (max-width: 768px) {
    #contact {
        height: auto;
        min-height: 70vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .sticker-coeur {
        position: absolute;
        top: 120px;
        left: 20px;
        width: 90px;
        transform: scale(0.9) rotate(-8deg);
        z-index: 10;
    }
    
    .sticker-cachet {
        position: absolute;
        top: 80px;
        right: 20px;
        width: 70px;
        transform: scale(0.9) rotate(8deg);
        z-index: 10;
    }
    
    .sticker-lettre {
        position: absolute;
        top: 250px;
        right: 20px;
        width: 120px;
        transform: scale(0.9) rotate(-5deg);
        z-index: 10;
    }
    

    
    /* Optimiser les animations sur mobile */
    .sticker-coeur:hover,
    .sticker-cachet:hover,
    .sticker-lettre:hover {
        transform: scale(0.85) rotate(-5deg);
        transition: transform 0.3s ease;
    }
    
    #contact.stickers-animate .sticker-coeur,
    #contact.stickers-animate .sticker-cachet,
    #contact.stickers-animate .sticker-lettre {
        animation-duration: 0.8s;
    }
}

@media (max-width: 480px) {
    .sticker-coeur {
        top: 80px;
        left: 5px;
        width: 75px;
        transform: scale(0.85) rotate(-6deg);
        z-index: 10;
    }
    
    .sticker-cachet {
        top: 50px;
        right: 5px;
        width: 60px;
        transform: scale(0.85) rotate(6deg);
        z-index: 10;
    }
    
    .sticker-lettre {
        top: 200px;
        right: 15px;
        width: 100px;
        transform: scale(0.85) rotate(-4deg);
        z-index: 10;
    }
    

    
    /* Désactiver les animations complexes sur très petit écran */
    .sticker-coeur:hover,
    .sticker-cachet:hover,
    .sticker-lettre:hover {
        transform: scale(0.75) rotate(-5deg);
        transition: transform 0.2s ease;
    }
    
    #contact.stickers-animate .sticker-coeur,
    #contact.stickers-animate .sticker-cachet,
    #contact.stickers-animate .sticker-lettre {
        animation-duration: 0.6s;
    }
}

@media (max-width: 375px) {
    .sticker-coeur {
        top: 60px;
        left: 5px;
        width: 65px;
        transform: scale(0.8) rotate(-5deg);
        z-index: 10;
    }
    
    .sticker-cachet {
        top: 40px;
        right: 5px;
        width: 50px;
        transform: scale(0.8) rotate(5deg);
        z-index: 10;
    }
    
    .sticker-lettre {
        top: 180px;
        right: 10px;
        width: 85px;
        transform: scale(0.8) rotate(-3deg);
        z-index: 10;
    }
    

    
    /* Animations ultra-simples sur très petit écran */
    .sticker-coeur:hover,
    .sticker-cachet:hover,
    .sticker-lettre:hover {
        transform: scale(0.65) rotate(-3deg);
        transition: transform 0.15s ease;
    }
    
    #contact.stickers-animate .sticker-coeur,
    #contact.stickers-animate .sticker-cachet,
    #contact.stickers-animate .sticker-lettre {
        animation-duration: 0.4s;
    }
}

@media (max-width: 320px) {
    .sticker-coeur {
        top: 50px;
        left: 3px;
        width: 55px;
        transform: scale(0.75) rotate(-4deg);
        z-index: 10;
    }
    
    .sticker-cachet {
        top: 30px;
        right: 3px;
        width: 45px;
        transform: scale(0.75) rotate(4deg);
        z-index: 10;
    }
    
    .sticker-lettre {
        top: 150px;
        right: 8px;
        width: 70px;
        transform: scale(0.75) rotate(-2deg);
        z-index: 10;
    }
    
    /* Désactiver complètement les animations sur très petit écran */
    .sticker-coeur:hover,
    .sticker-cachet:hover,
    .sticker-lettre:hover {
        transform: scale(0.8) rotate(-2deg);
        transition: transform 0.1s ease;
    }
    
    #contact.stickers-animate .sticker-coeur,
    #contact.stickers-animate .sticker-cachet,
    #contact.stickers-animate .sticker-lettre {
        animation-duration: 0.3s;
    }
}

/* =======================
   Responsive Signature Contact
   ======================= */
@media (max-width: 768px) {
    .signature-absolute {
        position: relative;
        right: auto;
        bottom: auto;
        width: 120px;
        z-index: 10;
        margin: 2rem auto 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .signature-absolute {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100px;
        z-index: 10;
        margin: 1.5rem auto 0 auto;
        display: block;
    }
}

@media (max-width: 375px) {
    .signature-absolute {
        position: relative;
        right: auto;
        bottom: 0.8rem;
        width: 90px;
        z-index: 10;
        margin: 1.2rem auto 0 auto;
        display: block;
    }
}

@media (max-width: 320px) {
    .signature-absolute {
        position: relative;
        right: auto;
        bottom: auto;
        width: 80px;
        z-index: 10;
        margin: 1rem auto 0 auto;
        display: block;
    }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
    .header-menu {
        top: 0.6rem;
        right: 0.4rem;
    }
    
    .menu-toggle {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.8rem;
    }
    
    .color-picker {
        top: 0.4rem;
        left: 0.4rem;
        padding: 0.3rem;
        gap: 0.3rem;
    }
    
    .color-btn {
        width: 1.4rem;
        height: 1.4rem;
    }
}

/* Écrans mobiles moyens (321px à 480px) */
@media (min-width: 321px) and (max-width: 480px) {
    .header-menu {
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .menu-toggle {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 0.95rem;
    }
    
    .color-picker {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .color-btn {
        width: 1.6rem;
        height: 1.6rem;
    }
}

/* Tablettes et écrans moyens (481px à 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header-menu {
        top: 1.2rem;
        right: 1.2rem;
    }
    
    .menu-toggle {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1.1rem;
    }
    
    .color-picker {
        top: 0.8rem;
        left: 0.8rem;
        padding: 0.7rem;
        gap: 0.6rem;
    }
    
    .color-btn {
        width: 1.8rem;
        height: 1.8rem;
    }
}