:root {
  --pastel-blue: #a3c4f3;
  --pastel-pink: #f8a1a4;
  --pastel-green: #a3f3c4;
  --bg-light: #fefefe;
  --text-dark: #222;
  --text-muted: #777;

  --faq-blue: #f0f6ff;
  --faq-pink: #fff0f0;
  --faq-green: #f0fff0;
}

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

body {
  font-family: 'Segoe UI', 'Nunito', 'Fredoka', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--pastel-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* CONTAINERS */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* HEADER */
header {
  background-color: var(--pastel-blue);
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header .logo {
  height: 60px;
  float: left;
  margin-right: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

nav ul li a {
  font-weight: bold;
  color: var(--text-dark);
  transition: 0.2s;
}

nav ul li a.active {
  color: #000;
  border-bottom: 2px solid var(--text-dark);
}

nav ul li a:hover {
  color: #444;
}

/* HERO SECTION */
.hero {
  background-color: #f0f6ff;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2a2a2a;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: var(--pastel-pink);
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: 32px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #ffc2c4;
}

/* FEATURES SECTION */
.features {
  background-color: #ffffff;
  padding: 40px 20px;
}

.features h2 {
  color: var(--pastel-blue);
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.features ul {
  list-style: none;
  display: grid;
  gap: 15px;
  padding-left: 0;
  margin-top: 20px;
}

.features ul li {
  background-color: #f9f9f9;
  border-left: 8px solid var(--pastel-green);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* À PROPOS – section soutien */
.support-section {
  background-color: #fdfdfd;
  padding: 60px 20px;
  text-align: center;
}

.support-section h2 {
  margin-bottom: 30px;
  font-size: 1.8em;
  color: var(--text-dark);
}

.support-img {
  max-width: 180px;
  margin-bottom: 20px;
}

/* CHANGELOG */
.version {
  margin-top: 40px;
}

.version h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--pastel-pink);
}

.version-date {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 0.9em;
}

/* FAQ Section */
.faq-section {
  background: #ffffff;
  padding: 40px 20px;
}

.faq-card {
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-card.blue {
  background-color: var(--faq-blue);
}
.faq-card.pink {
  background-color: var(--faq-pink);
}
.faq-card.green {
  background-color: var(--faq-green);
}

.faq-toggle {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.05em;
  font-weight: bold;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-toggle.open {
  text-decoration: underline;
}

.faq-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content p {
  margin: 0;
  padding: 10px 0 20px 0;
}

/* GALLERY */
.gallery-section {
  background-color: #fff;
  padding: 40px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  background-color: #f9f9f9;
  text-align: center;
  transition: transform 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card.blue {
  background-color: var(--faq-blue);
}
.gallery-card.pink {
  background-color: var(--faq-pink);
}
.gallery-card.green {
  background-color: var(--faq-green);
}

.gallery-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.gallery-card h3 {
  margin: 10px 0 6px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.gallery-card p {
  font-size: 0.95em;
  color: #555;
}

/* LIGHTBOX */
#lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
  border-radius: 8px;
  object-fit: contain;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

/* ACCUEIL – bloc Pourquoi Elionote */
.why-section {
  background: #f8fbff;
  padding: 60px 20px;
  text-align: center;
}

.why-section h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.feature-box {
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background-color: #fff;
}

.feature-box.blue {
  background-color: #f0f6ff;
}
.feature-box.green {
  background-color: #f0fff0;
}
.feature-box.pink {
  background-color: #fff0f0;
}
.feature-box.blue-light {
  background-color: #f7faff;
}

.feature-box h3 {
  font-size: 1.1em;
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* ACCUEIL – bloc Capture */
.preview-section {
  background: #f4fcf7;
  padding: 60px 20px;
  text-align: center;
}

.preview-section h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
}

.preview-card {
  max-width: 900px;
  margin: auto;
  background: linear-gradient(to bottom right, #f0f6ff, #fff0f0, #f0fff0);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.screenshot-preview img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* SOUTIEN */
.support-section {
  background: #fffafc;
  padding: 60px 20px;
  text-align: center;
}

.support-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.support-img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 320px;
}

/* FOOTER */
footer {
  background-color: #f0f6ff;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    justify-content: center;
    padding-top: 10px;
  }

  header .logo {
    display: block;
    margin: auto;
    float: none;
  }

  .hero h1 {
    font-size: 1.6em;
  }

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