/* =========================================================
   SB CROUSTY — RESPONSIVE PREMIUM COMPLET
   À coller dans responsive.css
========================================================= */


/* =========================================================
   GRAND ÉCRAN / PETIT DESKTOP
========================================================= */

@media (max-width: 1180px) {
  .container {
    width: min(100% - 42px, 1180px);
  }

  .nav {
    gap: 24px;
  }

  .nav a {
    font-size: 13px;
  }

  .phone {
    display: none;
  }

  .menu-grid.six,
  .menu-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .riz-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sauces-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   TABLETTE HORIZONTALE / PETIT LAPTOP
========================================================= */

@media (max-width: 1050px) {
  .hero-grid,
  .menu-hero-inner,
  .order-hero-inner,
  .gallery-hero-inner,
  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero,
  .menu-hero,
  .order-hero,
  .gallery-hero,
  .contact-hero {
    min-height: auto;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-content,
  .menu-hero-text,
  .order-hero-text,
  .gallery-hero-text,
  .contact-hero-text {
    text-align: center;
    padding-top: 42px;
  }

  .hero p,
  .menu-hero-text p,
  .order-hero-text p,
  .gallery-hero-text p,
  .contact-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-points,
  .menu-hero-actions,
  .order-hero-actions,
  .gallery-hero-actions,
  .contact-hero-actions,
  .order-hero-points {
    justify-content: center;
  }

  .hero-visual {
    height: 430px;
    margin-top: -36px;
  }

  .menu-hero-image,
  .order-hero-image,
  .gallery-hero-image {
    height: 380px;
    margin-top: -18px;
  }

  .contact-map {
    height: 360px;
  }

  .specialites-grid,
  .infos-box,
  .order-info-box,
  .quick-contact-grid,
  .signature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-options-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .final-box,
  .order-final-box,
  .social-box {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .final-buttons {
    grid-template-columns: repeat(3, minmax(150px, 170px));
    justify-content: center;
  }

  .order-final-actions {
    justify-content: center;
  }

  .info-item,
  .order-info-item {
    border-right: none;
  }

  .info-item:nth-child(odd),
  .order-info-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .info-item:nth-child(1),
  .info-item:nth-child(2),
  .order-info-item:nth-child(1),
  .order-info-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* =========================================================
   AVANT MOBILE
========================================================= */

@media (max-width: 860px) {
  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 12px;
  }

  .desktop-order-btn {
    padding: 13px 18px;
    font-size: 12px;
  }

  .header-actions {
    gap: 12px;
  }
}


/* =========================================================
   MOBILE PREMIUM
========================================================= */

@media (max-width: 760px) {
  :root {
    --header-height: 78px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 78px;
    background: rgba(0, 0, 0, 0.92);
  }

  .header-inner {
    position: relative;
  }

  .logo img {
    width: 70px;
  }

  .phone,
  .desktop-order-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* MENU MOBILE PREMIUM */

  .nav {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    z-index: 98;

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 0 0 22px 22px;

    background:
      radial-gradient(circle at top right, rgba(229, 9, 20, 0.22), transparent 42%),
      rgba(5, 5, 5, 0.98);

    backdrop-filter: blur(20px);
    box-shadow: 0 28px 80px rgba(0,0,0,0.72);

    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.28s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 16px 18px;

    border-radius: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);

    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active,
  .nav a:hover {
    background: rgba(229,9,20,0.18);
    color: #ffffff;
  }

  /* HEROS MOBILE */

  .hero,
  .menu-hero,
  .order-hero,
  .gallery-hero,
  .contact-hero {
    min-height: auto;
    padding-top: 102px;
    padding-bottom: 38px;
  }

  .hero-content,
  .menu-hero-text,
  .order-hero-text,
  .gallery-hero-text,
  .contact-hero-text {
    padding-top: 18px;
    text-align: center;
  }

  .brand-script {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .hero h1 {
    line-height: 0.92;
  }

  .hero h1 span {
    font-size: clamp(46px, 13vw, 56px);
  }

  .hero h1 strong {
    font-size: clamp(56px, 15vw, 68px);
  }

  .hero h1 em {
    font-size: clamp(32px, 9vw, 40px);
  }

  .menu-hero-text h1,
  .order-hero-text h1,
  .gallery-hero-text h1 {
    font-size: clamp(50px, 14vw, 62px);
    line-height: 0.92;
  }

  .menu-hero-text h1 strong,
  .order-hero-text h1 strong,
  .gallery-hero-text h1 strong {
    font-size: clamp(44px, 13vw, 56px);
  }

  .contact-hero-text h1 {
    font-size: clamp(44px, 13vw, 54px);
    line-height: 0.95;
  }

  .contact-hero-text h1 strong {
    font-size: clamp(34px, 10vw, 42px);
  }

  .hero p,
  .menu-hero-text p,
  .order-hero-text p,
  .gallery-hero-text p,
  .contact-hero-text p {
    max-width: 95%;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 330px;
    margin: 26px auto 0;
  }

  .hero-points div {
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
  }

  .hero-points p {
    font-size: 13px;
  }

  .hero-buttons,
  .menu-hero-actions,
  .order-hero-actions,
  .gallery-hero-actions,
  .contact-hero-actions,
  .order-final-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn,
  .big {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    height: 315px;
    margin-top: 12px;
  }

  .menu-hero-image,
  .order-hero-image,
  .gallery-hero-image {
    height: 300px;
    margin-top: 10px;
  }

  .hero-visual img,
  .menu-hero-image img,
  .order-hero-image img,
  .gallery-hero-image img {
    object-fit: contain;
    object-position: center;
  }

  .contact-map {
    height: 300px;
    border-radius: 18px;
  }

  /* SECTIONS */

  .specialites {
    margin-top: 0;
    padding-top: 28px;
  }

  .section-title {
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-title span {
    width: 40px;
  }

  .section-title h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .section-title small {
    font-size: 25px;
  }

  .specialites-grid,
  .infos-box,
  .order-info-box,
  .contact-details-grid,
  .quick-contact-grid,
  .order-options-grid,
  .signature-grid,
  .final-buttons {
    grid-template-columns: 1fr;
  }

  .riz-grid,
  .menu-grid.two,
  .menu-grid.three,
  .menu-grid.four,
  .menu-grid.five,
  .menu-grid.six,
  .sauces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* PHOTOS HOMOGÈNES MOBILE */

  .special-card {
    height: 245px;
  }

  .special-card img,
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .riz-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .menu-card img,
  .menu-card.small img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .signature-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  /* MENU PAGE */

  .menu-tabs,
  .gallery-filters {
    top: 78px;
  }

  .tabs-inner,
  .filters-inner {
    padding: 14px 0;
    gap: 10px;
  }

  .tabs-inner a,
  .filter-btn {
    padding: 11px 16px;
    font-size: 12px;
  }

  .menu-category {
    padding-top: 42px;
    scroll-margin-top: 135px;
  }

  .menu-category-title {
    align-items: flex-start;
    gap: 14px;
  }

  .menu-category-title h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .menu-category-title p {
    font-size: 14px;
  }

  .menu-category-title span {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .menu-card-content {
    padding: 18px;
  }

  .menu-card-content h3 {
    font-size: 24px;
  }

  .menu-card-content p {
    min-height: auto;
    font-size: 13px;
  }

  .choice-box {
    padding: 18px;
  }

  .choice-list {
    gap: 10px;
  }

  .choice-list span {
    width: 100%;
    text-align: center;
  }

  .sauces-grid span {
    min-height: 58px;
    font-size: 12px;
    padding: 10px;
  }

  /* INFOS */

  .riz-section .container {
    padding: 22px;
  }

  .info-item,
  .order-info-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .info-item:last-child,
  .order-info-item:last-child {
    border-bottom: none;
  }

  .order-card {
    min-height: auto;
    padding: 24px;
  }

  .order-card h3 {
    font-size: 30px;
  }

  .phone-display {
    font-size: 30px;
    letter-spacing: 2px;
    margin: 28px 0;
  }

  .quick-contact {
    margin-top: 30px;
  }

  .quick-card,
  .detail-card {
    padding: 24px;
  }

  .final-box,
  .order-final-box,
  .social-box {
    padding: 28px;
  }

  .final-title h2,
  .order-final-box h2,
  .social-box h2 {
    font-size: 30px;
  }

  .final-title p {
    font-size: 32px;
  }

  .final-buttons {
    width: 100%;
  }

  .final-buttons a {
    min-height: 72px;
  }

  /* GALERIE */

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 245px;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .gallery-overlay {
    padding: 20px;
  }

  .gallery-overlay h3 {
    font-size: 25px;
  }

  .signature-card {
    grid-template-columns: 1fr;
  }

  .social-links {
    width: 100%;
    flex-direction: column;
  }

  .social-links a {
    width: 100%;
  }

  .footer-brand {
    flex-direction: column;
  }
}


/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 480px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    height: 74px;
  }

  .logo img {
    width: 64px;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nav {
    top: 74px;
    left: 11px;
    right: 11px;
  }

  .hero,
  .menu-hero,
  .order-hero,
  .gallery-hero,
  .contact-hero {
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .brand-script {
    font-size: 28px;
  }

  .hero h1 span {
    font-size: 42px;
  }

  .hero h1 strong {
    font-size: 52px;
  }

  .hero h1 em {
    font-size: 31px;
  }

  .menu-hero-text h1,
  .order-hero-text h1,
  .gallery-hero-text h1 {
    font-size: 46px;
  }

  .menu-hero-text h1 strong,
  .order-hero-text h1 strong,
  .gallery-hero-text h1 strong {
    font-size: 41px;
  }

  .contact-hero-text h1 {
    font-size: 39px;
  }

  .contact-hero-text h1 strong {
    font-size: 31px;
  }

  .hero p,
  .menu-hero-text p,
  .order-hero-text p,
  .gallery-hero-text p,
  .contact-hero-text p {
    font-size: 14.5px;
  }

  .hero-visual,
  .menu-hero-image,
  .order-hero-image,
  .gallery-hero-image {
    height: 255px;
  }

  .special-card {
    height: 230px;
  }

  .riz-grid,
  .menu-grid.two,
  .menu-grid.three,
  .menu-grid.four,
  .menu-grid.five,
  .menu-grid.six,
  .sauces-grid {
    grid-template-columns: 1fr;
  }

  .menu-card img,
  .menu-card.small img,
  .riz-card img {
    aspect-ratio: 16 / 10;
  }

  .gallery-grid {
    grid-auto-rows: 235px;
  }

  .menu-category-title h2 {
    font-size: 30px;
  }

  .menu-card-content h3 {
    font-size: 23px;
  }

  .phone-display {
    font-size: 28px;
  }

  .contact-map {
    height: 285px;
  }

  .quick-card h3,
  .detail-card h3 {
    font-size: 26px;
  }

  .final-box,
  .order-final-box,
  .social-box {
    padding: 24px 20px;
  }
}


/* =========================================================
   TRÈS PETIT MOBILE
========================================================= */

@media (max-width: 380px) {
  .container {
    width: min(100% - 18px, 1180px);
  }

  .hero h1 span {
    font-size: 38px;
  }

  .hero h1 strong {
    font-size: 47px;
  }

  .hero h1 em {
    font-size: 28px;
  }

  .menu-hero-text h1,
  .order-hero-text h1,
  .gallery-hero-text h1 {
    font-size: 40px;
  }

  .menu-hero-text h1 strong,
  .order-hero-text h1 strong,
  .gallery-hero-text h1 strong {
    font-size: 36px;
  }

  .contact-hero-text h1 {
    font-size: 35px;
  }

  .contact-hero-text h1 strong {
    font-size: 28px;
  }

  .hero-visual,
  .menu-hero-image,
  .order-hero-image,
  .gallery-hero-image {
    height: 230px;
  }

  .special-card {
    height: 215px;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .phone-display {
    font-size: 25px;
    letter-spacing: 1px;
  }

  .btn {
    font-size: 12px;
  }
}