/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

/* Reset et base */
* {
    margin: 0;
    /*padding: 0;*/
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #f7f6f9;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display:flex;
}

.header-content {
  /*background-color: rgba(0, 0, 0, 0.6);*/
  background-color: #3273c5;
  color: white;
  padding: 1rem;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: space-between;
  justify-content: space-between;
  align-items: center;
}

.header-img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
    color: #fff;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.topPhrase {
    background: #f2f2f2;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    margin: 0 0 4% 0;
    line-height: 1.5;
}


/* Main content */
main {
    background-color: #2eaae2;
    padding: 2% 20%;
}

/* Grille d'événements */
.event-list {
  /*max-width: 800px;*/
  width: 100%;
}

.event {
  background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #e1e5e9;
    margin: 0 0 4% 0;
    border-left: 4px solid #f43360;
}

.event:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event img {
    width: 100% !important;
    height: auto !important;
}

.event h2.bleu {
  color: #007BFF;
  margin-bottom: 0.5rem;
}

.event-date, .event-region {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-actions {
    text-align: right;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    font-weight: 600;
    text-transform: uppercase !important;
    color: white !important;
    line-height: 22px;
    background: #f43360 !important;
    padding: 5px 15px 5px 15px !important;
    margin-top: 2% !important;
    display: inline-block;
    cursor: pointer !important;
    border: 0 !important;
    border-radius: 5px !important;
    text-align: center;
    margin-right: 0 !important;
}

.btn-primary:hover {
    transition: all 0.4s ease 0s;
    background: #f0708e !important;
    color: white !important;
}

.btn-secondary {
    font-weight: 600;
    text-transform: uppercase !important;
    color: white !important;
    line-height: 22px;
    background-color: #6c757d;
    padding: 5px 15px 5px 15px !important;
    margin-top: 2% !important;
    display: inline-block;
    cursor: pointer !important;
    border: 0 !important;
    border-radius: 5px !important;
    text-align: center;
    margin-right: 0 !important;
}

.btn-secondary:hover {
    transition: all 0.4s ease 0s;
    background-color: #5a6268;
    color: white !important;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Détails d'événement */
.event-details {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.event-details h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.event-info p {
    margin-bottom: 0.5rem;
}

/* Formulaires */
.registration-form, .sub-events-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.registration-form h3, .sub-events-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Accompagnateurs */
.accompagnateur-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e1e5e9;
}

.accompagnateur-group h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.rgpd {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    align-content: flex-start;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

/* Read more */
.more-text-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.read-more-link {
    display: inline-block;
    margin-top: 5px;
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

/* Sous-événements */
.sub-events-grid {
    display: grid;
    gap: 1.5rem;
}

.period-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e1e5e9;
}

.period-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sub-event-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e1e5e9;
    transition: background-color 0.3s;
}

.sub-event-item:hover {
    background-color: #f8f9fa;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.sub-event-info strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Récapitulatifs */
.registration-summary, .complete-summary {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.summary-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.accompagnateur-item, .sub-event-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e1e5e9;
}

/* Messages */
.success-message, .success-box {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.error-messages, .error-box {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.error {
    margin-bottom: 0.5rem;
}

/* Email notification */
.email-notification {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.validation-link {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0;
}

.validation-link:hover {
    background: #5a67d8;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */

@media only screen and (max-width: 992px) {
   .header-content h1 {
    font-size: 1.2rem;
  }

}

@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .event {
    padding: 1rem;
  }
  .container {
        padding: 0 10px;
    }
    
    main {
        padding: 10px 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
   .header-content {
    padding: 0.3rem;
    flex-direction: column-reverse;
   }
   .header-content h1 {
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .event {
    padding: 1rem;
  }
  .container {
        padding: 0 10px;
    }
    
    main {
        padding: 0 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}
