/* ========================================
   SYSTEME DE ROUTES POUR LES THEMES
   ======================================== */

/* Import des thèmes */
@import url("retro.css");
@import url("classic.css");

/* ========================================
   RESET & BASE STYLES (COMMUNS)
   ======================================== */

@font-face {
    font-family: 'Grabstein';
    src: url('/fonts/grabstein.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Variables communes - spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* ========================================
   LAYOUT STRUCTURE
   ======================================== */

.page-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition-normal);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav__brand {
    position: absolute;
    left: 5%;
}

.nav__brand a {
    font-weight: 700;
}

.nav__menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav__menu a {
    position: relative;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width var(--transition-normal);
}

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

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: absolute;
    right: 5%;
}

.nav__burger span {
    width: 25px;
    height: 3px;
    background: var(--color-light);
    transition: all var(--transition-normal);
    border-radius: 2px;
    display: block;
}

.nav__menu-switcher {
    display: block;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.nav__design-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-left: 1rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.nav__design-switcher:hover {
    transform: scale(1.05);
}

.nav__design-switcher-icon {
    line-height: 1;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    color: var(--color-light);
    position: relative;
}

.hero__content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero__title {
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    color: var(--color-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero__cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-light);
    animation: bounce 2s infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    opacity: 1;
    visibility: visible;
}

.hero__scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

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

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

/* Hide animated buttons by default (shown only in classic theme) */
.button-animated {
    display: none;
}

/* Hide glitch buttons by default (shown only in retro theme) */
.button-glitch {
    display: none;
}

.btn--full {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    margin-top: 0.5rem;
    margin-inline: auto;
}

.btn--full svg {
    transition: transform var(--transition-fast);
}

.btn--full:hover svg {
    transform: translateX(5px);
}

.btn--transparent {
    background: transparent !important;
}

/* ========================================
   SECTIONS & CONTAINERS
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ========================================
   PROJECTS GRID
   ======================================== */

.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: var(--spacing-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid--single {
    display: flex;
    justify-content: center;
}

.no-projects {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
    white-space: nowrap;
    grid-column: 1 / -1;
}

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

.project-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card__image {
    width: auto;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.08);
}

.project-card__content {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.project-card__title {
    margin-bottom: 1rem;
    color: var(--color-light);
}

.project-card__description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-card__link {
    display: inline-block;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.project-card__link:hover {
    transform: translateX(5px);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__overlay-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.project-card__overlay-link:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.project-card__overlay-link svg {
    transition: transform 0.3s ease;
}

.project-card__overlay-link:hover svg {
    transform: translateX(5px);
}

.project-card__tech {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1rem;
}

.project-card__tech-item {
    color: #ffffff;
    display: inline-block;
    background: #192326;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.project-card__tech-item:hover {
    opacity: 0.9;
    transform: translateX(5px);
    border-left-color: var(--color-primary);
    filter: brightness(1.2);
}

/* ========================================
   TECH STACK GRID
   ======================================== */

.tech-stack__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
}

.tech-item {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-normal);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
}

.tech-badge--more {
    opacity: 0.7;
    font-style: italic;
}

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

.footer {
    padding: 0.75rem 0;
    margin-top: auto;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.footer__cookie-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.footer__cookie-btn:hover {
    transform: scale(1.15);
}

.footer__cookie-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.footer__social {
    display: flex;
    gap: 2rem;
}

.footer__social a {
    color: #ffffff;
    transition: color var(--transition-fast);
}

/* ========================================
   ABOUT PAGE - CV STYLE
   ======================================== */

.about-page {
    padding-top: 62px;
}

.about-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.about-content {
    padding: 40px 0 80px;
}

.cv-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.cv-sidebar,
.cv-main {
    display: flex;
    flex-direction: column;
}

.cv-sidebar {
    gap: 40px;
    justify-content: space-between;
}

.cv-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cv-section {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.cv-section__title {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.cv-section__cta {
    margin-top: 1.5rem;
    text-align: center;
}

.cv-skills-category {
    margin-bottom: 25px;
}

.cv-skills-category:last-child {
    margin-bottom: 0;
}

.cv-skills-category__title {
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cv-skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.cv-skill:hover {
    transform: translateX(5px);
}

.cv-skill__name {
    color: #ffffff;
}

.cv-skill__level {
    font-weight: 500;
}

.cv-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cv-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.8);
    transform: translateX(5px);
}

.cv-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cv-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.cv-text p {
    margin-bottom: 15px;
}

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

.cv-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cv-timeline-item {
    padding-left: 25px;
    border-left: 2px solid;
    position: relative;
}

.cv-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px;
}

.cv-timeline-item__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.cv-timeline-item__title {
    font-weight: 600;
    color: #ffffff;
}

.cv-timeline-item__date {
    font-weight: 500;
}

.cv-timeline-item__company {
    margin-bottom: 12px;
    font-weight: 500;
}

.cv-timeline-item__description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.cv-timeline-item__list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.cv-timeline-item__list li {
    padding-left: 20px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
}

.cv-timeline-item__list li::before {
    content: '▹';
    position: absolute;
    left: 0;
}

.cv-timeline-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.cv-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.cv-soft-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cv-soft-skill {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.cv-soft-skill:hover {
    transform: translateY(-5px);
}

.cv-soft-skill__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
}

.cv-soft-skill__title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.cv-soft-skill__text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.cv-cta {
    text-align: center;
    padding: 15px 20px;
    border-radius: 12px;
}

.cv-cta__text {
    color: #ffffff;
    margin-bottom: 12px;
}

.cv-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
   PROJECTS PAGE
   ======================================== */

.projects-header {
    padding: 196px 0 60px;
    text-align: center;
}

.projects-title {
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.projects-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.projects-section {
    padding: 60px 0;
}

.projects-empty {
    text-align: center;
    padding: 80px 20px;
    border-radius: 12px;
}

.empty-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.projects-empty h2 {
    margin-bottom: 10px;
}

.projects-empty p {
    color: rgba(255, 255, 255, 0.7);
}

.projects-cta {
    padding: 80px 0 100px;
}

.cta-content {
    text-align: center;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-content h2 {
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */

.project-back-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 60px;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 6px 16px;
    margin: 0;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid;
    border-radius: 50px;
}

.project-back:hover {
    gap: 12px;
}

.back-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.project-back:hover .back-arrow {
    transform: translateX(-5px);
}

.project-detail-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 196px 2rem 4rem;
    text-align: center;
}

.project-detail-title {
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-detail-subtitle {
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    padding: 0 20px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.tech-tag {
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 8px;
}

.project-image-section {
    padding: 40px 0;
}

.project-image-wrapper {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ========================================
   PROJECT MEDIA SECTION (GALLERY & VIDEO)
   ======================================== */

.project-media-section {
    padding: 40px 0;
}

.project-gallery {
    margin-top: 40px;
}

.gallery-title {
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay svg {
    color: white;
    width: 48px;
    height: 48px;
}

.gallery-item-placeholder {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    cursor: default;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-item-placeholder:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    gap: 1rem;
    padding: 2rem;
}

.placeholder-image svg {
    width: 64px;
    height: 64px;
    opacity: 0.6;
    color: var(--color-text-muted);
}

.placeholder-image p {
    opacity: 0.8;
    margin: 0;
    color: var(--color-text-muted);
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    transform-origin: center center;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    display: block;
    transform-origin: center center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
    transform-origin: center center;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   PROJECT CONTENT SECTIONS
   ======================================== */

.project-content {
    padding: 60px 0 100px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.project-main-content {
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    margin-bottom: 20px;
    font-weight: 600;
}

.project-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.project-description ul,
.project-description ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.project-description li {
    margin: 0.25rem 0;
    line-height: 1.6;
}

.project-description h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-description h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-description p {
    margin: 0.5rem 0;
}

.project-functionalities-section,
.project-technologies-section {
    margin-top: 3rem;
}

.project-functionalities-section .section-subtitle,
.project-technologies-section .section-subtitle {
    margin-top: 0;
}

.functionalities-content {
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.functionalities-content p {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.functionalities-content p strong {
    text-decoration: underline;
}

.functionalities-content p:first-child {
    margin-top: 0;
}

.functionalities-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.functionalities-content li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.functionalities-content li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgba(0, 212, 255, 0.8);
    font-weight: bold;
}

.project-technologies-section .technologies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.technology-item {
    padding: 16px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(0, 212, 255, 0.6);
    transition: all 0.3s ease;
    cursor: default;
}

.technology-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.technology-item .tech-badge {
    display: block;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-info-card,
.project-nav-card {
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-info-card:hover,
.project-nav-card:hover {
    transform: translateY(-2px);
}

.info-card-title {
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
}

.info-tech {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-link:hover {
    gap: 10px;
}

.info-link svg {
    width: 16px;
    height: 16px;
}

.project-nav-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-nav-card .cv-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.functionalities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.functionality-item {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.functionality-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.functionality-badge {
    display: block;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.technologies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.technology-card-item {
    margin: 0;
}

.technology-card-value {
    color: #ffffff;
    display: inline-block;
    background: #192326;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.technology-card-value:hover {
    opacity: 0.9;
    transform: translateX(5px);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.technology-category {
    margin-bottom: 24px;
}

.technology-category:last-child {
    margin-bottom: 0;
}

.technology-category-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.technology-category-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-functionalities-card,
.project-technologies-card {
    margin-bottom: 20px;
}

.project-additional-info {
    margin-bottom: 20px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 196px 2rem 4rem;
    text-align: center;
}

.page-title {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 2rem 0 var(--spacing-xl);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-info__title {
    margin-bottom: 1rem;
}

.contact-info__text {
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info__items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info__item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.contact-info__item:hover {
    transform: translateX(5px);
}

.contact-info__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
}

.contact-info__item h3 {
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info__item p,
.contact-info__item a {
    color: var(--color-light);
}

.contact-info__item a:hover {
    text-decoration: underline;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.8);
    transform: translateX(5px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-wrapper {
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form__title {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-label {
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: var(--color-light);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
}

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

.form-errors {
    color: #ff4757;
    margin-top: 0.25rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert--success {
    background: rgba(0, 212, 127, 0.1);
    border: 1px solid rgba(0, 212, 127, 0.3);
    color: #00d47f;
}

.alert--error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.alert svg {
    flex-shrink: 0;
}

/* ========================================
   ADMIN PAGES
   ======================================== */

.admin-page {
    padding-top: 120px;
    min-height: 100vh;
}

.admin-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-form-section {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-form-section h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.admin-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
}

.form-text {
    display: block;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-left: 1rem !important;
    flex-shrink: 0;
}

.form-check-label {
    color: var(--color-text);
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

input[type="checkbox"].form-check-input {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.btn-primary,
.btn-secondary,
.btn-outline-danger {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
}

.dynamic-input-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dynamic-input-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dynamic-input-item input,
.dynamic-input-item select {
    flex: 1;
}

.btn-remove {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-remove:hover {
    background: rgba(255, 71, 87, 0.2);
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
}

.btn-add {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.invalid-feedback {
    display: block;
    color: #ff4757;
    margin-top: 0.5rem;
}

/* ========================================
   DESIGN CHOICE MODAL
   ======================================== */

.design-choice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.design-choice-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.design-choice-modal__content {
    position: relative;
    z-index: 1;
    background: rgba(20, 20, 20, 0.98);
    border: none;
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.design-choice-modal__title {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 2.25rem;
}

.design-choice-modal__subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 1.3rem;
}

.design-choice-modal__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.design-choice-modal__option {
    border-radius: 12px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

/* Font sizes for design choice modal - IN APP.CSS as requested */
.design-choice-modal__option-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.design-choice-modal__option-title {
    font-size: 1.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.design-choice-modal__option-desc {
    font-size: 1.3rem;
}

.design-choice-modal__option:hover {
    transform: translateY(-5px);
}

.design-choice-modal__option--retro {
    background: rgba(26, 0, 51, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(185, 103, 255, 0.3);
    color: var(--color-text);
}

.design-choice-modal__option--retro:hover {
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

.design-choice-modal__option--classic {
    background: var(--color-nav);
    border: 1px solid #00d9ff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: var(--color-text);
}

.design-choice-modal__option--classic:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 217, 255, 0.6), 0 0 40px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
}

.design-choice-modal__option-desc {
    color: var(--color-text-muted);
}

.design-choice-modal__option--retro .design-choice-modal__option-title {
    font-family: 'Grabstein', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
}

.design-choice-modal__option--retro .design-choice-modal__option-desc {
    color: #a0a0a0;
    font-family: 'Grabstein', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-choice-modal__option--retro:hover .design-choice-modal__option-title {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.design-choice-modal__option--classic .design-choice-modal__option-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e0e0e0;
    font-weight: 600;
}

.design-choice-modal__option--classic .design-choice-modal__option-desc {
    color: #888888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.design-choice-modal__option--classic:hover .design-choice-modal__option-title {
    color: #e0e0e0;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.5);
}

/* Full width section for Compétences Transversales on laptop+ */
@media (min-width: 969px) {
    .cv-section--full-width {
        grid-column: 1 / -1;
    }
}

/* ========================================
   RESPONSIVE (COMMUNS)
   ======================================== */

@media (max-width: 1000px) {
    .nav__brand a {
        font-size: 1.5rem !important;
    }
    
    .tech-stack__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .cv-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cv-sidebar {
        order: 2;
    }

    .cv-main {
        order: 1;
    }

    .cv-section--full-width:has(.cv-soft-skills) {
        order: 3;
    }

    .cv-cta.cv-section--full-width {
        order: 4;
    }

    .cv-soft-skills {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        order: 2;
    }

    .project-main-content {
        order: 1;
    }

    .cta-content {
        padding: 40px 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: auto;
        min-width: 280px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        position: static;
    }
    
    .admin-page {
        padding-top: 100px;
    }
    
    .admin-two-columns {
        grid-template-columns: 1fr;
    }
    
    .admin-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        display: flex;
        position: fixed !important;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: auto;
        max-height: calc(100vh - 70px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        background: var(--color-nav);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav__menu.active {
        right: 0 !important;
    }
    
    .nav__menu li {
        width: 100%;
    }
    
    .nav__menu a {
        display: inline-block;
        width: fit-content;
        padding: 0.75rem 0;
        color: var(--color-light);
    }
    
    .nav__menu a::after {
        bottom: 0;
    }
    
    .nav__menu-switcher {
        display: block;
        position: static;
        margin-top: 0.5rem;
    }
    
    .nav__menu-switcher .nav__design-switcher {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 0.5rem 0.75rem;
        background: none;
        border: none;
        color: var(--color-light);
        transition: all 0.3s ease;
        margin: 0;
    }
    
    .nav__menu-switcher .nav__design-switcher:hover {
        transform: scale(1.1);
    }
    
    .nav {
        min-height: 80px;
    }
    
    .nav__burger {
        display: flex;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav__burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__scroll-indicator {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
    
    .projects-header {
        padding: 148px 0 40px;
    }

    .project-tech-tags {
        gap: 8px;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 15px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-image {
        max-width: 95%;
        max-height: 85vh;
    }

    .project-main-content {
        padding: 30px 20px;
    }

    .project-info-card,
    .project-nav-card {
        padding: 20px;
    }
    
    /* Design choice modal - scroll et taille mobile */
    .design-choice-modal {
        overflow-y: auto;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .design-choice-modal__content {
        padding: 1.5rem 1rem;
        margin: auto;
    }
    
    .design-choice-modal__title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .design-choice-modal__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .design-choice-modal__options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .design-choice-modal__option {
        padding: 1.5rem 1rem;
    }
    
    .design-choice-modal__option-icon {
        font-size: 2.5rem;
    }
    
    .design-choice-modal__option-title {
        font-size: 1.25rem;
    }
    
    .design-choice-modal__option-desc {
        font-size: 1rem;
    }
    
    .admin-form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .tech-stack__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-item {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 3rem 2rem 2rem;
    }

    .cv-section {
        padding: 20px;
    }

    .cv-timeline-item__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-cta {
        padding: 60px 0 80px;
    }

    .cta-content {
        padding: 30px 20px;
    }

    .project-back {
        margin-top: 80px;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-hero {
        padding: 148px 2rem 3rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 400px) {
    .tech-stack__grid {
        grid-template-columns: 1fr;
    }
    .tech-item {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 391px) {
    .section-title {
        line-height: 1.1;
    }
}

@media (max-width: 387px) {
    .page-title .highlight {
        display: block;
    }
}

@media (max-width: 320px) {
    .hero {
        padding-top: 5rem;
    }
}

/* ========================================
   COOKIE MODAL - BASE STYLES (Fallback)
   ======================================== */

/* Base styles that work even before design is applied */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.cookie-modal.active {
    display: flex;
    pointer-events: auto;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cookie-modal__content {
    position: relative;
    background: #1a1a1a;
    border: 2px solid #888;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal__title {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-modal__text {
    font-size: 1.125rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cookie-modal__section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.cookie-modal__section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
}

.cookie-modal__section-text {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-modal__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-modal__features li {
    font-size: 0.9375rem;
    color: #aaa;
    padding: 6px 0 6px 24px;
    position: relative;
}

.cookie-modal__features li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #888;
    font-weight: bold;
}

.cookie-modal__buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cookie-modal__btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 28px;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-modal__btn--accept {
    background: #e0e0e0;
    color: #1a1a1a;
    border-color: #e0e0e0;
}

.cookie-modal__btn--accept:hover {
    background: transparent;
    color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 224, 224, 0.3);
}

.cookie-modal__btn--decline {
    background: transparent;
    color: #aaa;
    border-color: #888;
}

.cookie-modal__btn--decline:hover {
    background: rgba(136, 136, 136, 0.1);
    color: #e0e0e0;
    border-color: #e0e0e0;
}

.cookie-modal__footer-text {
    font-size: 0.875rem;
    color: #aaa;
    text-align: center;
    line-height: 1.4;
}

/* Responsive for base styles */
@media (max-width: 768px) {
    .cookie-modal__content {
        padding: 30px 20px;
    }
    
    .cookie-modal__title {
        font-size: 1.5rem;
    }
    
    .cookie-modal__buttons {
        flex-direction: column;
    }
    
    .cookie-modal__btn {
        width: 100%;
    }
}

/* ========================================
   RECAPTCHA BADGE FIX
   ======================================== */

.grecaptcha-badge {
    right: 14px !important;
    bottom: 14px !important;
    visibility: visible !important;
    z-index: 9999 !important;
    width: 70px !important;
    height: 60px !important;
    overflow: hidden !important;
    box-shadow: gray 0px 0px 5px !important;
    border-radius: 2px !important;
}

.grecaptcha-badge > div {
    margin-left: 0px !important;
}
