:root {
  --color-background: #ffffff; /* fond général de la page */
  --gradient-background: #40815f; /* vert boutique */
  --color-text: #222222;
  --color-muted: #555555;
}

/* Reset minimaliste */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

a {
  color: var(--color-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header et Footer */
header, footer {
  background: var(--gradient-background);
  color: #ffffff;
  padding: 20px 0;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrapper {
  margin-bottom: 15px;
}

.logo-img {
  width: 230px;
  height: 230px;
  object-fit: contain;
}

/* Navigation sous le logo */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li a {
  color: white;
  font-weight: normal; /* liens du menu en normal */
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

main {
  padding: 40px 0;
}

.hero {
  text-align: center;
  margin-bottom: 20px;
}

/* Section présentation */
.presentation {
  margin-top: 0;
  padding: 40px 20px;
  text-align: justify;
  background-image: url('assets/fond-livre.jpg'); /* image de fond illustrant un livre */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text);
}

.presentation-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* texte aligné en haut */
  gap: 40px;
  flex-wrap: wrap; /* pour mobile */
}

.presentation-text {
  flex: 1 1 0; /* occupe tout l'espace disponible */
  min-width: 250px;
}

.presentation-text p {
  margin-bottom: 20px; /* espace entre paragraphes */
}

.presentation-image {
  flex: 0 1 421px; /* largeur maximale de l'image */
  max-width: 40%; /* s’adapte à l’espace disponible */
}

.presentation-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.cta {
  margin-top: 30px;
  text-align: center; /* centre le bouton */
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-background);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  opacity: 0.85;
}

footer {
  padding: 20px 0;
  margin-top: 60px;
  color: white;
}

.footer-container {
  text-align: center;
}

.footer-container p {
  font-size: 0.9rem;
}

.footer-container .hadith-arabe {
  font-size: 1.8rem; /* arabe plus grand */
  font-weight: bold; /* gras */
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: center;
  color: #f0f0f0;
}

.footer-container .hadith-francais {
  font-size: 0.9rem; /* français plus petit */
  margin-bottom: 20px; /* espace avant le copyright */
  line-height: 1.5;
  text-align: center;
  color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .presentation-container {
    flex-direction: column;
    align-items: center;
  }
  .presentation-image {
    max-width: 80%; /* image plus large sur mobile */
  }
  .presentation-text {
    width: 100%;
  }
}
