/*
Theme Name: Bayti Salama
Theme URI: https://example.com/
Author: Bayti Salama
Author URI: https://example.com/
Description: Thème WordPress minimal reprenant le site statique Bayti Salama
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: bayti-salama
*/

/* 
  Bayti Salama Micro-Crèche - Styles
  Based on the logo colors and organic shapes.
*/

:root {
  /* Color Palette - Derived from Logo */
  --color-red: #da251c;
  --color-orange-dark: #f05a28;
  --color-orange: #f58220;
  --color-yellow: #fbb03b;
  --color-green-light: #8cc63f;
  --color-green: #009245;
  --color-cyan: #00defa;
  --color-blue: #0000ff;
  --color-magenta: #ff00ff;
    
  /* Functional Colors */
  --color-bg: #fffbf7; /* Warm creamy background */
  --color-bg-alt: #f1f8e9; /* Light green tint */
  --color-text: #2c3e50;
  --color-text-light: #546e7a;
    
  /* Calendar Colors */
  --color-cal-available: #8cc63f;
  --color-cal-limited: #fbb03b;
  --color-cal-full: #da251c;

  /* Fonts */
  --font-heading: 'Fredoka One', cursive, sans-serif; /* Playful and sturdy */
  --font-body: 'Nunito', sans-serif; /* Rounded, warm typography */
    
  /* Layout */
  --max-width: 1200px;
  --section-padding: 5rem 1rem;
  --border-radius-lg: 24px;
  --border-radius-md: 12px;
    
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  /* Espace en haut pour la navbar fixe */
  padding-top: 80px;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography styles */
.highlight {
  color: var(--color-orange);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-orange-dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--color-yellow);
  bottom: -10px;
  left: 20%;
  border-radius: 4px;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-top: 15px;
}

/* Utilities */
.section {
  padding: var(--section-padding);
}

.bg-light {
  background-color: var(--color-bg-alt);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.mt-2 { margin-top: 1rem; }
.w-100 { width: 100%; }
.d-none { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-orange);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 130, 32, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.6);
}

.btn-secondary {
  background-color: white;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}

.btn-secondary:hover {
  background-color: var(--color-green);
  color: white;
  transform: translateY(-3px);
}

.btn-primary-outline {
  background: transparent;
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
}

.btn-primary-outline:hover {
  background: var(--color-orange);
  color: white;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo CSS Image */
.logo {
  display: block;
  text-decoration: none;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  padding: 5px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo:hover .logo-container {
  transform: translateY(-5px) scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 700;
  color: var(--color-text);
  position: relative;
}

.nav-item:not(:last-child) .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--color-yellow);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-item:not(:last-child) .nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--color-text);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(251,176,59,0.1) 0%, rgba(255,255,255,1) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  flex: 1;
  padding: 0 5%;
  max-width: 600px;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  position: absolute;
  width: 450px;
  height: 450px;
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.floating-elements {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
}

.icon-float {
  position: absolute;
  font-size: 4rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.wave-bottom {
  position: absolute;
  bottom: -1px; /* Prevent tiny gaps */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-bottom .shape-fill {
  fill: #ffffff;
}

.card-project {
  background: white;
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.4s ease;
  border-bottom: 5px solid transparent;
}

.card-project:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-project:nth-child(1):hover { border-color: var(--color-green); }
.card-project:nth-child(2):hover { border-color: var(--color-yellow); }
.card-project:nth-child(3):hover { border-color: var(--color-orange); }

.card-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: var(--color-green);
  transition: all 0.3s ease;
}

.card-project:hover .card-icon {
  background-color: var(--color-green);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card-project h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

/* Calendar Section */
.calendar-wrapper {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h3 {
  font-size: 1.5rem;
  color: var(--color-text);
}

.btn-icon {
  background: var(--color-bg-alt);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-green);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--color-green);
  color: white;
}

.calendar-grid {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.time-column {
  flex: 0 0 100px;
  background-color: #f5f5f5;
  border-right: 1px solid #e0e0e0;
}

.days-container {
  flex: 1;
  display: flex;
}

.day-column {
  flex: 1;
  border-right: 1px solid #e0e0e0;
}

.day-column:last-child {
  border-right: none;
}

.cal-cell {
  height: 80px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.cal-cell:last-child {
  border-bottom: none;
}

.header-cell {
  height: 60px;
  background-color: var(--color-bg-alt);
  font-family: var(--font-heading);
  color: var(--color-green);
  font-size: 1.1rem;
}

.time-cell {
  font-weight: bold;
  color: var(--color-text-light);
}

.slot-cell {
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  font-weight: bold;
  font-size: 0.9rem;
}

.slot-cell:hover {
  filter: brightness(0.95);
}

.status-available { background-color: rgba(140, 198, 63, 0.15); color: var(--color-green); }
.status-limited { background-color: rgba(251, 176, 59, 0.15); color: var(--color-orange-dark); }
.status-full { background-color: rgba(218, 37, 28, 0.1); color: var(--color-red); cursor: not-allowed; }

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.available { background-color: var(--color-cal-available); }
.dot.limited { background-color: var(--color-cal-limited); }
.dot.full { background-color: var(--color-cal-full); }

/* Registration Section */
.registration-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.form-wrapper {
  flex: 2;
  background: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-wrapper h3 {
  margin-bottom: 25px;
  color: var(--color-orange-dark);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text);
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input {
  width: auto;
  accent-color: var(--color-orange);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: var(--border-radius-md);
  margin-top: 20px;
  font-weight: bold;
}

.download-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.download-card {
  background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-green) 100%);
  color: white;
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.download-card h3 {
  margin-bottom: 15px;
}

.download-card p {
  margin-bottom: 15px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.logo-footer {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-info p {
  color: #bdc3c7;
  margin-bottom: 20px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--color-orange);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-yellow);
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: #bdc3c7;
}

.footer ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bdc3c7;
}

.footer-contact li i {
  color: var(--color-green-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* ================= NOUVELLES SECTIONS ================= */

/* Utilities */
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }
.text-center { text-align: center; }
.text-orange { color: var(--color-orange); }
.text-green { color: var(--color-green); }
.text-blue { color: var(--color-blue); }
.text-orange-dark { color: var(--color-orange-dark); }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.max-w-700 { max-width: 700px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }
.rounded-lg { border-radius: var(--border-radius-lg); }
.border-radius-md { border-radius: var(--border-radius-md); }
.text-lg { font-size: 1.1rem; }

/* Presentation & Histoire */
.subtitle-block {
  font-size: 1.8rem;
  color: var(--color-green);
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  width: 4px;
  height: 100%;
  background-color: var(--color-yellow);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 4px solid var(--color-orange);
  border-radius: 50%;
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  color: var(--color-orange-dark);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* Équipe */
.team-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 3rem;
  box-shadow: 0 5px 15px rgba(0,222,250,0.3);
}

.team-card:nth-child(2) .team-img {
  background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-green) 100%);
  box-shadow: 0 5px 15px rgba(140,198,63,0.3);
}

.team-card:nth-child(3) .team-img {
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 100%);
  box-shadow: 0 5px 15px rgba(251,176,59,0.3);
}

.team-role {
  color: var(--color-orange);
  font-weight: bold;
  margin: 5px 0 15px;
  font-size: 0.9rem;
}

.team-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Services & Partenaires */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.partner-item {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 20px;
  width: 150px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.partner-item:hover {
  background: var(--color-bg-alt);
  transform: translateY(-5px);
}

.partner-icon {
  font-size: 2.5rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.life-card {
  padding: 30px;
}

.news-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eee;
}

.news-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: var(--color-bg-alt);
  color: var(--color-green);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Contact & Admin */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card {
  padding: 20px;
  height: 100%;
}

.horaires-card {
  padding: 20px;
  border-left: 5px solid var(--color-green);
}

/* Responsive */
@media (max-width: 992px) {
  .registration-container {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .sun-shape {
    width: 300px;
    height: 300px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
    
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    gap: 20px;
  }
    
  .nav-menu.active {
    left: 0;
  }
    
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
    
  .hero-buttons {
    justify-content: center;
  }
    
  .hero-visual {
    width: 100%;
    margin-top: 30px;
  }
    
  .footer-content {
    grid-template-columns: 1fr;
  }
    
  .calendar-grid {
    flex-direction: column;
  }
    
  .time-column {
    display: none; /* Hide time column on mobile for simpler view, or redesign */
  }
    
  .day-column {
    border-right: none;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 10px;
  }
    
  .days-container {
    flex-direction: column;
  }
}

/* Force page content background transparent so site background shows */
.page-content, .site, main, .page, article, .container {
  background: transparent;
}

/* Small helper: ensure body background applies when editors or wrappers add white boxes */
body {
  background-color: var(--color-bg) !important;
}

