/* =============== RESET & BASE =============== */
*{box-sizing:border-box}
html, body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow: auto;
  background: #fffaf0;   /* beige clair */
  color: #222;
  line-height: 1.6;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
img{max-width:100%;display:block}
a{color:#1f2937;text-decoration:none}
.container{max-width:1180px;margin:auto;padding:24px}
.btn{display:inline-block;padding:12px 18px;border-radius:999px;background:#fbbf24;color:#1a1a1a;font-weight:800;box-shadow:0 8px 22px rgba(0,0,0,.08)}
.btn.outline{background:transparent;border:2px solid #fbbf24;color:#5a4635}

/* =============== NAV =============== */
.nav{position:sticky;top:0;background:#fff;border-bottom:1px solid #efe5d3;z-index:1000}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px}
.logo{display:flex;align-items:center;gap:10px}
.logo img{height:60px;width:auto;object-fit:contain;display:block}
.menu-links{display:flex;gap:16px;align-items:center}
.menu-links a{color:#3a312a;font-weight:600}
.menu-links .btn{padding:9px 14px}

/* =============== HERO VIDÉO =============== */
/* Section conteneur */
.hero-video-section{
  position: relative;
  width: 100%;
  height: 100vh;       /* plein écran */
  overflow: hidden;    /* cache tout débordement */
  margin-top: 0;
  background: transparent;
}

/* Vidéo plein écran, centrée */
.hero-video-section .hero-video{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.1); /* léger zoom au départ */
  display: block;
  z-index: 0;
  animation: hpZoomOut 15s ease-in-out forwards; /* dézoom lent */
}

/* Dézoom progressif */
@keyframes hpZoomOut {
  from { transform: translate(-50%, -50%) scale(1.1); }
  to   { transform: translate(-50%, -50%) scale(1); }
}

/* Voile blanc doux (modifie l’opacité si besoin) */
.hero-video-section::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(255,255,255,.42);
  pointer-events:none;
  z-index:1;
}

/* Contenu hero au-dessus de la vidéo + voile */
header.hero{
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 78vh;
  text-align: center;
  padding: 0 20px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero h1{font-size:clamp(28px,6vw,56px);margin:0 0 8px;font-weight:900;letter-spacing:.2px}
.hero p{font-size:clamp(16px,2.4vw,19px);margin:.35rem auto 1.1rem;max-width:760px}
.cta-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.pills{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #e7dcc9;color:#5a4635;font-size:14px}

/* =============== SECTIONS GÉNÉRALES =============== */
.section{padding:26px 0}
.section-title{font-size:clamp(22px,4vw,32px);margin:10px 0 14px;font-weight:900;color:#2b221a}
.sub{color:#6b6259;margin-top:-6px}
.beige{background:linear-gradient(180deg,#fff,#fffaf0)}

/* =============== GRILLE & CARTES MENU =============== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
}
.card{
  background:#fff;
  border:1px solid #efe5d3;
  border-radius:14px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 22px rgba(0,0,0,.15);
}

/* IMPORTANT : wrapper image (obligatoire) */
.card .thumb{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;      /* même hauteur partout ; mets 1/1 si tu veux carré */
  overflow:hidden;
  border-radius:10px;
  background:#f2f2f2;
}

/* Image qui remplit (Calzone incluse) */
.card .thumb img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;          /* remplit */
  object-position:top center;/* cadre par le haut; mets center si tu préfères */
  display:block;
  transition:transform .25s ease, filter .25s ease;
}
.card .thumb:hover img{
  transform:scale(1.05);
  filter:saturate(1.05);
}

/* Corps de carte */
.body{padding:14px;text-align:center}
.body h3{margin:0 0 4px;font-size:18px;color:#2b221a}
.small{font-size:13px;color:#6b6259}
.price{color:#b45309;font-weight:900;margin-top:6px}

/* =============== OFFRES / AVIS / FAVORIS / MAP =============== */
.offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:4px}
.offer{display:flex;gap:12px;align-items:center;background:#fff7e8;border:1px dashed #e0caa6;border-radius:18px;padding:14px}
.offer img{width:96px;height:96px;object-fit:cover;border-radius:12px;border:1px solid #e6d2ae}

.reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.review{background:#fff;border:1px solid #efe4d0;border-radius:14px;padding:14px;color:#3a312a}

.favorites{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.favorite{background:#fff;border:1px solid #efe4d0;border-radius:14px;overflow:hidden}
.favorite img{height:160px;object-fit:cover;width:100%}
.favorite .body{padding:12px}

.map{position:relative;padding-top:56.25%;border-radius:16px;overflow:hidden;border:1px solid #e6d2ae;background:#f9f3e7}
.map iframe{position:absolute;left:0;top:0;width:100%;height:100%;border:0}

/* =============== BOUTONS FLOTTANTS & FOOTER =============== */
.sticky{position:fixed;right:14px;bottom:14px;display:flex;flex-direction:column;gap:10px;z-index:9999}
.sticky a{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:#fbbf24;color:#1a1a1a;font-weight:900;box-shadow:0 14px 34px rgba(0,0,0,.2)}
footer{border-top:1px solid #efe5d3;background:#fffaf0;padding:28px 0;color:#6b6259}

/* Ajustement vertical d’image */
.pos-up-5  { object-position: center 45% !important; } /* remonte un peu */
.pos-up-10 { object-position: center 40% !important; } /* remonte plus */
.pos-up-15 { object-position: center 55% !important; } /* remonte encore plus */
.pos-up-20 { object-position: center 40% !important; } /* remonte beaucoup */


.card { 
  border-radius: 12px;
  background: ##efe6d7
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Zone image fixe */
.card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;   /* fixe la hauteur visuelle */
  overflow: hidden;
  background: #f2f2f2;
}
.card .thumb img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center; /* ou center top si tu veux cadrer haut */
}

/* Zone texte */
.card .body{
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.card .body h3{ margin: 6px 0 2px; }


.grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* Force 3 colonnes mini en desktop */
@media (min-width: 900px){
  .grid.grid-3{
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .grid.grid-3 .card{ max-width: 320px; }
}

/*espace entres les titres*/
#pates, #boissons, #desserts, #formule-midi {
  margin-top: 80px;
  margin-bottom: 80px;
}


/* Section Boissons - élargir les cartes */
#boissons, #formule-midi .card {
  max-width: 400px;  /* largeur maximale d’une carte */
  width: 100%;
}

#boissons, #formule-midi .grid {
  justify-content: center; /* centre les éléments */
  gap: 40px; /* espace horizontal entre les cartes */
}



/* --- Responsive menu mobile (2 colonnes) --- */
@media (max-width: 768px) {
  /* Toutes les grilles, même celles avec "grid-3" */
  .grid, .grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 10px;
    justify-items: center;
  }

  /* Cartes compactes */
  .card {
    padding: 8px;
    border-radius: 10px;
  }

  /* Images réduites */
  .card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Texte plus petit */
  .card h3 {
    font-size: 13px;
    text-align: center;
  }

  .card .small {
    font-size: 11px;
    text-align: center;
  }

  .card .price {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
  }
}
.btn-floating {
  position: fixed;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7b500; /* jaune Hello Pizza */
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.btn-floating.phone { bottom: 95px; }
.btn-floating.whatsapp { bottom: 30px; }

.btn-floating:hover {
  transform: translateY(-3px);
}

/* --- Ajustement du header sur mobile --- */
@media (max-width: 768px) {
  /* Masque le bouton "Appeler" dans la barre du haut */
  nav a[title="Appeler"] {
    display: none !important;
  }

  /* Réduction et recentrage du texte du menu */
  nav {
    justify-content: space-between;
    align-items: center;
  }

  nav a {
    font-size: 14px;
    margin: 0 6px;
  }

  nav img {
    width: 28px;
    height: auto;
  }
}

/* --- ALIGNEMENT DU LOGO ET CORRECTION DU DÉBORDEMENT --- */

/* Empêche tout scroll horizontal */
html, body {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Structure du menu */
.nav {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  flex-wrap: wrap;
}

/* Logo collé à gauche */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 38px;
  width: auto;
}

.logo strong {
  font-size: 16px;
  line-height: 1.1;
}

/* Liens du menu centrés / flexibles */
.menu-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 15px;
}

/* Bouton “Appeler” à droite */
.nav .btn {
  background: #fbbf24;
  color: #000;
  border-radius: 50px;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Vidéo plein écran sans déborder */
.hero-video-section video {
  width: 100%;
  max-width: 100vw;
  height: auto;
  display: block;
}

/* Boutons flottants fixés sans déborder */
.sticky {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.sticky a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fbbf24;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
}
/* Header mobile propre */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .nav { position: sticky; top: 0; z-index: 1000; background: #fff; }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
  }

  /* Logo + titre collés à gauche */
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .logo img { width: 22px; height: 22px; }
  .logo strong {
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px; /* ajuste si besoin */
  }

  /* Liens compacts, pas de style bouton */
  .menu-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
  }
  .menu-links a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
  }
  /* Si un vieux style .btn traîne, on le neutralise dans le header */
  .menu-links .btn {
    all: unset;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
}
/* Bouton "Appeler" dans le menu en jaune */
.menu-links a[href^="tel:"] {
  background-color: #fbbf24;
  color: #000; /* texte noir pour contraste */
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.menu-links a[href^="tel:"]:hover {
  background-color: #f7c948; /* plus clair au survol */
}
/* ✅ Ajustement du logo et du titre Hello Pizza Marrakech */
.nav .logo {
  display: flex;
  align-items: center; /* aligne verticalement */
  gap: 8px; /* petit espace entre logo et texte */
}

.nav .logo img {
  width: 55px;  /* ajuste entre 50px et 70px selon ta préférence */
  height: auto;
}

/* ✅ Empêche le glissement horizontal sur mobile */
body {
  overflow-x: hidden;
}
