/* ============================================
   ========== FORMULAIRE D'INSCRIPTION ========
   ============================================ */

.formulaire-inscription {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%; /* Ajouté pour s'assurer que le formulaire utilise tout l'espace disponible jusqu'à max-width */
}

.formulaire-inscription h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.formulaire-inscription h4 {
    color: #555;
    margin: 20px 0 15px 0;
    font-size: 18px;
}

/* Structure des rangées de formulaire */
.cfjform-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.cfjform-group.half-width {
    flex: 1;
}

/* Labels */
.formulaire-inscription label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Champs de saisie */
.formulaire-inscription input[type="text"],
.formulaire-inscription input[type="email"],
.formulaire-inscription input[type="tel"],
.formulaire-inscription textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.formulaire-inscription input[type="text"]:focus,
.formulaire-inscription input[type="email"]:focus,
.formulaire-inscription input[type="tel"]:focus,
.formulaire-inscription textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.formulaire-inscription textarea {
    resize: vertical;
    min-height: 100px;
}

/* Section paiement */
.payment-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

.payment-section p {
    margin: 10px 0;
    font-size: 16px;
}

.payment-options {
    margin: 15px 0;
}

.payment-options label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: normal;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.payment-options label:hover {
    background-color: rgba(0, 124, 186, 0.05);
}

.payment-options input[type="radio"] {
    margin-right: 10px;
    width: auto;
    transform: scale(1.2);
    cursor: pointer;
}

/* Notification de paiement */
.payment-notification {
    margin-top: 15px;
}

.payment-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 15px;
    color: #0056b3;
    line-height: 1.6;
}

/* Bouton d'inscription */
.btn-inscription {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-inscription:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.btn-inscription:active {
    transform: translateY(0);
}

/* Messages de retour */
.inscription-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.inscription-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.payment-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .formulaire-inscription {
        padding: 20px;
        margin: 10px 0;
    }
    
    .cfjform-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cfjform-group.half-width {
        flex: none;
    }
    
    .formulaire-inscription h3 {
        font-size: 20px;
    }
    
    .btn-inscription {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .formulaire-inscription {
        padding: 15px;
    }
    
    .formulaire-inscription input[type="text"],
    .formulaire-inscription input[type="email"],
    .formulaire-inscription input[type="tel"],
    .formulaire-inscription textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Nouveaux styles pour le formulaire d'inscription */
.participant-fieldset {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.participant-fieldset legend {
    font-weight: 600;
    color: #333;
    padding: 0 10px;
}

#paiement_section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

/* Styles pour les champs nom/prénom côte à côte */
#participants .cfjform-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

#participants .cfjform-group.half-width {
    flex: 1;
}

#participants .cfjform-group.half-width label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#participants .cfjform-group.half-width input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Responsive pour les champs nom/prénom */
@media (max-width: 768px) {
    #participants .cfjform-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Style pour les informations de l'événement */
.event-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.event-info p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.event-info strong {
    color: #333;
}

/* Style pour le sélecteur de session */
.event-info select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 5px;
}

/* Style responsive */
@media (max-width: 768px) {
    .event-info {
        padding: 10px;
    }
}

.inscription-success {
    background: #f0f8eb;
    border: 1px solid #c1e2b3;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    color: #3c763d;
}

.inscription-success h3 {
    color: #3c763d;
    margin-top: 0;
}

.inscription-success h4 {
    margin-bottom: 10px;
    color: #2b542c;
}

.paiement-instructions {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #3c763d;
}

.paiement-instructions ol {
    padding-left: 20px;
}

.paiement-instructions address {
    font-style: normal;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
}

.cfjform-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.formulaire-inscription {
    /* vos styles existants */
    width: 100%;
    max-width: 600px;
}

/* =====================================
   ========== ÉVÉNEMENTS ===============
   ===================================== */

.liste-evenements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.evenement-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.evenement-item:hover {
  transform: translateY(-5px);
}

.evenement-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.evenement-titre {
  font-size: 1.6rem;
  margin: 1rem auto 0.5rem;
  color: #2c3e50;
  text-align: center;
}

.evenement-meta {
  padding: 0 1.2rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.evenement-meta p {
  margin: 0.3rem 0;
	list-style: none;
}

.evenement-description-limitee,
.evenement-description {
  padding: 0 1.2rem 1rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-plus-infos {
    display: inline-block;
    background-color: rgb(207, 169, 104);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: auto;
    align-self: center;
	margin-bottom: 20px;
}

.btn-plus-infos:hover {
  background-color: #a37d45;
}

.evenement-meta-ligne {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #555;
}

.evenement-meta-ligne i {
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .liste-evenements {
    grid-template-columns: 1fr;
  }

  .evenement-titre {
    font-size: 1.4rem;
  }
}

.liste-evenements,
.liste-evenements li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.evenement-meta-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1.2rem 0;
  font-size: 0.95rem;
  color: #555;
}

.evenement-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.evenement-image-wrapper img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.evenement-categorie-bandeau {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #0055aa; /* couleur personnalisable */
    color: white;
    padding: 5px 10px;
    font-size: 0.85em;
    font-weight: bold;
    border-top-right-radius: 6px;
}

.evenement-meta-ligne {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.evenement-image-banner {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.evenement-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evenement-titre-sur-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  padding: 0 1rem;
}

/* ==============================================
   ========== DÉTAIL D'ÉVÉNEMENT ================
   ============================================== */

.evenement-details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Bannière */
.evenement-banniere {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.evenement-banniere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evenement-titre-banniere {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.evenement-categorie {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0055aa;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Conteneur infos */
.evenement-infos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Vignettes communes */
.titre-vignette {
    color: #333;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.evenement-meta-vignette,
.evenement-sessions-vignette {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Vignette métadonnées */
.meta-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.meta-item:hover {
    background: #f5f9ff;
}

.meta-item i {
    width: 25px;
    color: #007cba;
    font-size: 1.1rem;
    text-align: center;
    margin-right: 10px;
}

.meta-item span {
    flex: 1;
    font-size: 1.5rem;
}

/* Vignette sessions */
.sessions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.session-item {
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.session-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.session-date,
.session-heure {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: #555;
}

.session-date i,
.session-heure i {
    width: 25px;
    color: #007cba;
    text-align: center;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .evenement-infos-wrapper {
        grid-template-columns: 1fr;
    }
    
    .evenement-banniere {
        height: 200px;
    }
    
    .evenement-titre-banniere {
        font-size: 1.5rem;
        padding: 20px 15px 15px;
    }
}

/* Ajoutez ces styles à votre fichier CSS existant */

/* Styles pour les sessions cliquables */
.sessions-grid a.session-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sessions-grid a.session-item:hover {
    background: #e6f2ff;
    border-color: #007cba;
}

/* Styles pour le bouton Inscription */
.inscription-btn-container {
    margin-top: 20px;
    text-align: center;
}

.btn-inscription {
    display: inline-block;
    background-color: #007cba;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-inscription:hover {
    background-color: #006ba1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour l'ancre du formulaire */
#formulaire-inscription {
    scroll-margin-top: 30px; /* Pour éviter que l'ancre soit cachée sous un header fixe */
}
