/* =========================================================
   RESPONSIVE.CSS - LE MEVLANA
   Version propre pour toutes les pages
   Accueil + Carte + Galerie + Contact
========================================================= */


/* =========================================================
   1) GRAND ÉCRAN / TABLETTE LARGE
========================================================= */

@media (max-width: 1200px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .header-row {
    grid-template-columns: 230px 1fr 190px;
    gap: 18px;
  }

  .main-nav ul {
    gap: 26px;
  }

  .phone-btn {
    padding: 13px 16px;
    font-size: 0.9rem;
  }

  /* ACCUEIL */
  .hero-grid {
    grid-template-columns: 42% 58%;
  }

  .hero-brand-block h1 .thin {
    font-size: 3.6rem;
  }

  .hero-brand-block h1 .gold {
    font-size: 5.2rem;
  }

  .food-card-image {
    height: 230px;
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-item:nth-child(3)::after,
  .feature-item:nth-child(6)::after {
    display: none;
  }

  /* CARTE */
  .menu-category-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-link:nth-child(3),
  .category-link:nth-child(6) {
    border-right: none;
  }

  .menu-feature-grid,
  .tacos-layout {
    grid-template-columns: 1fr;
  }

  .menu-feature-image img,
  .tacos-image img {
    min-height: 380px;
  }

  .sandwich-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .triple-menu-grid {
    grid-template-columns: 1fr;
  }

  .other-card {
    grid-template-columns: 130px 1fr auto;
  }

  .menu-advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-advantage-card:nth-child(3)::after,
  .menu-advantage-card:nth-child(6)::after {
    display: none;
  }

  /* GALERIE */
  .gallery-filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-filter:nth-child(3),
  .gallery-filter:nth-child(6) {
    border-right: none;
  }

  .premium-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 245px;
  }

  .premium-gallery-card.large,
  .premium-gallery-card.wide {
    grid-column: span 2;
  }
}


/* =========================================================
   2) TABLETTE / MENU BURGER
========================================================= */

@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  /* HEADER GLOBAL */
  .header-row {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    min-width: auto;
  }

  .brand-script {
    font-size: 2.45rem;
  }

  .brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .phone-btn {
    display: none;
  }

  .desktop-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.28s ease;
    z-index: 999;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--gold-pale);
    color: var(--gold-dark);
  }

  /* ACCUEIL HERO */
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }

  .hero-content {
    padding: 38px 24px 36px;
  }

  .hero-content::before {
    inset: -110px 0 0 0;
    background: linear-gradient(
      180deg,
      rgba(255,253,248,0) 0%,
      rgba(255,253,248,0.92) 28%,
      #fffdf8 58%
    );
  }

  .hero-image-wrap {
    height: 390px;
    min-height: 390px;
  }

  .hero-image-wrap::before {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.02) 0%,
      rgba(255,253,248,0.08) 50%,
      rgba(255,253,248,0.82) 100%
    );
  }

  .hero-brand-block h1 .thin {
    font-size: 3rem;
  }

  .hero-brand-block h1 .gold {
    font-size: 4.45rem;
  }

  .hero-text {
    max-width: 680px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }

  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meta-item:nth-child(2)::after {
    display: none;
  }

  /* ACCUEIL CARDS */
  .cards-3 {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
    gap: 24px;
  }

  .food-card {
    display: flex;
    flex-direction: column;
  }

  .food-card-image {
    height: 280px;
    padding: 14px;
  }

  .food-card-body {
    min-height: auto;
    padding: 24px 22px 28px;
  }

  .taste-grid {
    grid-template-columns: 1fr;
  }

  .taste-text {
    padding: 38px 24px;
  }

  .taste-text::after {
    display: none;
  }

  .taste-image {
    min-height: 330px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-left {
    padding-right: 0;
  }

  /* CARTE HERO */
  .menu-hero-inner {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }

  .menu-hero-visual {
    order: -1;
    min-height: 350px;
    height: 350px;
  }

  .menu-hero-visual::before {
    background: linear-gradient(
      180deg,
      rgba(255,253,248,0) 0%,
      rgba(255,253,248,0.10) 55%,
      rgba(255,253,248,0.88) 100%
    );
  }

  .menu-hero-text {
    padding: 38px 24px 40px;
  }

  .menu-hero-text::before {
    inset: -130px -30px 0 -30px;
    background: linear-gradient(
      180deg,
      rgba(255,253,248,0) 0%,
      rgba(255,253,248,0.94) 28%,
      #fffdf8 55%
    );
  }

  .menu-products-grid-2 {
    grid-template-columns: 1fr;
  }

  .sandwich-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .menu-section-heading.center {
    align-items: center;
    text-align: center;
  }

  .other-grid {
    grid-template-columns: 1fr;
  }

  .menu-final-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-final-actions {
    justify-content: flex-start;
  }

  /* GALERIE */
  .gallery-hero-inner {
    grid-template-columns: 1fr;
  }

  .gallery-hero-visual {
    order: -1;
    min-height: 350px;
    height: 350px;
  }

  .gallery-hero-text {
    padding: 38px 24px 40px;
  }

  .gallery-mood-card {
    grid-template-columns: 1fr;
  }

  .gallery-final-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-final-actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   3) MOBILE LARGE
========================================================= */

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  /* HEADER */
  .site-header {
    background: rgba(255,253,248,0.98);
  }

  .header-row {
    min-height: 78px;
  }

  .brand-script {
    font-size: 2.2rem;
  }

  .brand-sub {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .brand-sub::after {
    width: 38px;
  }

  .main-nav {
    left: 12px;
    right: 12px;
  }

  /* GLOBAL */
  .btn {
    width: 100%;
    min-height: 50px;
    font-size: 0.84rem;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 2rem;
    letter-spacing: 0.055em;
  }

  /* ACCUEIL HERO */
  .hero {
    padding-top: 0;
  }

  .hero-grid {
    margin-top: 8px;
    width: min(100% - 24px, var(--container));
  }

  .hero-image-wrap {
    height: 300px;
    min-height: 300px;
  }

  .hero-content {
    padding: 30px 18px 32px;
    text-align: left;
  }

  .hero-brand-block h1 {
    letter-spacing: 0.055em;
  }

  .hero-brand-block h1 .thin {
    font-size: 2.45rem;
  }

  .hero-brand-block h1 .gold {
    font-size: 3.35rem;
  }

  .hero-script {
    font-size: 1.85rem;
    margin-top: 18px;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 22px 0 24px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-item {
    padding: 18px;
  }

  .meta-item::after {
    display: none !important;
  }

  .meta-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1rem;
  }

  .food-card-image {
    height: 225px;
  }

  .food-card-body {
    padding: 20px 18px 24px;
  }

  .food-card-body h3 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .food-card-body p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .taste-grid {
    border-radius: 0;
  }

  .taste-text {
    padding: 32px 18px;
  }

  .taste-image {
    min-height: 250px;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery-thumb img {
    height: 220px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item::after {
    display: none !important;
  }

  .feature-item {
    border-bottom: 1px solid var(--border-soft);
  }

  .cta-left h2 {
    font-size: 2.05rem;
  }

  .cta-contact-line {
    flex-direction: column;
    gap: 9px;
  }

  .map-card,
  .real-map iframe {
    min-height: 260px;
  }

  /* CARTE */
  .menu-hero {
    padding: 16px 0 14px;
  }

  .menu-hero-visual {
    min-height: 260px;
    height: 260px;
  }

  .menu-hero-text {
    padding: 30px 18px 32px;
  }

  .menu-hero h1 {
    font-size: 3rem;
    letter-spacing: 0.07em;
  }

  .menu-script {
    font-size: 1.7rem;
  }

  .menu-hero-description {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .menu-hero-actions {
    flex-direction: column;
  }

  .menu-hero-actions .btn {
    width: 100%;
  }

  .menu-category-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-link {
    min-height: 64px;
    font-size: 0.78rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .category-link:nth-child(even) {
    border-right: none;
  }

  .menu-section {
    padding: 38px 0;
  }

  .menu-section-heading h2,
  .tacos-content h2,
  .menu-final-inner h2 {
    font-size: 2.4rem;
  }

  .menu-feature-image img,
  .tacos-image img {
    min-height: 260px;
  }

  .menu-item {
    padding: 18px;
    align-items: flex-start;
  }

  .price {
    min-width: 68px;
    height: 44px;
    font-size: 1rem;
  }

  .sandwich-grid {
    grid-template-columns: 1fr;
  }

  .sandwich-card {
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: center;
  }

  .sandwich-card img {
    height: 100%;
    min-height: 155px;
  }

  .tacos-content {
    padding: 24px;
  }

  .tacos-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tacos-prices {
    width: 100%;
  }

  .tacos-prices span {
    flex: 1;
  }

  .meats-grid span {
    font-size: 0.84rem;
  }

  .simple-menu-card {
    padding: 22px;
  }

  .simple-menu-title h3 {
    font-size: 1.8rem;
  }

  .sauces-grid {
    grid-template-columns: 1fr;
  }

  .other-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .other-card img {
    margin: 0 auto;
  }

  .other-card strong {
    margin: 0 auto;
  }

  .menu-final-inner {
    padding: 28px 20px;
  }

  .menu-final-actions,
  .menu-final-actions .btn {
    width: 100%;
  }

  .menu-advantages {
    padding: 22px 0 42px;
  }

  .menu-advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 20px;
  }

  .menu-advantage-card {
    min-height: 150px;
    padding: 22px 12px 20px;
  }

  .menu-advantage-card::after {
    display: none !important;
  }

  .menu-advantage-icon {
    width: 48px;
    height: 48px;
    font-size: 1.08rem;
    margin-bottom: 12px;
  }

  .menu-advantage-card h3 {
    font-size: 0.84rem;
  }

  .menu-advantage-card p {
    font-size: 0.82rem;
  }

  /* GALERIE */
  .gallery-hero {
    padding: 16px 0 14px;
  }

  .gallery-hero-visual {
    min-height: 260px;
    height: 260px;
  }

  .gallery-hero-text {
    padding: 30px 18px 32px;
  }

  .gallery-hero h1 {
    font-size: 3rem;
  }

  .gallery-script {
    font-size: 1.7rem;
  }

  .gallery-hero-description {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .gallery-hero-actions {
    flex-direction: column;
  }

  .gallery-hero-actions .btn {
    width: 100%;
  }

  .gallery-filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-filter {
    min-height: 62px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
  }

  .gallery-filter:nth-child(even) {
    border-right: none;
  }

  .gallery-main-section {
    padding: 38px 0;
  }

  .gallery-section-heading h2,
  .gallery-final-inner h2 {
    font-size: 2.4rem;
  }

  .premium-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .premium-gallery-card.large,
  .premium-gallery-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-overlay {
    opacity: 1;
  }

  .gallery-mood-text {
    padding: 30px 20px;
  }

  .gallery-mood-text h2 {
    font-size: 2.2rem;
  }

  .gallery-final-inner {
    padding: 28px 20px;
  }

  .gallery-final-actions,
  .gallery-final-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   4) PETIT MOBILE
========================================================= */

@media (max-width: 480px) {
  .container {
    width: min(100% - 18px, var(--container));
  }

  /* HEADER */
  .header-row {
    min-height: 74px;
  }

  .brand-script {
    font-size: 1.95rem;
  }

  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }

  .brand-sub::after {
    width: 32px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  /* GLOBAL */
  .section-title h2 {
    font-size: 1.78rem;
  }

  .btn {
    font-size: 0.78rem;
    padding: 0 16px;
  }

  /* ACCUEIL */
  .hero-grid {
    width: min(100% - 18px, var(--container));
  }

  .hero-image-wrap {
    height: 245px;
    min-height: 245px;
  }

  .hero-content {
    padding: 28px 14px 30px;
  }

  .hero-brand-block h1 .thin {
    font-size: 2.1rem;
  }

  .hero-brand-block h1 .gold {
    font-size: 2.8rem;
  }

  .hero-script {
    font-size: 1.5rem;
  }

  .hero-line {
    width: 62px;
  }

  .hero-text {
    font-size: 0.92rem;
  }

  .food-card-image {
    height: 205px;
  }

  .food-card-body h3 {
    font-size: 1.8rem;
  }

  .food-card-body p {
    font-size: 0.92rem;
  }

  .signature {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 20px 12px;
  }

  .cta-left h2 {
    font-size: 1.78rem;
  }

  .map-card,
  .real-map iframe {
    min-height: 220px;
  }

  /* CARTE */
  .menu-hero-visual {
    min-height: 220px;
    height: 220px;
  }

  .menu-hero-text {
    padding: 28px 16px 32px;
  }

  .page-kicker {
    font-size: 0.7rem;
  }

  .menu-hero h1 {
    font-size: 2.45rem;
  }

  .menu-script {
    font-size: 1.36rem;
  }

  .menu-category-nav {
    grid-template-columns: 1fr;
  }

  .category-link {
    border-right: none;
  }

  .menu-section-heading h2,
  .tacos-content h2,
  .menu-final-inner h2 {
    font-size: 2rem;
  }

  .menu-item {
    flex-direction: column;
  }

  .price {
    width: 100%;
  }

  .sandwich-card {
    grid-template-columns: 1fr;
  }

  .sandwich-card img {
    height: 170px;
  }

  .tacos-prices {
    flex-direction: column;
  }

  .tacos-prices span {
    width: 100%;
  }

  .menu-advantages-grid {
    grid-template-columns: 1fr;
  }

  .menu-advantage-card {
    min-height: auto;
    padding: 22px 16px;
    border-bottom: 1px solid var(--border);
  }

  .menu-advantage-card:last-child {
    border-bottom: none;
  }

  .other-card img {
    width: 130px;
    height: 100px;
  }

  /* GALERIE */
  .gallery-hero-visual {
    min-height: 220px;
    height: 220px;
  }

  .gallery-hero h1 {
    font-size: 2.45rem;
  }

  .gallery-script {
    font-size: 1.36rem;
  }

  .gallery-filter-bar {
    grid-template-columns: 1fr;
  }

  .gallery-filter {
    border-right: none;
  }

  .gallery-section-heading h2,
  .gallery-final-inner h2 {
    font-size: 2rem;
  }

  .premium-gallery-grid {
    grid-auto-rows: 210px;
  }

  .gallery-overlay h3 {
    font-size: 1.55rem;
  }

  .gallery-mood-text h2 {
    font-size: 1.85rem;
  }

  .lightbox-content h3 {
    font-size: 1.4rem;
  }
}
/* =========================================================
   RESPONSIVE PAGE CONTACT
========================================================= */

@media (max-width: 1200px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-hero-visual {
    order: -1;
    min-height: 350px;
    height: 350px;
  }

  .contact-hero-text {
    padding: 38px 24px 40px;
  }
}

@media (max-width: 760px) {
  .contact-hero {
    padding: 16px 0 14px;
  }

  .contact-hero-visual {
    min-height: 260px;
    height: 260px;
  }

  .contact-hero-text {
    padding: 30px 18px 32px;
  }

  .contact-hero h1 {
    font-size: 3rem;
  }

  .contact-script {
    font-size: 1.7rem;
  }

  .contact-hero-description {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .contact-hero-actions {
    flex-direction: column;
  }

  .contact-hero-actions .btn {
    width: 100%;
  }

  .contact-main-section {
    padding: 38px 0;
  }

  .reservation-card,
  .contact-info-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .reservation-card h2,
  .contact-info-header h2,
  .contact-map-heading h2 {
    font-size: 2.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit-btn {
    width: 100%;
  }

  .contact-map-card {
    min-height: 300px;
    border-radius: 22px;
  }

  .contact-map-card iframe {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .contact-hero-visual {
    min-height: 220px;
    height: 220px;
  }

  .contact-hero h1 {
    font-size: 2.35rem;
  }

  .contact-script {
    font-size: 1.36rem;
  }

  .reservation-card h2,
  .contact-info-header h2,
  .contact-map-heading h2 {
    font-size: 2rem;
  }

  .contact-info-item {
    padding: 16px;
  }

  .contact-info-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .contact-map-card,
  .contact-map-card iframe {
    min-height: 250px;
  }
}