/* ============================================================
   responsive.css — Casting Actrice X
   Breakpoints:
     - Tablet paysage  : ≤ 1100px
     - Tablet portrait : ≤ 900px
     - Mobile large    : ≤ 760px
     - Mobile standard : ≤ 560px
     - Mobile petit    : ≤ 380px
   NE PAS modifier styles.css — ce fichier est une surcouche.
   ============================================================ */


/* ── BOUTON RETOUR EN HAUT ─────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 99;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f4f2f7;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: rgba(198, 29, 121, 0.22);
  border-color: rgba(198, 29, 121, 0.45);
}
#back-to-top i {
  font-size: 0.95rem;
}


/* ── TABLET PAYSAGE ≤ 1100px ───────────────────────────────── */
@media (max-width: 1100px) {

  /* Grilles 4 colonnes → 2 colonnes */
  .grid-4,
  .immersive-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Production : 3 → 2 */
  .production-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Cartes produccion : hauteur images un peu réduite */
  .production-media,
  .production-media img {
    min-height: 260px;
  }

  /* Footer 4 colonnes → 2 colonnes */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Formulaire B2B : réduire le gap */
  .candidacy-wrap {
    gap: 2rem;
  }
}


/* ── TABLET PORTRAIT ≤ 900px ───────────────────────────────── */
@media (max-width: 900px) {

  /* Sections : padding réduit */
  .section {
    padding: 5rem 0;
  }

  /* Hero : texte et boutons */
  .hero-legal-copy {
    inset: auto 0 5rem 0;
  }
  .hero-legal-copy h1 {
    font-size: clamp(2.4rem, 7vw, 4rem);
    max-width: 100%;
  }
  .hero-legal-copy p {
    max-width: 100%;
  }

  /* Split layouts → colonne unique */
  .split-section,
  .process-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Formulaire B2B → colonne unique */
  .candidacy-wrap {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Production : 2 → 1 */
  .production-grid {
    grid-template-columns: 1fr;
  }
  .production-media,
  .production-media img {
    min-height: 280px;
  }

  /* Grilles → 2 colonnes */
  .target-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Timeline */
  .process-wrap > div:last-child {
    margin-top: 0;
  }

  /* Images : taille naturelle sur tablette */
  img {
    height: auto;
  }

  /* Fonts légèrement réduites */
  h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
  h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
  h3 { font-size: 1.45rem; }
}


/* ── MOBILE LARGE ≤ 760px ──────────────────────────────────── */
@media (max-width: 760px) {

  /* Container */
  .container {
    width: calc(100% - 1.5rem);
  }

  /* Sections padding */
  .section {
    padding: 4rem 0;
  }

  /* ── NAVIGATION MOBILE ── */

  /* Cacher le lang-switch du header sur mobile
     (il sera dans le menu) */
  .nav-actions .lang-switch {
    display: none;
  }

  /* Menu toggle visible */
  .menu-toggle {
    display: inline-grid !important;
    z-index: 10;
  }

  /* Menu coulissant de droite à gauche */
  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(300px, 80vw) !important;
    min-width: unset !important;
    margin-top: 0 !important;
    padding: 4.5rem 1.25rem 2rem !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    background: rgba(8, 8, 12, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    overflow-y: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 9000 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .site-nav.open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-nav a {
    padding: 1rem 1.1rem !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    letter-spacing: 0.06em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #f4f2f7 !important;
  }
  .site-nav a:last-of-type {
    border-bottom: none !important;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(198, 29, 121, 0.1) !important;
    color: #f5a2d4 !important;
  }

  /* Sélecteur de langue dans le menu mobile */
  .site-nav .nav-lang-mobile {
    display: flex !important;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-lang-mobile .lang-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #b7b0c0;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .nav-lang-mobile .lang-btn.is-active {
    background: linear-gradient(135deg, rgba(210,24,130,0.24), rgba(141,54,255,0.24));
    border-color: rgba(198, 29, 121, 0.35);
    color: #f4f2f7;
  }

  /* Overlay */
  #nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 8999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  #nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Close button dans le menu */
  .site-nav .nav-close {
    display: flex !important;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #f4f2f7;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
  }
  .site-nav .nav-close:hover {
    background: rgba(198, 29, 121, 0.2);
  }

  /* ── HERO ── */
  .hero-legal-copy {
    inset: auto 0 4.5rem 0;
  }
  .hero-legal-copy h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    max-width: 100%;
  }
  .hero-legal-copy p {
    font-size: 0.9rem;
  }
  .hero-badge {
    font-size: 0.72rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    text-align: center;
  }
  .scroll-indicator {
    bottom: 1.2rem;
  }

  /* ── TYPOGRAPHIE ── */
  h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h3 { font-size: 1.3rem; }
  body { font-size: 0.95rem; }
  p    { font-size: 0.92rem; }

  /* ── GRILLES ── */
  .grid-4,
  .immersive-grid.grid-4,
  .target-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* 2 colonnes pour flip-cards (plus lisible que 1) */
  .qnr-grid,
  .gains-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Services grid → 2 colonnes sur mobile large */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ── FLIP CARDS ── */
  .flip-card,
  .flip-card__inner {
    min-height: 280px;
  }

  /* ── FORMS ── */
  .field-row,
  .age-gate__actions,
  .candidacy-wrap [style*="grid-template-columns:1fr 1fr"],
  .candidacy-wrap [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .age-gate__actions {
    flex-direction: column;
  }
  .age-gate__actions .btn {
    min-width: auto;
  }
  .application-form,
  .security-note {
    border-radius: 20px;
    padding: 1.1rem;
  }

  /* ── AGE GATE ── */
  .age-gate__panel {
    padding: 1.4rem 1.2rem;
    border-radius: 24px;
  }

  /* ── IMAGES ── */
  img {
    max-width: 100%;
    height: auto;
  }
  .feature-photo {
    height: 180px;
  }
  .production-media,
  .production-media img {
    min-height: 240px;
  }
  .immersive-card {
    min-height: 280px;
  }

  /* ── FOOTER ── */
  .site-footer {
    padding: 2.5rem 0 3rem;
  }
  .footer-grid {
    gap: 1.5rem;
  }
  .social-links {
    flex-wrap: wrap;
  }

  /* ── BOUTIQUE carousel ── */
  .shop-carousel {
    overflow: hidden;
  }

  /* ── Bouton back-to-top sur mobile ── */
  #back-to-top {
    bottom: 1.5rem;
    right: 1rem;
    width: 2.7rem;
    height: 2.7rem;
  }
}


/* ── MOBILE STANDARD ≤ 560px ───────────────────────────────── */
@media (max-width: 560px) {

  /* Sections */
  .section {
    padding: 3.5rem 0;
  }
  .container {
    width: calc(100% - 1.25rem);
  }

  /* Hero */
  .hero-legal-copy {
    inset: auto 0 4rem 0;
  }
  .hero-legal-copy h1 {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
  }

  /* Typographie */
  h1 { font-size: clamp(1.9rem, 11vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  h3 { font-size: 1.2rem; }

  /* Flip cards → 1 colonne sur petit mobile */
  .qnr-grid,
  .gains-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Age gate */
  .age-gate__panel {
    padding: 1.1rem;
    border-radius: 20px;
  }

  /* Process timeline */
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }
  .timeline-item span {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.9rem;
  }

  /* Candidature */
  .application-form--centered {
    max-width: 100%;
  }

  /* Production grid → 1 colonne */
  .production-grid {
    grid-template-columns: 1fr;
  }
  .production-media,
  .production-media img {
    min-height: 220px;
  }

  /* Nav brand */
  .brand-text {
    font-size: 0.88rem;
  }
  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  /* Section headings */
  .section-heading {
    margin-bottom: 2rem;
  }

  /* Buttons */
  .btn {
    min-height: 2.8rem;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  /* Forms */
  input, select, textarea {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ── MOBILE PETIT ≤ 380px ──────────────────────────────────── */
@media (max-width: 380px) {

  .container {
    width: calc(100% - 1rem);
  }

  h1 { font-size: clamp(1.7rem, 12vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 9vw, 1.9rem); }
  h3 { font-size: 1.1rem; }

  .hero-legal-copy h1 {
    font-size: clamp(1.7rem, 12vw, 2.2rem);
  }

  .brand-text {
    display: none; /* juste le logo CX sur très petit écran */
  }

  .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .flip-card,
  .flip-card__inner {
    min-height: 240px;
  }

  .site-nav {
    width: 90vw !important;
  }

  #back-to-top {
    bottom: 1.2rem;
    right: 0.75rem;
    width: 2.4rem;
    height: 2.4rem;
  }
}




/* ============================================================
   v20 — Age Gate · Footer · Carrusel · Nav close
   ============================================================ */

/* ── AGE GATE APPLE-STYLE ─────────────────────────────────── */
.age-gate__panel--apple {
  text-align: center;
  padding: 2.5rem 1.8rem 2rem;
  max-width: 400px;
  width: calc(100% - 2rem);
  border-radius: 28px;
}
.age-gate__icon { font-size: 3rem; margin-bottom: 0.5rem; line-height: 1; }
.age-gate__panel--apple h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}
.age-gate__panel--apple .age-gate__intro {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.age-gate__apple-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.age-gate__btn-enter {
  display: block;
  width: 100%;
  padding: 1.1rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #d21882, #8d36ff);
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .18s, transform .15s;
}
.age-gate__btn-enter:active { opacity: .82; transform: scale(.97); }
.age-gate__btn-leave {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.5);
  font-size: 0.9rem;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.age-gate__btn-leave:active { background: rgba(255,255,255,.06); }
.age-gate__message {
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: #ffb7df;
  margin-bottom: 0.4rem;
}

/* ── FOOTER CENTRADO ≤ 760px ──────────────────────────────── */
@media (max-width: 760px) {
  .footer-grid > div { text-align: center; }
  .footer-grid .social-links { justify-content: center; }
  .site-footer ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .site-footer p { text-align: center; }
  /* Centro el logo imagen del footer */
  .footer-grid > div:first-child img {
    margin-left: auto;
    margin-right: auto;
  }

  /* Nav-close absoluto dentro del panel fijo */
  .site-nav .nav-close {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: auto !important;
    display: none !important; /* JS lo muestra con display:flex */
  }
  .site-nav.open .nav-close {
    display: flex !important;
  }
}

/* ── ≥ 481px: 2 columnas, sin carrusel ───────────────────── */
@media (min-width: 481px) and (max-width: 760px) {
  .qnr-grid,
  .gains-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    display: grid !important;
    overflow: visible !important;
  }
  .qnr-grid > .flip-card,
  .gains-grid > .flip-card,
  .services-grid > .flip-card {
    width: auto !important;
    min-width: unset !important;
    flex: unset !important;
    aspect-ratio: unset !important;
    height: 280px !important;
    min-height: 280px !important;
    position: relative !important;
  }
  .qnr-grid > .flip-card .flip-card__inner,
  .gains-grid > .flip-card .flip-card__inner,
  .services-grid > .flip-card .flip-card__inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
  }
  .services-grid .chaos-1, .services-grid .chaos-2,
  .services-grid .chaos-3, .services-grid .chaos-4,
  .services-grid .chaos-5, .services-grid .chaos-6,
  .services-grid .chaos-7, .services-grid .chaos-8 {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .services-grid .chaos-card.is-visible { transform: none !important; }
}


/* ── v20 FIX: Hero media behavior ─────────────────── */
@media (max-width: 760px) {
  .hero-video-section {
    min-height: 100svh;
    min-height: 100vh;
  }
  .hero-video {
    display: none !important;
  }
  .hero-mobile-media {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
  }
  .hero-legal-copy {
    position: absolute;
    inset: auto 0 4.5rem 0;
    z-index: 2;
  }
}

@media (min-width: 761px) {
  .site-nav {
    /* posición real la pone el JS (top + right) al abrir */
    padding: 0.5rem !important;
    border-radius: 16px !important;
    transform: none !important;
    visibility: visible !important;
  }
  .site-nav .nav-close      { display: none !important; }
  .site-nav .nav-lang-mobile { display: none !important; }
  #nav-overlay               { display: none !important; }
}

/* ── v20 FIX: Age gate — garantizar visibilidad ───────────── */
.age-gate:not(.hidden) {
  display: grid !important;
}

/* ── v20 FIX: Carrusel — JS-driven, sin animación CSS ─────── */
.shop-carousel__track,
.banner-carousel__track {
  animation: none !important;
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

/* ── CARRUSEL TÁCTIL ≤ 480px ─────────────────────────────── */
@media (max-width: 480px) {

  /* Convertir grid en carrusel horizontal */
  .qnr-grid,
  .gains-grid,
  .services-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: scroll !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1rem !important;
    /* Padding lateral: muestra un poco de la tarjeta siguiente */
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-bottom: 1rem !important;
    grid-template-columns: unset !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .qnr-grid::-webkit-scrollbar,
  .gains-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar { display: none !important; }

  /* Tarjeta: ancho casi completo, altura natural via aspect-ratio */
  .qnr-grid > .flip-card,
  .gains-grid > .flip-card,
  .services-grid > .flip-card {
    flex: 0 0 calc(100vw - 2.5rem) !important;
    width: calc(100vw - 2.5rem) !important;
    min-width: 0 !important;
    /* Reemplazar height fijo por aspect-ratio para imagen entera */
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    scroll-snap-align: start !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* flip-card__inner llena la tarjeta */
  .qnr-grid > .flip-card .flip-card__inner,
  .gains-grid > .flip-card .flip-card__inner,
  .services-grid > .flip-card .flip-card__inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
  }

  /* flip-card__face llena el inner */
  .qnr-grid > .flip-card .flip-card__face,
  .gains-grid > .flip-card .flip-card__face,
  .services-grid > .flip-card .flip-card__face {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 22px !important;
  }

  /* Imagen cubre todo */
  .qnr-grid > .flip-card .flip-card__face--front img,
  .gains-grid > .flip-card .flip-card__face--front img,
  .services-grid > .flip-card .flip-card__face--front img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  /* Neutralizar chaos-transforms en Services */
  .services-grid .chaos-1, .services-grid .chaos-2,
  .services-grid .chaos-3, .services-grid .chaos-4,
  .services-grid .chaos-5, .services-grid .chaos-6,
  .services-grid .chaos-7, .services-grid .chaos-8 {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .services-grid .chaos-card.is-visible { transform: none !important; }
}
