/* Global styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.country{
    color: black;
}

.section-container:has(.webinar-header) {
    padding: 0 20px 50px 20px !important;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #f97316;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #ea580c;
    text-decoration: none;
    color: #fff;
}

.pagination .current {
    background-color: #ea580c;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
}

.pagination .prev, .pagination .next {
    font-size: 18px;
    padding: 8px 14px;
}


/* Entry header */
.entry-header {
    margin-bottom: 25px;
    text-align: center;
}

.entry-header img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.entry-header p {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: bold;
    color: #444;
}

/* Entry content */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 20px;
    text-align: center;
}

.entry-content strong {
    color: #222;
}

.entry-content p {
    margin: 15px auto;
    font-size: 1rem;
    color: #555;
    max-width: 400px;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #04580e;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #04580e;
    transform: translateY(-2px);
}

.button[disabled] {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.entry-content a{
    color: #fff;
    text-decoration: none;
}
.entry-content a:hover{
    text-decoration: none;
    color: #fff;
}

/* Livestorm form */
.livestorm-form {
    margin: 20px 0;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Speaker section */
.entry-content .speakers {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    color: #444;
}

/* Webinars list */
.webinars-list-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px 0;
}

/* Responsive design for webinars list */
@media (max-width: 1024px) {
    .webinars-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 750px) {
    .webinars-list-container {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    
    .webinar-header{
    	flex-direction: column;
        margin-top: 150px !important;
    }
    
    /* Popup pour la demande de replay */
    .replay-popup .webinar-popup-content {
        width: 80% !important;
    }

    /* Popup pour participer */
    .participation-popup .webinar-popup-content {
        width: 80% !important;
    }
    
    .webinar-popup-content {
        padding: 1.5rem;
    }
    
}

/* Mise à jour des icônes pour une approche plus simple */
.icon-calendar::before {
    content: "📅";
    font-size: 1.2rem;
    margin-right: 4px;
    vertical-align: middle;
}

.icon-clock::before {
    content: "🕒";
    font-size: 1.2rem;
    margin-right: 4px;
    vertical-align: middle;
}

.icon-microphone::before {
    content: "🎤";
    font-size: 1rem;
    margin-right: 4px;
    vertical-align: middle;
}

/* Base styles for webinar cards */
.webinar-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid #e5e7eb;
    position: relative;
}

.webinar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Status badge styles */
.webinar-status-badge {
    position: absolute;
    bottom: 17px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Fond transparent gris/noir */
    backdrop-filter: blur(4px);
}

/* Orange badge for upcoming webinars */
.webinar-upcoming {
    color: #191919;
    background-color: rgba(255, 255, 255, 0.3); /* Fond transparent gris/noir */
}

/* Dark badge for available replays */
.webinar-replay {
    background-color: rgba(0, 0, 0, 0.6); /* Fond transparent gris */
}

/* Dark badge for unavailable replays */
.webinar-no-replay {
    background-color: rgba(0, 0, 0, 0.5); /* Fond transparent gris avec plus de transparence */
}

/* Fond des cartes disponibles (webinaires à venir) - Orange */
.webinar-card.available {
    background-color: rgba(254, 105, 31, 0.08); /* #FE691F avec très faible opacité */
}

/* Fond des cartes indisponibles (replays) - Gris/Noir */
.webinar-card.unavailable {
    background-color: rgba(28, 34, 37, 0.08); /* #1C2225 avec très faible opacité */
}

/* Image section - Positionnement relatif pour l'encart */
.webinar-image {
    position: relative;
    overflow: hidden;
    margin: 0 0 12px 0;
    border-radius: 8px;
}

.webinar-image img {
    width: 100%;
    height: 180px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.webinar-card:hover .webinar-image img {
    transform: scale(1.02);
}

/* Content section */
.webinar-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

.webinar-content {
    color: #111827;
}

.webinar-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #1C2225;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.webinar-description {
    font-size: 1.2rem;
    color: #1C2225;
    margin: 0 0 12px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    font-style: italic;
}

/* Meta information styling */
.webinar-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.webinar-meta-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #4b5563;
    gap: 6px;
}

.webinar-meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.webinar-date {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: #1C2225;
    margin: 0;
    gap: 6px;
    font-weight: 300;
}

.webinar-time { 
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: #1C2225;
    margin: 0;
    gap: 6px;
    font-weight: 300;
}

.webinar-speakers {
    font-size: 1rem;
    color: #1C2225aa;
    margin: 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Buttons */
.webinar-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    margin-top: 1rem;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    min-height: 36px;
    white-space: nowrap;
}

/* Available webinars - Bouton orange */
.webinar-card.available .webinar-button {
    background-color: #f97316;
    color: white;
    border: 1px solid #f97316;
}

.webinar-card.available .webinar-button:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    transform: translateY(-1px);
}

/* Unavailable webinars - Bouton gris */
.webinar-card.unavailable {
    opacity: 1;
}

.webinar-card.unavailable .webinar-button {
    background-color: #191919;
    color: white;
    border: 1px solid #191919;
    cursor: pointer;
}

.webinar-card.unavailable .webinar-button:hover {
    background-color: rgba(25, 25, 25, 0.8);
    border-color: rgba(25, 25, 25, 0.8);
    transform: translateY(-1px);
}

/* Bouton replay indisponible - non cliquable */
.webinar-card.unavailable .webinar-button.disabled {
    background-color: rgba(25, 25, 25, 0.5);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: not-allowed;
    pointer-events: none;
}

.webinar-card.unavailable .webinar-button.disabled:hover {
    transform: none;
    background-color: rgba(25, 25, 25, 0.5);
    border-color: rgba(25, 25, 25, 0.5);
}

/* Suppression des styles live et upcoming car non utilisés dans le PHP actuel */

/* Style général pour les popups */
.webinar-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.webinar-popup-content {
    position: relative; /* Nécessaire pour que le bouton soit positionné par rapport à la popup */
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.webinar-popup-content h3{
  margin-top: 10px !important;
}

/* Popup pour la demande de replay */
.replay-popup .webinar-popup-content {
    width: 40%;
}

/* Popup pour participer */
.participation-popup .webinar-popup-content {
    width: 50%;
}



.confirmation-popup-content p {
    margin-bottom: 20px;
}

.confirmation-popup-content .close-popup:hover {
    background: #f97316;
}

/* Bouton de fermeture */
.close-popup {
    position: absolute; /* Positionnement relatif à la popup */
    top: 5px; /* Distance depuis le haut de la popup */
    right: 10px; /* Distance depuis la droite de la popup */
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10; /* Assurez-vous qu'il reste au-dessus du contenu */
}

.close-popup:hover {
    color: #f97316; /* Effet hover en vert foncé */
}

/* Form styles */
.webinar-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.webinar-form input[type="text"],
.webinar-form input[type="email"],
.webinar-form input[type="url"],
.webinar-form input[type="datetime-local"],
.webinar-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.webinar-form input[type="checkbox"] {
    margin-right: 10px;
}

.webinar-form .submit-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #FE691F; /* Dark green button */
    border: none;
    border-radius: 30px; /* Fully rounded button */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.webinar-form .submit-button:hover {
    background-color: #d05214; /* Darker green on hover */
}

/* Form message */
#form-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #f97316; /* Dark green for success messages */
}

/* Ajouter dans style.css */
.webinar-popup-content iframe {
    width: 100%;
    height: 480px;
    border: none;
}

.webinar-popup-content label a{
    text-decoration: underline;
}