/* ===================================================================
   ANGELO PIZZA - Styles principaux
   =================================================================== */

:root {
  --rouge:    #c0392b;
  --rouge2:   #e74c3c;
  --or:       #f39c12;
  --or2:      #f1c40f;
  --creme:    #fdf6e3;
  --brun:     #4a2c0a;
  --brun2:    #7d4e1f;
  --blanc:    #ffffff;
  --gris:     #f8f5f0;
  --texte:    #2c1a0e;
  --ombre:    rgba(74,44,10,0.15);
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--creme);
  color: var(--texte);
  overflow-x: hidden;
}

/* ===================================================================
   CURSEUR
   =================================================================== */
* { cursor: default; }
a, button { cursor: pointer; }


/* ===================================================================
   FLAMMES DE FOND
   =================================================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(192,57,43,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}


/* ===================================================================
   NAVIGATION
   =================================================================== */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background: rgba(253,246,227,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(192,57,43,0.15);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 4px 30px var(--ombre);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-flame {
  font-size: 1.8rem;
  animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {
  0%,100% { transform: scaleY(1) rotate(-2deg); }
  25%     { transform: scaleY(1.08) rotate(1deg); }
  50%     { transform: scaleY(0.96) rotate(-1deg); }
  75%     { transform: scaleY(1.05) rotate(2deg); }
}

.nav-logo-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--rouge);
  line-height: 1;
}

.nav-logo-text span {
  color: var(--brun2);
  font-size: 0.7rem;
  display: block;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brun);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--rouge);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-commande {
  background: var(--rouge);
  color: var(--blanc) !important;
  padding: 8px 20px;
  border-radius: 30px;
  transition: background 0.3s !important;
}

.nav-commande:hover {
  background: var(--brun) !important;
  color: var(--blanc) !important;
}

.nav-commande::after {
  display: none !important;
}


/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192,57,43,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(243,156,18,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(192,57,43,0.06) 0%, transparent 50%),
    var(--creme);
}

/* Briques decoratives */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(192,57,43,0.04) 39px, rgba(192,57,43,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(192,57,43,0.04) 79px, rgba(192,57,43,0.04) 80px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 32px;
  animation: fadeDown 0.8s ease both;
}

.hero-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--brun);
  margin-bottom: 12px;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero-titre .rouge { color: var(--rouge); }
.hero-titre .or { color: var(--or); }

.hero-sous-titre {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--brun2);
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--brun2);
  max-width: 520px;
  margin: 0 auto 48px;
  font-weight: 300;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.4s both;
}

.btn-primary {
  background: var(--rouge);
  color: var(--blanc);
  padding: 15px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(192,57,43,0.35);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--brun);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74,44,10,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brun);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(74,44,10,0.25);
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--rouge);
  color: var(--rouge);
  transform: translateY(-3px);
}

/* Flammes deco hero */
.hero-flames {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  pointer-events: none;
  font-size: 2rem;
  opacity: 0.4;
}

.hero-flames span {
  animation: flicker 2s ease-in-out infinite;
}

.hero-flames span:nth-child(2n) {
  animation-delay: 0.3s;
  font-size: 2.4rem;
}

.hero-flames span:nth-child(3n) {
  animation-delay: 0.6s;
  font-size: 1.8rem;
}

/* Pizza flottante deco */
.hero-pizza {
  font-size: clamp(4rem, 12vw, 9rem);
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite, fadeUp 1s ease both;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(192,57,43,0.2));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-16px) rotate(3deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===================================================================
   SECTION BASE
   =================================================================== */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 12px;
}

.section-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--brun);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-sous {
  font-size: 1rem;
  color: var(--brun2);
  font-style: italic;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto;
}

.divider::before,
.divider::after {
  content: '';
  width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, var(--rouge));
}

.divider::after {
  background: linear-gradient(to left, transparent, var(--rouge));
}


/* ===================================================================
   MENU SECTION
   =================================================================== */
.menu-section {
  background: var(--blanc);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid rgba(74,44,10,0.15);
  background: transparent;
  color: var(--brun);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--rouge);
  border-color: var(--rouge);
  color: var(--blanc);
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.pizza-card {
  background: var(--creme);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(74,44,10,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pizza-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--rouge), var(--or));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.pizza-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--ombre);
}

.pizza-card:hover::before {
  transform: scaleX(1);
}

.pizza-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.pizza-nom {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brun);
  line-height: 1.2;
  flex: 1;
}

.pizza-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

.badge-vege  {
  background: rgba(39,174,96,0.12);
  color: #1a7a40;
}

.badge-piq   {
  background: rgba(192,57,43,0.12);
  color: var(--rouge);
}

.badge-new   {
  background: rgba(243,156,18,0.15);
  color: #8a6000;
}

.pizza-desc {
  font-size: 0.85rem;
  color: var(--brun2);
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 300;
}

.pizza-ing {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pizza-prix {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prix-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rouge);
}

.prix-suffix {
  font-size: 0.65rem;
}


/* ===================================================================
   HORAIRES SECTION
   =================================================================== */
.horaires-section {
  background: var(--brun);
  color: var(--creme);
  position: relative;
  overflow: hidden;
}

.horaires-section::before {
  content: '🔥';
  position: absolute;
  font-size: 20rem;
  opacity: 0.03;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.horaires-section .section-titre {
  color: var(--creme);
}

.horaires-section .section-sous {
  color: rgba(253,246,227,0.6);
}

.horaires-section .section-badge {
  color: var(--or);
}

.horaires-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
}

.horaires-table tr {
  border-bottom: 1px solid rgba(253,246,227,0.08);
}

.horaires-table tr:last-child {
  border-bottom: none;
}

.horaires-table td {
  padding: 14px 0;
  font-size: 0.95rem;
}

.horaires-table td:first-child {
  color: rgba(253,246,227,0.6);
  font-weight: 300;
}

.horaires-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--creme);
}

.horaires-table tr.ferme td:last-child {
  color: rgba(253,246,227,0.3);
  font-weight: 400;
}

.horaires-table tr.ouvert td:first-child::before {
  content: '● ';
  color: #2ecc71;
  font-size: 0.5rem;
  vertical-align: middle;
  margin-right: 4px;
}

.localisation-card {
  background: rgba(253,246,227,0.05);
  border: 1px solid rgba(253,246,227,0.1);
  border-radius: 16px;
  padding: 36px;
}

.loc-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.loc-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(192,57,43,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 4px;
}

.loc-val {
  font-size: 0.95rem;
  color: var(--creme);
  line-height: 1.5;
}

.loc-val a {
  color: var(--or);
}

.map-placeholder {
  margin-top: 28px;
  background: rgba(253,246,227,0.04);
  border: 1px solid rgba(253,246,227,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(253,246,227,0.4);
  letter-spacing: 0.1em;
}


/* ===================================================================
   GALERIE SECTION
   =================================================================== */
.galerie-section {
  background: var(--gris);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galerie-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(74,44,10,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.3s;
}

.galerie-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.galerie-item:nth-child(5) {
  grid-row: span 2;
  aspect-ratio: auto;
}

.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.galerie-item:hover {
  transform: scale(1.02);
}

.galerie-item:hover img {
  transform: scale(1.08);
}

.galerie-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(192,57,43,0.06) 0%, rgba(243,156,18,0.06) 100%);
}

.galerie-placeholder p {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(74,44,10,0.3);
}


/* ===================================================================
   CONTACT SECTION
   =================================================================== */
.contact-section {
  background: var(--blanc);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-icon-box {
  width: 52px; height: 52px;
  background: rgba(192,57,43,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background 0.3s;
}

.contact-item:hover .contact-icon-box {
  background: var(--rouge);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 4px;
}

.contact-val {
  font-size: 1rem;
  color: var(--brun);
  line-height: 1.5;
}

.contact-val a {
  color: var(--rouge);
  text-decoration: none;
}

.contact-val a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--creme);
  border-radius: 20px;
  padding: 40px;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brun);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brun2);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(74,44,10,0.1);
  border-radius: 10px;
  background: var(--blanc);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--texte);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rouge);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--rouge);
  color: var(--blanc);
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}

.btn-submit:hover {
  background: var(--brun);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,44,10,0.3);
}


/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: var(--brun);
  color: rgba(253,246,227,0.7);
  text-align: center;
  padding: 48px 24px;
}

.footer-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--creme);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(253,246,227,0.5);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--or);
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.4;
}


/* ===================================================================
   LOADER
   =================================================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--creme);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-pizza {
  font-size: 4rem;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--rouge);
}


/* ===================================================================
   ANIMATIONS SCROLL
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .container {
    padding: 0 24px;
  }
  
  .horaires-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .galerie-item:nth-child(1) {
    grid-column: span 2;
  }
  
  .galerie-item:nth-child(5) {
    grid-row: span 1;
    aspect-ratio: 1;
  }
}
