/* =============================================
   IKIBI — Mobile premium (mobile-first editorial)
   ============================================= */

:root {
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---- Global mobile ---- */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: clamp(20px, 5vw, 28px);
    padding-right: clamp(20px, 5vw, 28px);
  }

  [data-parallax] {
    transform: none !important;
    box-shadow: none !important;
  }

  .hero-banner-slideshow {
    transform: none !important;
  }

  .hero-overlay-content:not(.hero-carousel__content) {
    transform: translateX(-50%) !important;
  }

  .hero--carousel .hero-overlay-content,
  .hero--carousel .hero-carousel__content {
    transform: none !important;
    max-width: none;
    width: 100%;
    padding-left: clamp(20px, 5vw, 28px);
    padding-right: clamp(20px, 5vw, 28px);
    padding-bottom: max(3.25rem, env(safe-area-inset-bottom, 0px));
  }

  .hero--carousel h1 {
    max-width: none;
    font-size: clamp(1.6rem, 6.8vw, 2.15rem);
  }

  .hero--carousel .hero-carousel__lead {
    max-width: none;
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .hero-carousel__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-carousel__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Typographie & respiration */
  p,
  .home-hero-lead,
  .home-perception-lead,
  .home-perception-body,
  .home-experiences-header p,
  .home-experiences-lead,
  .expertise-card__body p,
  .experience-content p,
  .home-founder-manifesto,
  .home-bridge-lead,
  .schedule-lead,
  .schedule-trust-list li,
  .schedule-trust-note,
  .pf-hero-lead,
  .pf-detail p,
  .pf-close-lead {
    line-height: 1.88;
    letter-spacing: 0.012em;
  }

  .home-perception-body + .home-perception-body {
    margin-top: 1.25rem;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .section {
    padding: clamp(72px, 14vw, 96px) 0;
  }

  .section-sm {
    padding: clamp(48px, 10vw, 72px) 0;
  }

  h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
  }

  h3 {
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    line-height: 1.22;
  }

  /* Animations scroll douces */
  .fade-up {
    transform: translateY(16px);
    transition:
      opacity 1.25s cubic-bezier(0.19, 1, 0.22, 1),
      transform 1.35s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .fade-up.visible {
    transform: translateY(0);
  }

  .fade-in {
    transition: opacity 1s var(--ease-premium);
  }

  /* ---- Hero mobile premium (mobile-first) ---- */
  .hero {
    margin: 0;
  }

  .hero--carousel {
    min-height: auto;
  }

  .hero--carousel .hero__visual {
    min-height: calc(100svh - var(--hero-stack-offset, 110px) - 1.5rem);
    min-height: calc(100dvh - var(--hero-stack-offset, 110px) - 1.5rem);
  }

  .hero--carousel .hero-banner-slideshow {
    position: relative;
    inset: auto;
    min-height: calc(100svh - var(--hero-stack-offset, 110px) - 1.5rem);
    min-height: calc(100dvh - var(--hero-stack-offset, 110px) - 1.5rem);
    height: auto;
    max-height: none;
  }

  .hero:not(.hero--carousel) .hero-banner-slideshow,
  .hero:not(.hero--carousel) .hero .hero-banner-slideshow {
    height: clamp(52vw, 42svh, 340px);
    min-height: 260px;
    max-height: 340px;
  }

  .hero:not(.hero--carousel) .hero-banner-slideshow::after,
  .hero:not(.hero--carousel) .hero .hero-banner-slideshow::after {
    background:
      radial-gradient(ellipse 140% 90% at 50% 110%, rgba(2, 6, 23, 0.72) 0%, transparent 52%),
      radial-gradient(ellipse 80% 40% at 50% 0%, rgba(2, 6, 23, 0.25) 0%, transparent 50%),
      linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.42) 0%,
        rgba(2, 6, 23, 0.55) 38%,
        rgba(2, 6, 23, 0.82) 100%
      );
  }

  .hero--bureau .hero-banner-slideshow::after,
  .hero--bureau .hero-bureau__media::after {
    background: linear-gradient(to bottom, rgba(12, 12, 13, 0.06) 0%, transparent 40%) !important;
  }

  .hero--bureau .hero-banner-slideshow::before {
    display: none !important;
  }

  .hero--carousel .hero-banner-slideshow::after {
    background: linear-gradient(
      180deg,
      rgba(12, 12, 13, 0.28) 0%,
      rgba(12, 12, 13, 0.1) 42%,
      transparent 68%
    ) !important;
  }

  .hero .hero-banner-slideshow::before,
  .hero-banner-slideshow::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
  }

  .hero-vignette {
    opacity: 0.85;
  }

  .hero-dots {
    bottom: 18px;
    z-index: 2;
    gap: 10px;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .hero-message-section {
    padding: clamp(44px, 10vw, 60px) 0 clamp(52px, 11vw, 68px);
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
    border-top: none;
  }

  .hero-message-section::before {
    opacity: 0.5;
  }

  .hero-message-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-top: 4px;
  }

  .hero-message-section .container::before {
    content: 'Direction créative';
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(51, 65, 85, 0.45);
    margin-bottom: 1.25rem;
  }

  .hero-message-section h1 {
    max-width: 11ch;
    margin: 0 auto;
    font-weight: 700;
    font-size: clamp(1.75rem, 8.2vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .hero-message-section .home-hero-lead {
    margin-top: 1.75rem;
    max-width: 20rem;
    font-size: 1rem;
    line-height: 1.88;
    color: rgba(51, 65, 85, 0.82);
  }

  .hero-message-section .hero-cta {
    margin-top: 2.25rem !important;
    width: 100%;
    max-width: 20rem;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-message-section .hero-cta .btn {
    width: 100%;
    min-height: 54px;
    padding: 17px 26px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
    transition:
      transform 0.65s var(--ease-premium),
      box-shadow 0.65s var(--ease-premium),
      background 0.5s var(--ease-soft),
      border-color 0.5s ease;
  }

  .hero-message-section .hero-cta .btn-primary {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12) inset,
      0 12px 36px rgba(47, 85, 255, 0.28);
  }

  .hero-message-section .hero-cta .btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(47, 85, 255, 0.22);
  }

  .hero-message-section .hero-cta .btn-outline {
    box-shadow: none;
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.85);
    font-weight: 500;
  }

  /* ---- Perception & éditorial ---- */
  .home-perception {
    padding: clamp(72px, 14vw, 100px) 0;
  }

  .home-perception-title {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  .home-perception-lead,
  .home-perception-body {
    margin-top: 0;
    font-size: 1.0625rem;
    line-height: 1.78;
    opacity: 1;
  }

  .home-perception-title + .home-perception-lead,
  .home-perception-title + .home-perception-body {
    margin-top: 1.5rem;
  }

  .home-perception-lead + .home-perception-body,
  .home-perception-body + .home-perception-body {
    margin-top: 1.25rem;
  }

  .home-editorial-moment {
    min-height: clamp(320px, 62svh, 480px);
    padding: clamp(56px, 12vw, 88px) clamp(20px, 5vw, 28px);
  }

  .home-editorial-quote {
    max-width: 12ch;
    margin: 0 auto;
    line-height: 1.18;
  }

  .home-stats .stat-card,
  .stat-card {
    padding: clamp(28px, 6vw, 36px) clamp(20px, 4vw, 28px);
  }

  /* ---- Expertises grille mobile ---- */
  .home-experiences {
    padding: clamp(80px, 16vw, 108px) 0;
  }

  .home-experiences-header {
    margin-bottom: clamp(40px, 9vw, 56px);
    text-align: center;
  }

  .home-experiences-header h2 {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    line-height: 1.14;
    max-width: none;
  }

  .home-experiences-accent {
    display: inline;
  }

  .home-experiences-lead {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.88;
  }

  .home-experiences-foot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: clamp(40px, 9vw, 56px);
  }

  .expertise-card__body {
    padding: 1.25rem 1.25rem 1.35rem;
  }

  .expertise-card__body p:not(.expertise-card__feeling) {
    font-size: 1rem;
    line-height: 1.82;
    padding-right: 2rem;
  }

  .expertise-card__feeling {
    font-size: 0.9rem;
  }

  .expertise-grid {
    gap: clamp(18px, 4vw, 24px);
  }

  .expertise-card.visible {
    animation: experienceReveal 1.2s var(--ease-premium) both;
  }

  .expertise-grid .expertise-card:nth-child(1).visible { animation-delay: 0.04s; }
  .expertise-grid .expertise-card:nth-child(2).visible { animation-delay: 0.08s; }
  .expertise-grid .expertise-card:nth-child(3).visible { animation-delay: 0.12s; }
  .expertise-grid .expertise-card:nth-child(4).visible { animation-delay: 0.16s; }
  .expertise-grid .expertise-card:nth-child(5).visible { animation-delay: 0.2s; }
  .expertise-grid .expertise-card:nth-child(6).visible { animation-delay: 0.24s; }

  @keyframes experienceReveal {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .expertise-card:hover {
    transform: none;
  }

  .expertise-card__visual {
    aspect-ratio: 16 / 11;
  }

  .expertise-card__body {
    padding: 0.65rem 1.25rem 1.15rem;
  }

  .expertise-card__body p {
    padding-right: 1.75rem;
  }

  /* ---- Confiance ---- */
  .home-credibility {
    padding: clamp(72px, 14vw, 100px) 0;
  }

  .credibility-quote {
    padding: 22px 20px;
  }

  .credibility-quote__stars {
    font-size: 1rem;
  }

  .credibility-context__inner {
    padding: 22px 18px;
  }

  /* ---- Fondatrice ---- */
  .home-founder {
    padding: clamp(72px, 14vw, 100px) 0;
  }

  .home-founder-grid {
    gap: clamp(36px, 8vw, 48px);
    text-align: center;
  }

  .home-founder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-founder-content .section-label {
    margin-left: auto;
    margin-right: auto;
    display: block;
    background: none;
    border: none;
    padding: 0;
  }

  .home-founder-name {
    text-align: center;
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
  }

  .home-founder-manifesto {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 22rem;
  }

  .home-founder-credit {
    margin-top: 1.75rem;
  }

  /* ---- Projets teaser ---- */
  .projects-modern-section {
    padding-top: clamp(72px, 14vw, 96px);
    padding-bottom: clamp(72px, 14vw, 96px);
  }

  .projects-modern-header {
    margin-bottom: clamp(36px, 8vw, 48px);
  }

  .projects-modern-grid {
    gap: clamp(28px, 6vw, 40px);
  }

  .projects-modern-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 16px 48px -28px rgba(15, 23, 42, 0.12);
  }

  /* ---- CTA contact ---- */
  #contact .container {
    text-align: center;
  }

  #contact p:not(.section-label) {
    max-width: 20rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.82;
    font-size: 1.02rem;
  }

  #contact .flex-center {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    gap: 14px !important;
  }

  #contact .btn-lg {
    width: 100%;
    min-height: 52px;
  }

  /* ---- Footer mobile premium (centré) ---- */
  .footer-maison {
    margin: clamp(16px, 4vw, 20px) auto 0;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.4);
    text-align: center;
    width: 100%;
  }

  .footer,
  .footer.footer--signature {
    padding: clamp(96px, 18vw, 120px) clamp(20px, 5vw, 28px)
      calc(clamp(56px, 11vw, 64px) + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  .footer-maison {
    display: block;
  }

  .footer .footer-inner,
  .footer .container.footer-inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 10vw, 64px);
    width: 100%;
    margin: 0 auto;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    padding-right: 0;
    text-align: center;
    gap: 0;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }

  .footer-logo img {
    height: var(--logo-footer-h);
    max-width: min(var(--logo-max-w), 70vw);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }

  .footer-signature,
  .footer-tagline {
    margin: clamp(14px, 3vw, 18px) auto 0;
    max-width: 17rem;
    font-size: clamp(1.02rem, 4vw, 1.15rem);
    line-height: 1.5;
    text-align: center;
  }

  .footer-region {
    margin: 12px auto 0;
    letter-spacing: 0.12em;
    text-align: center;
    width: 100%;
  }

  .footer-brand-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: clamp(28px, 6vw, 36px) auto 0;
    gap: 18px;
  }

  .footer-email {
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }

  .footer-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    min-height: 54px;
    padding: 17px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: none;
    transition:
      transform 0.65s var(--ease-premium),
      box-shadow 0.65s var(--ease-premium);
  }

  .footer-cta:active {
    transform: scale(0.98);
  }

  .footer-social {
    justify-content: center;
    gap: 16px;
    margin-top: clamp(32px, 7vw, 40px);
    width: 100%;
  }

  .footer-social-icon {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.7);
    box-shadow: none;
    transition:
      color 0.55s var(--ease-premium),
      border-color 0.55s var(--ease-premium),
      background 0.55s var(--ease-premium),
      transform 0.65s var(--ease-premium),
      box-shadow 0.65s var(--ease-premium);
  }

  .footer-social-icon svg {
    width: 24px;
    height: 24px;
  }

  .footer-social-icon:active {
    transform: scale(0.96);
  }

  .footer-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(36px, 8vw, 48px);
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    width: 100%;
    max-width: 16rem;
    margin: 0 auto;
  }

  .footer-col-label {
    margin: 0 auto 20px;
    text-align: center;
    width: 100%;
    letter-spacing: 0.18em;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .footer-col ul li {
    margin-bottom: 14px;
    width: 100%;
    text-align: center;
  }

  .footer-col ul li a {
    display: inline-block;
    font-size: 1rem;
    padding: 4px 0;
    text-align: center;
    transition: opacity 0.45s var(--ease-premium), color 0.45s ease;
  }

  .footer-col ul li a:hover {
    transform: none;
  }

  .footer-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(48px, 10vw, 64px) auto clamp(32px, 7vw, 40px);
    max-width: 12rem;
    width: 100%;
  }

  .footer-separator-line {
    max-width: 64px;
    opacity: 0.35;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding-top: 8px;
    margin: 0 auto;
  }

  .footer-copy {
    margin: 0 auto;
    text-align: center;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: rgba(51, 65, 85, 0.5);
    max-width: 20rem;
  }

  /* Notice & nav mobile */
  .notice-bar {
    font-size: 0.875rem;
    padding: 12px 20px;
    line-height: 1.5;
    text-align: center;
  }

  .mobile-menu-cta {
    min-height: 52px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .card,
  .card-glass {
    box-shadow: 0 12px 40px -24px rgba(15, 23, 42, 0.12);
  }

  /* ---- Page projets mobile ---- */
  .pf-hero--showcase {
    padding-top: clamp(24px, 6vw, 36px);
    padding-bottom: clamp(28px, 7vw, 40px);
  }

  .pf-hero-showcase {
    gap: clamp(20px, 5vw, 28px);
  }

  .pf-hero-lead {
    font-size: 1rem;
    line-height: 1.78;
    max-width: none;
  }

  .pf-stats {
    padding: clamp(24px, 6vw, 32px) 0;
  }

  .pf-entry {
    margin-bottom: clamp(64px, 12vw, 88px);
  }

  .pf-entry--cinema .pf-entry-content {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 40px);
  }

  .pf-entry--cinema .pf-entry-details--grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 32px);
  }

  .pf-entry-content h2 {
    max-width: none;
    font-size: clamp(1.28rem, 5vw, 1.5rem);
  }

  .pf-close-inner {
    padding: 0 clamp(4px, 2vw, 8px);
  }

  /* ---- Confiance & bridge ---- */
  .home-confiance,
  .home-bridge {
    padding: clamp(72px, 14vw, 96px) 0;
  }

  .home-confiance-inner p,
  .home-bridge-lead {
    font-size: 1rem;
    max-width: none;
  }

  .home-stats .grid-4 {
    gap: clamp(20px, 5vw, 28px);
  }

  .stat-block {
    padding: clamp(28px, 6vw, 36px) 20px;
  }
}

/* iPhone compact */
@media (max-width: 390px) {
  .hero .hero-banner-slideshow,
  .hero-banner-slideshow {
    height: clamp(240px, 40svh, 300px);
    min-height: 240px;
    max-height: 300px;
  }

  .hero-message-section h1 {
    max-width: 12ch;
    font-size: 1.65rem;
  }

  .expertise-grid {
    max-width: none;
  }
}

/* Reduced motion */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .fade-up,
  .expertise-card.visible {
    animation: none;
    transition: opacity 0.4s ease;
  }

  .expertise-card.visible {
    animation: none;
  }
}
