/* ============================= */
/* VARIABLES GLOBALES */
/* ============================= */
:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --accent: #f59e0b;
  --dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 95%;
  margin: 0 auto;
}

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
  opacity: 1;
}

.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 5%;
  position: relative;
  z-index: 100;
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6), 
               0 1px 4px rgba(0,0,0,0.5),
               2px 2px 4px rgba(0,0,0,0.6),
               -1px -1px 0 rgba(0,0,0,0.5),
               1px 1px 0 rgba(0,0,0,0.5);
}

.nav-link:hover {
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.7), 
               0 2px 6px rgba(0,0,0,0.6),
               2px 2px 6px rgba(0,0,0,0.7),
               -1px -1px 0 rgba(0,0,0,0.6),
               1px 1px 0 rgba(0,0,0,0.6);
}

.btn-login {
  padding: 10px 24px;
  background: white;
  color: var(--dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7),
               0 2px 8px rgba(0,0,0,0.6),
               2px 2px 6px rgba(0,0,0,0.5),
               -1px -1px 0 rgba(0,0,0,0.4),
               1px 1px 0 rgba(0,0,0,0.4),
               0 0 25px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 35px;
  max-width: 750px;
  line-height: 1.7;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7),
               0 2px 6px rgba(0,0,0,0.6),
               2px 2px 6px rgba(0,0,0,0.6),
               -1px -1px 0 rgba(0,0,0,0.5),
               1px 1px 0 rgba(0,0,0,0.5),
               0 0 20px rgba(0,0,0,0.4);
}

.hero-subtitle strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 16px 40px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(22,163,74,0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22,163,74,0.5);
}

.btn-secondary {
  padding: 16px 40px;
  background: transparent;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid white;
  transition: all 0.3s ease;
  text-shadow: 0 3px 8px rgba(0,0,0,0.7),
               0 1px 4px rgba(0,0,0,0.6),
               1px 1px 3px rgba(0,0,0,0.6);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.hero-pro {
  font-size: 0.95rem;
  color: white;
  margin-top: 10px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8),
               0 2px 6px rgba(0,0,0,0.7),
               2px 2px 6px rgba(0,0,0,0.7),
               -1px -1px 0 rgba(0,0,0,0.6),
               1px 1px 0 rgba(0,0,0,0.6),
               0 0 20px rgba(0,0,0,0.5);
}

.pro-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.pro-link:hover {
  opacity: 0.8;
}

.section-offers {
  padding: 70px 20px;
  background: var(--bg-soft);
}

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

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 60px 20px;
  font-size: 1.1rem;
}

.offer-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.offer-card:hover img {
  transform: scale(1.08);
}

.card-content {
  padding: 12px;
  background: white;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.city {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.offer-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
  font-weight: 600;
  color: var(--dark);
}

.offer-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card sans image : on supprime l'espace réservé et on ajoute un fond neutre */
.offer-card.no-image {
  background: var(--bg-soft);
}

.offer-card.no-image .card-content {
  padding: 20px;
}

/* Dates de validite de loffre */
.dates {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dates::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

/* Prix affiche en bas de la card */
.price {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.section-contact {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e5e7eb;
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-block {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.contact-block:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.contact-block h3 {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.contact-block p {
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.btn-contact {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(22,163,74,0.3);
}

.btn-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22,163,74,0.5);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
}

.social-links a:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
  transform: translateX(5px);
}

.social-links svg {
  flex-shrink: 0;
}

footer {
  background: #0a0f1a;
  color: var(--text-light);
  text-align: center;
  padding: 35px 20px;
  border-top: 1px solid #1e293b;
}

footer strong {
  color: white;
}

footer .muted {
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

@media (max-width: 1600px) {
  .offers-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1400px) {
  .offers-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1100px) {
  .offers-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .offers-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.5rem; }
  .nav-link { display: none; }
}

@media (max-width: 600px) {
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .offers-grid { grid-template-columns: 1fr; }
}
