/* ============================================================
   3D ALPHASMILE - FUTURISTIC DARK THEME (PREMIUM)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&family=Cairo:wght@300;400;600;700&display=swap');

:root {
  /* Futuristic Color Palette */
  --bg-dark: #05080f;
  --bg-panel: rgba(13, 17, 28, 0.7);
  --bg-card: rgba(20, 26, 42, 0.6);
  --accent-cyan: #00f2ff;
  --accent-blue: #007aff;
  --text-white: #ffffff;
  --text-dim: #a0aec0;
  --header-blur: saturate(180%) blur(20px);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for the fixed header */
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Style dédié pour l'Arabe (Police Cairo) */
:lang(ar) body, :lang(ar) .text-3d, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) p, :lang(ar) a {
  font-family: 'Cairo', sans-serif !important;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10000;
}

.loader-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-top: 15px;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
  letter-spacing: 2px;
}

.loader-logo span {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.loader-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 120px;
  height: 120px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: rotation 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-value {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-panel);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 0.5rem 2rem;
  transition: all 0.3s ease;
}

.nav-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  text-decoration: none;
}

/* Shared 3D Text Effect */
.text-3d {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transform: perspective(500px) rotateX(10deg);
  text-shadow: 
    0 1px 0 #00bfcc,
    0 2px 0 #009da8,
    0 3px 0 #007c85,
    0 4px 0 #005a62,
    0 5px 6px rgba(0,0,0,0.4),
    0 0 20px rgba(0, 242, 255, 0.4);
  transition: all 0.3s ease;
}

.logo-3d {
  font-size: 2rem;
  color: var(--accent-cyan);
}

.logo-text {
  color: var(--text-white);
  text-shadow: 
    0 1px 0 #d1d1d1,
    0 2px 0 #b3b3b3,
    0 3px 0 #949494,
    0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-logo a:hover .logo-3d {
  transform: perspective(500px) rotateX(0deg) scale(1.05);
  text-shadow: 
    0 1px 0 #00bfcc,
    0 2px 0 #009da8,
    0 0 30px rgba(0, 242, 255, 0.6);
}

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

.menu > li > a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.menu > li > a:hover {
  color: var(--accent-cyan);
  text-shadow: var(--neon-shadow);
}

.menu > li > a.active {
  color: var(--text-white);
}

.menu > li > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: var(--neon-shadow);
}

.nav-special {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(0, 122, 255, 0.1));
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 5px 15px !important;
  border-radius: 50px;
  color: var(--accent-cyan) !important;
  font-weight: 700 !important;
}

.nav-special:hover {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(0, 122, 255, 0.2)) !important;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Submenu */
.has-submenu { position: relative; }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  list-style: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

/* Lang Switch */
.nav-lang {
  display: flex;
  gap: 0.5rem;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
}

.lang-switch {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
}

.lang-switch.active {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
}

/* Hero Section */
header {
  padding-top: 100px;
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for image area */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: drop-shadow(0 20px 50px rgba(0, 242, 255, 0.15));
}

.hero-slider .slide.active {
  opacity: 1;
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Sections Vertical Layout (Final Balanced) */
main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

main section {
  margin: 0;
  padding: 3.2rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease;
  scroll-margin-top: 100px; /* Offset for fixed header navigation */
}

main section:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

main section h2 {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Apply 3D text effect */
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: perspective(500px) rotateX(10deg);
  text-shadow: 
    0 1px 0 #00bfcc,
    0 2px 0 #009da8,
    0 3px 0 #007c85,
    0 4px 0 #005a62,
    0 5px 6px rgba(0,0,0,0.4),
    0 0 20px rgba(0, 242, 255, 0.4);
}

main section p {
  font-size: 1rem;
  color: var(--text-dim);
  flex-grow: 1; /* Pushes image to bottom of 'square' if needed */
}

.section-image {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 9; /* Réservation d'espace avant l'affichage de l'image */
  max-height: 580px;
  background: rgba(255, 255, 255, 0.02); /* Skeleton loading color */
}

#contact .section-image {
  max-height: 230px; /* Reduced further to accommodate the new Phone field while keeping the square size */
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

main section:hover .section-image img {
  opacity: 1;
}

/* Contact Form */
#contact form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 100%;
  margin: 1rem 0 0 0;
  text-align: left;
}

input, textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.btn-contact {
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), #00a8b3);
  color: #00151a;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  width: fit-content;
}

.btn-contact:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 242, 255, 0.5);
}

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

.success-message {
  background: rgba(0, 255, 128, 0.1);
  border: 1px solid rgba(0, 255, 128, 0.3);
  color: #00ff80;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
}

.error-message {
  background: rgba(255, 61, 61, 0.1);
  border: 1px solid rgba(255, 61, 61, 0.3);
  color: #ff3d3d;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

/* Footer */
footer {
  margin-top: 10rem;
  padding: 4rem 2rem;
  background: var(--bg-panel);
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
}

.footer-container h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: white; }

/* Footer Social icons */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.social-icon.facebook:hover { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.social-icon.instagram:hover { background: rgba(225, 48, 108, 0.2); color: #e1306c; }
.social-icon.whatsapp:hover { background: rgba(37, 211, 102, 0.2); color: #25d366; }

.footer-legal {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  box-shadow: var(--neon-shadow);
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid var(--accent-cyan);
}

@media (pointer: coarse) {
  .custom-cursor, .cursor-glow { display: none; }
}

/* Background Animation */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.05) 0%, transparent 40%);
  z-index: -1;
  animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* Reveal on Scroll */
section, .hero {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

section.revealed, .hero.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Responsive */
@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-image { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 1000px) {
  /* En-tête Compact pour Paysage */
  .main-nav { padding: 0.2rem 1rem; }
  .logo-3d { font-size: 1.2rem; }
  .logo-text { font-size: 0.8em; }

  /* Ajustement pour éviter les deux lignes sur tablette/grand mobile paysage */
  .nav-menu { display: block !important; }
  .menu { gap: 0.8rem; }
  .menu > li > a { font-size: 0.7rem; padding: 0.2rem 0; }
  .submenu { min-width: 140px; padding: 0.5rem; }
  .submenu li a { padding: 0.4rem; font-size: 0.7rem; }

  /* Langues à droite */
  .nav-lang { display: flex !important; transform: scale(0.75); transform-origin: right center; }
  
  /* Bascule sur le Hamburger pour les écrans vraiment étroits (< 920px) */
  @media (max-width: 920px) {
    .nav-menu { display: none !important; }
    .nav-toggle { display: flex !important; }
    .nav-lang { transform: scale(0.85); margin-right: 10px; }
  }

  /* Réduction drastique des sections pour tenir sur 1 seul écran horizontal */
  main { margin: 2rem auto; gap: 2rem; }
  main section { 
    padding: 1rem 1.5rem; 
    margin: 0; 
    border-radius: 16px; 
    scroll-margin-top: 60px; /* Offset ajusté pour le petit en-tête */
  }

  main section h2 { 
    font-size: 1.15rem; 
    margin-bottom: 0.3rem; 
  }

  main section p { 
    font-size: 0.70rem; 
    line-height: 1.25; 
    margin-bottom: 0.4rem;
  }

  .section-image { 
    margin-top: 0.4rem; 
    max-height: 200px; /* Image encore plus fine */
    border-radius: 10px;
  }
  
  .gallery-controls-overlay { transform: scale(0.65); top: 5px; right: 5px; }
  .image-description-box { font-size: 0.65rem; padding: 6px; width: 85%; bottom: 8px; }

  /* Formulaire de Contact Réduit */
  #contact form { gap: 0.4rem; }
  input, textarea { padding: 0.5rem; font-size: 0.75rem; border-radius: 6px; }
  .btn-contact { padding: 0.5rem 1.2rem; font-size: 0.75rem; }
  #contact .section-image { display: none; }

  /* Hero Section (Remise en 2 colonnes comme sur PC) */
  .hero { 
    padding: 1rem; 
    gap: 1rem; 
    grid-template-columns: 1fr 1fr; /* Forcer le mode 2 colonnes gauche/droite */
    text-align: left;
    align-items: center;
  }
  .hero-text h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .hero-image-wrapper { height: 260px; max-width: none; margin: 0; }
}

/* ============================================================
   SIDE MENU (MOBILE OFF-CANVAS)
   ============================================================ */
.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 1px solid var(--glass-border);
  z-index: 2000;
  padding: 80px 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-menu .submenu {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
  padding-left: 1rem;
  padding-top: 1rem;
  box-shadow: none;
  background: transparent;
  border: none;
}

.side-menu-lang {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   GALLERY CONTROLS (OVERLAY TOP-RIGHT)
   ============================================================ */
.gallery-controls-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 242, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
}

.gallery-dot:hover {
  background: rgba(0, 242, 255, 0.5);
  border-color: var(--accent-cyan);
  transform: scale(1.3);
}

.gallery-dot.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: scale(1.5);
}

.gallery-main-img {
  width: 100%;
  border-radius: 12px;
  transition: opacity 0.3s ease-in-out;
}

/* ============================================================
   FORCE PORTRAIT MODE (LANDSCAPE OVERLAY)
   ============================================================ */
.rotate-device-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg-dark);
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.rotate-icon {
  font-size: 3.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  animation: rotatePhone 2.5s infinite ease-in-out;
}

.rotate-device-overlay p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-dim);
}

@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); } /* Rotation vers paysage */
  100% { transform: rotate(0deg); }
}

/* Blocage en verticale (oblige le mode paysage) */
@media screen and (max-width: 1000px) and (orientation: portrait) {
  body { overflow: hidden !important; }
  .rotate-device-overlay { display: flex !important; }
  .main-nav, .side-menu, main, header, footer { filter: blur(5px); pointer-events: none; }
}

/* ============================================================
   IMAGE DESCRIPTION BOX (OVERLAY LEFT)
   ============================================================ */
.image-description-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 55%;
  max-width: 280px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  pointer-events: none; /* Ne bloque pas le clic sur l'image */
  white-space: pre-wrap; /* Préserver les retours à la ligne */
}

.desc-title {
  display: block;
  font-weight: 800;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Effet de brillance subtil sur le texte */
.image-description-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.5), transparent);
}

@media (max-width: 600px) {
  .image-description-box {
    width: calc(100% - 40px);
    max-width: none;
    font-size: 0.8rem;
    padding: 10px;
  }
}
