/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #c2185b, #f8bbd0);;  /* rose foncé */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #c2185b, #f8bbd0); /* rose clair */
  padding: 15px 30px;
  color: white;
}

.nav-left img {
  height: 50px;
}

.nav-center {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.nav-right a {
  margin-left: 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: #c2185b;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  color: linear-gradient(to bottom, #c2185b, #f8bbd0); /* rose clair */
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  color: #ffffff;
}

/* ===== ABOUT ===== */
.about {
  max-width: 700px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.about h2 {
  font-size: 28px;
  color: #c2185b;
  margin-bottom: 20px;
}

.about p {
  font-size: 18px;
  line-height: 1.6;
}

/* ===== GRID CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 20px; /* espace entre les cartes */
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 100%; /* largeur flexible pour grid */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer; /* indique que c'est cliquable pour lightbox */
}

.card h3 {
  font-size: 18px;
  color: #333;
  text-align: center;
}

/* ===== SECTION ===== */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(to bottom, #c2185b, #f8bbd0); /* rose clair */
  color: white;
  padding: 15px 30px;
  font-weight: bold;
  margin-top: auto;
  display: flex; /* active Flexbox */
  justify-content: space-between; /* espace entre les éléments */
  align-items: center; /* aligne verticalement */
}

.footer p {
  margin: 0;
  text-align: center;
  flex-grow: 1; /* prend l’espace central */
}

.footer .lien-icone img {
  height: 50px; /* ajuste la taille des logos */
  width: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }

  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-right a {
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox-content {
  position: relative;
  max-width: 80%;  /* limite la largeur */
  max-height: 80%; /* limite la hauteur */
}

#lightbox-img {
  width: 65%;
  height: auto;
  max-width: 500px;  /* taille maximale réelle */
  max-height: 80vh;  /* ne dépasse pas 80% de la hauteur de l’écran */
  border-radius: 10px;
}

#close {
  position: absolute;
  top: 210px;     /* distance depuis le haut de l'image */
  right: 320px;   /* distance depuis le côté droit de l'image */
  font-size: 35px;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}

/* RESET BODY POUR ÉVITER BLANCS */
body {
  margin: 0;
  padding: 0;
}

/* RESET BODY ET HTML */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* NAVBAR (fixe en haut) */
.navbar {
  position: fixed;   /* toujours visible en haut */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* RESET BODY ET HTML */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url("../images/hero-kathys-delices.png");
  background-size: cover;        /* voir toute l’image */
  background-position: top center;     /* centrée horizontal + vertical */
  background-repeat: no-repeat;

  display: flex;
  align-items: center;            /* centre vertical */
  justify-content: center;        /* centre horizontal */
  text-align: center;
}

/* Assombrir l’image si nécessaire */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);   /* léger assombrissement */
  z-index: 1;
}

/* Texte par-dessus */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 90%;
  padding: 20px;
}

/* TITRE ET PARAGRAPHE */
.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  margin: 10px 0 25px 0;
}

/* BOUTON CLIQUABLE */
.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(to bottom, #c2185b, #f8bbd0);
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-btn:hover {
  background: linear-gradient(to bottom, #f8bbd0, #c2185b);
  transform: scale(1.08);
}

/* Scroll fluide */
html {
  scroll-behavior: smooth;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}