/* Feuille de style principale : thème sombre glass, menus doc/reco, effets fun */
:root {
    --bg: #020617;
    --bg-2: #0a1124;
    --card: #0c1326;
    --text: #e5e7eb;
    --muted: #9ea7ba;
    --accent: #0ea5e9;
    --accent-2: #6366f1;
    --accent-3: #22d3ee;
    --border: rgba(255, 255, 255, 0.08);
    --glow-cyan: rgba(14, 165, 233, 0.18);
    --glow-purple: rgba(99, 102, 241, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.14), transparent 32%),
        radial-gradient(circle at 80% 12%, rgba(99, 102, 241, 0.16), transparent 30%),
        radial-gradient(900px 700px at 50% -10%, rgba(4, 7, 16, 0.92), transparent 60%),
        linear-gradient(135deg, #020617, #0b1327);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}


a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-2);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(120deg, rgba(8, 12, 24, 0.55), rgba(16, 20, 40, 0.6));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.42),
        0 0 30px rgba(14,165,233,0.18),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(92, 225, 230, 0.08), rgba(192, 132, 252, 0.1));
}

.lang-link {
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease;
}

.lang-link.active {
    color: var(--text);
    border-color: var(--accent);
    background: linear-gradient(120deg, rgba(92, 225, 230, 0.2), rgba(192, 132, 252, 0.25));
}

.flag {
    width: 24px;
    height: 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flag-fr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%230055A4'/%3E%3Crect x='20' width='20' height='40' fill='%23fff'/%3E%3Crect x='40' width='20' height='40' fill='%23EF4135'/%3E%3C/svg%3E");
}

.flag-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23012A87'/%3E%3Cpath fill='%23fff' d='M0 0l23 15.3V0h14v15.3L60 0v7L37 20l23 13v7L37 24.7V40H23V24.7L0 40v-7l23-13L0 7z'/%3E%3Cpath fill='%23C8102E' d='M26 0h8v40h-8zM0 16h60v8H0z'/%3E%3Cpath fill='%23C8102E' d='M0 0l19.5 13h-6.5L0 4.2V0zm60 0v4.2l-13 8.8h-6.5L60 0zm0 40l-19.5-13h6.5L60 35.8V40zM0 40v-4.2l13-8.8h6.5L0 40z'/%3E%3C/svg%3E");
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.print-only {
    display: none;
}

.brand-name {
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}

.tagline {
    color: var(--muted);
    font-size: 13px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 9999;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

.nav-link {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text);
    transition: all 0.15s ease;
}

.nav-link:hover {
    border-color: var(--border);
    color: var(--accent);
}

.nav-link.active {
    border-color: var(--accent);
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--text);
}

.letter-btn {
    background: linear-gradient(125deg, rgba(14,165,233,0.42), rgba(99,102,241,0.5));
    border-color: rgba(14, 165, 233, 0.7);
    color: var(--text);
    font-weight: 750;
    letter-spacing: 0.02em;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(14,165,233,0.32),
        0 0 0 1px rgba(255,255,255,0.08) inset;
}

.letter-btn:hover {
    color: var(--text);
    box-shadow:
        0 16px 40px rgba(99,102,241,0.32),
        0 0 28px rgba(14,165,233,0.35),
        0 0 0 1px rgba(92, 225, 230, 0.45);
}

.nav-lang-mobile {
    display: none;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.page {
    width: min(1100px, 100% - 48px);
    margin: 0 auto;
    padding: 32px 0 140px; /* espace pour le footer fixé */
    position: relative;
    animation: slideFade 320ms ease;
}
.page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(420px 280px at 20% 10%, rgba(92, 225, 230, 0.07), transparent 60%),
        radial-gradient(360px 240px at 78% 5%, rgba(159, 122, 234, 0.08), transparent 55%),
        radial-gradient(420px 260px at 50% 82%, rgba(92, 112, 230, 0.07), transparent 55%);
    z-index: 0;
    animation: floatGlow 14s ease-in-out infinite alternate;
}
.page > * {
    position: relative;
    z-index: 1;
}

.cv-page .section {
    margin: 22px 0;
}

.cv-page .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.cv-name {
    margin: 4px 0;
    font-size: clamp(28px, 5vw, 36px);
}

.hero {
    padding: 20px 0 12px;
    position: relative;
    z-index: 15000;
}

.hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 15001;
}
.hero-header .doc-actions {
    margin-left: auto;
}
.hero-header .doc-dropdown {
    width: auto;
    position: relative;
    z-index: 30002;
}

.text-with-photo {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: center;
}

.text-photo {
    display: flex;
    justify-content: flex-end;
}

.text-photo img {
    max-width: min(320px, 100%);
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.eyebrow, .card-eyebrow {
    color: var(--muted);
    margin: 0 0 8px;
}

h1 {
    font-size: clamp(28px, 5vw, 40px);
    margin: 0 0 12px;
    line-height: 1.2;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin: 0 0 12px;
    line-height: 1.3;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    margin: 0 0 10px;
    font-size: 20px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h4 {
    margin: 0 0 6px;
    font-size: 17px;
}

.lead {
    color: var(--muted);
    margin: 0 0 18px;
    max-width: 780px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
    background: linear-gradient(135deg, rgba(14,165,233,0.3), rgba(99,102,241,0.32));
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 0 28px rgba(14,165,233,0.18);
}

.btn.primary {
    background: linear-gradient(120deg, rgba(14,165,233,0.45), rgba(99,102,241,0.5));
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 14px 38px rgba(99,102,241,0.32), 0 0 26px rgba(14,165,233,0.25);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
    box-shadow:
        0 16px 40px rgba(14,165,233,0.28),
        0 0 0 1px rgba(255,255,255,0.08) inset,
        0 0 32px rgba(99,102,241,0.32);
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: #22d3ee;
}

.nav-link svg,
.lang-link svg {
    width: 16px;
    height: 16px;
    fill: #22d3ee;
}

.cv-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 5;
}

.cv-header-text h1,
.cv-header-text h2 {
    margin: 0;
}
.cv-header-text h1 {
    margin-bottom: 6px;
}

.cv-print-photo {
    display: none;
}

.cv-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.letter-dropdown {
    position: relative;
    width: 100%;
    z-index: 200;
}

.doc-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    z-index: 20000;
}

.doc-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    z-index: 20001;
}

.letter-menu {
    position: absolute;
    right: 0;
    margin-top: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    padding: 6px;
    min-width: 240px;
    display: none;
    z-index: 20010;
    overflow: visible;
    max-height: none;
}

.letter-menu.open {
    display: block;
}

.letter-item {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.letter-item:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.letter-group {
    border-bottom: 1px solid var(--border);
    overflow: visible;
    position: relative;
    z-index: 20010;
}

.letter-group:last-of-type {
    border-bottom: none;
}

.letter-group-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.letter-group.open .letter-group-toggle {
    border-color: var(--border);
}

.letter-group-toggle .arrow {
    display: none;
}

.letter-group-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.letter-submenu {
    display: none;
    padding: 0 4px 6px 18px;
}

.letter-group.open .letter-submenu {
    display: block;
}

/* Fly-out submenu on hover to the left */
.letter-group {
    position: relative;
}
.letter-group .letter-submenu {
    position: absolute;
    top: 0;
    right: 100%;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 60005;
    padding: 6px 8px;
}
.letter-group:hover .letter-submenu {
    display: block;
}

.letter-group-toggle {
    background: rgba(255, 255, 255, 0.01);
}

.letter-group.open .letter-group-toggle {
    background: rgba(92, 225, 230, 0.06);
}

.letter-group + .letter-group {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 4px;
}

.letter-group-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 6px 8px 2px;
}

.letter-empty {
    padding: 10px 12px;
    color: var(--muted);
}

.print-btn {
    white-space: nowrap;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.card, .contact-card {
    position: relative;
    background: rgba(6, 10, 22, 0.78);
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 26px;
    padding: 18px;
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(14, 165, 233, 0.14),
        0 0 36px rgba(99, 102, 241, 0.16),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(14px) saturate(130%);
    overflow: hidden;
}

.card::before,
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(14,165,233,0.8), rgba(99,102,241,0.8));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.card:hover, .contact-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 64px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(14, 165, 233, 0.2),
        0 0 46px rgba(99, 102, 241, 0.24),
        inset 0 2px 0 rgba(255, 255, 255, 0.14);
    border-color: rgba(92, 225, 230, 0.55);
    background: rgba(8, 12, 24, 0.7);
}

@keyframes floatGlow {
    0% { transform: translate3d(0,0,0); opacity: 1; }
    50% { transform: translate3d(0, -6px, 0); opacity: 0.92; }
    100% { transform: translate3d(0, 8px, 0); opacity: 1; }
}

/* Gravity / fun easter-egg */
.gravity-anim {
    animation: fallDownInd 4s ease-in forwards var(--g-delay, 0s);
    will-change: transform;
}

@keyframes fallDownInd {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    40% { transform: translateY(55vh) rotate(calc(var(--g-rot, 3deg) * 0.6)); opacity: 1; }
    80% { transform: translateY(110vh) rotate(var(--g-rot, 3deg)); opacity: 1; }
    100% { transform: translateY(110vh) rotate(calc(var(--g-rot, 3deg) * 1)); opacity: 1; }
}

.gravity-reset {
    animation: dropBack 1.8s cubic-bezier(0.22, 1.4, 0.36, 1) forwards var(--g-delay, 0s);
    will-change: transform;
}

@keyframes dropBack {
    0% { transform: translateY(-120vh) rotate(0deg); }
    60% { transform: translateY(12px) rotate(0deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.dog-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 200;
    background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.45), rgba(0,0,0,0.7));
}
.dog-overlay img {
    max-width: min(560px, 88vw);
    width: 88%;
    border-radius: 22px;
    border: 3px solid rgba(255,255,255,0.45);
    box-shadow: 0 24px 90px rgba(0,0,0,0.65), 0 0 80px rgba(92,225,230,0.25);
    transform: scale(0.35) translateY(60px) rotate(-45deg);
    opacity: 0;
}
.dog-overlay.show {
    opacity: 1;
}
.dog-overlay.show img {
    opacity: 1;
    animation: dogGrandReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dogGrandReveal {
    0% {
        transform: scale(0.35) translateY(60px) rotate(-45deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) translateY(-10px) rotate(360deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0) rotate(360deg);
        opacity: 1;
    }
}

.dog-caption {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    padding: 0 6%;
    text-align: center;
    font-weight: 800;
    font-size: clamp(18px, 3.6vw, 26px);
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    overflow: hidden;
    perspective: 900px;
    z-index: 2;
    color: #f8dd4a;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 12px rgba(0,0,0,0.4);
    background-image: linear-gradient(120deg, rgba(255,255,255,0.12), rgba(248,221,74,0.9), rgba(255,255,255,0.18));
    background-size: 300% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #f8dd4a; /* assure la couleur jaune de base */
    background-blend-mode: screen;
}
.dog-overlay.show .dog-caption {
    opacity: 1;
    animation: starCrawl 30s linear forwards, textShine 6s linear forwards;
}

@keyframes starCrawl {
    0% {
        transform: translate(-50%, 200%) rotateX(25deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -360%) rotateX(35deg) scale(0.6);
        opacity: 1;
    }
}

@keyframes textShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Force dropdowns above cards */
.doc-section,
.doc-actions,
.hero-header .doc-dropdown {
    position: relative !important;
    z-index: 50000 !important;
}
.letter-menu,
.letter-group,
.letter-group-toggle,
.letter-item {
    position: relative;
    z-index: 50005 !important;
}

/* Fix documentation dropdown position so it doesn't jump */
.doc-section {
    position: relative;
    width: auto;
    align-items: flex-end;
    gap: 8px;
    z-index: 200;
}
.doc-actions {
    width: auto;
}
.doc-dropdown {
    width: auto;
    position: relative;
}
.letter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    min-width: 240px;
    max-height: none;
    overflow: visible;
    z-index: 300;
}

.section {
    margin: 28px 0;
}

.section.slim {
    margin-top: 12px;
}

.card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.pill-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-list li {
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(30, 46, 78, 0.38);
    border: 1px solid rgba(159, 122, 234, 0.35);
    color: #f3f1ff;
    backdrop-filter: blur(8px) saturate(120%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.info-grid p {
    margin: 0;
    color: var(--muted);
}

.tags {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 12px 0 0;
}

.tags li {
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.2), rgba(92, 225, 230, 0.18));
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(159, 122, 234, 0.35);
    font-size: 13px;
    color: #f5ecff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.contact-card .strong {
    font-weight: 600;
    color: var(--text);
}

.pdf-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 100000;
}

.pdf-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.pdf-modal {
    width: min(1040px, 96vw);
    height: min(86vh, 980px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pdf-overlay.open .pdf-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pdf-modal-header h3 {
    margin: 2px 0 0;
}

.pdf-close {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.pdf-frame {
    flex: 1;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0b1220;
}

.pdf-actions {
    display: flex;
    justify-content: flex-end;
}

.page-loader {
    position: fixed;
    inset: 80px 0 70px 0; /* laisse passer header et footer fixes */
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.page-loader.visible {
    opacity: 1;
    pointer-events: auto;
}

.page-loader .spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--accent);
    animation: spin 1.6s linear infinite;
    box-shadow: 0 0 22px rgba(125, 211, 252, 0.45);
    border-radius: 50%;
    background: transparent;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-top: 1px solid var(--border);
    padding: 18px 32px 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        linear-gradient(120deg, rgba(10, 14, 28, 0.52), rgba(20, 24, 44, 0.6));
    z-index: 9;
    box-shadow:
        0 -12px 30px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(14,165,233,0.16),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 12px;
}

@media (max-width: 720px) {
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .letter-dropdown {
        width: auto;
    }

    .text-with-photo {
        grid-template-columns: 1fr;
    }

    .text-photo {
        justify-content: flex-start;
    }
}


@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 64px;
        position: relative;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .doc-section {
        align-items: flex-start;
    }

    .doc-actions {
        justify-content: flex-start;
    }

    .lang-switch {
        display: none;
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
    }

    .nav-lang-mobile {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .pdf-modal {
        height: min(78vh, 760px);
    }
}

