
/* =============================== */
/*           GLOBAL RESET          */
/* =============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

body {
  overflow-x: hidden;
}


/* =============================== */
/*            HERO SECTION         */
/* =============================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* VIDEO */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

/* MODE SOMBRE OVERLAY */
body.dark-mode .overlay {
  background: rgba(0,0,0,0.7);
}

/* HERO CONTENT */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 900px;
}

/* LOGO */
.hero-logo {
  width: 200px;
  margin-bottom: 18px;
}

/* MAIN TITLE */
.hero-text h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
}

/* SUBTITLE */
.hero-text p {
  font-size: 17px;
  margin-top: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

/* STORE BUTTONS */
.buttons {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.buttons img {
  width: 165px;
  cursor: pointer;
  transition: 0.3s ease;
}

.buttons img:hover {
  transform: scale(1.08);
}

/* SCROLL BUTTON FIXED BOTTOM */
.scroll-btn {
  position: absolute;
  bottom: 15px; /* ✅ toujours en bas */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;

  font-size: 15px;
  color: white;
  text-decoration: none;

  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);

  animation: bounce 1.5s infinite;
}

/* ANIMATION */
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {

  .hero-text h2 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .buttons {
    flex-direction: column;
    gap: 14px;
  }

  .buttons img {
    width: 190px;
  }

  .scroll-btn {
    font-size: 14px;
    bottom: 60px; /* Plus haut pour éviter d'être caché par Android */
    z-index: 10; /* z-index plus élevé pour être au-dessus */
    padding: 12px 20px; /* Légèrement plus grand pour mobile */
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .scroll-btn {
    bottom: 70px; /* Plus haut pour petits écrans Android */
    z-index: 15; /* z-index encore plus élevé */
    font-size: 13px;
    padding: 10px 18px;
  }
}


/* =============================== */
/*        FOODZA STORY SECTION     */
/* =============================== */

.foodza-story {
  position: relative;

  padding: 30px 8%;
  margin-top: 0;

  background: #fff;
  overflow: hidden;
}

/* Container */
.story-container {
  position: relative;
  width: 100%;
  min-height: 520px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* AFRICA MAP CENTER */
.story-map img {
  width: 480px;
  max-width: 100%;
  position: relative;
  z-index: 2;

  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}

/* TEXT BUBBLES */
.story-bubble {
  position: absolute;
  max-width: 280px;

  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px 20px;

  font-size: 16px;
  line-height: 1.6;
  color: #222;

  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border: 2px dashed rgba(166, 75, 42, 0.35);

  z-index: 3;
}

/* Bubble positions */
.bubble1 {
  top: 12%;
  left: 5%;
}

.bubble2 {
  top: 35%;
  right: 6%;
}

.bubble3 {
  bottom: 18%;
  left: 18%;
}

/* DECOR FOOD ICONS */
.deco {
  position: absolute;
  width: 70px;
  opacity: 0.18;
  z-index: 1;
}

.deco1 {
  top: 20%;
  right: 12%;
  transform: rotate(-15deg);
}

.deco2 {
  bottom: 18%;
  left: 10%;
  transform: rotate(10deg);
}

/* CURVED DECORATION LINES */
.foodza-story::before,
.foodza-story::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px dotted rgba(166, 75, 42, 0.25);
  border-radius: 50%;
  z-index: 0;
}

.foodza-story::before {
  top: 40px;
  left: -80px;
}

.foodza-story::after {
  bottom: 40px;
  right: -80px;
}

/* ================================================= */
/* ✅ ANIMATION STYLE */
/* ================================================= */

.story-map,
.story-bubble {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
}

/* When visible */
.story-map.show,
.story-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

/* Delay for bubbles */
.bubble1.show {
  transition-delay: 0.3s;
}

.bubble2.show {
  transition-delay: 0.7s;
}

.bubble3.show {
  transition-delay: 1.1s;
}

/* ================================================= */
/* ✅ RESPONSIVE STORY */
/* ================================================= */

@media (max-width: 900px) {

  .story-container {
    flex-direction: column;
    min-height: auto;
    padding-top: 40px;
  }

  .story-map img {
    width: 320px;
  }

  .story-bubble {
    position: relative;
    margin-top: 18px;
    max-width: 100%;
    text-align: center;
  }

  .bubble1,
  .bubble2,
  .bubble3 {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .deco {
    display: none;
  }
}

.foodza-features {
  padding: 30px 8%;
  background: #fff;
  font-family: "Nunito", sans-serif;
}

/* HEADER */
.features-header {
  text-align: center;
  max-width: 650px;
  margin: auto;
}

.features-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #823B20;
}

.features-header p {
  margin-top: 14px;
  font-size: 17px;
  color: #555;
  line-height: 1.6;
}

/* GRID */
.features-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

/* =============================== */
/* PHONE CUT LIKE ZOMATO */
/* =============================== */

.features-phone {
  height: 350px;              /* ✅ limite visible */
  overflow: hidden;           /* ✅ coupe le reste */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.features-phone img {
  width: 340px;
  transform: translateY(20px); /* ✅ descend = coupé */
  
}

/* =============================== */
/* CARDS */
/* =============================== */

.features-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.feature-card {
  background: #fafafa;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.feature-card p {
  margin-top: 10px;
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

/* =============================== */
/* ANIMATION SCROLL */
/* =============================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s ease;
}

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

/* =============================== */
/* RESPONSIVE MOBILE */
/* =============================== */

@media (max-width: 900px) {

  .features-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .features-phone {
    height: 320px;
  }

  .features-phone img {
    width: 250px;
    transform: translateY(40px);
  }

  .features-cards {
    grid-template-columns: 1fr;
  }
}

/* SECTION */
.foodza-stack-section {
  position: relative;
  height: 260vh;
  background: #000;
  padding-top: 12vh;
}

/* CARD BASE */
.foodza-card {
  position: sticky;
  top: 12vh;
  height: 78vh;
  width: min(1100px, 92%);
  margin: 0 auto;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

/* RESTAURANT */
.foodza-card-restaurant {
  background: linear-gradient(180deg, #ffffff, #d0d0d0);
  z-index: 3;
}

/* CHAUFFEUR (CHEVAUCHEMENT MAÎTRISÉ) */
.foodza-card-driver {
  margin-top: -22vh;
  background: linear-gradient(180deg, #4a2416, #1a0d08) !important;
  z-index: 2;
  color: #fff !important;
}

/* CONTENT */
.foodza-card-content {
  text-align: center;
  max-width: 840px;
  padding: 2rem;
}

.foodza-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

.foodza-stack-section h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 1rem;
}

.foodza-stack-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
}

/* BUTTON */
.foodza-btn {
  margin-top: 1.8rem;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  background: #A64B2A;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* SPACER — FAIT SORTIR LE STICKY */
.foodza-stack-exit {
  height: 120vh;
}

/* FORCE SUPERPOSITION MOBILE GLOBAL */
@media (max-width: 900px) {
  .foodza-stack-section {
    height: 140vh !important; /* Augmentation pour éviter la confusion */
    background: #000 !important;
    position: relative !important;
  }

  .foodza-card {
    position: sticky !important;
    margin: 0 auto !important;
  }

  .foodza-card-driver {
    margin-top: -45vh !important; /* Superposition maximale */
    position: sticky !important;
    z-index: 2 !important;
  }

  .foodza-card-restaurant {
    z-index: 3 !important;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .foodza-stack-section {
    height: 120vh !important; /* Augmentation pour éviter la confusion */
    padding: 10vh 0 !important;
    background: #000 !important;
  }

  .foodza-card {
    position: sticky !important;
    top: 10vh !important;
    height: 60vh !important;
    width: min(95%, 400px) !important;
    margin: 0 auto 5vh !important;
    border-radius: 24px !important;
  }

  .foodza-card-driver {
    margin-top: -40vh !important; /* Superposition forte comme desktop */
    position: sticky !important;
    top: 10vh !important;
    z-index: 2 !important;
  }

  .foodza-card-restaurant {
    z-index: 3 !important;
  }

  .foodza-card-content {
    padding: 1.5rem;
  }

  .foodza-logo {
    height: 40px;
    margin-bottom: 1rem;
  }

  .foodza-stack-section h2 {
    font-size: 1.4rem;
  }

  .foodza-stack-section p {
    font-size: 0.9rem;
  }

  .foodza-btn {
    width: 100%;
    padding: 12px 24px;
  }
}

/* Très petits écrans (mobiles en portrait) */
@media (max-width: 480px) {
  .foodza-stack-section {
    height: 110vh !important; /* Augmentation pour éviter la confusion */
    background: #000 !important;
  }

  .foodza-card {
    position: sticky !important;
    height: 55vh !important;
    width: min(98%, 350px) !important;
    top: 8vh !important;
    margin: 0 auto 3vh !important;
    border-radius: 20px !important;
  }

  .foodza-card-driver {
    margin-top: -35vh !important; /* Superposition très forte */
    position: sticky !important;
    top: 8vh !important;
    z-index: 2 !important;
  }

  .foodza-card-restaurant {
    z-index: 3 !important;
  }

  .foodza-card-content {
    padding: 1rem;
  }

  .foodza-logo {
    height: 35px;
    margin-bottom: 0.8rem;
  }

  .foodza-stack-section h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .foodza-stack-section p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .foodza-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.foodza-manifesto {
  background: #fff;
  padding: 12vh 0;
}

.foodza-manifesto-inner {
  width: min(1200px, 90%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6vw;
  align-items: center;
}

/* EYEBROW */
.foodza-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A64B2A;
  margin-bottom: 1.2rem;
}

/* TITRE */
.foodza-manifesto-title h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  color: #000;
}

/* TEXTE */
.foodza-manifesto-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  max-width: 460px;
}

/* 📱 RESPONSIVE */
@media (max-width: 900px) {
  .foodza-manifesto-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .foodza-manifesto-title h2 {
    font-size: 2.2rem;
  }
}

.foodza-app-cta {
  position: relative;
  min-height: 80vh;
  background: url("poulet.jpeg") center right / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* OVERLAY GAUCHE SEULEMENT */
.foodza-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.65) 35%,
    rgba(0,0,0,0) 60%
  );
  pointer-events: none;
}

/* CONTAINER DEUX COLONNES */
.foodza-app-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  min-height: 80vh;
  padding: 0 6vw;
}

/* CONTENT */
.foodza-app-content {
  position: relative;
  color: #fff;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.foodza-app-content h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.foodza-app-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: .95;
}

/* STORE BUTTONS */
.foodza-store-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.foodza-store-buttons img {
  height: 48px;
  transition: transform .25s ease;
}

.foodza-store-buttons img:hover {
  transform: scale(1.05);
}

/* ACTIVE (JS) */
.foodza-app-content.active {
  opacity: 1;
  transform: translateY(0);
}

.foodza-form-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* SECTION FORMULAIRE */
.foodza-form-section {
  background: rgba(255,255,255,0.95);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.foodza-form-section h3 {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.foodza-form-section p {
  color: #666;
  margin-bottom: 24px;
}

/* CONTACT INFO COMPACT */
.contact-info-compact {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #333;
}

.contact-item i {
  width: 20px;
  color: #A64B2A;
  font-size: 16px;
}

.contact-item span {
  font-size: 14px;
  font-weight: 600;
}

/* FORMULAIRE COMPACT */
.compact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact-form input,
.compact-form textarea {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.compact-form input:focus,
.compact-form textarea:focus {
  outline: none;
  border-color: #A64B2A;
  box-shadow: 0 0 0 3px rgba(166,75,42,0.1);
}

.compact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.compact-form .foodza-btn {
  background: #A64B2A;
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.compact-form .foodza-btn:hover {
  background: #8B3F23;
  transform: translateY(-2px);
}

/* MODE SOMBRE - SECTION FORMULAIRE */
body.dark-mode .foodza-form-section {
  background: rgba(30,30,30,0.95);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

body.dark-mode .foodza-form-section h3 {
  color: #fff;
}

body.dark-mode .foodza-form-section p {
  color: #ccc;
}

body.dark-mode .contact-item {
  color: #fff;
}

body.dark-mode .contact-item span {
  color: #fff;
}

body.dark-mode .compact-form input,
body.dark-mode .compact-form textarea {
  background: #2a2a2a;
  border: 1px solid #404040;
  color: #fff;
}

body.dark-mode .compact-form input::placeholder,
body.dark-mode .compact-form textarea::placeholder {
  color: #999;
}

body.dark-mode .compact-form input:focus,
body.dark-mode .compact-form textarea:focus {
  border-color: #A64B2A;
  box-shadow: 0 0 0 3px rgba(166,75,42,0.2);
  background: #333;
}

/* MOBILE */
@media (max-width: 768px) {
  .foodza-app-cta {
    background-position: center;
  }

  .foodza-left-overlay {
    background: rgba(0,0,0,.75);
  }

  .foodza-app-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 4vw;
  }

  .foodza-form-section {
    padding: 30px 24px;
  }
}

.foodza-footer {
  background: #000;
  color: #fff;
  padding: 80px 6vw 40px;
  font-family: system-ui, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
}

/* LOGO */
.footer-logo {
  height: 46px;
  margin-bottom: 18px;
}

/* TEXTE */
.footer-desc {
  font-size: .9rem;
  line-height: 1.6;
  opacity: .8;
  margin-bottom: 18px;
}

/* CONTACT INFO */
.footer-contact-info {
  margin: 20px 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #fff;
  opacity: 0.9;
}

.footer-contact-item i {
  width: 16px;
  color: #A64B2A;
  font-size: 14px;
}

.footer-contact-item span {
  font-size: 14px;
  font-weight: 500;
}

.footer-contact-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-contact-link:hover {
  color: #A64B2A;
}

/* SOCIALS */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: .25s;
}

.footer-socials a:hover {
  background: #A64B2A;
  border-color: #A64B2A;
}

/* COLONNES */
.footer-column h4 {
  color: #A64B2A;
  margin-bottom: 10px;
}

/* STORES */
.footer-stores img {
  height: 42px;
  margin-right: 10px;
  margin-top: 8px;
}

.footer-btn-outline {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1.5px solid #A64B2A;
  color: #A64B2A;
  background-color: transparent; /* ✅ invisible */
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
  transition: .25s;
}

.footer-btn-outline:hover {
  background: #A64B2A;
  color: #fff;
}

/* LEGAL */
.footer-legal {
  margin: 50px auto 0;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: .85rem;
  opacity: .7;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

/* DIVIDER */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 28px 0;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  font-size: .8rem;
  opacity: .6;
}

/* =============================== */
/*        SECTION CONTACT           */
/* =============================== */

.foodza-contact {
  background: #f8f9fa;
  padding: 100px 6vw;
  font-family: "Nunito", sans-serif;
}

.foodza-contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.foodza-contact-header {
  text-align: center;
  margin-bottom: 80px;
}

.foodza-contact-header .foodza-eyebrow {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A64B2A;
  margin-bottom: 1.2rem;
  display: block;
}

.foodza-contact-header h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #000;
}

.foodza-contact-header p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* GRID CARDS */
.foodza-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: #A64B2A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact-icon i {
  font-size: 24px;
  color: #fff;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000;
}

.contact-card p {
  font-size: 18px;
  font-weight: 600;
  color: #A64B2A;
  margin-bottom: 8px;
}

.contact-card span {
  font-size: 14px;
  color: #666;
  opacity: 0.8;
}

/* CTA SECTION */
.foodza-contact-cta {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.foodza-contact-cta p {
  font-size: 18px;
  margin-bottom: 24px;
  color: #666;
}

/* =============================== */
/*      SECTION CONTACT RAPIDE        */
/* =============================== */

.foodza-contact-rapide {
  background: #f8f9fa;
  padding: 60px 6vw;
  font-family: "Nunito", sans-serif;
}

.contact-rapide-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-rapide-container h3 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.contact-rapide-container p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.contact-rapide-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-rapide-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-rapide-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.contact-rapide-item i {
  font-size: 20px;
  color: #A64B2A;
  width: 24px;
}

.contact-rapide-item span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* MOBILE */
@media (max-width: 768px) {
  .foodza-contact {
    padding: 60px 4vw;
  }
  
  .foodza-contact-header h2 {
    font-size: 32px;
  }
  
  .foodza-contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-card {
    padding: 30px 20px;
  }

  .foodza-contact-rapide {
    padding: 40px 4vw;
  }

  .contact-rapide-info {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .contact-rapide-item {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-legal {
    justify-content: center;
  }
}
/* Mode clair (par défaut) */
body {
    background-color: white;
    color: black;
}

/* Mode sombre */
body.dark-mode {
    background-color: #121212;
    color: white;
}

/* Bouton */
#theme-toggle {
    cursor: pointer;
    padding: 10px;
    border: none;
    background: gray;
    color: white;
    border-radius: 5px;
}
/* MODE SOMBRE GLOBAL */
body.dark-mode {
  background-color: #121212;
  color: white;
}
/* Sections principales */
body.dark-mode .hero,
body.dark-mode .foodza-features,
body.dark-mode .foodza-story,
body.dark-mode .foodza-manifesto,
body.dark-mode .foodza-app-cta,


/* Cartes */
body.dark-mode .feature-card,
body.dark-mode .foodza-card {
  background-color: #1e1e1e;
  color: white;
}

/* Texte */
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: white;
}
.popup-content h2 {
  color: black !important;
}
/* bouton dark mode (haut droite propre) */
.theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999; /* z-index encore plus élevé pour être absolument au-dessus */

  padding: 10px 14px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.9); /* Fond plus opaque */
  color: #fff; /* Texte blanc */
  border: 2px solid rgba(255, 255, 255, 0.5); /* Bordure plus visible */
  
  /* Forcer la visibilité */
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* centrer boutons */
.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hover effet premium */
.theme-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

/* MODE SOMBRE */
body.dark-mode .theme-btn {
  background: rgba(255, 255, 255, 0.9); /* Fond clair en mode sombre */
  color: #000; /* Texte noir en mode sombre */
  border: 1px solid rgba(0, 0, 0, 0.3); /* Bordure sombre */
}

/* BOUTON THÈME MOBILE - EN HAUT À DROITE */
@media (max-width: 768px) {
  .theme-btn {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 999999 !important; /* z-index maximum en mobile */
    background: rgba(0, 0, 0, 0.95) !important; /* Fond presque opaque */
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    
    /* Forcer visibilité absolue */
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    position: fixed !important;
    transform: none !important;
  }
}

/* Mode sombre mobile */
@media (max-width: 768px) {
  body.dark-mode .theme-btn {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 999999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000 !important;
    border: 2px solid rgba(0, 0, 0, 0.7) !important;
    
    /* Forcer visibilité absolue */
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    position: fixed !important;
    transform: none !important;
  }
}

/* GARANTIR VISIBILITÉ BOUTON DANS HERO MOBILE */
@media (max-width: 768px) {
  .hero .theme-btn {
    z-index: 99999 !important;
    position: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
  
  .hero .theme-btn:hover {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* FORCER LE THÈME EN MOBILE */
@media (max-width: 768px) {
  /* Mode clair mobile */
  body:not(.dark-mode) .foodza-story,
  body:not(.dark-mode) .foodza-features,
  body:not(.dark-mode) .foodza-manifesto {
    background: #fff !important;
  }
  
  /* Mode sombre mobile */
  body.dark-mode .foodza-story,
  body.dark-mode .foodza-features,
  body.dark-mode .foodza-manifesto,
  body.dark-mode .foodza-app-cta {
    background: #121212 !important;
  }
  
  body.dark-mode .feature-card {
    background: #1e1e1e !important;
    color: #fff !important;
  }
  
  body.dark-mode .story-bubble {
    background: #1e1e1e !important;
    color: #fff !important;
  }
}

/* MODE SOMBRE GLOBAL */
body.dark-mode {
  background-color: #121212;
  color: white;
}

/* HERO */
body.dark-mode .hero {
  background-color: #000;
}

/* TEXTE HERO */
body.dark-mode .hero h2,
body.dark-mode .hero p {
  color: #ffffff;
}

/* OVERLAY PLUS FONCÉ */
body.dark-mode .overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* CARTES */
body.dark-mode .feature-card,
body.dark-mode .foodza-card {
  background-color: #1e1e1e;
  color: white;
}

/* TITRES ET TEXTES */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p {
  color: #ffffff;
}
/* SECTION APRÈS HERO (foodza-story) */
body.dark-mode .foodza-story {
  background-color: #121212;
}

body.dark-mode .story-bubble {
  background-color: #1e1e1e;
  color: white;
}

/* FEATURES */
body.dark-mode .foodza-features {
  background-color: #121212;
}

body.dark-mode .feature-card {
  background-color: #1e1e1e;
  color: white;
}

/* TITRES FEATURES */
body.dark-mode .features-header h2,
body.dark-mode .features-header p {
  color: white;
}
/* CARD RESTAURANT */
body.dark-mode .foodza-card-restaurant {
  background: #1e1e1e;
  color: white;
}

/* CARD DRIVER - GARDE SA COULEUR D'ORIGINE */
.foodza-card-driver {
  background: linear-gradient(180deg, #4a2416, #1a0d08) !important;
  color: #fff !important;
}
/* TOUS LES TEXTES */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p {
  color: #ffffff;
}
/* FOOTER TOUJOURS IDENTIQUE */
.foodza-footer {
  background-color: #000 !important;
  color: #fff !important;
}

/* TEXTE FOOTER TOUJOURS BLANC */
.foodza-footer h4,
.foodza-footer p,
.foodza-footer a {
  color: #fff !important;
}
/* bouton dark mode (haut droite propre) */
@media (max-width: 768px) {
  .foodza-stack-section {
    background: white; /* enlève le noir */
  }
}
/* CORRECTION MOBILE - STOP BACKGROUND FIXED */
@media (max-width: 768px) {

  .hero-video {
    position: absolute !important;
    object-fit: cover;
  }

  .hero {
    background-attachment: scroll !important;
  }

  .foodza-stack-section {
    position: relative !important;
  }

  .foodza-card {
    position: relative !important;
  }

}
/* DARK MODE GLOBAL */
body.dark-mode {
  background-color: #0f0f0f;
  color: #fff;
}

body.dark-mode section {
  background-color: #0f0f0f;
  color: #fff;
}

/* cards */
body.dark-mode .feature-card,
body.dark-mode .foodza-card {
  background-color: #1a1a1a;
}

/* 🔥 EXCEPTION FOOTER */
body.dark-mode .foodza-footer {
  background-color: #000 !important;
  color: #fff !important;
}
/* OVERLAY */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

/* BOX */
.popup-content {
  background: #fff;
  padding: 0;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);

  transform: translateY(40px);
  opacity: 0;
  animation: slideUp 0.4s ease forwards;
}

/* Header du popup */
.popup-header {
  background: linear-gradient(135deg, #A64B2A, #8B3F23);
  padding: 24px 20px;
  border-radius: 24px 24px 0 0;
  position: relative;
}

.popup-header h2 {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.popup-header p {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Body du popup */
.popup-body {
  padding: 32px 24px;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  z-index: 10;
}

.close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* INPUT */
.popup-body input,
.popup-body textarea {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.popup-body input:focus,
.popup-body textarea:focus {
  outline: none;
  border-color: #A64B2A;
  background: white;
  box-shadow: 0 0 0 4px rgba(166,75,42,0.1);
  transform: translateY(-1px);
}

.popup-body input::placeholder,
.popup-body textarea::placeholder {
  color: #999;
  font-weight: 500;
}

.popup-body textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* BUTTON */
.popup-submit {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #A64B2A, #8B3F23);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.popup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(166,75,42,0.3);
}

.popup-submit:active {
  transform: translateY(0);
}

.popup-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading state */
.popup-submit.loading {
  pointer-events: none;
}

.popup-submit.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}


/* SUCCESS */
#success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  animation: slideUp 0.3s ease;
}

/* ERROR MESSAGE */
.popup-error {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  animation: shake 0.5s ease;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { 
    opacity: 0;
  }
  to { 
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* MODE SOMBRE */
body.dark-mode .popup-content {
  background: #1e1e1e;
  color: white;
}

body.dark-mode .popup-body input,
body.dark-mode .popup-body textarea {
  background: #2a2a2a;
  border-color: #404040;
  color: white;
}

body.dark-mode .popup-body input::placeholder,
body.dark-mode .popup-body textarea::placeholder {
  color: #999;
}

body.dark-mode .popup-body input:focus,
body.dark-mode .popup-body textarea:focus {
  background: #333;
  border-color: #A64B2A;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .popup {
    padding: 16px;
  }
  
  .popup-content {
    max-width: 100%;
    max-height: 95vh;
  }
  
  .popup-header {
    padding: 20px 16px;
  }
  
  .popup-header h2 {
    font-size: 20px;
  }
  
  .popup-body {
    padding: 24px 16px;
  }
  
  .popup-body input,
  .popup-body textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .close {
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .popup {
    padding: 12px;
  }
  
  .popup-header {
    padding: 18px 14px;
  }
  
  .popup-header h2 {
    font-size: 18px;
  }
  
  .popup-header p {
    font-size: 13px;
  }
  
  .popup-body {
    padding: 20px 14px;
  }
  
  .popup-body input,
  .popup-body textarea {
    padding: 12px 14px;
    margin-bottom: 16px;
  }
  
  .popup-submit {
    padding: 16px 20px;
    font-size: 15px;
  }
}

/* GRANDS ÉCRANS */
@media (min-width: 768px) {
  .popup-content {
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .popup-content {
    max-width: 560px;
  }
}

#theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}

/* MODE CLAIR */
body:not(.dark-mode) #theme-toggle {
  background: #1b1b1b;
  color: #fff;
}

/* MODE SOMBRE */
body.dark-mode #theme-toggle {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: #000000;
  box-shadow: 0 0 15px rgba(165, 62, 10, 0.6);
}

/* ANIMATION */
#theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
}

.form-box {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  max-width: 400px;
}

.form-box h2 {
  color: #8C3E22;
  margin-bottom: 15px;
}

.form-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.form-box input:focus {
  border-color: #8C3E22;
}

/* bouton */
.form-box button {
  width: 100%;
  padding: 12px;
  background: #8C3E22;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.form-box button:hover {
  opacity: 0.9;
}

/* dark mode */
body.dark-mode .form-box {
  background: #1e293b;
  color: white;
}
