/* 
   ==========================================================================
   ART DIRECTION : SWISS NEO-BRUTALISM & EDITORIAL DESIGN
   Highly modular, semantic, and dynamically themeable per project.
   ========================================================================== 
*/

/* --- THEME DESIGN SYSTEM (Scoping CSS Variables) --- */

/* 1. Default Global Hub Theme (Charcoal & Vibrant Swiss Vermillion) */
body[data-theme="global"] {
  --bg: #0e1111;
  --text: #f8fafc;
  --text-muted: #8a99ad;
  --accent: #ff5a36;
  --accent-rgb: 255, 90, 54;
  --border: rgba(255, 255, 255, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* 2. Project 1 Theme: El Sol Oro (Sage & Organic Leaf Green / Terracotta) */
body[data-theme="bear"] {
  --bg: #fffbf7;
  --text: #3a2012;
  --text-muted: #7d6555;
  --accent: #E8245F;
  --accent-rgb: 232, 36, 95;
  --border: rgba(58, 32, 18, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* 3. Project 2 Theme: Actor Studio (Obsidian & Silver Cinema) */
body[data-theme="actor-studio"] {
  --bg: #090a0f;
  --text: #e8eaf2;
  --text-muted: #888a99;
  --accent: #FC5542;
  --accent-rgb: 252, 85, 66;
  --border: rgba(232, 234, 242, 0.12);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

/* 4. Project 3 Theme: La Lumière des Fées (Beige & Forest Green) */
body[data-theme="lumiere-fee"] {
  --bg: #f3f2eb;
  --text: #1c2a22;
  --text-muted: #5c6e64;
  --accent: #3f6b4d;
  --accent-rgb: 63, 107, 77;
  --border: rgba(28, 42, 34, 0.15);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

/* 5. Project 4 Theme: Parallax Walk (Slate & Vibrant Vermillion) */
body[data-theme="parallax-walk-animation"] {
  --bg: #0e1111;
  --text: #f8fafc;
  --text-muted: #8a99ad;
  --accent: #ff5a36;
  --accent-rgb: 255, 90, 54;
  --border: rgba(255, 255, 255, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* 6. Project 5 Theme: Streetwear Logo / Pseudo Logo (Plum & Shocking Neon Lime) */
body[data-theme="pseudo-logo"] {
  --bg: #160522;
  --text: #fdfeff;
  --text-muted: #9f8ba8;
  --accent: #3eff18;
  --accent-rgb: 62, 255, 24;
  --border: rgba(253, 254, 255, 0.18);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* --- UNIVERSAL RESET & GLOBAL RULES --- */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Prevent horizontal layout overflow at the root level */
  
  /* Barre de défilement personnalisée standard (Firefox 121+, Chrome 121+, Safari 18.5+) */
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

/* Barre de défilement personnalisée pour moteurs Webkit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 6px; /* Défilement vertical fin */
  height: 6px; /* Défilement horizontal fin si présent */
}

::-webkit-scrollbar-track {
  background: transparent; /* Fond invisible pour intégration pure */
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px; /* Coins arrondis lisses */
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text); /* Réagit au survol */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  overflow-x: hidden;
}

/* Strict Keyboard Navigation Outline */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background-color: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
  border: 1px solid var(--text);
}

.skip-link:focus {
  top: 0;
}

/* --- TYPOGRAPHY SYSTEM --- */

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

p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

/* --- STRUCTURAL LAYOUTS & BORDERS (Brutalist Strictness) --- */

.main-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: var(--bg);
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* --- THE INDEX HERO: BOLD SWISS LAYOUT --- */

.hero-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem;
  border-bottom: 1px solid var(--border);
}

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

.hero-badge {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 500px;
}

/* --- THE DYNAMIC SWISS GRID LIST OF PROJECTS --- */

.editorial-projects-section {
  border-bottom: 1px solid var(--border);
}

.section-headline {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border);
}

.section-headline h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
}

.projects-list-container {
  max-width: 1400px;
  margin: 0 auto;
}

.project-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 150px;
  align-items: center;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease;
  position: relative;
}

.project-row:hover {
  background-color: rgba(var(--accent-rgb), 0.03);
}

.project-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.project-title-block h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  transition: transform 0.25s ease;
}

.project-row:hover .project-title-block h3 {
  transform: translateX(10px);
}

.project-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  padding-right: 2rem;
}

.project-row-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: right;
  display: inline-block;
}

.project-row-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.project-row:hover .project-row-link span {
  transform: translateX(5px);
}

/* --- THE COMPREHENSIVE PRESENTATION PAGES STYLING --- */

.project-hero-section {
  border-bottom: 1px solid var(--border);
}

.project-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.back-to-home {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.project-hero-title {
  font-size: clamp(2.5rem, 6vw, 6rem);
  text-transform: uppercase;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}

.meta-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.meta-item span {
  font-size: 1rem;
  color: var(--text);
}

/* Big Display Image Section */
.project-showcase-section {
  border-bottom: 1px solid var(--border);
}

.showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.main-showcase-image-wrapper {
  border: 1px solid var(--border);
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg);
  margin-bottom: 4rem;
}

.main-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detailed Editorial Contents Grid */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.editorial-sidebar h2,
.editorial-sidebar h3,
.editorial-text h2,
.editorial-text h3 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.editorial-text {
  font-size: 1.15rem;
  line-height: 1.8;
}

.editorial-text p {
  margin-bottom: 1.5rem;
}

.editorial-text strong {
  color: var(--text);
}

/* Responsive local video integration */
.video-container {
  margin-top: 3rem;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background-color: #000;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CURSUS ACADEMIQUE & BIO (Swiss Modern Grid) --- */

.cursus-section {
  border-bottom: 1px solid var(--border);
}

.cursus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

.cursus-column {
  padding: 6rem 4rem;
  border-right: 1px solid var(--border);
}

.cursus-column:last-child {
  border-right: none;
}

.cursus-column h2,
.cursus-column h3 {
  font-size: 2.25rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.school-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cursus-paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --- COMPÉTENCES BADGES GRID --- */

.skills-section {
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1400px;
  margin: 0 auto;
}

.skill-category {
  padding: 4rem 2rem;
  border-right: 1px solid var(--border);
}

.skill-category:last-child {
  border-right: none;
}

.skill-category h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.skills-badges-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.skill-badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  display: inline-block;
}

/* --- CONTACT SECTION & ACCESSIBLE FORM --- */

.contact-section {
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-sidebar {
  padding: 6rem 4rem;
  border-right: 1px solid var(--border);
}

.contact-sidebar h2 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
  margin-top: 3rem;
}

.contact-info-list li {
  margin-bottom: 2rem;
}

.contact-info-list strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-info-list a, .contact-info-list span {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-info-list a {
  word-break: break-all;
  overflow-wrap: break-word;
}

.contact-form-container {
  padding: 6rem 4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.form-group-brutalist {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-group-brutalist label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.form-group-brutalist input,
.form-group-brutalist textarea {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: border-bottom-color 0.25s ease;
}

.form-group-brutalist input:focus,
.form-group-brutalist textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.btn-brutalist {
  background-color: var(--accent);
  color: var(--bg);
  border: 1px solid var(--text);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 1.25rem 2.5rem;
  cursor: pointer;
  display: inline-block;
  align-self: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-brutalist:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--text);
  background-color: var(--bg);
  color: var(--accent) !important; /* Force l'inversion et surpasse la règle générale a:hover */
}

.form-feedback {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(43, 108, 67, 0.1);
  color: #2b6c43;
  border-color: #2b6c43;
}

.form-feedback.error {
  display: block;
  background-color: rgba(224, 122, 95, 0.1);
  color: #e07a5f;
  border-color: #e07a5f;
}

/* --- FOOTER SECTION --- */

.main-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-school-credits {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 500px;
}

.footer-school-credits strong {
  color: var(--text);
}

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

.footer-nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-row {
    grid-template-columns: 60px 1.5fr 1fr;
    padding: 2.5rem 1.5rem;
  }
  
  .project-row-link {
    grid-column: span 3;
    text-align: left;
    margin-top: 1rem;
  }
  
  .cursus-grid {
    grid-template-columns: 1fr;
  }
  
  .cursus-column {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-category {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem;
  }
  
  .contact-form-container {
    padding: 4rem 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-nav-list {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Header & Nav */
  .header-container {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
  }
  
  .nav-list {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.9rem;
  }
  
  /* Hero section index */
  .hero-section {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }
  
  /* Stacked Project rows on index.html */
  .project-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem;
  }

  .project-number {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }

  .project-title-block h3 {
    font-size: 1.75rem;
  }

  .project-row:hover .project-title-block h3 {
    transform: translateX(5px);
  }

  .project-tagline {
    padding-right: 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .project-row-link {
    grid-column: auto;
    text-align: left;
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }
  
  /* Bio / Cursus */
  .cursus-column {
    padding: 3rem 1.5rem;
  }

  .cursus-column h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  /* Skills */
  .skill-category {
    padding: 2rem 1.5rem;
  }

  /* Contact & Form */
  .contact-sidebar {
    padding: 3rem 1.5rem;
  }

  .contact-sidebar h2 {
    font-size: 2.25rem;
  }

  .contact-form-container {
    padding: 3rem 1.5rem;
  }

  .form-row {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  /* Project detailed pages */
  .project-hero-container {
    padding: 4rem 1.5rem 2.5rem 1.5rem;
    gap: 1.5rem;
  }

  .project-hero-title {
    font-size: clamp(2rem, 9vw, 3.5rem);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .showcase-container {
    padding: 2rem 1.5rem;
  }

  .main-showcase-image-wrapper {
    margin-bottom: 2rem;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-sidebar h2,
  .editorial-sidebar h3,
  .editorial-text h2,
  .editorial-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .editorial-text {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .no-crop-wrapper {
    margin-bottom: 2rem;
  }

  /* Actor Studio Custom Layout */
  .actor-main-showcase {
    border-radius: 20px;
    padding: 30px 16px 0px 16px;
    margin-bottom: 2rem;
  }

  .jdj-preview-container {
    aspect-ratio: 3/2;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Footer */
  .footer-container {
    padding: 3rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-nav-list {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Accessibility Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* 
   ==========================================================================
   CUSTOM BRUTALIST IMAGE CAROUSEL (Logo MKL Pages)
   ========================================================================== 
*/

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px; /* Taille réduite pour un meilleur équilibre visuel */
  aspect-ratio: 1/1; /* Les visuels d'initiales étant carrés, le format 1:1 est idéal */
  margin: 0 auto 4rem auto; /* Centrage et espacement */
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg);
}

.carousel-track {
  display: flex;
  width: 300%; /* 3 slides */
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Défilement ease-in fluide */
}

.carousel-slide {
  width: 33.3333%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Cadrage parfait des logos */
  background-color: var(--bg);
}

.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.indicator.active {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Grille de Mockups côte à côte & carrés (Projet 5) */
.bottom-mockups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Côte à côte */
  gap: 2rem;
  margin-top: 3rem;
}

.mockup-cell-square {
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1/1; /* Forme carrée parfaite */
  background-color: var(--bg);
  position: relative;
}

.mockup-cell-square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recouvrement pour un centrage harmonieux */
}

/* Affichage sans rognage d'image */
.no-crop-wrapper {
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
  overflow: hidden;
  background-color: var(--bg);
  margin-bottom: 4rem;
}

.no-crop-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Présentation de logos transparents centrés et préservés */
.mockup-cell-square.contain-logo {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-cell-square.contain-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mockup-cell-square.contain-logo.dark-bg {
  background-color: #000000;
}

@media (max-width: 600px) {
  .bottom-mockups-grid {
    grid-template-columns: 1fr; /* Empilement sur mobile */
    gap: 1.5rem;
  }
}

@media (max-width: 460px) {
  /* Fluid Typography for Titles (scales proportionally) */
  .hero-title {
    font-size: 8vw !important;
  }
  .project-hero-title {
    font-size: 9.5vw !important;
  }
  h2, .section-headline h2, .cursus-column h2, .contact-sidebar h2 {
    font-size: 8vw !important;
  }
  h3, .project-title-block h3, .skill-category h3 {
    font-size: 6.5vw !important;
  }

  /* Force line wraps for all texts, links and headers globally */
  body, p, a, span, strong, li, h1, h2, h3, h4, label, input, textarea {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Enforce safe paddings on all major structural sections to prevent touching the edges */
  .header-container,
  .hero-section,
  .project-row,
  .cursus-column,
  .skill-category,
  .contact-sidebar,
  .contact-form-container,
  .footer-container,
  .project-hero-container,
  .showcase-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Defensive margin on custom layouts to prevent edge touching */
  .actor-main-showcase {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
}

/* 
   ==========================================================================
   ACTOR STUDIO CUSTOM PRESENTATION LAYOUT
   ========================================================================== 
*/

/* Wrapper principal Oscar avec fond orange */
.actor-main-showcase {
  background-color: #F38325;
  border-radius: 32px; /* Coins fortement arrondis */
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.actor-main-showcase img {
  display: block;
  max-width: 100%;
  height: auto;
  padding: 50px 32px 0px 32px; /* 50px haut, 32px gauche/droite, 0px bas */
  margin-bottom: -6px; /* S'enfonce de 6px pour masquer entièrement les pixels transparents de la base */
}

/* Aperçu 2:1 de la longue maquette JDJ */
.jdj-preview-container {
  aspect-ratio: 2/1;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  background-color: var(--bg);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.jdj-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Affiche le haut du long scroll */
  transition: transform 0.3s ease;
}

.jdj-preview-container:hover img {
  transform: scale(1.02);
}

.jdj-preview-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Iframe pour la guideline PDF */
.guideline-iframe-wrapper {
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 4/3;
  margin-top: 3rem;
  margin-bottom: 3rem;
  background-color: #ffffff;
}

.guideline-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Modal accessible pour maquette complète */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
}

.custom-modal.active {
  display: flex;
}

.custom-modal .modal-content {
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto; /* Permet de scroller verticalement la maquette */
  border: 2px solid var(--accent);
  background-color: #050505;
}

.custom-modal .modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-modal .modal-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3.5rem;
  cursor: pointer;
  z-index: 2010;
  line-height: 1;
  transition: color 0.2s ease;
}

.custom-modal .modal-close:hover {
  color: var(--accent);
}

