/* ==========================================================================
   PORTFOLIO JASON AURE - STYLE PRINCIPAL
   Optimisé pour performance, fluidité GPU et responsive design
   ========================================================================== */

/* --- VARIABLES & DESIGN TOKENS --- */
:root {
    --bg-deep: #080b14;
    --text-white: #eef2f5;
    --text-muted: #aabbd1;
    --accent-blue: #a0c4ff;
    --accent-glow: rgba(160, 196, 255, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --margin-frame: 40px;
    --card-radius: 10px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: fine) {
    * { cursor: none !important; }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SÉLECTEUR DE LANGUE (FR / EN) --- */
.lang-switcher {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 90;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(160, 196, 255, 0.2);
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 20px;
        right: 20px;
        padding: 3px;
    }
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* --- CANVAS 3D ARRIÈRE-PLAN --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 60% 50%, #1a2333 0%, #05070a 100%);
    user-select: none;
    pointer-events: auto;
}

/* --- COUCHE D'INTERFACE (UI) --- */
.ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.content-section {
    position: absolute;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- TYPOGRAPHIE --- */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 6rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.0;
    background: linear-gradient(135deg, #ffffff 0%, #a0c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

h2::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-blue);
}

.hero-container {
    width: 45%;
    margin-left: 8vw;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

p.description {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    max-width: 500px;
    font-weight: 300;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

.cv-link {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

.cv-link strong {
    border-bottom: none !important;
    transition: color 0.3s ease;
}

.cv-link:hover strong {
    color: var(--accent-blue);
}

/* --- SECTION ACCUEIL & TIMELINE --- */
#sec-0 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    pointer-events: auto;
    padding: 0;
    box-sizing: border-box;
}

#sec-0::-webkit-scrollbar {
    display: none;
}

.hero-full-page {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-section {
    position: relative;
    padding: 100px 0 400px 0;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 150px;
    align-items: center;
    pointer-events: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.timeline-zigzag {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 40%;
    opacity: 0.2;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    margin-left: 10%;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-right: 10%;
    text-align: left;
    padding-left: 60px;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    margin: 0;
    color: #ffffff;
}

.timeline-role {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin: 5px 0;
    font-weight: 600;
}

.timeline-date {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- SHAPE REVEAL & DRAG & DROP UNIVERS --- */
.reveal-shape-container {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.reveal-shape {
    width: 100px;
    height: 100px;
    background: rgba(160, 196, 255, 0.05);
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(160, 196, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout paint;
}

.drag-wrapper {
    position: absolute;
    width: 200px;
    height: auto;
    cursor: grab;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    touch-action: none;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.drag-wrapper.centered { left: 50%; top: 50%; }
.drag-wrapper.offset-1 { left: 78%; top: 68%; }
.drag-wrapper.offset-2 { left: 22%; top: 32%; }
.drag-wrapper.offset-3 { left: 14%; top: 78%; }
.drag-wrapper.offset-4 { left: 84%; top: 22%; }
.drag-wrapper.offset-5 { left: 54%; top: 16%; }
.drag-wrapper.offset-6 { left: 38%; top: 84%; }
.drag-wrapper.offset-7 { left: 90%; top: 52%; }

#dragAdult  { width: 262px; margin-left: -131px; margin-top: -159px; z-index: 17; }
#dragJinbei { width: 326px; margin-left: -163px; margin-top: -108px; z-index: 13; }
#dragGoF    { width: 418px; margin-left: -209px; margin-top: -106px; z-index: 10; }
#dragChild  { width: 199px; margin-left: -99.5px; margin-top: -110px; z-index: 12; }
#dragPinpin { width: 196px; margin-left: -98px; margin-top: -87px; z-index: 15; }
#dragPiano  { width: 150px; margin-left: -75px; margin-top: -131.5px; z-index: 14; }
#dragCanon  { width: 218px; margin-left: -109px; margin-top: -132px; z-index: 11; }
#dragMusic  { width: 294px; margin-left: -147px; margin-top: -112px; z-index: 16; }

@media (max-width: 768px) {
    #dragAdult  { width: 131px; margin-left: -65.5px; margin-top: -79.5px; }
    #dragJinbei { width: 163px; margin-left: -81.5px; margin-top: -54px; }
    #dragGoF    { width: 209px; margin-left: -104.5px; margin-top: -53px; }
    #dragChild  { width: 100px; margin-left: -50px; margin-top: -55px; }
    #dragPinpin { width: 98px; margin-left: -49px; margin-top: -43.5px; }
    #dragPiano  { width: 75px; margin-left: -37.5px; margin-top: -65.75px; }
    #dragCanon  { width: 109px; margin-left: -54.5px; margin-top: -66px; }
    #dragMusic  { width: 147px; margin-left: -73.5px; margin-top: -56px; }
    .reveal-shape {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(14, 20, 36, 0.85) !important;
    }
    .drag-img-content {
        filter: none !important;
    }
}

.drag-img-content {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Grossissement au clic / appui et retour fluide à la taille normale au relâchement (contrôlé par groupe ou individuel via .is-pressed) */
.drag-wrapper.is-pressed .drag-img-content {
    transform: scale(1.12);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)) brightness(1.08);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Illumination progressive des bords des pièces aimantées au contact */
.drag-wrapper.is-snapped .drag-img-content {
    filter: drop-shadow(0 0 25px rgba(160, 220, 255, 0.95)) brightness(1.12) !important;
    animation: snapGlowPulse 2.5s infinite alternate ease-in-out;
}

.drag-wrapper.is-snapped.is-pressed .drag-img-content {
    transform: scale(1.12);
    filter: drop-shadow(0 0 35px rgba(160, 240, 255, 1)) brightness(1.22) !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes snapGlowPulse {
    0% { filter: drop-shadow(0 0 18px rgba(160, 220, 255, 0.75)) brightness(1.06); }
    100% { filter: drop-shadow(0 0 32px rgba(160, 240, 255, 1)) brightness(1.16); }
}

/* --- COUCHE DE RÉVÉLATION DU MESSAGE SECRET DANS LE BLOC --- */
.secret-reveal-layer {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}

.secret-reveal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 20, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.secret-reveal-content {
    position: relative;
    z-index: 2;
    padding: 20px 40px;
    max-width: 850px;
}

.secret-reveal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    letter-spacing: -0.01em;
    text-transform: none;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
}

.secret-reveal-title::before,
.secret-reveal-title::after,
.secret-reveal-content::before,
.secret-reveal-content::after {
    display: none !important;
    content: none !important;
}

.reveal-shape.is-completed .drag-wrapper {
    pointer-events: none !important;
    cursor: default !important;
}

/* --- ANIMATION D'IMPULSION LUMINEUSE TASK BAR (3 IMPULSIONS) --- */
@keyframes contactPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 196, 255, 0.9);
        background: var(--accent-blue);
        color: var(--bg-deep);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(160, 220, 255, 0.85);
        background: #ffffff;
        color: var(--bg-deep);
        transform: scale(1.12);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(160, 196, 255, 0);
        background: transparent;
        color: #ffffff;
        transform: scale(1);
    }
}

.nav-btn.pulse-glow {
    animation: contactPulseGlow 0.9s cubic-bezier(0.25, 1, 0.5, 1) 3 !important;
}

/* --- INFOBULLES (TOOLTIPS) --- */
.custom-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 11000;
    background: var(--accent-blue);
    color: var(--bg-deep);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0;
    transform: translate(-50%, -140%);
    will-change: transform, opacity;
    max-width: 300px;
    text-align: left;
    line-height: 1.4;
    text-wrap: balance;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.tooltip-job-1, .tooltip-job-2, .tooltip-job-3, .tooltip-job-4 {
    padding: 12px 16px;
}

/* ==========================================================================
   PAGE 2 : ACCORDÉON PROJETS & GALERIE (VIEWPORT EN FLUX CONTINU)
   ========================================================================== */
.projects-scroll-section {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    min-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gallery-wrapper {
    display: flex;
    gap: 20px;
    width: 80vw;
    max-width: 1200px;
    height: 60vh;
    pointer-events: auto;
    margin-top: 0;
    box-sizing: border-box;
}

.gallery-item {
    flex: 1;
    position: relative;
    background: rgba(18, 24, 38, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transform: translateZ(0);
    will-change: flex;
}

.gallery-item:hover {
    flex: 3;
    border-color: var(--accent-blue);
    background: rgba(25, 35, 55, 0.7);
}

.item-content {
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.item-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    white-space: nowrap;
    pointer-events: auto;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.item-sub {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-blue);
    margin-bottom: 5px;
    display: block;
    border-bottom: 1px solid rgba(160, 196, 255, 0.3);
    width: fit-content;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- PHOTO STACK (CARTES ROTATIVES) --- */
.photo-stack-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .photo-stack-container { display: none; }
}

.photo-card {
    position: absolute;
    width: 180px;
    height: 240px;
    background-color: #eef2f5;
    padding: 8px 8px 30px 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    top: 50%;
    left: 50%;
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    will-change: transform;
    transform: translateZ(0);
}

.card-1 { transform: translate(-50%, -50%) scale(0.6) rotate(-6deg); z-index: 1; }
.card-2 { transform: translate(-50%, -50%) scale(0.6) rotate(0deg);  z-index: 2; }
.card-3 { transform: translate(-50%, -50%) scale(0.6) rotate(6deg);  z-index: 3; }

.photo-inner {
    width: 100%;
    height: 100%;
    background-color: #333333;
    background-size: cover;
    background-position: center;
}

.gallery-item:hover .card-1 { transform: translate(-120%, -60%) rotate(-12deg) scale(1); }
.gallery-item:hover .card-2 { transform: translate(-50%, -50%) rotate(5deg) scale(1.1); z-index: 5; }
.gallery-item:hover .card-3 { transform: translate(20%, -30%) rotate(15deg) scale(1); }

/* ==========================================================================
   OVERLAYS, GRILLES & LIGHTBOX
   ========================================================================== */
.project-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background: #080b14;
    z-index: 100;
    display: none;
    opacity: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    pointer-events: auto;
    will-change: opacity;
    contain: layout paint;
}

.fixed-overlay-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--margin-frame);
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    z-index: 110;
    background: linear-gradient(to bottom, rgba(8, 11, 20, 1) 0%, rgba(8, 11, 20, 0.8) 70%, transparent 100%);
    pointer-events: none;
    opacity: 0;
}

.back-btn, .return-btn, .lightbox-back-btn, .lightbox-info-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-btn { width: 50px; height: 50px; }
.back-btn:hover, .return-btn:hover, .lightbox-back-btn:hover {
    background: #ffffff;
    color: #080b14;
}

.back-btn svg, .lightbox-back-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    pointer-events: auto;
}

.magnetic-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease;
}

/* --- GRILLES DE PROJETS --- */
.common-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 130px 15px 150px 15px;
    box-sizing: border-box;
}

.masonry-grid {
    column-count: 4;
    column-gap: 15px;
}

.masonry-grid .grid-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    break-inside: avoid;
    background: #111111;
    border-radius: var(--card-radius);
    will-change: transform, opacity;
    backface-visibility: hidden;
    content-visibility: auto;
    contain: layout paint;
}

.square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22%, 1fr));
    gap: 15px;
}

.square-grid .grid-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
    background: #111111;
    border-radius: var(--card-radius);
    will-change: transform, opacity;
    backface-visibility: hidden;
    content-visibility: auto;
    contain: layout paint;
}

.square-grid .grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (hover: hover) {
    .grid-item:hover .grid-img {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* UI/UX CARDS */
.ui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.ui-grid .grid-item {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: block;
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
    background: #111111;
    position: relative;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.ui-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.grid-item:hover .ui-card-overlay { opacity: 0; }

.ui-btn {
    padding: 12px 24px;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 30px;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    cursor: default;
    padding: 20px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    border-radius: var(--card-radius);
}

.lightbox-back-btn {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    z-index: 202;
}

.lightbox-info-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 202;
}

.lightbox-info-btn:hover {
    background: #ffffff;
    color: #080b14;
    transform: scale(1.1);
}

/* --- FENÊTRES MODALES D'INFORMATIONS --- */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 400;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.info-card {
    background: #111111;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.info-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.info-close-btn:hover { color: #ffffff; }

.info-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.info-text {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 25px;
}

.project-action-btn {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.project-action-btn:hover {
    background: #ffffff;
    color: #080b14;
}

.project-action-btn:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   PAGE 3 : CONTACT PRO (VIEWPORT EN FLUX CONTINU LANDING PAGE)
   ========================================================================== */
.contact-scroll-section {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 95px 24px 60px 24px;
    overflow: hidden;
}

.contact-section-inner {
    width: 100%;
    max-width: 1180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Halo lumineux d'ambiance */
.contact-ambient-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 600px;
    height: 600px;
    max-width: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(160, 196, 255, 0.08) 0%, rgba(10, 14, 26, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.contact-pro-container {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* En-tête */
.contact-header-block {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #86efac;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.7);
    animation: proStatusPulse 2s infinite;
}

@keyframes proStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.contact-main-title {
    display: block !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(2rem, 3.4vw, 2.8rem) !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    text-align: center !important;
}

.contact-main-title::before {
    display: none !important;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #ffffff 10%, #a0c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-main-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.92rem, 1.3vw, 1.05rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Grille Pro */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.contact-card {
    background: linear-gradient(145deg, rgba(18, 26, 44, 0.55) 0%, rgba(9, 13, 24, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.contact-card:hover {
    border-color: rgba(160, 196, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(160, 196, 255, 0.06);
}

/* Carte Profil */
.profile-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(160, 196, 255, 0.35);
    background: radial-gradient(circle, #1a2744 0%, #0c1220 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.profile-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.profile-title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    color: var(--accent-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.profile-narrative {
    font-family: 'Manrope', sans-serif;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.68;
    margin: 0;
}

.profile-narrative strong {
    color: #ffffff;
    font-weight: 600;
}

.profile-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.skill-tag:hover {
    background: rgba(160, 196, 255, 0.12);
    border-color: rgba(160, 196, 255, 0.3);
}

.profile-card-footer {
    margin-top: 4px;
}

.pro-cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.pro-cv-download-btn:hover {
    background: #ffffff;
    color: #080b14;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.pro-btn-icon {
    width: 17px;
    height: 17px;
}

/* Carte Canaux de contact */
.contact-channels-card {
    gap: 20px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    transition: all 0.3s ease;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(160, 196, 255, 0.3);
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-icon-pill {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(160, 196, 255, 0.1);
    border: 1px solid rgba(160, 196, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.channel-svg {
    width: 20px;
    height: 20px;
}

.channel-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.channel-type-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.channel-primary-link {
    font-family: 'Manrope', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.channel-primary-link:hover {
    color: var(--accent-blue);
}

.channel-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.channel-action-btn:hover {
    background: var(--accent-blue);
    color: #080b14;
    border-color: var(--accent-blue);
}

.channel-action-btn.copied {
    background: #4ade80 !important;
    color: #080b14 !important;
    border-color: #4ade80 !important;
}

.action-svg {
    width: 14px;
    height: 14px;
}

.social-channels-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-group-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.social-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-box-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-box-btn:hover {
    background: rgba(160, 196, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-box-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.social-box-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.social-name {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.social-handle {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

.external-arrow {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.social-box-btn:hover .external-arrow {
    transform: translate(2px, -2px);
    color: #ffffff;
}

/* Réassurance */
.pro-reassurance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.55);
}

.reassurance-icon {
    font-size: 0.82rem;
}

/* --- NAVIGATION PRINCIPALE (HAUT DE PAGE) --- */
.main-nav,
.top-nav,
.bottom-nav {
    position: fixed;
    top: 30px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 120;
    background: rgba(18, 24, 38, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    width: max-content;
    max-width: 90vw;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-btn:hover { color: #ffffff; }
.nav-btn.active {
    background: #ffffff;
    color: #080b14;
}

/* --- CURSEUR PERSONNALISÉ --- */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                padding 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease,
                border-radius 0.3s ease;
    will-change: left, top, width, height;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.cursor-follower .cursor-label {
    opacity: 0;
    transform: scale(0.85);
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* État lorsque le curseur contient et affiche le texte survolé */
.cursor-follower.has-text {
    height: 46px;
    min-width: 46px;
    width: auto;
    padding: 0 18px;
    border-radius: 23px;
    background: rgba(14, 20, 36, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(160, 196, 255, 0.75);
    box-shadow: 0 0 25px rgba(160, 196, 255, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.cursor-follower.has-text.is-circle {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.cursor-follower.has-text .cursor-label {
    opacity: 1;
    transform: scale(1);
}

/* Disparition fluide du texte d'origine survolé */
.text-hidden-for-cursor {
    color: transparent !important;
    text-shadow: none !important;
    text-decoration-color: transparent !important;
    transition: color 0.22s cubic-bezier(0.25, 1, 0.5, 1), text-decoration-color 0.22s ease !important;
}

.text-hidden-for-cursor * {
    color: transparent !important;
    text-shadow: none !important;
    text-decoration-color: transparent !important;
    transition: color 0.22s cubic-bezier(0.25, 1, 0.5, 1), text-decoration-color 0.22s ease !important;
}

.cursor-follower.active:not(.has-text) {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cursor-follower.grabbing {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

@media (max-width: 1024px), (pointer: coarse) {
    .cursor-follower { display: none !important; }
    * { cursor: auto !important; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES & TYPOGRAPHIE FLUIDE
   ========================================================================== */
@media (max-width: 1400px) {
    .masonry-grid { column-count: 3; }
    .square-grid { grid-template-columns: repeat(auto-fill, minmax(30%, 1fr)); }
}

@media (max-width: 1024px) {
    .hero-container { width: 60%; margin-left: 6vw; }
    .timeline-item { width: 60%; }
    .timeline-section { gap: 100px; }
    .masonry-grid { column-count: 3; }
    .ui-grid { grid-template-columns: 1fr 1fr; }
    .info-card { width: 70vw; }
}

@media (max-width: 900px) {
    .hero-container { width: 75%; margin-left: 5vw; }
    .timeline-item { width: 75%; }
    .timeline-section { gap: 80px; }
    .masonry-grid { column-count: 2; }
    .square-grid { grid-template-columns: repeat(auto-fill, minmax(45%, 1fr)); }
    .ui-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { 
        --margin-frame: 15px; 
    }

    /* Hero & Contenu Accueil */
    .hero-full-page { 
        padding-top: 60px; 
        height: auto; 
        min-height: 85vh; 
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .hero-container { 
        width: 100% !important; 
        max-width: 100% !important;
        margin-left: 0 !important; 
        padding: 0 16px;
        gap: 8px; 
        box-sizing: border-box;
    }
    h1 { 
        font-size: clamp(2.2rem, 9vw, 3.2rem); 
        margin-bottom: 1rem;
        word-break: break-word;
    }
    h2 { 
        font-size: 0.75rem; 
        letter-spacing: 0.2em;
        margin-bottom: 0.8rem;
    }
    h2::before { width: 25px; }
    p.description { 
        font-size: 0.92rem; 
        line-height: 1.6; 
        max-width: 100%; 
        word-break: break-word;
    }

    /* Timeline & Espacements (Alignement centré sans dépassement de marge) */
    .timeline-section { 
        gap: 50px; 
        padding: 40px 16px 220px 16px; 
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) { 
        width: 100% !important; 
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-self: center !important;
        text-align: center !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
    }
    .timeline-item h3 { 
        font-size: 1.05rem; 
        word-break: break-word;
    }
    .timeline-role { 
        font-size: 0.85rem; 
        word-break: break-word;
    }
    .timeline-date { 
        font-size: 0.72rem; 
    }

    /* Galeries Accordéon */
    .projects-scroll-section {
        height: auto;
        min-height: auto;
        padding: 60px 16px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        box-sizing: border-box;
    }
    .gallery-wrapper { 
        flex-direction: column; 
        width: 100% !important; 
        max-width: 100% !important;
        height: auto; 
        min-height: 65vh; 
        gap: 12px;
        box-sizing: border-box;
    }
    .gallery-item { 
        min-height: 110px; 
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .gallery-item:hover { 
        flex: 1.5; 
    }
    .item-title { 
        font-size: 1.4rem; 
        word-break: break-word;
    }
    .item-sub { 
        font-size: 0.85rem; 
    }

    /* Overlays de Projets */
    .fixed-overlay-header { 
        padding: 15px 16px; 
        width: 100%;
        box-sizing: border-box;
    }
    .header-title { 
        font-size: 1.25rem; 
    }
    .back-btn { 
        width: 42px; 
        height: 42px; 
    }
    .common-grid { 
        padding: 85px 16px 110px 16px; 
        width: 100%;
        box-sizing: border-box;
    }
    .masonry-grid { 
        column-count: 1; 
        width: 100%;
    }
    .square-grid { 
        grid-template-columns: 1fr; 
        width: 100%;
    }
    .ui-grid { 
        grid-template-columns: 1fr; 
        width: 100%;
    }

    /* Modales & Info Overlay */
    .info-card { 
        width: 90vw; 
        max-width: 450px;
        padding: 24px 18px; 
        box-sizing: border-box;
    }
    .info-title { 
        font-size: 1.25rem; 
        margin-bottom: 12px; 
    }
    .info-text { 
        font-size: 0.88rem; 
        line-height: 1.55; 
    }

    /* Contact Box */
    .huge-mail-box { 
        padding: 30px 16px; 
        width: 100%; 
        box-sizing: border-box;
    }
    /* Section Contact Responsive */
    .contact-scroll-section {
        min-height: auto;
        height: auto;
        padding: 80px 16px 120px 16px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        box-sizing: border-box;
    }
    .contact-section-inner {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    .contact-ambient-glow {
        width: 280px;
        height: 280px;
        filter: blur(35px);
    }
    .contact-pro-container {
        width: 100%;
        max-width: 100%;
        gap: 24px;
        box-sizing: border-box;
    }
    .contact-header-block {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .contact-main-title {
        font-size: clamp(1.75rem, 6.5vw, 2.2rem) !important;
        line-height: 1.3 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .contact-main-subtitle {
        font-size: 0.92rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .contact-card {
        padding: 22px 16px;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .profile-narrative {
        font-size: 0.9rem;
        line-height: 1.6;
        word-break: break-word;
    }
    .channel-card {
        padding: 14px 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .channel-header {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .channel-meta {
        min-width: 0;
        flex: 1 1 140px;
        overflow: hidden;
    }
    .channel-primary-link {
        font-size: 0.95rem;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    .channel-action-btn {
        margin-left: auto;
    }
    .social-cards-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }
    .social-box-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .pro-reassurance-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Navigation Mobile (positionnée en bas pour téléphone avec padding généreux et taille alignée sur FR/EN) */
    .main-nav,
    .top-nav,
    .bottom-nav { 
        top: auto;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)); 
        padding: 6px 10px; 
        gap: 6px; 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
        max-width: calc(100vw - 24px);
    }
    .nav-btn { 
        padding: 8px 16px; 
        font-size: 0.7rem; 
    }

    /* Lightbox */
    .lightbox { 
        padding: 15px; 
    }
    .lightbox-back-btn { 
        top: 15px; 
        left: 15px; 
        width: 42px; 
        height: 42px; 
    }
    .lightbox-info-btn { 
        top: 15px; 
        right: 15px; 
        width: 42px; 
        height: 42px; 
    }
}

@media (max-width: 480px) {
    h1 { 
        font-size: 2rem; 
    }
    .contact-main-title {
        font-size: 1.65rem !important;
    }
    .contact-card {
        padding: 18px 14px;
    }
    .channel-card {
        padding: 12px 10px;
    }
    .channel-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .channel-primary-link {
        font-size: 0.88rem;
        word-break: break-all;
    }
    .main-nav,
    .top-nav,
    .bottom-nav { 
        top: auto;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        padding: 6px 8px;
        gap: 4px;
        max-width: calc(100vw - 20px);
    }
    .nav-btn { 
        padding: 8px 12px; 
        font-size: 0.68rem; 
    }
}
