/* ================= VARIABLES ================= */
:root {
  --primary: #0a1f44;   /* bleu foncé */
  --secondary: #d4af37; /* doré */
  --light: #f5f7fb;
  --dark: #0f172a;
  --text: #1f2937;
  --white: #ffffff;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
}

/* ================= NAVBAR ================= */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  position: relative;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: linear-gradient(135deg, #d4af37, #ffffff33);
  color: #ffffff;
}

.btn-login {
  padding: 8px 18px;
  border-radius: 8px;
  background: #0a1f44;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #d4af37, #0a1f44);
  color: #ffffff;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;        /* hauteur réduite */
  max-height: 600px;
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* SLIDE */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* HERO CONTENT */
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  z-index: 2;
  max-width: 80%;
}

/* Texte */
.hero-content-text {
  text-align: left;
  max-width: 400px;
}

.hero-content-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-content-text p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.hero-content-text .btn-hero {
  padding: 8px 20px;
  font-size: 0.9rem;
  background-color: #0a7d3b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
}

/* DOTS */
.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots .dot.active {
  background-color: #fff;
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.05);
}

.section-title {
  text-align: center;
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 50px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  width: 100%;
}

.card {
  background: #ffffff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  opacity: 0.9;
}

/* CTA Section */
.section.cta {
  text-align: center;
  padding: 60px 40px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  margin: 50px auto;
}

.section.cta .btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.section.cta .btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-3px);
}

/* ================= RESPONSIVE ================= */
@media(max-width: 900px){
  .hero {
    height: 50vh;
    max-height: 400px;
  }

  .hero-content {
    flex-direction: column;
    bottom: 20px;
    left: 20px;
    max-width: 90%;
    gap: 10px;
  }

  .hero-content-text h1 {
    font-size: 1.5rem;
  }

  .hero-content-text p {
    font-size: 0.9rem;
  }

  .hero-dots {
    justify-content: flex-start;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* ================= FOOTER ================= */
.site-footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 50px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* ================= CHATBOT ================= */
#chatbotIcon{
    position:fixed;
    bottom:20px;
    right:20px;
    width:60px;
    height:60px;
    background:var(--primary);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:28px;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
    z-index:9999;
}

#chatbotWindow{
    position:fixed;
    bottom:90px;
    right:20px;
    width:340px;
    height:460px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 15px 40px rgba(0,0,0,0.25);
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:9999;
}

#chatHeader{
    background:var(--primary);
    color:#fff;
    padding:12px;
    font-weight:600;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#chatClose{
    cursor:pointer;
}

#chatWindow{
    flex:1;
    padding:12px;
    overflow-y:auto;
    background:var(--light);
    display:flex;
    flex-direction:column;
}

#chatForm{
    display:flex;
    border-top:1px solid #ddd;
}

#chatInput{
    flex:1;
    border:none;
    padding:12px;
    outline:none;
}

#chatForm button{
    background:var(--secondary);
    border:none;
    padding:0 18px;
    font-weight:bold;
    cursor:pointer;
}

.chat-msg{
    padding:8px 12px;
    margin:6px 0;
    border-radius:8px;
    max-width:80%;
    font-size:14px;
}

.user{
    background:var(--primary);
    color:#fff;
    align-self:flex-end;
}

.bot{
    background:#e9eef6;
    color:#111;
    align-self:flex-start;
}
.old-price {
    color: red;
    text-decoration: line-through;
    font-weight: 500;
    margin-top: 5px;
}
.price {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 5px;
}
/* ================= PROMOTIONS EXCLUSIVES CARDS ================= */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.promo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.promo-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.promo-card:hover .promo-image img {
  transform: scale(1.05);
}

/* Badge “Exclusif” */
.badge-excl {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.promo-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.promo-content h3 {
  font-size: 1.3rem;
  color: #0a1f44;
  margin-bottom: 5px;
}

.promo-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
  flex-grow: 1;
}

.promo-price {
  margin-top: 5px;
  font-size: 1.1rem;
  color: #e74c3c;
  font-weight: bold;
}

.promo-dates {
  font-size: 0.85rem;
  color: #888;
}

.btn-promo {
  display: inline-block;
  text-decoration: none;
  background: #0a1f44;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: auto;
  transition: background 0.3s;
}

.btn-promo:hover {
  background: #16326d;
}
/* GRID PROMOTIONS */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

/* CARTE */
.promo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  height: 100%; /* force toutes les cartes à la même hauteur */
  transition: transform 0.3s, box-shadow 0.3s;
}

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* IMAGE */
.promo-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* carré parfait */
  overflow: hidden;
}

.promo-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.promo-card:hover .promo-image img {
  transform: scale(1.05);
}

/* BADGE EXCLUSIF */
.badge-excl {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* CONTENU */
.promo-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1; /* prend tout l’espace restant */
}

.promo-content h3 {
  font-size: 1.25rem;
  color: #0a1f44;
  margin-bottom: 5px;
  margin-left:5px;
}

.promo-desc {
  flex-grow: 1; /* prend l’espace pour que le bouton soit en bas */
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.promo-price {
  font-size: 1.1rem;
  color: #e74c3c;
  font-weight: bold;
}

.promo-dates {
  font-size: 0.85rem;
  color: #888;
}

.btn-promo {
  display: inline-block;
  text-decoration: none;
  background: #0a1f44;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: auto; /* reste toujours en bas de la carte */
  transition: background 0.3s;
}

.btn-promo:hover {
  background: #16326d;
}
/* ===============================
   NAVBAR ZD EXPERTISE
================================= */

.navbar {
    background: #0d1b2a;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

/* MENU DESKTOP */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #00b4d8;
}

/* LOGIN BUTTON */
.btn-login {
    background: #00b4d8;
    padding: 8px 15px;
    border-radius: 5px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Animation hamburger */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===============================
   MOBILE MODE APPLICATION
================================= */

@media (max-width: 768px) {

    .nav-menu {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        background: #0d1b2a;
        flex-direction: column;
        padding-top: 80px;
        padding-left: 20px;
        gap: 20px;
        transition: 0.3s ease-in-out;
        z-index: 1100;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* OVERLAY */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.nav-overlay.active {
    display: block;
}

/* Empêche scroll quand menu ouvert */
.no-scroll {
    overflow: hidden;
}
/* ===============================
   WHATSAPP FLOAT WIDGET
================================= */

.wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* BOUTON ROND */
.wa-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.wa-float img {
    width: 30px;
}

/* POPUP MESSAGE */
.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 260px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wa-popup.active {
    display: block;
}

.wa-popup p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.wa-button {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

/* Animation pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===============================
   OFFERS SECTION
================================= */

.offers-section {
    padding: 80px 20px;
    background: #f8f9fc;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    font-weight: 600;
    color: #0a1f44;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CARD CARREE */
.offer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1; /* carré parfait */
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* IMAGE */
.offer-image {
    height: 45%;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENU */
.offer-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-content h3 {
    font-size: 18px;
    color: #0a1f44;
    margin-bottom: 10px;
}

.offer-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* BOUTON */
.btn-offer {
    background: #0a1f44;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-offer:hover {
    background: #d4af37;
}
/* ===============================
   BADGES
================================= */

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: white;
}

.badge-new {
    background: #0a1f44;
}

.badge-promo {
    background: #e63946;
}

.badge-popular {
    background: #d4af37;
}

/* ===============================
   PRIX
================================= */

.offer-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #0a1f44;
}

/* Position relative pour badges */
.offer-image {
    position: relative;
    height: 45%;
    overflow: hidden;
}
