/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    /* Couleurs principales - Thème Liquid Glass */
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #ec4899;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Couleurs de fond */
    --bg-dark: #0a0a0f;
    --bg-gradient-start: #1a0a2e;
    --bg-gradient-end: #0f0617;
    
    /* Typographie */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-glass {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-fast);
}

.logo:hover .logo-text {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    color: #ffffff !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

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

/* Effets Liquid Orb animés */
.liquid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.hero-image-container {
    position: relative;
    flex-shrink: 0;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-color: var(--glass-border);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), transparent);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(15px);
        opacity: 1;
    }
}
/* ============================================
   HIGHLIGHT SECTION
   ============================================ */
.highlight-section {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    overflow: hidden;
    justify-content: space-between;
}

.highlight-media {
    flex: 1 1 45%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.highlight-content {
    flex: 1 1 45%;
    text-align: left;
}

.highlight-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight-content p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Responsive (mobile/tablette) */
@media (max-width: 968px) {
    .highlight-card {
        flex-direction: column;
        text-align: center;
    }
    .highlight-content {
        text-align: center;
    }
}

/* Réduit uniquement la ligne "Administration & Communication" du hero */
.hero .hero-title .title-line.gradient-text {
  display: block;              /* assure le retour à la ligne */
  font-size: clamp(24px, 3.5vw, 44px);  /* plus petit que le h1 principal */
  line-height: 1.1;
  letter-spacing: 0.2px;
}
@media (max-width: 768px) {
  .hero .hero-title .title-line.gradient-text {
    font-size: clamp(20px, 5vw, 32px);
  }
}
/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.section-tag {
    display: inline-block;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-content {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

/* ============================================
   ANIMATIONS & REVEAL EFFECTS
   ============================================ */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .nav-glass {
        width: 95%;
        padding: 1rem 1.5rem;
        top: 1rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PAGES ADDITIONNELLES - EXPÉRIENCES
   ============================================ */
.experiences-page {
    padding-top: 8rem;
    min-height: 100vh;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    z-index: 1;
}

.timeline-date {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ============================================
   PAGES ADDITIONNELLES - ÉTUDES
   ============================================ */
.education-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    display: flex;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem;
}

.education-year {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1;
}

.education-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.education-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.education-achievements {
    list-style: none;
}

.education-achievements li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.education-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* ============================================
   PAGES ADDITIONNELLES - PROJETS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    height: 400px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 24px;
}

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

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 2rem;
    transform: translateY(60px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.3);
    color: var(--primary-light);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.project-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   PAGES ADDITIONNELLES - CONTACT
   ============================================ */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    padding: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* au lieu de .form-group input, .form-group textarea { ... } */
.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}
/* aligner proprement la case et son label */
.form-group .checkbox-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .2rem;
}
.form-group input[type="checkbox"] {
  width: auto;    /* évite tout héritage inattendu */
  padding: 0;
  margin: 0;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

/* ============================================
   PAGE DÉTAIL PROJET
   ============================================ */
.project-detail-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.project-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
    z-index: 1;
}

.project-detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.project-detail-title {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.project-detail-title h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.project-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.project-section {
    margin-bottom: 3rem;
}

.project-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}
/* S'assure que le contenu s'empile proprement */
.education-info {
  display: flex;
  flex-direction: column;
}

/* Pousse le bloc actions en bas et aligne à droite */
.education-actions {
  margin-top: auto;      /* descend en bas de la colonne */
  align-self: flex-end;  /* côté droit */
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
}


/* Boutons un peu plus compacts dans les cartes d'études */
.education-card .btn-primary,
.education-card .btn-secondary {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}
/* Projets: ancrer les boutons en bas à droite des cartes */
.page-projets .about-grid .glass-card{
  position: relative;
  padding-bottom: 5rem; /* espace pour le groupe de boutons */
}
.page-projets .about-grid .glass-card .hero-buttons{
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  margin: 0;
}
/* Option: boutons un peu plus compacts */
.page-projets .about-grid .glass-card .btn-primary,
.page-projets .about-grid .glass-card .btn-secondary{
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
}

@media (max-width: 640px){
  .page-projets .about-grid .glass-card{ padding-bottom: 4.25rem; }
  .page-projets .about-grid .glass-card .hero-buttons{ right: 0.75rem; bottom: 0.75rem; }
}


/* ============================================
   PAGE ARTICLE (mise en profondeur)
   ============================================ */
.page-article .article-hero {
  padding-top: 3rem;
}
.page-article .article-hero--media-first {
  padding-top: 3rem;
}

.article-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}
.article-eyebrow {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(139, 92, 246, 0.1);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.article-intro {
  color: rgba(255,255,255,0.75);
  max-width: 760px;
  margin: 0.5rem auto 0;
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-media .media-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: 0 8px 32px var(--glass-shadow);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.article-media .media-frame > img,
.article-media .media-frame > video,
.article-media .media-frame > iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.article-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}

.article-section .article-content {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 2.25rem 2rem;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 1.5rem 0 .75rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.25rem 0 .5rem;
}
.article-body p {
  color: rgba(255,255,255,.8);
  line-height: 1.95;
  margin: .75rem 0;
  font-size: 1.05rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.2rem;
  margin: .5rem 0 1rem;
  color: rgba(255,255,255,.85);
}
.article-body li { margin: .4rem 0; }
.article-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: rgba(139,92,246,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.9);
}
@media (max-width: 768px){
  .article-section .article-content { padding: 1.5rem 1.25rem; }
  .article-media .media-frame { border-radius: 16px; }
}

/* ===== Article : split propre sans superposition ===== */
.page-article .article-hero {
  padding-top: 0; /* espace sous la nav */
}

/* Grille 2 colonnes : gauche (texte) / droite (média) */
.page-article .article-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.25fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

/* Colonne gauche (titre/sous-titre) */
.page-article .article-meta {
  padding: clamp(1.25rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-article .article-eyebrow {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(139, 92, 246, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.page-article .article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin: .5rem 0 .75rem;
}
.page-article .article-intro {
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.85;
}

/* Colonne droite (média) — aucun sticky, pas de superposition */
.page-article .article-media {
  position: relative;              /* explicitement non-sticky */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: 0 8px 32px var(--glass-shadow);
}
.page-article .article-media > img,
.page-article .article-media > video,
.page-article .article-media > iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.page-article .article-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: rgba(255,255,255,.86);
  font-size: .95rem;
}

/* Section article (en dessous) */
.page-article .article-section .article-content {
  max-width: 980px;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  padding: clamp(1.5rem, 2vw, 2.25rem);
}
.page-article .article-body { max-width: 760px; margin: 0 auto; }
.page-article .article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  margin: 0rem 0rem;
}
.page-article .article-body p {
  color: rgba(255,255,255,.82);
  line-height: 1.95;
  margin: .75rem 0;
  font-size: 1.05rem;
}
.page-article .article-body blockquote {
  margin: 1.25rem 0;
  padding: 0rem 0rem;
  border-left: 4px solid var(--primary);
  background: rgba(139,92,246,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.92);
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 900px) {
  .page-article .article-grid {
    grid-template-columns: 1fr;
  }
  .page-article .article-media { order: 2; }
  .page-article .article-meta  { order: 1; }
}

/* ===== Article : layout libre, titre vertical gauche + média droite ===== */
.page-article .article-hero.article-hero--free {
  padding-top: 8rem; /* espace sous la nav */
}

.page-article .article-split {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(480px, 1fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: stretch;
}

/* Rail gauche */
.page-article .title-rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

/* Titre vertical (lecture haut -> bas) */
.page-article .title-vertical {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;

  writing-mode: vertical-rl;
  text-orientation: mixed;      /* lettres lisibles */
  /* Si tu préfères la lecture bas->haut, ajoute: transform: rotate(180deg); */
}

/* Légende sous le titre (texte horizontal) */
.page-article .title-legend {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 18ch; /* mesure courte pour l'élégance */
}

/* Média à droite — sans boîte */
.page-article .media-plain {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;         /* douceur, pas de bordure/bkg */
}
.page-article .media-plain > iframe,
.page-article .media-plain > img,
.page-article .media-plain > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.page-article .media-plain figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: rgba(255,255,255,.86);
  font-size: .95rem;
}

/* Corps d'article en dessous, sans boîte */
.page-article .article-free .article-body {
  max-width: 760px;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
}
.page-article .article-free .article-body h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  margin: 1.5rem 0 .75rem;
}
.page-article .article-free .article-body p {
  color: rgba(255,255,255,.82);
  line-height: 1.95;
  margin: .75rem 0;
  font-size: 1.05rem;
}
.page-article .article-free .article-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary, rgba(139,92,246,1));
  background: rgba(139,92,246,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.92);
}

/* Responsive : 1 colonne, titre redevient horizontal */
@media (max-width: 900px) {
  .page-article .article-split {
    grid-template-columns: 1fr;
  }
  .page-article .title-vertical {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;         /* au cas où ajouté */
    font-size: clamp(2rem, 7vw, 2.4rem);
  }
  .page-article .title-legend {
    max-width: 42ch;
  }
}



/* Légende sous le titre (horizontale) */
.page-article .title-legend{
  margin: .25rem 0 0 0;
  max-width: 18ch;
  color: rgba(255,255,255,.76);
  font-size: 1rem;
  line-height: 1.65;
}

/* Média à droite — cadre simple, sans “box” */
.page-article .media-plain{
  margin: 0;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px;                     /* douceur sans bordure */
  box-shadow: 0 18px 60px var(--glass-shadow); /* léger relief */
  isolation: isolate;
}
.page-article .media-plain > iframe,
.page-article .media-plain > img,
.page-article .media-plain > video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}
.page-article .media-plain figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: rgba(255,255,255,.88);
  font-size: .95rem;
}

/* Corps de l’article — typographie confortable, sans card */
.page-article .article-free .article-body{
  max-width: 760px;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
}
.page-article .article-free .article-body h2{
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  margin: 1.5rem 0 .75rem;
}
.page-article .article-free .article-body p{
  color: rgba(255,255,255,.82);
  line-height: 1.95;
  margin: .75rem 0;
  font-size: 1.05rem;
}
.page-article .article-free .article-body blockquote{
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: rgba(139,92,246,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.92);
}

/* Responsive — 1 colonne, titre redevient horizontal */
@media (max-width: 900px){
  .page-article .article-headergrid{
    grid-template-columns: 1fr;
  }
  .page-article .title-vertical{
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
  .page-article .title-legend{ max-width: 42ch; }
}


/* progress lecture */
.a-progress{
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  z-index: 9999; pointer-events: none;
}
.a-progress > span{
  display:block; height:100%; width:100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px rgba(139,92,246,.6);
}



/* média à droite */
.a-media{ position: relative; display: block; }
.a-tab{ position: absolute; opacity: 0; pointer-events: none; }

.a-tabbar{
  display: inline-flex; gap: .5rem; margin-bottom: .75rem;
  border-radius: 999px; padding: .35rem; background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.a-tabbar label{
  padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  font-size: .95rem; user-select: none;
  color: rgba(255,255,255,.8);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.a-tabbar label:hover{ transform: translateY(-1px); }
#a-tab-video:checked ~ .a-tabbar label[for="a-tab-video"],
#a-tab-image:checked ~ .a-tabbar label[for="a-tab-image"],
#a-tab-notes:checked ~ .a-tabbar label[for="a-tab-notes"]{
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
}

.a-panels{ position: relative; }
.a-pane{
  display: none; position: relative;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px;
  isolation: isolate; /* pour la glow */
}
.a-pane > iframe, .a-pane > img, .a-pane > video{
  width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
}
.a-pane figcaption{
  position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: rgba(255,255,255,.9); font-size: .95rem;
}

/* glow d’ambiance derrière le média */
.a-glow{
  position: absolute; inset: -15% -15% auto -15%; z-index: -1; filter: blur(40px);
  background:
    radial-gradient(60% 60% at 20% 30%, color-mix(in oklab, var(--primary) 50%, transparent) 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 70%, color-mix(in oklab, var(--secondary) 50%, transparent) 0%, transparent 60%);
  opacity: .55;
}

/* affichage conditionnel des panneaux */
#a-tab-video:checked ~ .a-panels .a-pane:nth-child(1){ display: block; }
#a-tab-image:checked ~ .a-panels .a-pane:nth-child(2){ display: block; }
#a-tab-notes:checked ~ .a-panels .a-pane:nth-child(3){ display: block; }

/* article */
.a-article .a-prose{
  max-width: 760px; margin: clamp(1.25rem, 3vw, 2rem) auto 0;
}
.a-article .a-prose h2{
  font-family: var(--font-display, inherit);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  margin: 1.5rem 0 .75rem;
}
.a-article .a-prose p{
  color: rgba(255,255,255,.82); line-height: 1.95; margin: .75rem 0; font-size: 1.05rem;
}
.a-article .a-prose blockquote{
  margin: 1.25rem 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary); background: rgba(139,92,246,.08);
  border-radius: 12px; color: rgba(255,255,255,.92);
}

/* responsive : 1 colonne, titre horizontal */
@media (max-width: 900px){
  .a-grid{ grid-template-columns: 1fr; }
  .a-title-vertical{
    writing-mode: horizontal-tb; text-orientation: initial; transform: none;
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
  .a-legend{ max-width: 42ch; }
}
/* --- Ajustements header article (titre vertical) --- */
:root{
  /* + espace pour la colonne titre */
  --a-left: clamp(180px, 13vw, 260px);
}
.a-rail{
  /* décale le contenu du rail depuis le bord */
  padding-left: 1.6rem; /* avant: 1rem */
}
.a-title-vertical{
  /* micro-centrage vers l'intérieur du rail */
  transform: translateX(.18em);
  letter-spacing: .02em; /* rend le bloc plus “massif” visuellement */
}



