/* IREO SOUS-TITRE FRANCIASE EO AMBANIN'NY MENU */
.translation-fr {
  display: block;              /* aseho amin'ny tsipika vaovao */
  font-size: 0.85rem;          /* somary kely fa vakina tsara */
  line-height: 1.3;
  margin-top: 6px;
  color: #ffffff;              /* gris-sombre, tsara kontras */
  font-style: italic;          /* fampisehoana maha-tsy mitovy azy */
  opacity: 0.95;
}


/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f0fdf3;
  color: #222;
  line-height: 1.6;
  padding: 17px;
}



/* HEADER & MENU  teo aloha */
/* ===== VARIABLES ===== */
:root {
  --primary-color: #2c5530;
  --secondary-color: #4a7c59;
  --accent-color: #8fb996;
  --text-light: #ffffff;
  --text-dark: #2d3748;
  --background-light: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== TOP BANNER ===== */
.top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.top-logo {
    width: 80px; /* Ajustez la taille selon vos besoins */
    height: 80px;
    border-radius: 50%; /* Rend le logo rond */
    object-fit: cover; /* Garde les proportions de l'image */
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: white; /* Fond blanc si le logo a de la transparence */
    padding: 3px; /* Espace entre le bord et l'image */
}

.animated-text {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version responsive */
@media (max-width: 768px) {
    .top-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-logo {
        width: 60px;
        height: 60px;
    }
    
    .animated-text {
        font-size: 1.1rem;
    }
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 70px;
}

.logo_menu {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo_menu:hover {
  transform: rotate(-5deg) scale(1.1);
}

/* ===== TOGGLE BUTTON ===== */
.toggle {
  display: none;
  background: none;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links > li > a {
  color: var(--text-light);
  text-decoration: none;
  padding: 1rem 1.2rem;
  display: block;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-links > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links > li > a:hover::before {
  width: 80%;
}

.nav-links > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== DROPDOWN MENUS ===== */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--text-light);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
  border: 1px solid rgba(0,0,0,0.1);
}

.dropdown-content li {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content li:last-child {
  border-bottom: none;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 0.8rem 1.2rem;
  display: block;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}

.dropdown-content a:hover {
  background: var(--accent-color);
  color: var(--text-light);
  padding-left: 1.5rem;
}
/*====CORRECTION A INTRODUIRE ============ */
/* =========================================== */
/* CORRECTIONS DÉPASSEMENT MENU (À AJOUTER)   */
/* =========================================== */

/* 1. CORRECTION GÉNÉRALE POUR TEXTE LONG */
.navbar .animated-text,
.top-banner .animated-text,
.hero-title,
.page-title {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  max-width: 100% !important;
  word-break: break-word !important;
  line-height: 1.3;
}

/* 2. CONTAINERS PRINCIPAUX */
.top-banner {
  max-width: 100vw;
  overflow-x: hidden;
  padding: 15px 20px !important;
}

.navbar {
  flex-wrap: wrap;
  min-height: auto;
  padding: 0 15px !important;
  overflow-x: hidden;
}

/* 3. CORRECTION SPÉCIFIQUE NAV-LINKS */
.nav-links {
  flex-wrap: wrap;
  justify-content: center;
}

/* Sur écrans larges mais avec texte long */
@media (min-width: 769px) and (max-width: 1400px) {
  .nav-links > li > a {
    white-space: normal;
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
  }
  
  .animated-text {
    font-size: 1.2rem !important;
  }
}

/* 4. VERSION TABLETTE */
@media (max-width: 992px) {
  .animated-text {
    font-size: 1.1rem !important;
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 0.2rem;
  }
  
  .nav-links > li > a {
    padding: 0.7rem 0.4rem !important;
    font-size: 0.85rem;
  }
}

/* 5. VERSION MOBILE */
@media (max-width: 768px) {
  .top-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .animated-text {
    font-size: 1rem !important;
    line-height: 1.2;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links > li {
    width: 100%;
  }
  
  .nav-links > li > a {
    white-space: normal !important;
    padding: 0.8rem !important;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Cacher le underline hover sur mobile */
  .nav-links > li > a::before {
    display: none;
  }
}

/* 6. EMPÊCHER DÉBORDEMENT HORIZONTAL GLOBAL */
body, html {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.container, .wrapper, main {
  overflow-x: hidden !important;
}

/* 7. OPTION : VERSION COURTE DU TITRE SUR PETIT ÉCRAN */
.short-title { display: none; }

@media (max-width: 576px) {
  .full-title { display: none; }
  .short-title { display: inline; }
}
/*========= FIN DE LA CORRECTION ============*/

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
}

.lang-switcher option {
  background: var(--primary-color);
  color: var(--text-light);
}

/* ===== MINI PANIER ===== */
#miniPanierWrapper {
  position: relative;
}

#miniPanier {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 25px !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

#miniPanier:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

#miniPanierDropdown {
  background: var(--text-light);
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 1rem;
  }
  
  .nav-links > li > a {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .animated-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links > li > a {
    padding: 1rem 2rem;
    border-radius: 0;
	align-items:left;
	align-content:left;
  }
  
  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.1);
    min-width: auto;
    border: none;
  }
  
  .dropdown-content a {
    color: var(--text-light);
    padding-left: 3rem;
  }
  
  .dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
  }
  
  #miniPanierDropdown {
    right: 1rem;
    width: calc(100vw - 2rem);
  }
}

/* ===== ANIMATIONS SUPPLEMENTAIRES ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ===== ACCESSIBILITE ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS VISIBLE ===== */
.nav-links a:focus,
.toggle:focus,
.lang-switcher:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
/*=== ===========tapitra eto ny ambonin'ny navbar ==============*/

/*=== ===========CSS HO AN NY MOT DE BIENVENUE ==============*/
.welcome-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px;
    text-align: justify;
    line-height: 1.8;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f8f0 100%);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.welcome-container h3 {
    text-align: center;
    color: #1e4224;
    margin: 35px 0 25px 0;
    font-size: 2em;
    font-weight: 700;
    position: relative;
}

.welcome-container h3:first-child {
    margin-top: 0;
}

.welcome-container h3:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #4a8c5a;
    margin: 15px auto;
    border-radius: 2px;
}

.welcome-container p {
    margin-bottom: 25px;
    font-size: 1.15em;
    color: #444;
    text-align: justify;
    text-justify: inter-word;
    text-indent: 0;
}
//======RESPONSIVE AVEC ANIMATION=====================
.welcome-container {
    max-width: min(800px, 90%);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px);
    text-align: justify;
    line-height: 1.75;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #ffffff;
    border: 1px solid #e8f5e8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-container h3 {
    text-align: center;
    color: #1a4722;
    margin: 40px 0 30px 0;
    font-size: clamp(1.5em, 4vw, 2em);
    font-weight: 700;
    position: relative;
}

.welcome-container h3:first-child {
    margin-top: 0;
    color: #2e7d32;
}

.welcome-container p {
    margin-bottom: 28px;
    font-size: clamp(1em, 2.5vw, 1.15em);
    color: #2d3748;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Effet de surbrillance au survol */
.welcome-container:hover {
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.15);
    transition: all 0.3s ease;
}
/* Conteneur des boutons d'authentification */
.authy-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fff8 0%, #f0faf0 100%);
    border-radius: 12px;
    border: 1px solid #e0f0e0;
}

/* Phrase d'invitation */
.invitation-text {
    text-align: center;
    font-size: 1.3em;
    color: #1e4224;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

/* Style de base des boutons */
.authy-buttons button {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 220px;
    text-align: center;
}

/* Bouton de connexion */
.btny-login {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btny-login:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Bouton d'inscription */
.btny-register {
    background: linear-gradient(135deg, #ff9800 0%, #4caf50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btny-register:hover {
    background: linear-gradient(135deg, #f57c00 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Version responsive */
@media (max-width: 768px) {
    .authy-buttons {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .invitation-text {
        font-size: 1.1em;
    }
    
    .authy-buttons button {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 1em;
    }
}



/*=== ===========tapitra eto ny CSS HO AN NY MOT DE BIENVENUE ==============*/


/* ===== CSS HO AN'NY AUTHENTIFICATION (login - logout - register) =====  */
/* Ajouter dans design.css */
.welcome-section {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px;
}

.auth-buttons {
    margin: 30px 0;
}

.btn-login, .btn-register {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login {
    background: #4caf50;
    color: white;
}

.btn-register {
    background: #2196f3;
    color: white;
}

.btn-login:hover { background: #388e3c; }
.btn-register:hover { background: #1976d2; }

.featurys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.featury-cardy {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Styles pour les statuts d'abonnement */
.subscription-status, .admin-status {
    margin: 15px 0;
    text-align: center;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.admin {
    background: #6f42c1;
    color: white;
}

.subscription-info {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

/* Liens rapides */
.quick-links {
    margin-top: 30px;
    text-align: center;
}

.link-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-link-btn {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-link-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Page d'abonnement requis */
.subscription-required {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.subscription-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;/*linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    border-radius: 15px;
}

.subscription-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.welcome-message {
    font-size: 1.2rem;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.feature-card p {
  text-align: justify; /* 👉 Izay no manamboatra justification */
  color: #444;
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.feature-card p i b {
  color: #007b5e; /* Loko manintona kely amin’ny fanamarihana */
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    /*color: #2c5530;*/
    margin-bottom: 10px;
	
	font-size: 1.3rem;
	color: #2c5530;
	margin-bottom: 10px;
}

.subscription-cta {
    margin-top: 50px;
}

.cta-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.cta-header h3 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.cta-benefits {
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefit-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn-subscribe-primary {
    background: #2c5530;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe-primary:hover {
    background: #4a7c59;
    transform: translateY(-2px);
}

.btn-explore {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: white;
    color: #f5576c;
}

.cta-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .subscription-header h2 {
        font-size: 2rem;
    }
    
    .link-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Styles pour la nouvelle structure */
.welcome-section {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px;
}

.auth-buttons {
    margin: 30px 0;
}

.btn-login, .btn-register {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login {
    background: #4caf50;
    color: white;
}

.btn-register {
    background: #2196f3;
    color: white;
}

.btn-login:hover { background: #388e3c; }
.btn-register:hover { background: #1976d2; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-welcome {
    text-align: center;
    padding: 40px 20px;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
}

/* ===== CSS HO AN'NY AUTHENTIFICATION (login - logout - register) =====  */



/* CONTENU */
#contenu {
  background-color: #eaf8ea;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,100,0,0.1);
}
/* Typo fluide et propre */
#contenu h1, 
#contenu h2, 
#contenu h3, 
#contenu p, 
#contenu ul,
#contenu strong {
  max-width: 100%;
  word-wrap: break-word;
  font-family: "Segoe UI", sans-serif;
  color: #2e4d2f; /* texte vert foncé lisible sur fond clair */
  display: flex;
  justify-content: center;
  align-items: center;
}

#contenu strong {
  font-size: 1rem !important; /* 5% lehibe kokoa */
  font-weight: bold;
}

/* Responsive mobile */
@media (max-width: 600px) {
  #contenu {
    padding: 10px;
  }

  #contenu h2 {
    font-size: 1.4rem;
	display: flex;
  justify-content: center;
  align-items: center;
  }

  #contenu p,
  #contenu li {
    font-size: 1rem;
    line-height: 1.5em;
  }
}

/* FORMULAIRE AJOUT ZAVAMANIRY*/
.centrage_form{
	display: flex;
	justify-content: center; /* Centrage horizontal */
	align-items: center;    /* Centrage vertical */
	height: 100vh;         /* Hauteur de l'écran */
	padding: 20px;            /* Espace raha misy écran kely */
    box-sizing: border-box;
}
form {
  margin-top: 15px;
  background-color: #f9fff9;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 auto;           /* Antoka fa afovoany ihany */
  width: 100%;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label,
.form-group fieldset {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #2e7d32;
}

.form-group fieldset{
	border:1px;
	/*border-color:green;*/
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
}
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none; /* manala ilay style par défaut amin'ny navigateur */
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* Raha misy arrow manokana (ico) */
select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path fill='gray' d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Hover sy focus */
select:hover {
    border-color: #3498db;
}

select:focus {
    border-color: #2980b9;
    box-shadow: 0 0 4px rgba(41, 128, 185, 0.5);
}

textarea {
  resize: vertical;
}

/* SUBMIT BUTTON */
input[type="submit"] {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #388e3c;
}

/* SUCCESS MESSAGE */
.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-weight: bold;
}

/* TABLE (amin'ny ho avy) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  border: 1px solid #c5e1a5;
  text-align: left;
}

th {
  background-color: #4caf50;
  color: white;
}

tr:nth-child(even) {
  background-color: #f1f8e9;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }

  form {
    padding: 15px;
  }
}
/*CSS MIKASIKA NY LISITRA ZAVAMANIRY*/
/* === Card List === */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Image avec effet de zoom */
.card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card img.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img.thumb {
    transform: scale(1.05);
}

/* Badge de catégorie */
.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contenu de la carte */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-category-text {
    color: #4caf50;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bouton moderne */
.card button {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    align-self: flex-start;
    margin-top: auto;
}

.card button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.card button:active {
    transform: translateY(0);
}

/* Indicateur de chargement pour les images */
.card-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.card img.loaded + .card-img-container::before {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 10px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-img-container {
        height: 180px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Effet de focus pour l'accessibilité */
.card:focus-within {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .card {
        background: #2d3748;
        box-shadow: 
            0 4px 6px -1px rgba(0, 0, 0, 0.3),
            0 2px 4px -1px rgba(0, 0, 0, 0.2);
    }
    
    .card h3 {
        color: #e2e8f0;
    }
    
    .card p {
        color: #cbd5e0;
    }
}
/*====== TAPITRA NY LISITRA ZAVAMANIRY===========*/

/*===== MODAL AMIN NY LISITRY NY ZAVAMANIRY */

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0; top: 0;
  width: 100%; height: 50%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 10px #333;
  animation: slideIn 0.4s ease-in-out;
  max-height: 90vh; /* 90% ny haavon'ny écran */
  overflow-y: auto;
}

.modal .close {
  color: #aaa;
  float: right;
  font-size: 24px;
  cursor: pointer;
}
.modal .close:hover {
  color: #000;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}
/*===== TAPITRA ETO MODAL AMIN NY LISITRY NY ZAVAMANIRY */

/*===== css BUTTON rehetra =========*/

button {
  padding: 10px 20px;
  background-color: #006633; /* maitso maizina kely */
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

button:hover {
  background-color: #00994d; /* maitso manjelanjelatra */
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


/*===== Tapitra eto css BUTTON rehetra =========*/

/* ===css mahakaika ny Liste sy fiche technique Fampiasana sy Fomba fanao====*/
.liste-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
}
.card img.thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.card button {
  margin-top: 10px;
  background: #4CAF50;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.card button:hover {
  background: #45a049;
}

.fiche-container {
  max-width: 900px;
  margin: auto;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery-img {
  width: calc(33% - 10px);
  border-radius: 5px;
  object-fit: cover;
}
.gallery-video {
  width: calc(50% - 10px);
}

/* === Tapitra css mahakaika ny Liste sy fiche technique Fampiasana sy Fomba fanao====*/

/*===== CSSn-ireo Carroussel rehetra (video - sary- audio- pdf) ao amin'ny */
/*  	sante et spirituel rehetra =====================*/


/* Conteneur des carrousels */
        .carousel-container {
            max-width: 900px;
            margin: 0 auto 40px;
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            background: #f0fdf3;
            padding: 20px;
        }
        
        /* Style commun des carrousels */
        .carousel {
            display: flex;
            transition: transform 0.5s ease;
            padding: 10px 0;
        }
        
        .carousel-item {
            min-width: 100%;
            padding: 0 10px;
            box-sizing: border-box;
        }
        
        /* Styles spécifiques pour chaque type */
        .image-carousel .carousel-item img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 8px;
        }
        
        .video-carousel .carousel-item video {
            width: 100%;
            border-radius: 8px;
        }
        
        .audio-carousel .carousel-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            background: #f0f0f0;
            border-radius: 8px;
        }
        
        .audio-carousel audio {
            width: 100%;
            margin-top: 10px;
        }
        
        /* Contrôles du carrousel */
        .carousel-controls {
            display: flex;
            justify-content: center;
            margin-top: 15px;
        }
        
        .carousel-btn {
            background: #2ecc71;
			border: none;
			border-radius: 65%;
			width: 40px;
			height: 40px;
			cursor: pointer;
			transition: all 0.3s;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 35px;
			color: white;
			box-shadow: 0 2px 5px rgba(0,0,0,0.2);
			margin : 5px;
        }
        
        .carousel-btn:hover {
            background: #27ae60; /* Vert plus foncé au survol */
        }
        
        /* Indicateurs */
        .carousel-indicators {
            display: flex;
            justify-content: center;
            margin-top: 10px;
        }
        
        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #bdc3c7;
            margin: 0 5px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .indicator.active {
            background: #2ecc71; /* Vert */
        }
/* Responsive Design */
@media (max-width: 768px) {
    .carousel-container {
        width: 98%;
        padding: 10px;
    }
    
    .image-carousel .carousel-item img {
        max-height: 350px;
    }
    
    .carousel-item video {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .image-carousel .carousel-item img {
        max-height: 250px;
        aspect-ratio: 4/3;
    }
    
    .carousel-item video {
        max-height: 200px;
    }
    
    .carousel-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}


/*===== TAPITRA  NY CSSn-ireo Carroussel rehetra (video - sary- audio- pdf) ao amin'ny */
/*  	sante et spirituel rehetra =====================*/


/*============ CSS MODAL fiche Fomban_drazana ========================/*

/* =========== CSS POUR LES MODALS DES FICHES ============================= */
/* MODAL STYLES - SIMPLIFIED AND GROUPED */
.modal_jiaby {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.modal-content_jiaby {
  background: #fff;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  width: 85%;
  max-width: 900px;
  /* SUPPRIMER max-height pour hauteur auto */
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  /* La hauteur sera automatique selon le contenu */
}

.close_jiaby {
  color: #666;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close_jiaby:hover {
  color: #ff0000;
  background: rgba(255,255,255,1);
  transform: rotate(90deg);
}

/* CONTENT LAYOUT - AVEC HEADER FIXE */
.modal-header_jiaby {
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 15px;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  padding-top: 10px;
  margin-top: -10px;
}

.modal-header_jiaby h2 {
  color: #2c5530;
  margin: 0;
  font-size: 1.8em;
  text-align: left;
}

.modal-body_jiaby {
  flex: 1;
  /* Pas de overflow-y: auto car hauteur auto */
  overflow-x: hidden;
  padding: 10px 10px 20px 0;
  /* min-height supprimé car hauteur auto */
}

/* SCROLLBAR STYLING */
.modal-body_jiaby::-webkit-scrollbar {
  width: 8px;
}

.modal-body_jiaby::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body_jiaby::-webkit-scrollbar-thumb {
  background: #4CAF50;
  border-radius: 4px;
}

.modal-body_jiaby::-webkit-scrollbar-thumb:hover {
  background: #45a049;
}

/* INFO GRID LAYOUT - CORRECTION DÉBORDEMENT */
.info-grid_ModalJiaby {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 15px;
  align-items: start;
  margin-bottom: 25px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Assurer que le contenu long ne dépasse pas */
  min-height: auto;
}

.info-label_ModalJiaby {
  font-weight: bold;
  color: #2c5530;
  text-align: left;
  padding-right: 10px;
  border-right: 1px solid #ddd;
  /* Permettre le retour à la ligne si nécessaire */
  word-break: break-word;
}

.info-content_ModalJiaby {
  color: #333;
  line-height: 1.5;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Important pour les champs longs comme "Fanazavana" */
  white-space: normal;
  overflow: visible;
}

/* STYLE SPÉCIAL PLEINE LARGEUR POUR LES CHAMPS LONGS */
.info-grid-fullwidth {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.info-content-fullwidth {
  width: 100%;
  max-width: 100%;
}

/* BOUTON MIVERINA - CORRECTION IMPORTANTE */
.modal-footer_jiaby {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 10;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.btn-save_ModalJiaby {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.btn-save_ModalJiaby:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

/* CAROUSEL DANS MODAL - CORRECTION DÉBORDEMENT */
.modal_jiaby .mdl-carousel-container {
  position: relative;
  max-width: 100%;
  margin: 15px 0;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  overflow: hidden;
}

.modal_jiaby .mdl-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 8px 5px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
}

.modal_jiaby .mdl-carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: calc(100% - 10px);
  box-sizing: border-box;
}

/* RESPONSIVE DESIGN - MODALS ONLY */

/* Tablets */
@media (max-width: 1024px) {
  .modal-content_jiaby {
    width: 90%;
    margin: 30px auto;
    padding: 25px;
    /* Pas de max-height */
  }
  
  .info-grid_ModalJiaby {
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 15px;
  }
}

/* Small Tablets */
@media (max-width: 768px) {
  .modal-content_jiaby {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    /* Pas de max-height */
  }
  
  .modal-header_jiaby h2 {
    font-size: 1.5em;
  }
  
  .info-grid_ModalJiaby {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .info-label_ModalJiaby {
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-right: 0;
    padding-bottom: 5px;
    text-align: left;
  }
  
  .close_jiaby {
    right: 15px;
    top: 10px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  
  .modal-body_jiaby {
    padding: 5px 5px 15px 0;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .modal-content_jiaby {
    width: 98%;
    margin: 10px auto;
    padding: 15px;
    border-radius: 8px;
    /* Pas de max-height */
  }
  
  .modal-header_jiaby h2 {
    font-size: 1.3em;
  }
  
  .info-grid_ModalJiaby {
    padding: 12px;
    gap: 8px;
  }
  
  .close_jiaby {
    right: 10px;
    top: 8px;
    font-size: 24px;
    width: 30px;
    height: 30px;
  }
  
  .btn-save_ModalJiaby {
    width: 100%;
    max-width: 200px;
    padding: 10px 20px;
  }
  
  .modal-body_jiaby {
    padding: 5px 5px 10px 0;
  }
}

/* Very Small Phones */
@media (max-width: 360px) {
  .modal-content_jiaby {
    padding: 12px;
    /* Pas de max-height */
  }
  
  .modal-header_jiaby h2 {
    font-size: 1.2em;
  }
  
  .info-grid_ModalJiaby {
    padding: 10px;
  }
  
  .btn-save_ModalJiaby {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Landscape Orientation - ADAPTÉ POUR HAUTEUR AUTO */
@media (max-height: 600px) and (orientation: landscape) {
  .modal-content_jiaby {
    /* max-height supprimé, on utilise margin normale */
    margin: 20px auto;
  }
  
  .modal-body_jiaby {
    /* max-height supprimé */
  }
}

/* High Resolution Screens */
@media (min-width: 1400px) {
  .modal-content_jiaby {
    max-width: 1000px;
  }
  
  .info-grid_ModalJiaby {
    grid-template-columns: 220px 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .modal-content_jiaby {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
  }
  
  .modal-header_jiaby {
    background: #2d3748;
  }
  
  .modal-footer_jiaby {
    background: #2d3748;
  }
  
  .info-grid_ModalJiaby {
    background: #4a5568;
  }
  
  .info-label_ModalJiaby {
    color: #90cdf4;
  }
  
  .info-content_ModalJiaby {
    color: #e2e8f0;
  }
  
  .close_jiaby {
    color: #e2e8f0;
    background: rgba(45, 55, 72, 0.9);
  }
  
  .modal_jiaby .mdl-carousel-container {
    background: #4a5568;
    border-color: #718096;
  }
}
/* =========== FIN CSS POUR LES MODALS DES FICHES ============================= */




/* Caroussel */
.carousel_fomban_drazana {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 20px;
}

.carousel_fomban_drazana img, .carousel_fomban_drazana video {
  width: 100%;
  display: none;
}

.carousel_fomban_drazana img.active, .carousel_fomban_drazana video.active {
  display: block;
}

.carousel_fomban_drazana .prev, .carousel_fomban_drazana .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel_fomban_drazana .prev { left: 10px; }
.carousel_fomban_drazana .next { right: 10px; }


.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.media-item {
  text-align: center;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 8px;
  background: #fafafa;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;  /* tsy hivalampatra na hihorirana ny sary */
  display: block;
  margin: 0 auto 5px auto; /* afovoany */
  border-radius: 5px;
  border: 1px solid #ccc;
}

.btn-delete {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-delete:hover {
  background: #c62828;
}

.btn-save {
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-save:hover {
  background: #388e3c;
}
/*============ CSS MODAL fiche Fomban_drazana ========================*/

/*============ CSS box/card ombiasa ========================*/

.ombiasa-card {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.ombiasa-card:hover {
    background: #f1f1f1;
}
.ombiasa-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ccc;
}
.jiaby-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ccc;
}
.vokatra-img img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px auto; /* afovoany sy misy elanelana ambany */
    border: 3px solid #ddd;   /* sisiny kely fotsy/volondavenona */
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2); /* aloka somary tsara tarehy */
}

.ombiasa-info {
    flex: 2;
    min-width: 0;
}
.ombiasa-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
}
.ombiasa-details {
    font-size: 14px;
    color: #555;
}
.ombiasa-rating {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #444;
}
.verified {
    color: green;
    font-weight: bold;
}
.not-verified {
    color: red;
    font-weight: bold;
}
.ombiasa-actions {
    flex: 1;
    text-align: right;
}
.ombiasa-actions button {
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.ombiasa-actions button:hover {
    background: #2980b9;
}

.ombiasa-contact {
    flex: 1;
    font-size: 14px;
    color: #444;
}
.ombiasa-contact p {
    margin: 3px 0;
}
.ombiasa-contact i {
    margin-right: 5px;
    color: #555;
}

.ombiasa-extra {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #444;
}
.ombiasa-extra p {
    margin: 3px 0;
}
.ombiasa-extra .verified {
    color: green;
    font-weight: bold;
}
.ombiasa-extra .not-verified {
    color: red;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .ombiasa-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ombiasa-img {
        margin-bottom: 10px;
    }
    .ombiasa-rating, .ombiasa-actions {
        text-align: left;
        margin-top: 10px;
    }
}
/*============ CSS box/card ombiasa ========================*/

/*============ CSS MODAL fiche Ombiasa ========================/*

/* Modal ombiasa */
.modal_ombiasa {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}

.modal-content_ombiasa {
  background: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  position: relative;
}

/* Sary lehibe boribory */
.modal-content_ombiasa img {
  width:250px;
  height:250px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #ccc;
  margin-bottom:15px;
}

.close_ombiasa {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/*============ CSS MODAL fiche Ombiasa ========================*/

/*============ CSS REHETRA MOMBA NY VOKATRA  ========================
.vokatra-card {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.vokatra-card:hover {
    background: #f1f1f1;
}
.vokatra-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ccc;
}
.vokatra-info {
    flex: 2;
    min-width: 0;
}
.vokatra-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
}
.vokatra-details {
    font-size: 14px;
    color: #555;
}
.vokatra-extra {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #444;
}
.verified {
    color: green;
    font-weight: bold;
}
.not-verified {
    color: red;
    font-weight: bold;
}
.vokatra-actions {
    flex: 1;
    text-align: right;
}
.vokatra-actions button {
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.vokatra-actions button:hover {
    background: #2980b9;
}

/* Responsive 
@media (max-width: 768px) {
    .vokatra-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .vokatra-img {
        margin-bottom: 10px;
    }
    .vokatra-extra, .vokatra-actions {
        text-align: left;
        margin-top: 10px;
    }
}


/*============ CSS REHETRA MOMBA NY VOKATRA  ========================/*

/*============ CSS REHETRA MOMBA NY MINI-PANIER  ========================/*
/* Mini-panier dropdown */
#miniPanierDropdown {
  background: #fff !important;       /* fotsy background */
  color: #006400 !important;         /* maintso maivana soratra */
  font-size: 14px;
}

#miniPanierDropdown ul li {
  color: #006400;
  padding: 6px 8px;
}

#miniPanierDropdown ul li:hover {
  background: #f0fdf0; /* fotsy misy maitso kely rehefa mi-hover */
  cursor: pointer;
}

#miniPanierContent p {
  color: #006400;
}

#miniPanierWrapper #miniPanier {
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #006400; /* maintso maivana ny texte eo amin’ilay bouton */
  font-weight: bold;
}

.remove-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
}

.remove-btn:hover {
  color: darkred;
  transform: scale(1.1);
}

.btn-danger {
  background-color: #c0392b;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-danger:hover {
  background-color: #e74c3c;
}

/*============ CSS REHETRA MOMBA NY MINI-PANIER  ========================/*


/*============ CSS REHETRA AO AMIN NY COMMANDE  ========================*/
/* Style an'ny radio bouton */
.payment-option {
  display: inline-block;
  margin: 8px;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  display: none; /* afenina ilay radio default */
}

.payment-option span {
  display: inline-block;
  padding: 10px 15px;
  border: 2px solid #28a745;
  border-radius: 6px;
  background: #f9fff9;
  color: #28a745;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.payment-option input[type="radio"]:checked + span {
  background: #28a745;
  color: white;
}

.payment-option span:hover {
  background: #e6ffe6;
}

/* Toast notification */
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #4CAF50;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 12px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
/*============ CSS REHETRA AO AMIN NY COMMANDE  ========================*/