@media (max-width: 1000px) {
  .hero-title {
    font-size: clamp(2.3rem, 5.6vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.85rem, 4.3vw, 2.45rem);
  }

  .card-deck {
    gap: 32px;
  }

  .deck-preview {
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 20px;
  }

  .deck-preview img {
    width: 180px;
    height: 220px;
  }
}

@media (max-width: 900px) {
  .split,
  .services,
  .contact.section {
    grid-template-columns: 1fr;
  }

  .card-deck {
    min-height: 0;
    padding-top: 360px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .card-deck::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .deck-card {
    top: 180px;
    left: 50%;
    width: 160px;
    height: 224px;
    font-size: 0.9rem;
  }

  .card-one {
    transform: translate(-116%, -50%) rotate(-8deg);
  }

  .card-two {
    transform: translate(-50%, -52%) rotate(0deg) translateZ(12px);
  }

  .card-three {
    transform: translate(16%, -50%) rotate(8deg) translateZ(8px);
  }

  .deck-card.active {
    transform: translate(-50%, -56%) scale(1.04) rotate(0) translateZ(44px);
  }

}

@media (max-width: 850px) {
  .navbar {
    top: 10px;
  }

  body.menu-open .navbar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    pointer-events: auto;
  }

  body.menu-open .brand,
  body.menu-open .hamburger {
    position: relative;
  }

  .nav-links {
    --mobile-menu-width: min(360px, 86vw);

    position: fixed;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 96px 24px 34px;
    background:
      radial-gradient(
        circle at 15% 12%,
        rgba(255, 127, 189, 0.22),
        transparent 30%
      ),
      radial-gradient(
        circle at 88% 78%,
        rgba(101, 217, 255, 0.24),
        transparent 30%
      ),
      linear-gradient(
        135deg,
        rgba(255, 247, 251, 0.98),
        rgba(236, 252, 255, 0.98)
      );
    backdrop-filter: blur(22px);
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease-out);
  }

  .nav-links a {
    display: flex;
    width: min(360px, 86vw);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(89, 67, 114, 0.12);
    opacity: 0;
    text-align: center;
    transform: translateX(70px);
    transition:
      opacity 0.22s ease,
      transform 0.24s var(--ease-out),
      background-color 0.14s ease,
      border-color 0.14s ease,
      color 0.14s ease,
      box-shadow 0.14s ease;
  }

  .nav-links.open a {
    transition-delay: 0s;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--white);
    color: var(--pink-strong);
    transform: translateX(0) translateY(-2px);
    transition-delay: 0s;
  }

  .nav-links .pill {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-hot), var(--blue));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(232, 79, 154, 0.16);
  }

  body.menu-open .nav-links.open a.pill:hover,
  body.menu-open .nav-links.open a.pill:focus-visible {
    border-color: var(--white);
    background: var(--white);
    color: var(--pink-strong);
    box-shadow: 0 18px 42px rgba(89, 67, 114, 0.12);
    transform: translateX(0) translateY(-2px);
    transition-delay: 0s;
  }

  .hero.section {
    min-height: 100vh;
    padding: 110px 24px 70px;
  }

  .hero::before {
    inset: 0;
  }

  .section {
    padding-block: 76px;
  }

  .atelier-window {
    height: 390px;
  }

  .shop-panorama-img {
    width: 190%;
  }

  .contact.section {
    padding: 76px 22px;
  }

  .contact-soap {
    width: 72px;
    height: 46px;
    opacity: 0.55;
  }

  .shop-grid {
    width: min(560px, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shop-card-title {
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1,
  .hero-title {
    font-size: clamp(2.15rem, 10vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .lead {
    font-size: 1.1rem;
  }

  .hero-copy {
    max-width: 100%;
    margin-inline: 0;
    text-align: left;
  }

  .hero-desc {
    margin-inline: 0;
  }

  .hero-btns {
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: auto;
    min-width: min(220px, 76vw);
    max-width: 82vw;
  }

  .hero-stats {
    justify-content: center;
    gap: 14px;
  }

  .stat-num {
    font-size: 1.1rem;
  }

  .photo-card {
    min-height: 340px;
  }

  .atelier-window {
    height: 320px;
  }

  .atelier-arrow {
    width: 46px;
    height: 46px;
  }

  .atelier-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-deck {
    padding-top: 330px;
  }

  .deck-card {
    top: 165px;
    width: 126px;
    height: 176px;
    padding: 16px;
    font-size: 0.78rem;
  }

  .deck-card::before {
    inset: 9px;
  }

  .deck-card::after {
    inset: 26px;
  }

  .deck-card span {
    right: 14px;
    bottom: 16px;
    left: 14px;
  }

  .card-one {
    transform: translate(-145%, -50%) rotate(-8deg);
  }

  .card-three {
    transform: translate(45%, -50%) rotate(8deg) translateZ(8px);
  }

  .deck-preview {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .deck-preview img {
    width: 100%;
    height: 220px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .services .reveal {
    text-align: center;
  }

  .services .btn.primary {
    display: inline-flex;
    margin-inline: auto;
  }

  .service-grid article {
    min-height: 112px;
  }

  .contact-soap:nth-child(n + 4) {
    display: none;
  }

  .socials {
    justify-content: center;
  }

  .socials a {
    flex: 0 0 auto;
  }

  .intro-title {
    font-size: 3.1rem;
  }

  .house {
    transform: scale(0.9);
  }

  .house:hover {
    transform: translateY(-4px) scale(0.93);
  }

  .house.open {
    transform: translateY(-6px) scale(1.12);
  }
}

@media (max-width: 390px) {
  h1,
  .hero-title {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .section {
    width: min(100% - 24px, var(--content-width));
  }

  .navbar {
    width: calc(100% - 20px);
  }

  .hero.section {
    padding-inline: 18px;
  }

  .hero-stats {
    gap: 10px;
  }

  .card-deck {
    padding-top: 290px;
  }

  .deck-card {
    top: 145px;
    width: 108px;
    height: 152px;
    font-size: 0.7rem;
  }

  .deck-preview img {
    height: 190px;
  }
}

@media (min-width: 901px) and (max-width: 1000px) {
  #produits .center {
    max-width: 720px;
    margin-bottom: 64px;
  }
  #produits h2 {
    font-size: clamp(2rem, 4.2vw, 2.5rem);
    line-height: 1.08;
  }
  .card-deck {
    max-width: 900px;
    margin-inline: auto;
    grid-template-columns: minmax(360px, 430px) minmax(360px, 430px);
    gap: 28px;
  }
  .card-deck::before {
    top: -50px;
    left: 12px;
  }
  .deck-card {
    top: 50%;
    left: 22px;
    width: 154px;
    height: 216px;
    padding: 18px;
    font-size: 0.86rem;
  }
  .deck-card::before {
    inset: 10px;
    border-radius: 17px;
  }
  .deck-card::after {
    inset: 29px;
    border-radius: 18px;
  }
  .deck-card span {
    right: 15px;
    bottom: 17px;
    left: 15px;
  }
  .card-one {
    transform: translate(-10px, -50%) rotate(-8deg);
  }
  .card-two {
    transform: translate(82px, -52%) rotate(0deg) translateZ(14px);
  }
  .card-three {
    transform: translate(174px, -50%) rotate(8deg) translateZ(8px);
  }
  .deck-card.active {
    z-index: 40;
    transform: translate(112px, -56%) scale(1.04) rotate(-4deg) translateZ(80px);
  }
  .deck-preview {
    grid-column: 2;
    max-width: 430px;
    padding: 18px;
    grid-template-columns: 180px 1fr;
    gap: 18px;
  }
  .deck-preview img {
    width: 180px;
    height: 220px;
  }
  .deck-preview h3 {
    font-size: 1.7rem;
    line-height: 1.08;
  }
}

@media (max-width: 900px) {
  #produits .center {
    margin-bottom: 92px;
  }
  .card-deck {
    min-height: 0;
    overflow: visible;
    padding-top: 370px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .card-deck::before {
    top: -46px;
    left: 50%;
    z-index: 8;
    white-space: nowrap;
    transform: translateX(-50%);
  }
  .deck-card {
    top: 184px;
    left: 50%;
    width: clamp(132px, 24vw, 170px);
    height: auto;
    padding: 20px;
    aspect-ratio: 230 / 320;
  }
  .card-one {
    transform: translate(-145%, -50%) rotate(-8deg);
  }
  .card-two {
    transform: translate(-50%, -52%) rotate(0deg) translateZ(16px);
  }
  .card-three {
    transform: translate(45%, -50%) rotate(8deg) translateZ(8px);
  }
  .deck-card.active {
    z-index: 40;
    filter: saturate(1.12) brightness(1.02);
    box-shadow: 0 34px 86px rgba(89, 67, 114, 0.28);
    transform: translate(-50%, -58%) scale(1.08) rotate(-3deg) translateZ(90px);
  }
  .deck-preview {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  #produits .center {
    margin-bottom: 100px;
  }
  .card-deck {
    padding-top: 355px;
  }
  .deck-card {
    top: 178px;
    width: clamp(106px, 29vw, 132px);
  }

  .card-one {
    transform: translate(-152%, -50%) rotate(-8deg);
  }

  .card-three {
    transform: translate(52%, -50%) rotate(8deg) translateZ(8px);
  }
}

@media (max-width: 430px) {
  .card-deck {
    padding-top: 338px;
  }
  .deck-card {
    top: 170px;
    width: clamp(98px, 28vw, 116px);
  }

  .card-one {
    transform: translate(-158%, -50%) rotate(-8deg);
  }

  .card-three {
    transform: translate(58%, -50%) rotate(8deg) translateZ(8px);
  }
}

@media (max-width: 1015px) {
  #produits .center {
    margin-bottom: 92px;
  }

  .card-deck {
    display: grid;
    min-height: 0;
    overflow: visible;
    padding-top: 370px;
    grid-template-columns: 1fr;
    gap: 34px;
    perspective: 1200px;
  }

  .card-deck::before {
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
  }

  .deck-card {
    top: 184px;
    left: 50%;
    width: clamp(132px, 24vw, 170px);
    height: auto;
    aspect-ratio: 230 / 320;
    transition:
      transform 0.82s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.55s ease,
      filter 0.55s ease;
  }

  .deck-card.mobile-left {
    z-index: 11;
    transform: translate(-116%, -50%) rotate(-8deg) translateZ(0);
  }

  .deck-card.mobile-center,
  .deck-card.active.mobile-center {
    z-index: 35;
    transform: translate(-50%, -52%) rotate(0deg) scale(1.05) translateZ(64px);
  }

  .deck-card.mobile-right {
    z-index: 12;
    transform: translate(16%, -50%) rotate(8deg) translateZ(8px);
  }

  .deck-preview {
    grid-column: 1;
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .atelier-caption {
    right: auto;
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 11px;
    border-radius: 14px;
  }
}

@media (max-width: 850px) {
  body.menu-open {
    overflow: hidden;
  }

  .navbar {
    z-index: 120;
    isolation: isolate;
  }

  body.menu-open .navbar {
    background: rgba(255, 255, 255, 0.94);
    pointer-events: auto;
  }

  .navbar .brand,
  .navbar .hamburger {
    position: relative;
    z-index: 2;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: -10px auto auto calc((100% - 100vw) / 2);
    z-index: 110;
    display: grid;
    width: 100vw;
    height: 100dvh;
    align-content: center;
    justify-content: center;
    grid-template-columns: repeat(2, calc(var(--mobile-menu-width) / 2));
    column-gap: 0;
    padding: 112px 24px 34px;
    border-radius: 0;
    background:
      radial-gradient(
        circle at 15% 12%,
        rgba(255, 127, 189, 0.22),
        transparent 30%
      ),
      radial-gradient(
        circle at 88% 78%,
        rgba(101, 217, 255, 0.24),
        transparent 30%
      ),
      linear-gradient(
        135deg,
        var(--nav-background-start),
        var(--nav-background-end)
      );
    box-shadow: none;
    backdrop-filter: blur(22px);
    pointer-events: none;
    transform: translateX(105%);
    transition: transform 0.66s var(--mobile-menu-ease);
    gap: 14px;
  }

  .nav-links.open {
    pointer-events: auto;
    transform: translateX(0);
  }

  body > .nav-links {
    z-index: 110;
  }

  .nav-links a {
    display: flex;
    width: min(360px, 86vw);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(89, 67, 114, 0.12);
    color: var(--ink);
    opacity: 0;
    text-align: center;
    transform: translateX(72px);
    transition:
      opacity 0.25s ease,
      transform 0.46s var(--mobile-menu-ease),
      background-color var(--transition-hover),
      border-color var(--transition-hover),
      color var(--transition-hover),
      box-shadow var(--transition-hover);
  }

  .nav-links > a:nth-child(-n + 3) {
    width: 100%;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .nav-links.open a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.open a:nth-child(1) {
    transition-delay: 0.06s, 0.06s, 0s, 0s, 0s, 0s;
  }

  .nav-links.open a:nth-child(2) {
    transition-delay: 0.12s, 0.12s, 0s, 0s, 0s, 0s;
  }

  .nav-links.open a:nth-child(3) {
    transition-delay: 0.18s, 0.18s, 0s, 0s, 0s, 0s;
  }

  .nav-links.open a:nth-child(4),
  .nav-links.open a:nth-child(5) {
    transition-delay: 0.24s, 0.24s, 0s, 0s, 0s, 0s;
  }

  .nav-links.open a:hover,
  .nav-links.open a:focus-visible {
    border-color: var(--white);
    background: var(--white);
    color: var(--pink-strong);
    transform: translateX(0) translateY(-2px);
    transition-delay: 0s;
  }

  .nav-links .nav-shop-link,
  .nav-links .nav-contact-link {
    display: inline-flex;
    width: 74px;
    min-height: 58px;
    margin: 4px 0 0;
    padding: 0;
    justify-self: center;
  }

  .nav-links .nav-shop-link {
    grid-column: 1;
  }

  .nav-links .nav-contact-link {
    grid-column: 2;
    border: 0;
    background: linear-gradient(135deg, var(--pink-hot), var(--blue));
    color: var(--white);
  }

  .nav-links .nav-contact-link:hover,
  .nav-links .nav-contact-link:focus-visible {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
  }

  .nav-links .nav-shop-link .nav-label,
  .nav-links .nav-contact-link .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .shop-toggle-wrap {
    display: block;
  }

  .shop-card.mobile-extra {
    display: none;
  }

  .shop-grid.expanded .shop-card.mobile-extra {
    display: flex;
    animation: shop-card-reveal 0.55s var(--ease-out) both;
  }
}

@media (max-width: 700px) {
  .deck-card {
    top: 178px;
    width: clamp(118px, 34vw, 148px);
  }

  .deck-card.mobile-left {
    transform: translate(-116%, -50%) rotate(-8deg) translateZ(0);
  }

  .deck-card.mobile-right {
    transform: translate(16%, -50%) rotate(8deg) translateZ(8px);
  }

  .contact-soap:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 640px) {
  #services h2 {
    max-width: none;
    margin-inline: 0;
    font-size: clamp(1.8rem, 8vw, 2.15rem);
    line-height: 1.06;
  }

  .services .reveal {
    text-align: left;
  }

  .services .btn.primary {
    display: flex;
    width: fit-content;
    justify-content: center;
    margin-inline: auto;
  }

  .service-grid article {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .deck-card {
    top: 170px;
    width: clamp(112px, 33vw, 126px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .hero-copy {
    transform: none;
  }
}

/* Copyright RZU Informatique */
