/* ═══════════════════════════════════════════════
   Hugo Prieur — style.css
   Dark‑first, accent rouge, police Bebas + Inter
═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(4rem, 2rem + 8vw, 10rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ── LIGHT MODE (default) ── */
:root,
[data-theme="light"] {
  --color-bg: #fffdfd;
  --color-bg-rgb: 255, 253, 253;
  --color-surface: #ffffff;
  --color-surface-2: #f5f3f3;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-text: #101010;
  --color-text-muted: #666666;
  --color-text-faint: #aaaaaa;
  --color-accent: #a61513;
  --color-accent-hover: #8f0c0a;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --color-bg: #101010;
  --color-bg-rgb: 16, 16, 16;
  --color-surface: #1a1a1a;
  --color-surface-2: #242424;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #fffdfd;
  --color-text-muted: #999999;
  --color-text-faint: #555555;
  --color-accent: #a61513;
  --color-accent-hover: #8f0c0a;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* ── BASE RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  line-height: 1.65;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

p {
  max-width: 72ch;
}

::selection {
  background: rgba(229, 57, 53, 0.25);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
}

.nav-desktop {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
}

.nav-link {
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link.active {
  border-bottom: 1px solid var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-link-mobile {
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .header-inner {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .header-actions {
    margin-left: 0;
    flex-direction: row-reverse;
  }
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }

  .burger {
    display: none !important;
  }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--space-6) calc(var(--space-12) + 20px);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.hero-subtitle {
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.hero-name {
  font-size: clamp(3rem, 1.5rem + 7vw, 8rem);
  color: #ffffff;
  display: block;
  line-height: 0.9;
  margin-bottom: var(--space-4);
}

.hero-name-indent {
  margin-left: 0.18em;
  color: var(--color-accent);
}

.hero-tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-8);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-text {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: currentColor;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* ── PROFILE SECTION ── */
.profile-section {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  padding-block: var(--space-20) var(--space-16);
}

.section-separator {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 600px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.profile-bio p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.profile-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--full {
  width: 100%;
}

/* ── PAGE MAIN ── */
.page-main {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  padding-top: calc(var(--space-16) + 56px);
  padding-bottom: var(--space-24);
}

.page-header-block {
  margin-bottom: var(--space-12);
}

.page-title {
  font-size: var(--text-2xl);
  margin-top: var(--space-2);
}

.page-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.back-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--color-text);
}

.empty-state {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  padding: var(--space-16) 0;
  text-align: center;
}

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.project-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.project-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
  transition: opacity var(--transition);
}

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

.project-card-img-placeholder {
  aspect-ratio: 3/2;
  background: var(--color-surface-2);
}

.project-card-info {
  padding: var(--space-4) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
}

.project-card-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── LIGHTBOX GRID ── */
.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-3);
}

.lightbox-thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease, opacity var(--transition);
}

.lightbox-thumb:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

/* ── LIGHTBOX OVERLAY ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-full-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--transition), background var(--transition);
}

.lightbox-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.lightbox-prev,
.lightbox-next {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--transition), background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-counter {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  min-width: 60px;
  text-align: center;
}

/* ── VIDEO GRID ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.video-thumb-btn {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  aspect-ratio: 3/2;
  cursor: pointer;
}

.video-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.video-thumb-btn:hover img {
  transform: scale(1.04);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition);
}

.video-thumb-btn:hover .video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.video-play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition);
}

.video-thumb-btn:hover .video-play-btn svg {
  transform: scale(1.15);
}

.video-title {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-1) 0;
}

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.video-modal-close {
  position: absolute;
  top: calc(-1 * var(--space-12));
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition);
}

.video-modal-close:hover {
  color: #fff;
}

.video-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.video-player {
  width: 100%;
  border-radius: var(--radius-md);
  background: #000;
}

/* ── CV ── */
.cv-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.cv-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cv-section-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.cv-item {
  display: flex;
  gap: var(--space-8);
}

.cv-year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  min-width: 70px;
  padding-top: 4px;
}

.cv-item-body strong {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

.cv-item-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cv-skills {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cv-skills li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}

.cv-skills li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.cv-download {
  padding-top: var(--space-4);
}

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.form-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

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

.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

.alert--success {
  background: rgba(67, 122, 34, 0.12);
  color: #6daa45;
  border: 1px solid rgba(67, 122, 34, 0.3);
}

.alert--error {
  background: rgba(229, 57, 53, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(229, 57, 53, 0.25);
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
}

.footer-socials {
  display: flex;
  gap: var(--space-4);
  margin-left: auto;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-social-link:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── ANIMATIONS ── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 767px) {

  /* Container et Espacements */
  .container {
    padding-inline: var(--space-4);
  }

  .hero-content {
    padding: 0 var(--space-4) var(--space-8);
  }

  .page-main {
    padding-top: calc(var(--space-12) + 56px);
    padding-bottom: var(--space-16);
  }

  /* Typographie */
  .hero-tagline {
    margin-bottom: var(--space-4);
  }

  /* Section Profil Accueil */
  .profile-grid {
    gap: var(--space-6);
  }

  .profile-cta {
    flex-direction: column;
    width: 100%;
  }

  .profile-cta .btn {
    width: 100%;
  }

  /* CV Liste */
  .cv-item {
    flex-direction: column;
    gap: var(--space-1);
  }

  .cv-year {
    padding-top: 0;
    min-width: auto;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
  }

  .cv-item-body strong {
    margin-bottom: 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
  }

  .footer-socials {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  /* Modals Vidéo / Photo */
  .video-modal-inner {
    margin-top: 3rem;
  }

  .video-modal-close {
    top: -3.5rem;
    right: 0;
  }

  .lightbox-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {

  /* Grille stats 1 colonne sur très petits écrans */
  .profile-grid {
    grid-template-columns: 1fr !important;
  }
}