/* ===============================
   RESET & BASE STYLES
   =============================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Islamic Color Palette */
:root {
  --green: #17826d;
  --green-light: #22b389;
  --gold: #e6c77b;
  --blue: #1e3a5c;
  --blue-light: #3e5c76;
  --white: #fff;
  --gray: #f6f7fa;
  --text: #222;
  --shadow: rgba(30, 58, 92, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Use Amiri for Arabic/Islamic headings or when RTL */
.hero-section h1,
.loader-text {
  font-family: 'Inter', 'Amiri', serif;
  color: var(--white);

}

body[dir="rtl"] {
  font-family: 'Inter', 'Amiri', sans-serif;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Loader Styles */
.loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--green) 60%, var(--gold) 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loader-circle {
  width: 60px;
  height: 60px;
  border: 6px solid var(--white);
  border-top: 6px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-text {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: var(--white);
  text-shadow: 0 2px 8px var(--green);
  letter-spacing: 2px;
  text-align: center;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s, background 0.2s;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 8px var(--shadow);
  font-family: 'Inter', sans-serif;
  padding: 1.2rem 0 1.2rem 0;
  border-radius: 0 0 1.2rem 1.2rem;
}
.navbar.scrolled {
  box-shadow: 0 2px 12px var(--shadow);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font-family: 'Inter','Amiri', serif;
  font-size: 2rem;
  color: var(--green);
  text-decoration: none;
  font-weight: bold;
}
.logo img, .logo svg {
  height: 2rem;
  margin-right: 0.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.8rem;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.nav-links a {
  color: #18504f; /* darker green for better contrast */
  text-shadow: 0 1px 4px rgba(255,255,255,0.25);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s, font-weight 0.2s;
  position: relative;
  padding: 0.5rem 1.4rem;
  letter-spacing: 0.04em;
  border-radius: 0.7rem;
  background: none;
}
.nav-links a.active, .nav-links a:focus, .nav-links a:hover {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
  background: rgba(230,199,123,0.07);
}
.nav-links a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -2px;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Hero Section (Zone 1) */
.hero-section {
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 3.5rem; /* push hero down below navbar */
}
.hero-overlay {
  background: rgba(30,58,92,0.90);
  padding: 3.5rem 2rem 3rem 2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px var(--shadow);
  text-align: center;
  max-width: 700px;
  margin: 4rem auto 2rem auto;
  min-width: 320px;
}
.hero-inspiration {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  font-style: italic;
  text-shadow: 0 1px 8px rgba(30,58,92,0.18);
}
.hero-cta {
  padding: 1rem 2.5rem;
  border-radius: 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--gray);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  padding: 0.9rem 2.2rem;
}
.hero-prayer-info-single {
  color: var(--gold);
  font-weight: 600;
  background: rgba(255,255,255,0.10);
  border-radius: 1.2rem;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 1.08rem;
  margin-top: 1.2rem;
  display: inline-block;
}
@media (max-width: 700px) {
  .hero-overlay {
    padding: 1.5rem 0.5rem;
    max-width: 98vw;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .hero-inspiration {
    font-size: 1.05rem;
  }
  .hero-cta {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--gray);
  }
}

.hero_title {
}
/* Prayer Widget Section (Zone 2) */
.prayer-widget-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: none;
  margin-top: 5.5rem;
  margin-bottom: 2.5rem;
}
.prayer-widget-card {
  background: linear-gradient(135deg, #f9f6f1 60%, #f6f7fa 100%);
  border-radius: 2.2rem;
  box-shadow: 0 8px 32px 0 rgba(30,58,92,0.13), 0 2px 8px var(--shadow);
  padding: 2.8rem 2.2rem 2.2rem 2.2rem;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.prayer-widget-card:hover {
  box-shadow: 0 12px 36px 0 rgba(30,58,92,0.18), 0 4px 16px var(--shadow);
  transform: translateY(-4px) scale(1.012);
}
.prayer-widget-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.prayer-widget-date {
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 500;
}
.prayer-widget-quote {
  color: var(--gold);
  font-size: 1.01rem;
  font-style: italic;
}
.prayer-widget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.prayer-widget-select {
  padding: 0.5rem 1.2rem;
  border-radius: 1.2rem;
  border: 1.5px solid var(--gold);
  font-size: 1.05rem;
  background: var(--gray);
  color: var(--blue);
  font-weight: 500;
  box-shadow: 0 1px 4px var(--shadow);
  transition: border 0.2s;
}
.prayer-widget-select:focus {
  border: 1.5px solid var(--green);
  outline: none;
}
.prayer-widget-toggle {
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--blue);
  background: var(--gray);
  border-radius: 1.2rem;
  padding: 0.3rem 1.1rem;
  border: 1.5px solid var(--gold);
  font-weight: 500;
  box-shadow: 0 1px 4px var(--shadow);
  transition: border 0.2s, background 0.2s;
}
.prayer-widget-toggle input[type="checkbox"] {
  margin-right: 0.5em;
  accent-color: var(--gold);
}
.prayer-widget-toggle:focus-within, .prayer-widget-toggle:hover {
  border: 1.5px solid var(--green);
  background: #f9f6f1;
}
.prayer-widget-table-container {
  margin-top: 0.7rem;
  overflow-x: auto;
}
.prayer-widget-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
}
.prayer-widget-table th, .prayer-widget-table td {
  padding: 0.9rem 0.7rem;
  text-align: center;
  font-size: 1.12rem;
  color: var(--blue);
}
.prayer-widget-table th {
  background: var(--gold);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.prayer-widget-table td {
  background: var(--white);
  font-weight: 600;
}
@media (max-width: 700px) {
  .prayer-widget-card {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
    border-radius: 1.1rem;
  }
  .prayer-widget-table th, .prayer-widget-table td {
    font-size: 0.98rem;
    padding: 0.5rem 0.3rem;
  }
}

/* Section Base */
.section {
  padding: 4rem 0 3rem 0;
  background: var(--white);
  margin-bottom: 2rem;
  border-radius: 1.5rem;  
  box-shadow: 0 2px 8px var(--shadow);
}
.section h2 {
  font-family: 'Inter','Amiri', serif;
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Vision Section */
.vision-section {
  background: var(--gray);
}
.vision-desc {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--blue);
  font-size: 1.1rem;
}
.vision-columns {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.vision-col {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1 1 0;
  max-width: 250px;
}
.vision-col .icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.vision-col h3 {
  color: var(--green);
  font-size: 1.2rem;
  margin: 0;
}

/* Axes d’Action Section */
.axes-section {
  background: var(--white);
}
.axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.axe-card {
  width: 320px;
  min-height: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2rem 1.2rem;
  box-sizing: border-box;
}
.axe-card .icon {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.axe-card h3 {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.axe-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}
.learn-more {
  color: var(--green);
  text-decoration: underline;
  font-weight: 500;
  margin-top: auto;
  transition: color 0.2s;
}
.learn-more:hover {
  color: var(--gold);
}
@media (max-width: 700px) {
  .axe-card {
    width: 90vw;
    min-width: 90vw;
    max-width: 95vw;
    padding: 1.2rem 0.7rem;
  }
}

/* Rejoindre Section */
.rejoindre-section {
  background: var(--green-light);
  color: var(--white);
  text-align: center;
}
.testimonial {
  font-style: italic;
  font-size: 1.2rem;
  margin: 2rem auto 2rem auto;
  max-width: 600px;
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  color: var(--white);
}
.testimonial span {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: var(--gold);
}

/* Ressources Section */
.ressources-section {
  background: var(--white);
}
.ressources-search {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}
.ressources-search input {
  padding: 0.7rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--green);
  font-size: 1rem;
  width: 250px;
}
.ressources-search button {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.ressources-search button:hover {
  background: var(--gold);
  color: var(--blue);
}
.ressources-carousel {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ressource-card {
  background: var(--gray);
  border-radius: 1rem;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 8px var(--shadow);
  font-weight: 500;
  color: var(--blue);
  min-width: 180px;
  text-align: center;
}

.ressource-card a {
  text-decoration: none;
  color: var(--blue);
}

/* Galerie Section */
.galerie-section {
  background: var(--gray);
}
.galerie-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.galerie-img {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 600;
}

/* Actualités Section */
.actualites-section {
  background: var(--white);
}
.actualites-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.actualite-item {
  background: var(--gray);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 1.5rem 1.2rem;
  min-width: 220px;
  text-align: center;
}
.actualite-item h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
}
.actualite-item p {
  color: #444;
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--gray);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--green);
  font-size: 1rem;
  resize: none;
}
.contact-form textarea {
  min-height: 100px;
}
.contact-form button {
  align-self: flex-end;
}
.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-links a:hover {
  color: var(--green);
}
.partenaires-logos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--blue);
  color: var(--white);
  padding: 2.5rem 0 1.5rem 0;
  border-radius: 1.5rem 1.5rem 0 0;
  margin-top: 2rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-about {
  flex: 1 1 200px;
}
.footer-about h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-links {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-social {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-social a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--white);
}

/* Language Switcher Improved */
.lang-switcher {
  position: relative;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
}
.lang-btn {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}
.lang-btn:hover, .lang-btn:focus {
  background: var(--gold);
  border-color: var(--green);
}
.current-lang {
  font-size: 1.08rem;
  color: var(--green);
  font-weight: 600;
  margin-right: 0.2rem;
  letter-spacing: 0.02em;
}
.lang-dropdown {
  min-width: 160px;
  box-shadow: 0 2px 8px var(--shadow);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: 2.5rem;
  z-index: 200;
  font-family: 'Inter', sans-serif;
}
.lang-dropdown button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-dropdown button:hover, .lang-dropdown button:focus {
  background: var(--gold);
  color: var(--green);
}

/* Dropdown for mobile */
@media (max-width: 600px) {
  .lang-switcher {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
  .lang-btn {
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--gray);
    text-align: right;
  }
  .lang-btn:last-child {
    border-radius: 0 0 1.2rem 1.2rem;
    border-bottom: none;
  }
  .lang-switcher {
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
    border-radius: 1.2rem;
    overflow: hidden;
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .vision-columns, .axes-grid, .galerie-mosaic, .actualites-list, .footer-container {
    flex-direction: column;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
  }
  .axes-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .hero-section {
    padding: 3rem 0.5rem 2rem 0.5rem;
  }
  .section {
    padding: 2rem 0 1.5rem 0;
  }
  .footer {
    padding: 1.5rem 0 1rem 0;
  }
  .footer-container {
    gap: 1rem;
  }
}

/* Modern UI/UX Enhancements */
.section {
  padding: 5rem 0 4rem 0;
  background: var(--white);
  margin-bottom: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 4px 24px var(--shadow);
  animation: fadeIn 1s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.section h2 {
  font-family: 'Inter', sans-serif;
  color: var(--green);
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 0 auto;
}
.card, .book-card, .axe-card, .ressource-card, .actualite-item, .galerie-img {
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .book-card:hover, .axe-card:hover, .ressource-card:hover, .actualite-item:hover, .galerie-img:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-4px) scale(1.02);
}
.btn {
  padding: 1rem 2.5rem;
  border-radius: 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px var(--shadow);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary:hover, .btn-secondary:hover {
  box-shadow: 0 4px 16px var(--shadow);
  filter: brightness(1.08);
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s;
  border-radius: 0 0 1.5rem 1.5rem;
  margin-bottom: 0;
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 4px 24px var(--shadow);
}
@media (max-width: 900px) {
  .section {
    padding: 2.5rem 0 1.5rem 0;
  }
  .navbar {
    border-radius: 0 0 1rem 1rem;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 1.5rem 0 1rem 0;
  }
  .navbar {
    padding: 0.7rem 0;
    border-radius: 0 0 0.7rem 0.7rem;
    margin-bottom: 0.5rem;
    display: none;
  }
  header.hero-section {
    margin-top: 0.2rem;
  }
}

/* Promotional Books Section */
.books-section {
  background: var(--gray);
}
.book-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 2rem 1.5rem;
  margin: 2rem auto 0 auto;
  max-width: 600px;
}
.book-cover {
  width: 120px;
  height: 170px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  object-fit: cover;
  display: block;
  margin-right: 0;
  margin-bottom: 0;
  background: var(--gold); /* fallback for div */
  color: var(--blue);      /* fallback for div */
  font-size: 2.5rem;       /* fallback for div */
  align-items: center;     /* fallback for div */
  justify-content: center; /* fallback for div */
}
.book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.book-info h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin: 0 0 0.3rem 0;
}
.book-info p {
  color: var(--blue-light);
  font-size: 1rem;
  margin: 0 0 0.7rem 0;
}
.book-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .book-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0.7rem;
  }
  .book-cover {
    margin-bottom: 0.5rem;
  }
}

/* Axes Carousel Styles */
.axes-carousel {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 2rem;
  gap: 0.5rem;
  padding: 0 32px;
}
.axes-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  scroll-behavior: smooth;
  transition: transform 0.4s cubic-bezier(.4,1,.7,1);
  width: 100%;
  margin: 0 -16px;
}
.axe-card {
  width: 320px;
  min-height: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  padding: 2rem 1.2rem;
  box-sizing: border-box;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.7;
  z-index: 1;
}
.axe-card.active {
  transform: scale(1.07);
  box-shadow: 0 16px 40px var(--shadow);
  opacity: 1;
  z-index: 2;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--green);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
  margin: 0;
  z-index: 10;
}
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .axes-track { gap: 1rem; margin: 0 -8px; }
  .axe-card { margin: 0 8px; }
}
@media (max-width: 700px) {
  .axes-carousel { padding: 0 8px; }
  .axes-track { gap: 0.5rem; margin: 0 -4px; }
  .axe-card {
    width: 90vw;
    min-width: 90vw;
    max-width: 95vw;
    padding: 1.2rem 0.7rem;
    margin: 0 4px;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

/* Scroll Animation Classes */
.animate-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,1,.7,1), transform 0.7s cubic-bezier(.4,1,.7,1);
}
.animate-fade-in.visible {
  opacity: 1;
  transform: none;
}
.animate-slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(.4,1,.7,1), transform 0.8s cubic-bezier(.4,1,.7,1);
}
.animate-slide-up.visible {
  opacity: 1;
  transform: none;
}

/* Carousel Pagination Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray);
  border: 2px solid var(--gold);
  transition: background 0.3s, border 0.3s, transform 0.2s;
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.2);
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s;
  opacity: 0;
}
.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 1;
  transition: 0s;
}

/* Card Microinteractions */
.card:hover, .book-card:hover, .axe-card:hover, .ressource-card:hover, .actualite-item:hover, .galerie-img:hover {
  box-shadow: 0 12px 32px var(--shadow);
  transform: translateY(-6px) scale(1.03);
}

/* Carousel Arrow Animation */
.carousel-arrow {
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.carousel-arrow:hover:not(:disabled) {
  background: var(--green);
  color: var(--white);
  border-color: var(--gold);
  transform: scale(1.1);
}

.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: 1rem;
  margin-top: 0.7rem;
  opacity: 0.8;
  gap: 0.5rem;
  user-select: none;
  pointer-events: none;
}
.swipe-arrow {
  font-size: 1.3rem;
  animation: swipeArrow 1.2s infinite alternate;
  margin-right: 0.3rem;
}
@keyframes swipeArrow {
  0% { transform: translateX(0); opacity: 0.7; }
  100% { transform: translateX(12px); opacity: 1; }
}
@media (min-width: 700px) {
  .swipe-hint { display: none !important; }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,58,92,0.32);
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-content {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px var(--shadow);
  padding: 2.2rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s;
}
.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--blue);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover, .modal-close:focus {
  color: var(--gold);
}
#preorderForm input, #preorderForm select, #preorderForm textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 1.1rem;
  border: 1.5px solid var(--gold);
  font-size: 1.05rem;
  background: var(--gray);
  color: var(--blue);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 4px var(--shadow);
  transition: border 0.2s;
}
#preorderForm input:focus, #preorderForm textarea:focus {
  border: 1.5px solid var(--green);
  outline: none;
}
#preorderForm button {
  width: 100%;
  margin-top: 0.5rem;
}
#preorderFeedback {
  min-height: 1.2em;
  font-size: 1rem;
  text-align: center;
}
@media (max-width: 600px) {
  .modal-content {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
}

/* Axes Section Responsive Carousel/Grid */
.axes-carousel {
  width: 100%;
  overflow: visible;
  padding: 0;
  margin: 0 auto;
}
.axes-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.2rem;
  padding-bottom: 0.5rem;
  margin: 0;
}
.axe-card {
  flex: 0 0 80vw;
  min-width: 260px;
  max-width: 350px;
  scroll-snap-align: start;
  margin: 0;
  width: 80vw;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
}
.axe-more {
  display: inline-block;
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0.5rem;
  font-weight: bold;
  float: right;
}
.axe-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
@media (min-width: 900px) {
  .axes-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .axe-card {
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    scroll-snap-align: unset;
  }
  .axe-more {
    display: none;
  }
  .carousel-dots {
    display: none;
  }
}
@media (min-width: 1200px) {
  .axes-track {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  .axes-track {
    gap: 0.7rem;
  }
  .axe-card {
    min-width: 70vw;
    max-width: 90vw;
    width: 80vw;
  }
}

.book-feature-section {
  background: var(--gray);
  border-radius: 2rem;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 2.5rem;
  padding: 3rem 0;
}
.book-feature-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.book-feature-image {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 220px;
}
.book-feature-cover {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px var(--shadow);
  margin-bottom: 1.2rem;
  background: var(--gold);
}
.book-badge {
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 1.2rem;
  padding: 0.4rem 1.2rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  display: inline-block;
}
.book-badge.limited {
  background: var(--gold);
  color: var(--blue);
  margin-top: 0.2rem;
}
.book-feature-content {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 260px;
}
.book-feature-title {
  font-size: 2rem;
  color: var(--green);
  font-family: 'Inter','Amiri', serif;
  margin-bottom: 0.3rem;
}
.book-feature-desc {
  font-size: 1.1rem;
  color: var(--blue-light);
  margin-bottom: 0.2rem;
}
.book-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.2rem;
}
.book-author {
  font-weight: 600;
}
.book-release {
  color: var(--gold);
  font-weight: 700;
}
.book-feature-tagline {
  font-style: italic;
  color: var(--green);
  font-size: 1.1rem;
  margin: 0.7rem 0 0.2rem 0;
}
.book-benefits {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.2rem;
}
.benefit {
  background: var(--gold);
  color: var(--blue);
  border-radius: 1rem;
  padding: 0.3rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 1px 4px var(--shadow);
}
.book-countdown {
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.book-feature-testimonial {
  background: #f6f7fa;
  border-radius: 0.7rem;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  color: var(--green);
  box-shadow: 0 2px 8px var(--shadow);
  margin-top: 0.7rem;
  font-style: italic;
}
.book-feature-testimonial span {
  display: block;
  margin-top: 0.5rem;
  color: var(--blue-light);
  font-weight: 600;
}
.book-preorder-btn {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.8rem 2.2rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.book-preorder-btn:hover {
  background: var(--gold);
  color: var(--blue);
  box-shadow: 0 4px 16px var(--shadow);
}
.book-feature-ctas {
  display: flex;
  flex-direction: row;
  gap: 1.1rem;
  margin: 1.1rem 0 0.5rem 0;
  align-items: stretch;
  justify-content: center;
}
.book-feature-ctas .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  height: 52px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  gap:1.1rem;
}
.book-feature-ctas .book-more-btn {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.book-feature-ctas .book-more-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--gold);
}
.book-feature-ctas .book-preorder-btn {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.book-feature-ctas .book-preorder-btn:hover {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}
.book-feature-ctas .btn + .btn {
  position: relative;
}
.book-feature-ctas .btn + .btn::before {
  content: '';
  display: block;
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 2.2rem;
  background: #e6c77b;
  opacity: 0.4;
}
@media (max-width: 700px) {
  .book-feature-ctas {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    align-items: stretch;
    height: 90px;
  }
  .book-feature-ctas .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .book-feature-ctas .btn + .btn::before {
    display: none;
  }
}
@media (max-width: 900px) {
  .book-feature-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .book-feature-image {
    margin-bottom: 0.5rem;
  }
  .book-feature-content {
    min-width: 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .book-feature-section {
    padding: 1.5rem 0.2rem;
    border-radius: 1rem;
  }
  .book-feature-cover {
    width: 150px;
    height: 220px;
  }
  .book-feature-title {
    font-size: 1.3rem;
  }
}
.hamburger {
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 201;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
.hamburger:hover, .hamburger:focus {
  background: var(--gold);
  border-color: var(--green);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 80vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px var(--shadow);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.3s;
  flex-direction: column;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
}
.mobile-nav.open {
  display: flex;
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.close-mobile-nav {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--blue);
  cursor: pointer;
}
.mobile-logo {
  font-family: 'Inter','Amiri', serif;
  font-size: 1.5rem;
  color: var(--green);
  font-weight: bold;
}
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-nav-links a {
  color: var(--blue);
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-nav-links a.active, .mobile-nav-links a:focus, .mobile-nav-links a:hover {
  color: var(--gold);
  font-weight: 700;
}
.mobile-lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.mobile-lang-switcher button {
  background: none;
  border: 1px solid var(--gold);
  border-radius: 1.2rem;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-lang-switcher button:hover, .mobile-lang-switcher button:focus {
  background: var(--gold);
  color: var(--green);
}
@media (max-width: 900px) {
  .nav-links, .lang-switcher {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

/* Fallback: Always show testimonials if JS fails */
.testimonial, .testimonial-author { opacity: 1 !important;}

/* DEBUG: Force all main sections to be visible for troubleshooting */
body, .hero-section, .about-section, .author-section, .highlights-section, .bonuses-section, .gallery-section, .testimonials-section, .preorder-section, .faq-section, .contact-section {
  opacity: 1 !important;

}