/* ==========================================================================
   MANALITA - Portfolio Graphiste Freelance
   Design System & Exact Mockup Matching
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-black: #11060C;
  --color-dark-banner: #0c0408;
  --color-card-dark: #30272A;
  --color-card-border: rgba(255, 255, 255, 0.05);
  --color-gray-light: #D9D9D9;
  --color-white: #ffffff;
  --color-text-dark: #121011;
  --color-text-muted: #c4bfc1;
  --color-text-light-muted: #555253;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-btn: 4px;
  --radius-card: 12px;
  --radius-img: 14px;
  
  --container-max: 1560px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

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

.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Buttons & Tags
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-white {
  background-color: var(--color-white);
  color: #000000;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.btn-white:active {
  transform: translateY(0);
}

/* Bouton Impactant Hero avec pulsation */
.btn-impact {
  position: relative;
  background-color: var(--color-white);
  color: #000000;
  padding: 0.85rem 1.8rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
  animation: pulse-glow 2.5s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-impact:hover {
  background-color: #f2edf1;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.btn-impact svg {
  transition: transform 0.3s ease;
}

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

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2.5px;
  background-color: currentColor;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-black);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grille 3 colonnes avec Logo parfaitement centré */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3.5rem;
  gap: 2.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-logo:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.header-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3.5rem;
  padding-left: 3.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  padding: 0.2rem 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  opacity: 1;
}

.header-nav-right .header-btn {
  margin-left: auto;
}

/* Menu mobile (replié sur desktop) */
.main-nav {
  display: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3.5rem 0 0 0;
  background-color: var(--color-black);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-end;
  gap: 2rem;
}

.hero-content {
  padding-bottom: 4.5rem;
}

.hero-content .section-tag {
  color: #cfcbcd;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.2vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e5e2e4;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

/* Portrait avec halo lumineux, carte 3D inclinée et badge flottant */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  width: 100%;
  max-width: 440px;
}

.portrait-glow-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, rgba(217, 217, 217, 0.22), rgba(255, 255, 255, 0.04));
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(217, 217, 217, 0.15) 0%, rgba(48, 39, 43, 0.6) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.hero-photo-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 255, 255, 0.15);
}

.hero-photo-card img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

/* Badge statut flottant avec pastille de disponibilité */
.floating-badge {
  position: absolute;
  bottom: 24px;
  left: 20px;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 10px 18px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-badge 3s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge span {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   Section: Derniers Projets (Light)
   -------------------------------------------------------------------------- */
.section-light {
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
  padding: 4.5rem 0 2.5rem;
}

.section-light .section-tag {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  cursor: pointer;
}

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

.project-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-img);
  overflow: hidden;
  background-color: #cecbca;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--color-text-light-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Section: Expertises (Dark)
   -------------------------------------------------------------------------- */
.section-dark {
  background-color: var(--color-black);
  padding: 4.5rem 0;
}

.section-title-white {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  color: var(--color-white);
}

.expertises-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.8rem;
}

.expertise-card {
  background-color: var(--color-card-dark);
  border-radius: var(--radius-card);
  padding: 2.2rem 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  background-color: #3b3034;
}

.expertise-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--color-white);
}

.expertise-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.expertise-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--color-white);
}

.expertise-desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.center-action {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Section: Confiance (Light)
   -------------------------------------------------------------------------- */
.clients-section {
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
  padding: 2.5rem 0 5rem;
}

.section-title-dark {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.clients-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
  transition: transform 0.25s ease;
}

.client-logo-item:hover {
  transform: scale(1.08);
}

.client-logo-item img {
  max-height: 90px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Section: CTA Banner (Black)
   -------------------------------------------------------------------------- */
.cta-banner-section {
  background-color: var(--color-black);
  padding: 5.5rem 0;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Footer (Light)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
  padding: 2.2rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.footer-mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-mascot:hover {
  transform: scale(1.15) rotate(4deg);
}

.footer-mascot:active {
  transform: scale(0.92) rotate(-3deg);
}

.footer-mascot.mascot-bounce {
  animation: mascotPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mascotPop {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.3) rotate(-12deg); }
  65% { transform: scale(0.92) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.footer-mascot img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.82rem;
  color: #635b60;
  flex-wrap: wrap;
  gap: 0.9rem 1.8rem;
}

.footer-copy {
  margin: 0;
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-legal-links a,
.footer-legal-links button.cookie-settings-trigger {
  color: #635b60;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a.active,
.footer-legal-links button.cookie-settings-trigger:hover {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Floating Back To Top (Discreet Arrow)
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(22, 12, 17, 0.78);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-white);
  color: #000000;
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Page: Projets Gallery
   -------------------------------------------------------------------------- */
.page-header {
  padding: 4rem 0 2rem;
  background-color: var(--color-black);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Filtres Projets - Barre Capsule Unique iOS Glass Design
   -------------------------------------------------------------------------- */
.filter-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 16px 36px rgba(0, 0, 0, 0.45);
  margin-bottom: 3rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

/* Curseur Glissant Glass Design iOS */
.filter-glider {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.28),
    0 1px 3px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.35, 1), width 0.35s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.2s ease;
  will-change: transform, width;
}

.filter-btn {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
  outline: none;
  user-select: none;
}

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

.filter-btn.active {
  color: var(--color-black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding-bottom: 5rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-card-dark);
  margin-bottom: 1rem;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.gallery-cat {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .expertises-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    padding-bottom: 1rem;
    text-align: center;
  }
  
  .hero-content .section-tag {
    justify-content: center;
  }
  
  .hero-visual {
    justify-content: center;
  }
  
  .hero-visual-wrapper {
    max-width: 360px;
    margin: 0 auto;
    padding: 10px;
  }

  .portrait-glow-bg {
    width: 280px;
    height: 280px;
  }

  .hero-photo-card {
    transform: none;
    border-radius: 24px;
  }

  .hero-photo-card:hover {
    transform: scale(1.02);
  }

  .floating-badge {
    bottom: 16px;
    left: 14px;
    padding: 8px 14px;
    font-size: 0.7rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  
  .expertises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .clients-row {
    justify-content: center;
    gap: 2.2rem;
  }

  .client-logo-item {
    height: 75px;
  }

  .client-logo-item img {
    max-height: 70px;
    max-width: 170px;
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-nav-left,
  .header-nav-right {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-black);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-white);
  }

  .main-nav .mobile-nav-btn {
    display: inline-flex;
    margin-top: 0.5rem;
    width: fit-content;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-logo img {
    height: 46px;
  }
  
  .header-btn {
    display: none;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .expertises-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Modal Detail Projet avec Galerie Multi-Images
   -------------------------------------------------------------------------- */
.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 3, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.project-modal-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  background-color: #1a0c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  overflow: hidden;
  animation: scaleInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleInModal {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.project-modal-close svg {
  display: block;
  pointer-events: none;
}

.project-modal-close:hover {
  background-color: #fff;
  color: #000;
  transform: rotate(90deg);
}

/* Colonne Galerie */
.modal-gallery-column {
  background-color: #0d0409;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.modal-main-image-wrap {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #080206;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}

.modal-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.modal-main-image-wrap:hover img {
  transform: scale(1.03);
}

.modal-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(17, 6, 12, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.modal-main-image-wrap:hover .modal-zoom-hint {
  opacity: 1;
  background-color: rgba(17, 6, 12, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-thumbnails-strip {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 6px 4px 10px;
}

.modal-thumb-btn {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  border: none;
  outline: none;
  overflow: hidden;
  background-color: #000000;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.modal-thumb-btn:hover {
  opacity: 0.85;
}

.modal-thumb-btn.active {
  opacity: 1;
  box-shadow: 0 0 0 2.5px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Colonne Contenu */
.modal-info-column {
  padding: 36px 32px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-project-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcbcd;
  margin-bottom: 8px;
}

.modal-project-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.modal-project-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 24px;
}

.modal-meta-item .meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8c8288;
  margin-bottom: 2px;
}

.modal-meta-item .meta-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.modal-description-wrap {
  flex: 1;
  margin-bottom: 24px;
}

.modal-description-wrap h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: #e5e2e4;
}

.modal-description-wrap p {
  color: #cfcbcd;
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-action-wrap {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
  .project-modal-container {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }
  .modal-gallery-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .modal-main-image-wrap {
    height: 280px;
  }
  .modal-info-column {
    padding: 24px 20px;
  }
  .modal-project-title {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Lightbox Zoom Plein Écran
   -------------------------------------------------------------------------- */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 1, 4, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
  animation: fadeInLightbox 0.2s ease forwards;
}

@keyframes fadeInLightbox {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox-content img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: zoomInImg 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInImg {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.2s ease;
}

.lightbox-close svg {
  display: block;
  pointer-events: none;
}

.lightbox-close:hover {
  background-color: #fff;
  color: #000;
  transform: rotate(90deg) scale(1.05);
}

/* ==========================================================================
   Page: À Propos (Harmonisation Exacte Design System)
   ========================================================================== */

/* En-tête Page À Propos */
.about-hero-punchline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.about-hero-bio {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #cfcbcd;
  max-width: 620px;
  margin-bottom: 1.8rem;
}

.about-hero-bio strong {
  color: #ffffff;
  font-weight: 700;
}

.about-floating-badge {
  text-transform: none;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  white-space: normal;
  max-width: calc(100% - 30px);
  line-height: 1.35;
}

.about-hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cfcbcd;
  max-width: 720px;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Section Présentation / Bio */
.about-intro-section {
  padding: 2rem 0 5.5rem;
  background-color: var(--color-black);
  position: relative;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.about-bio-column {
  display: flex;
  flex-direction: column;
}

.about-bio-greeting {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.about-bio-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #e5e0e3;
  margin-bottom: 1.8rem;
}

.about-bio-lead strong {
  color: #ffffff;
  font-weight: 800;
}

/* Carte citation / philosophie */
.about-mission-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-mission-card p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #cfcbcd;
  font-style: italic;
  margin: 0;
}

/* Badges Traits en Glassmorphism */
.about-traits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.about-trait-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.about-trait-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.trait-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

/* Boutons d'action */
.about-actions-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section: Mes Compétences / Savoir-Faire (Fond Clair DA)
   ========================================================================== */
.about-skills-section {
  padding: 5.5rem 0 6rem;
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
}

.about-skills-section .about-section-header {
  margin-bottom: 3.5rem;
}

.about-skills-section .section-tag {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.about-skills-section .section-title-dark {
  margin-bottom: 0;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.about-skill-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.about-skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(17, 6, 12, 0.16);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.1);
}

.about-skill-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #f7f3f1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-black);
  transition: all 0.25s ease;
}

.about-skill-card:hover .about-skill-icon-wrap {
  background: var(--color-black);
  color: #ffffff;
  transform: scale(1.08);
}

.about-skill-icon-wrap svg {
  width: 26px;
  height: 26px;
  display: block;
}

.about-skill-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.65rem;
}

.about-skill-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a5357;
  margin-top: auto;
}

/* ==========================================================================
   Section: Outils & Stack Créative
   ========================================================================== */
.about-tools-section {
  padding: 5.5rem 0;
  background-color: var(--color-black);
}

.about-tools-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.about-tool-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-tool-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
}

.about-tool-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-tool-icon img,
.about-tool-icon svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.about-tool-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

/* ==========================================================================
   Section: Mon Parcours / Références (Fond Clair DA)
   ========================================================================== */
.about-journey-section {
  padding: 5.5rem 0 6.5rem;
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
}

.about-journey-section .section-tag {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.about-journey-section .section-title-dark {
  margin-bottom: 0;
}

.journey-timeline-wrapper {
  position: relative;
  margin-top: 3.5rem;
}

.journey-timeline-track {
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.08) 100%);
  z-index: 1;
}

.journey-timeline-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.journey-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-black);
  border-radius: 9999px;
  padding: 0.85rem 1.8rem;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 230px;
  transition: all 0.25s ease;
}

.journey-pill:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--color-black);
  background: var(--color-black);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.journey-pill-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  transition: color 0.25s ease;
}

.journey-pill:hover .journey-pill-text {
  color: #ffffff;
}

.journey-step-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #554d52;
  max-width: 220px;
}

/* Responsive À Propos */
@media (max-width: 1024px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-intro-grid .hero-visual-wrapper {
    margin: 0 auto;
    order: -1;
  }

  .about-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-tools-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .journey-timeline-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
  }

  .journey-timeline-track {
    display: none;
  }
}

@media (max-width: 768px) {
  .about-skills-grid {
    grid-template-columns: 1fr;
  }

  .about-tools-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-timeline-steps {
    grid-template-columns: 1fr;
  }

  .journey-pill {
    max-width: 100%;
  }

  .about-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Section: Blog & Articles (Accueil + Page Blog)
   ========================================================================== */
.home-blog-section {
  padding: 5.5rem 0;
  background-color: var(--color-black);
}

.home-blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-blog-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.home-blog-all-btn svg {
  transition: transform 0.2s ease;
}

.home-blog-all-btn:hover svg {
  transform: translateX(4px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #11060C;
  border-color: #ffffff;
}

/* Grilles Blog */
.home-blog-grid,
.blog-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

/* Carte Article */
.blog-card {
  background: #180d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.blog-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #0b0308;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

/* Badge catégorie flottant sur la photo */
.blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 6, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  z-index: 2;
}

.blog-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.meta-dot {
  opacity: 0.4;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
  color: #e5cbd9;
}

.blog-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-link {
  gap: 0.7rem;
}

/* ==========================================================================
   Modal Lecteur d'Article de Blog (Full Screen Reader)
   ========================================================================== */
.article-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 2, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.article-modal-container {
  background: #150a11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  width: 100%;
  max-width: 820px;
  margin: auto;
  position: relative;
  padding: 3.5rem 3.5rem 4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: articleModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes articleModalIn {
  0% { transform: scale(0.96) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.article-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-modal-close:hover {
  background: #ffffff;
  color: #11060C;
  transform: rotate(90deg) scale(1.08);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.article-meta-row .blog-badge {
  position: static;
  background: rgba(255, 255, 255, 0.1);
}

.article-meta-date,
.article-meta-time {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.article-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
}

.article-modal-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-style: italic;
  border-left: 3px solid #ffffff;
  padding-left: 1.2rem;
}

.article-modal-hero-img {
  width: 100%;
  max-height: 400px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background-color: #0c0408;
}

.article-modal-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-modal-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.article-modal-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.2rem 0 0.8rem;
}

.article-modal-body p {
  margin-bottom: 1.2rem;
}

@media (max-width: 1024px) {
  .home-blog-grid,
  .blog-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-blog-grid,
  .blog-catalog-grid {
    grid-template-columns: 1fr;
  }

  .article-modal-container {
    padding: 2.5rem 1.5rem 2.5rem;
  }
}

/* ==========================================================================
   Bannière Cookies (RGPD / CNIL) - Glass Obsidian
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  z-index: 950;
  background: rgba(22, 12, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #ffffff;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.cookie-banner-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.cookie-banner-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cfcbcd;
  margin: 0 0 1.25rem;
}

.cookie-banner-desc a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.cookie-banner-desc a:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-banner-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 1.3rem;
  }
  .cookie-banner-actions {
    flex-direction: column-reverse;
  }
  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Pages Légales (Mentions Légales & Politique de Confidentialité)
   ========================================================================== */
.legal-page-section {
  padding: 4.5rem 0 6rem;
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
}

.legal-container {
  max-width: 860px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 24px;
  padding: 3.2rem 3.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a7176;
  background: #f4efed;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 2.2rem;
}

.legal-block {
  margin-bottom: 2.6rem;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.legal-block p,
.legal-block li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4a4247;
  margin-bottom: 0.8rem;
}

.legal-block ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-block li {
  margin-bottom: 0.4rem;
}

.legal-block strong {
  color: var(--color-black);
  font-weight: 700;
}

.legal-block a {
  color: var(--color-black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-highlight-box {
  background: #faf6f4;
  border-left: 3px solid var(--color-black);
  padding: 1.2rem 1.4rem;
  border-radius: 0 14px 14px 0;
  margin: 1.2rem 0;
}

.legal-highlight-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a4247;
}

.legal-highlight-box p + p {
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 2.2rem 1.5rem;
    border-radius: 18px;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Modal Formulaire de Contact (Glass Obsidian)
   ========================================================================== */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 3, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  animation: fadeInModal 0.25s ease forwards;
}

.contact-modal-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: auto;
  background-color: #1a0c14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 2.5rem 2.3rem 2.1rem;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
  color: #ffffff;
  animation: scaleInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-modal-header {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.contact-modal-tag {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b7aeb3;
  margin-bottom: 0.45rem;
}

.contact-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.contact-modal-subtitle {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cfcbcd;
  margin: 0;
}

.contact-modal-subtitle a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-field label {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ded9dc;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.78rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cfcbcd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 16px;
}

.contact-field select option {
  background-color: #1a0c14;
  color: #ffffff;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.contact-field textarea {
  resize: vertical;
  min-height: 115px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cfcbcd;
  cursor: pointer;
  margin-top: 0.15rem;
}

.contact-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
}

.contact-consent a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.contact-form-status.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.contact-form-actions .btn {
  border-radius: 9999px;
  padding: 0.78rem 1.65rem;
  font-size: 0.84rem;
}

.contact-submit-btn {
  background-color: var(--color-white);
  color: #11060C;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover {
  background-color: #f2edf1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.contact-form-actions .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

@media (max-width: 600px) {
  .contact-modal-container {
    padding: 2rem 1.35rem 1.6rem;
    border-radius: 18px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .contact-form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
