/* ============================================
   SIGN-VOX.CH - STYLES COMPLETS
   Portfolio Anas LAHRAS
   ============================================ */

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

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

:root {
    /* COULEURS PRIMAIRES */
    --primary-blue: #0066FF;
    --primary-dark: #0052CC;
    
    /* TEXTES */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* BACKGROUNDS */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    
    /* ACCENTS */
    --accent-success: #00B67A;
    
    /* TYPOGRAPHIE */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    
    /* ESPACEMENTS */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* TRANSITIONS */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   HEADER STICKY
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 18px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header__nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.header__link {
    font-size: 16px;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-medium);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-medium);
}

.header__link:hover,
.header__link.active {
    color: var(--primary-blue);
}

.header__link:hover::after,
.header__link.active::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    padding-top: 80px;
}

.hero__container {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero__name {
    font-size: 32px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* HERO TITLE AVEC EFFET LAMPE TORCHE (TECHNIQUE REINOSTUDIO) */
.hero__title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
    cursor: pointer;
    padding: 10px;
}

.hero__title-front,
.hero__title-back {
    font-size: 36px;
    font-weight: var(--weight-bold);
    line-height: 1.3;
    margin: 0;
}

.hero__title-front {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.hero__title-back {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--primary-blue);
    white-space: nowrap;
    
    /* Background blanc pour masquer le texte noir en dessous */
    background: var(--bg-white);
    padding: 0 20px;
    
    /* La magie : radial-gradient mask avec variable CSS --size */
    --size: 30px;
    -webkit-mask-image: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        #000 0%,
        #000 var(--size),
        transparent var(--size)
    );
    mask-image: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        #000 0%,
        #000 var(--size),
        transparent var(--size)
    );
}

.hero__hint {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    font-style: italic;
}

.hero__intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero__cta {
    margin-bottom: 60px;
}

.scroll-indicator {
    font-size: 24px;
    color: var(--text-light);
    animation: bounce 2s infinite;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: color var(--transition-medium);
}

.scroll-indicator:hover {
    color: var(--primary-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    gap: 8px;
    background: var(--primary-blue);
    color: var(--bg-white);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    gap: 8px;
    background: transparent;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-tertiary:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateX(4px);
}

/* ============================================
   SECTIONS LAYOUT
   ============================================ */

.section {
    padding: 120px 0;
}

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

.section__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

.section__title {
    font-size: 40px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

.section__intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

/* ============================================
   INTRODUCTION TEXT
   ============================================ */

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

/* ============================================
   CV MOCKUP
   ============================================ */

.cv-mockup-wrapper {
    text-align: center;
}

.cv-mockup-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cv-mockup-link:hover {
    transform: translateY(-4px);
}

.cv-mockup {
    position: relative;
    width: 600px;
    height: 800px;
    margin: 0 auto 24px;
    background: var(--bg-white);
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.cv-mockup:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
    transition: all var(--transition-medium);
}

.cv-mockup:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.cv-mockup__content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.cv-mockup__header h2 {
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cv-mockup__contact {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cv-mockup__location {
    font-size: 14px;
    color: var(--text-light);
}

.cv-mockup__divider {
    height: 1px;
    background: #E0E0E0;
    margin: 24px 0;
}

.cv-mockup__section h3 {
    font-size: 16px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cv-mockup__item {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.cv-mockup__number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    margin-right: 8px;
}

.cv-mockup__detail {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    margin-left: 32px;
}

.cv-mockup__hint {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cv-mockup__cta {
    margin-top: 0;
}

/* ============================================
   GRILLE PROJETS
   ============================================ */

.grid-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ============================================
   CARD PROJECT
   ============================================ */

.card-project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    transition: all var(--transition-medium);
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    position: relative;
}

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

.card-project__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-project__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-project__title {
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: 1.3;
}

.card-project__description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.card-project__footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-project__meta {
    font-size: 14px;
    color: var(--text-light);
}

.card-project__link {
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-project__link:hover {
    color: var(--primary-dark);
}

/* ============================================
   STRATES (COMPÉTENCES)
   ============================================ */

.strates-container {
    max-width: 900px;
    margin: 0 auto;
}

.strate {
    padding: 40px;
    margin-bottom: 32px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.strate.visible {
    opacity: 1;
    transform: translateY(0);
}

.strate__title {
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.strate__content {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.strate__content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.strate__content li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.strate__content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: var(--weight-bold);
}

/* ============================================
   MÉDIAS (AUDIO + VIDÉO)
   ============================================ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.card-media {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.card-media__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card-media__title {
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-media__subtitle {
    font-size: 18px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-media__description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.card-media__meta {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

/* Audio Player Placeholder */
.audio-player-placeholder {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
}

.audio-player-placeholder__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-player-placeholder__play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--bg-white);
    border: none;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.audio-player-placeholder__progress {
    flex: 1;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    position: relative;
}

.audio-player-placeholder__progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-blue);
    border-radius: 2px;
}

.audio-player-placeholder__time {
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.video-placeholder__play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.video-placeholder__play:hover {
    transform: scale(1.1);
    background: var(--bg-white);
}

/* ============================================
   VIDEO PLAYERS (HTML5, 360°, EMBED)
   ============================================ */

/* Video Player HTML5 */
.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin: 24px 0;
    background: #000;
    outline: none;
}

.video-player::-webkit-media-controls-panel {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* Video 360° Container */
.video-360-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    margin: 24px 0;
    overflow: hidden;
}

/* Video Embed (YouTube/Vimeo) */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Video 360° */
@media (max-width: 768px) {
    .video-360-container {
        height: 300px;
    }
}

/* ============================================
   CTA GRID & CARDS
   ============================================ */

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.card-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    gap: 20px;
    background: var(--bg-white);
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.card-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-cta--email:hover {
    border-color: var(--primary-blue);
}

.card-cta--whatsapp:hover {
    border-color: var(--accent-success);
}

.card-cta__icon {
    font-size: 48px;
}

.card-cta__title {
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.card-cta__contact {
    font-size: 16px;
    color: var(--text-secondary);
}

.card-cta__button {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand h3 {
    font-size: 18px;
    font-weight: var(--weight-bold);
    margin-bottom: 8px;
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer__column h4 {
    font-size: 14px;
    font-weight: var(--weight-semibold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: 12px;
}

.footer__column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer__column a:hover {
    color: var(--bg-white);
}

.footer__bottom {
    padding-top: 30px;
    text-align: center;
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE - TABLETTE (768px - 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .header__container,
    .section__container,
    .footer__container {
        padding: 0 40px;
    }
    
    .hero__name {
        font-size: 28px;
    }
    
    .hero__title-front,
    .hero__title-back {
        font-size: 30px;
    }
    
    .section__title {
        font-size: 32px;
    }
    
    .grid-projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .cv-mockup {
        width: 500px;
        height: 700px;
        padding: 32px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (< 768px)
   ============================================ */

@media (max-width: 768px) {
    .header__container,
    .section__container,
    .footer__container {
        padding: 0 20px;
    }
    
    .header__nav {
        gap: 20px;
    }
    
    .header__link {
        font-size: 14px;
    }
    
    .hero__name {
        font-size: 24px;
    }
    
    .hero__title-front,
    .hero__title-back {
        font-size: 24px;
    }
    
    .hero__title-wrapper {
        padding: 16px 24px;
    }
    
    /* Désactiver l'effet lampe torche sur mobile - afficher les deux textes */
    .hero__title-back {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        -webkit-mask-image: none;
        mask-image: none;
    }
    
    .hero__hint {
        display: none; /* Cacher le hint sur mobile */
    }
    
    .hero__intro {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section__title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .section__intro {
        font-size: 16px;
    }
    
    .grid-projects {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cv-mockup {
        width: 100%;
        max-width: 400px;
        height: 600px;
        padding: 24px;
    }
    
    .media-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* ============================================
   YOUTUBE EMBED 360° (INTÉGRÉ SUR LE SITE)
   ============================================ */

.youtube-embed-container {
    width: 100%;
    margin: 20px 0;
}

.youtube-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-embed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.youtube-embed-badge__icon {
    font-size: 18px;
}

.youtube-embed-badge__text {
    letter-spacing: 0.5px;
}

/* Animation au hover du container */
.card-media:hover .youtube-embed-wrapper {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all var(--transition-medium);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .youtube-embed-wrapper {
        border-radius: 8px;
    }
    
    .youtube-embed-badge {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .youtube-embed-badge__icon {
        font-size: 16px;
    }
}

/* ============================================
   CORRECTIONS RESPONSIVE MOBILE ADDITIONNELLES
   ============================================ */

@media (max-width: 768px) {
    /* Empêcher débordement horizontal */
    body {
        overflow-x: hidden;
    }
    
    /* Header responsive */
    .header__logo {
        font-size: 18px;
    }
    
    .header__nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hero mobile optimisé */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero__title-wrapper {
        margin-bottom: 24px;
    }
    
    .hero__title-front,
    .hero__title-back {
        font-size: 22px;
        line-height: 1.4;
    }
    
    /* Boutons responsive */
    .btn-primary {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Cards projets mobile */
    .card-project {
        margin-bottom: 24px;
    }
    
    .card-project__image {
        height: 200px;
    }
    
    .card-project__content {
        padding: 20px;
    }
    
    .card-project__title {
        font-size: 20px;
    }
    
    .card-project__description {
        font-size: 14px;
    }
    
    /* CV Mockup mobile */
    .cv-mockup-wrapper {
        padding: 20px 0;
    }
    
    .cv-mockup {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 500px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer__brand h3 {
        font-size: 24px;
    }
    
    .footer__brand p {
        font-size: 14px;
    }
    
    .footer__column h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer__column ul li {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* Très petits mobiles (< 375px) */
@media (max-width: 374px) {
    .hero__title-front,
    .hero__title-back {
        font-size: 20px;
    }
    
    .section__title {
        font-size: 22px;
    }
    
    .card-project__title {
        font-size: 18px;
    }
}

/* ============================================
   CV MODAL
   ============================================ */

.cv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cv-modal.active {
    display: flex;
}

.cv-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cv-modal.active .cv-modal__overlay {
    opacity: 1;
}

.cv-modal__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-white);
    border-radius: 0;
    overflow-y: auto;
    box-shadow: none;
    transform: scale(0.98);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-modal.active .cv-modal__container {
    transform: scale(1);
    opacity: 1;
}

.cv-modal__close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cv-modal__close:hover {
    background: var(--primary-blue);
    transform: rotate(90deg);
}

/* Ajustements pour le contenu CV à l'intérieur du modal */
.cv-modal .cv-interactive {
    padding: 60px 40px;
    background: transparent;
    min-height: 100vh;
}

.cv-modal .cv-interactive__container {
    max-width: 100%;
}

