/* ============================================
   MIO Pizza - La Réunion | style.css
   ============================================ */

/* ---------- Variables & Reset ---------- */
:root {
  --red:     #bb0c0c;
  --red-dark:#8a0909;
  --green:   #008000;
  --green-dark:#006000;
  --white:   #ffffff;
  --cream:   #fdf8f2;
  --dark:    #1a1a1a;
  --gray:    #555555;
  --light:   #f5f5f5;
  --border:  #e0e0e0;
  --shadow:  0 4px 20px rgba(0,0,0,.12);
  --radius:  8px;
  --font:    'Montserrat', 'Segoe UI', sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--dark); color: var(--white); }
.section--red  { background: var(--red);  color: var(--white); }
.section--green{ background: var(--green);color: var(--white); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section--dark .section-label,
.section--green .section-label { color: rgba(255,255,255,.7); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 40px;
}
.section--dark  .section-subtitle,
.section--green .section-subtitle { color: rgba(255,255,255,.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-red   { background: var(--red);   color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(187,12,12,.35); }

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,128,0,.35); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }

/* ---------- HEADER ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  transition: box-shadow .3s;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 50px;
  width: auto;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.2;
}
.logo-text span { display: block; font-size: .65rem; color: var(--gray); font-weight: 500; letter-spacing: 1px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius);
  transition: all .2s;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--red); background: rgba(187,12,12,.06); }
.nav-menu a.active { color: var(--red); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  font-weight: 700;
  color: var(--red);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 20px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius);
  transition: all .2s;
}
.mobile-menu a:hover { background: rgba(187,12,12,.06); color: var(--red); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; }

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
#hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,.82) 0%, rgba(187,12,12,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #ffe08a;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: #ff6b6b; }
.hero-desc {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #ffe08a;
  line-height: 1;
}
.hero-stat span { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ANNONCE BAR ---------- */
.announce-bar {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
}
.announce-bar a { color: #ffe08a; text-decoration: underline; }

/* ---------- SECTION PIZZERIAS ---------- */
.pizzerias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.pizzeria-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.pizzeria-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }

.pizzeria-card-img {
  height: 180px;
  overflow: hidden;
  background: var(--light);
}
.pizzeria-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.pizzeria-card:hover .pizzeria-card-img img { transform: scale(1.06); }

.pizzeria-card-body {
  padding: 20px;
}
.pizzeria-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--red);
}
.pizzeria-card-body address {
  font-style: normal;
  font-size: .88rem;
  color: var(--gray);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.pizzeria-card-body .phone {
  font-size: .92rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.pizzeria-card-body .hours {
  font-size: .8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-open {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}

.pizzerias-cta { text-align: center; }

/* ---------- SECTION CARTE ---------- */
.carte-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.carte-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carte-img-wrap img { width: 100%; }
.carte-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.carte-img-overlay .btn { pointer-events: none; }
.carte-sizes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.carte-size {
  text-align: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  flex: 1;
  min-width: 80px;
  transition: all .25s;
}
.carte-size:hover { border-color: var(--red); background: rgba(187,12,12,.04); }
.carte-size .size-name { font-weight: 800; font-size: 1.1rem; color: var(--red); }
.carte-size .size-cm   { font-size: .78rem; color: var(--gray); }
.carte-highlights {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.carte-highlights h4 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.carte-highlights ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.carte-highlights li {
  font-size: .88rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.carte-highlights li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- SECTION CARTE INTERACTIVE ---------- */
#map-section .section-header { margin-bottom: 40px; }
#map {
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}
.map-legend {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
}
.legend-dot.red   { background: var(--red); }
.legend-dot.green { background: var(--green); }

/* ---------- SECTION PIZZADEOR ---------- */
.pizzadeor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.pizzadeor-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pizzadeor-img img { width: 100%; }
.pizzadeor-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.pizzadeor-feature {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.feature-title { font-weight: 700; font-size: .9rem; }
.feature-desc  { font-size: .82rem; opacity: .8; }
.pizzadeor-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.location-tag {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- SECTION HISTOIRE ---------- */
.histoire-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.histoire-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.histoire-img-main {
  grid-column: 1 / -1;
  border-radius: 12px;
  overflow: hidden;
  height: 240px;
}
.histoire-img-main img { width: 100%; height: 100%; object-fit: cover; }
.histoire-img-small {
  border-radius: 12px;
  overflow: hidden;
  height: 150px;
}
.histoire-img-small img { width: 100%; height: 100%; object-fit: cover; }
.timeline {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--green));
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 0 0 28px 48px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year  { font-weight: 800; color: var(--red); font-size: .95rem; margin-bottom: 4px; }
.timeline-event { font-size: .9rem; color: var(--gray); }

/* ---------- SECTION EQUIPE ---------- */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.equipe-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.equipe-card:hover { transform: translateY(-4px); }
.equipe-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--light);
}
.equipe-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s;
}
.equipe-card:hover .equipe-card-img img { transform: scale(1.06); }
.equipe-card-body {
  padding: 20px;
  text-align: center;
}
.equipe-card-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.equipe-card-body p  { font-size: .85rem; color: var(--gray); }
.equipe-cta { text-align: center; }

/* ---------- FOOTER ---------- */
#footer {
  background: var(--dark);
  color: var(--white);
}
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-img { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; opacity: .7; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all .2s;
  color: var(--white);
}
.social-btn:hover { background: var(--red); }

.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .5;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; opacity: .75; transition: all .2s; }
.footer-col ul a:hover { opacity: 1; color: #ff6b6b; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  opacity: .75;
  margin-bottom: 10px;
}
.footer-contact-icon { font-size: 1rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; opacity: .5; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .82rem; opacity: .5; transition: opacity .2s; }
.footer-legal a:hover { opacity: 1; }

/* ---------- MODAL LÉGAL ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray);
}
.modal-box h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--red); }
.modal-box h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.modal-box p  { font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 12px; }

/* ---------- TOAST / COOKIE BANNER ---------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 540px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  padding: 20px 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#cookie-banner p { font-size: .88rem; color: var(--gray); }
#cookie-banner .cookie-actions { display: flex; gap: 10px; }

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(187,12,12,.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  border: none;
  z-index: 900;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .carte-inner,
  .pizzadeor-inner,
  .histoire-inner { grid-template-columns: 1fr; gap: 40px; }
  .pizzadeor-inner .pizzadeor-img { order: -1; }
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 60px 0; }
  .nav-menu, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .pizzerias-grid { grid-template-columns: 1fr; }
  .equipe-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 20px; }
  .pizzadeor-features { grid-template-columns: 1fr; }
  .carte-highlights ul { grid-template-columns: 1fr; }
  #map { height: 320px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .histoire-imgs { grid-template-columns: 1fr; }
  .histoire-img-main, .histoire-img-small { height: 180px; }
}
