/**
 * ============================================
 * FICHIER CSS PRINCIPAL - STYLES DU THÈME
 * ============================================
 * Ce fichier contient tous les styles CSS pour toutes les pages du site
 * Organisé par sections pour faciliter la maintenance
 */

/* ============================================
   POLICES PERSONNALISÉES
   ============================================
   Définition des polices personnalisées "Horizon"
 */
 
@font-face {
  font-family: 'Horizon';
  src: url('../fonts/Horizon-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   RESET CSS
   ============================================
   Réinitialise les styles par défaut du navigateur
   Assure une base cohérente pour tous les éléments
 */

/* Reset global : supprime marges, paddings et utilise box-sizing border-box */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset pour html et body */
html, body {
    margin: 0;
    padding: 0;
}

/* Configuration de base du body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* Fond de couleur beige pour la zone principale */
main {
  background-color: #FBEECF;
}

/* ============================================
   PAGE : LOGIN & REGISTER
   ============================================
   Styles pour les pages de connexion et d'inscription
   Conteneurs, formulaires, boutons et messages
 */

/* --- Containers principaux --- */
.login-container,
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
    background-color: #FBEECF;
}

.login-form-wrapper,
.register-form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 2rem 1rem;
}

/* --- Groupes de champs de formulaire --- */
/* Espacement entre chaque groupe de champs */
.form-group {
    margin-bottom: 1.5rem;
}

.register-form .form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #6B1504;
    font-size: 1rem;
    line-height: 1.5;
}

.form-group label .label-hint {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6B1504;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(107, 21, 4, 0.4);
    border: 2px solid #6B1504;
    border-radius: 12px;
    font-size: 1rem;
    color: #6B1504;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="password"]:hover,
.form-group input[type="url"]:hover,
.form-group input[type="number"]:hover,
.form-group textarea:hover,
.form-group select:hover {
    background: #FBEECF;
    border-color: #EF9A31;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #EF9A31;
    background: #FBEECF;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Input de type file (upload) - styles spécifiques */
.form-group input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

/* Textarea - redimensionnable verticalement avec hauteur minimale */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select - curseur pointer pour indiquer qu'il est cliquable */
.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #FBEECF;
    color: #6B1504;
}

/* --- Upload de fichier personnalisé --- */
/* Wrapper pour les boutons d'upload personnalisés
   Utilisé pour la photo de profil et les documents de qualification */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.file-upload-btn {
    width: 60px;
    height: 60px;
    background: rgba(107, 21, 4, 0.4);
    border: 2px solid #6B1504;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.file-upload-btn:hover {
    background: #FBEECF;
    border-color: #EF9A31;
}

.file-upload-btn .upload-icon {
    font-size: 2rem;
    font-weight: bold;
    color: #6B1504;
    line-height: 1;
}

.file-name-display {
    color: #6B1504;
    font-size: 0.9rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.form-group label .file-hint {
    display: block;
    font-size: 0.875rem;
    color: #6B1504;
    opacity: 0.7;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* --- Boutons de soumission et navigation --- */
/* Bouton de soumission circulaire pour la connexion
   Bouton rond orange avec icône de validation */
.login-submit-btn {
    width: 60px;
    height: 60px;
    background: #EF9A31;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-submit-btn:hover {
    background: #d8891f;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.login-submit-btn svg {
    width: 24px;
    height: 24px;
}

/* Bouton avec flèche pour navigation "Suivant" dans les formulaires
   Bouton transparent avec icône de flèche */
.arrow-submit-btn {
    width: auto;
    height: auto;
    color: #EF9A31;
    border: none;
    background: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 0;
    padding: 0;
    box-shadow: none;
}

.arrow-submit-btn:hover {
    background: none;
    transform: scale(1.1);
    box-shadow: none;
}

.arrow-submit-btn img {
    width: 24px;
    height: 24px;
}

/* Bouton avec flèche pour navigation "Retour" dans les formulaires
   Même style que arrow-submit-btn mais avec flèche inversée */
.arrow-back-btn {
    width: auto;
    height: auto;
    color: #EF9A31;
    border: none;
    background: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    text-decoration: none;
}

.arrow-back-btn:hover {
    background: none;
    transform: scale(1.1);
    box-shadow: none;
}

.arrow-back-btn img {
    width: 24px;
    height: 24px;
    transform: scaleX(-1);
}

/* --- Étapes du formulaire d'inscription --- */
/* Affichage des étapes : une seule étape visible à la fois */
.register-step {
    display: block;
}

.register-step.hidden {
    display: none;
}

/* Actions du formulaire : conteneur pour les boutons Retour/Suivant */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    gap: 1rem;
}

/* Les flèches sont côte à côte dans les formulaires d'inscription (desktop et mobile) */
.register-form .form-actions {
    justify-content: center;
    gap: 2rem;
}

.register-form .form-actions .arrow-back-btn,
.register-form .form-actions .arrow-submit-btn {
    margin: 0;
}

/* --- Messages d'erreur et de succès --- */
/* Message d'erreur : texte orange sur fond transparent */
.error-message {
    color: #EF9A31;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}


/* --- Lien d'inscription --- */
.register-link,
.login-link {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6B1504;
    font-size: 1rem;
}

.register-link a,
.login-link a {
    color: #EF9A31;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link a:hover,
.login-link a:hover {
    color: #d8891f;
    text-decoration: underline;
}

.register-arrow {
    width: 20px;
    height: auto;
    margin-left: 0.25rem;
}

/* Réduction de la taille en mobile */
@media (max-width: 767px) {
    .register-link,
    .login-link {
        font-size: 0.875rem;
    }
    
    .register-arrow {
        width: 16px;
    }
}

/* ============================================
   PAGE : HEADER
   ============================================
   Styles pour l'en-tête du site (logo, navigation)
   Responsive avec menu hamburger pour mobile
 */

/* --- Header principal --- */
/* Conteneur de l'en-tête avec fond beige et z-index élevé pour rester au-dessus */
.accueil-header {
  background-color: #FBEECF;
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

/* --- Logo --- */
/* Styles pour le logo (image + texte) */
.logo-symbol {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: auto;
  max-height: 60px;
}

.logo-text {
  color: #EF9A31;
  font-family: 'Horizon', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-left: 10px;
}

/* --- Navigation desktop --- */
/* Espacement entre les liens de navigation */
.desktop-nav {
  gap: 30px;
}

/* Style des liens de navigation : couleur jaune avec effet hover */
.nav-link {
  color: #EF9A31;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

/* Changement de couleur au survol */
.nav-link:hover {
  color: #6B1504;
}

/* Animation de soulignement au survol (ligne rouge qui s'étend) */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #6B1504;
  transition: width 0.3s ease;
}

/* --- Menu hamburger mobile --- */
/* Bouton hamburger : 3 lignes qui se transforment en X quand actif */
.hamburger-menu {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  margin-left: auto;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #EF9A31;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   PAGE : ACCUEIL (FRONT-PAGE)
   ============================================
   Styles pour la page d'accueil
   Sections : Hero, Témoignages, Communauté
 */

/* --- Section Hero --- */
/* Section principale en haut de la page d'accueil avec logo et titre */
.hero-section,
.community-section {
  background-color: #FBEECF;
}

.hero-section {
  padding: 60px 20px 80px;
  min-height: auto;
}

.logoAccueil {
  color: #6B1504;
  text-align: center;
  font-family: 'Horizon', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 5px;
  margin-bottom: 2px;
  width: 100%;
  max-width: 100%;
}

.subtitle-hero {
  color: #6B1504;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.4;
  width: 100%;
  max-width: 100%;
  font-size: 24px;
  margin-bottom: 25px;
}

.descriptionAccueil {
  color: #6B1504;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  font-weight: 400;
  max-width: 331px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .logoAccueil {
    font-size: 36px;
    letter-spacing: 4px;
  }
  
  .subtitle-hero {
    font-size: 20px;
  }
  
  .descriptionAccueil {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 80px 20px 50px;
  }
  
  .logoAccueil {
    font-size: 48px;
    letter-spacing: 7px;
    margin-bottom: 3px;
  }
  
  .subtitle-hero {
    margin-bottom: 40px;
  }
  
  .descriptionAccueil {
    font-size: 24px;
    max-width: 1068px;
    padding: 0 20px;
  }
}


/* --- Section Témoignages --- */
.testimonial-section {
  padding: 20px 20px 40px;
  margin-top: -20px;
  position: relative;
  z-index: 5;
  background-color: transparent;
}

.testimonial-box {
  border: 2px solid #6B1504;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .testimonial-section {
    margin-top: 0;
    padding: 5px 20px;
  }
  
  .testimonial-box {
    padding: 25px;
    min-height: 200px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 10;
  }
  
  .testimonial-box:hover {
    background-color: #6B1504;
    border-color: #6B1504;
  }
  
  .testimonial-box:hover .testimonial-text {
    color: #FBEECF !important;
  }
  
  .testimonial-box:hover .stars-rating,
  .testimonial-box:hover .testimonial-author {
    color: #EF9A31 !important;
  }
  
  .testimonial-text {
    font-size: 14px;
  }
  
  .testimonial-author {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  .testimonial-box {
    padding: 30px;
    min-height: 230px;
  }
  
  .testimonial-text {
    font-size: 16px;
  }
  
  .testimonial-author {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .testimonial-box {
    min-height: 260px;
  }
}

.stars-rating {
  margin-bottom: 20px;
}

.star {
  font-size: 24px;
  margin: 0 2px;
}

.star-filled {
  color: #EF9A31;
}

.star-empty {
  color: #ccc;
  opacity: 0.5;
}

.testimonial-text,
.testimonial-author {
  font-family: 'Open Sans', sans-serif;
  transition: color 0.3s ease;
}

.testimonial-text {
  color: #6B1504;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author {
  color: #EF9A31;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  margin-top: auto;
  flex-shrink: 0;
}


.testimonial-section .carousel {
  position: relative;
  padding-right: 50px;
}

.testimonial-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  z-index: 10;
  cursor: pointer;
}

.carousel-item {
  display: block;
}

.carousel-item.active {
  display: block;
}

@media (max-width: 767px) {
  .testimonial-arrow {
    right: 0 !important;
    position: absolute !important;
  }
  
  .carousel-item {
    display: block !important;
  }
  
  .carousel-item:not(.active) {
    display: none !important;
  }
}

.testimonial-arrow .carousel-control-next-icon {
  background-image: url('../images/Arrow.svg');
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Section Communauté --- */
.community-section {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}

.vague-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
  z-index: 2;
  opacity: 0.7;
  align-self: flex-start;
  margin-top: -22vw;
}

.rejoindre {
  color: #FBEECF;
  font-size: 28px;
  margin-bottom: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.nousRejoindre {
  color: #FBEECF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 30px;
  font: open sans;
}

.community-container {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow-y: visible;
  margin: 0;
  padding: 0;
}

.tree-overlay {
  position: absolute;
  top: -100px;
  left: calc(-50vw + 50%);
  width: 100vw;
  height: calc(100% + 100px);
  z-index: 1;
  overflow-y: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tree-overlay .arbre-img {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 95% !important;
  max-width: 1200px !important;
  height: auto;
  object-fit: contain;
  z-index: 1;
  margin-bottom: 0;
}

.community-content {
  position: relative;
  z-index: 3;
  padding: 40px 20px;
}

.nousRejoindre p {
  margin-bottom: 20px;
}

.nousRejoindre p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .community-section {
    padding: 120px 0 0;
  }
  
  .rejoindre {
    font-size: 36px;
    margin-bottom: 35px;
  }
  
  .nousRejoindre {
    font-size: 16px;
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .nousRejoindre p {
    margin-bottom: 25px;
  }
  
  .tree-overlay .arbre-img {
    bottom: -150px;
    width: 70% !important;
    max-width: 1050px !important;
    z-index: 1;
  }
  
  .vague-img {
    margin-top: -27vw;
  }
}

@media (max-width: 767px) {
  .tree-overlay .arbre-img {
    width: 150% !important;
    max-width: 1200px !important;
  }
  
  .vague-img {
    margin-top: -5vw;
  }
  
  .rejoindre {
    font-size: 24px;
  }
  
  .nousRejoindre {
    font-size: 14px;
  }
}

.nousRejoindre .highlight {
  color: #EF9A31;
  font-weight: 700;
}

/* --- Bouton principal générique --- */
.btn-primary {
  background: none !important;
  border: 2px solid #EF9A31;
  color: #6B1504;
  padding: 12px 40px;
  border-radius: 25px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  outline: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #EF9A31 !important;
  color: #FBEECF;
  outline: none;
  border: 2px solid #EF9A31;
}

/* Variante pour fond sombre (section communauté) */
.community-section .btn-primary {
  color: #FBEECF;
}

.community-section .btn-primary:hover,
.community-section .btn-primary:focus {
  color: #FBEECF;
  outline: none;
  border: 2px solid #EF9A31;
}


/* ============================================
   PAGE : FOOTER
   ============================================ */
/* --- Footer principal --- */
.accueil-footer {
  background-color: #6B1504;
  padding: 80px 20px 50px;
  color: #FBEECF;
  position: relative;
  z-index: 10;
}

.footer-top {
  margin-bottom: 30px;
}

.footer-left {
  text-align: left;
}

/* --- Logo footer --- */
.footer-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo-img {
  width: 50px;
  height: auto;
  max-height: 70px;
}

.footer-logo {
  color: #EF9A31;
  font-family: 'Horizon', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.38em;
  margin: 0;
  text-align: center;
}

.footer-subtitle {
  color: #EF9A31;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* --- Réseaux sociaux et navigation --- */
.footer-social-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon-img {
  width: 30px;
  height: 30px;
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav-link {
  color: #EF9A31;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: #FBEECF;
}

/* --- Séparateur --- */
.footer-separator {
  width: 100%;
  height: 1px;
  background-color: #FBEECF;
  margin: 30px 0;
}

/* --- Copyright et liens légaux --- */
.footer-bottom {
  margin-top: 20px;
}

.footer-copyright {
  text-align: left;
}

.copyright {
  color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  text-align: left;
  margin: 0;
}

.footer-legal {
  text-align: right;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

@media (max-width: 767px) {
  .footer-left {
    text-align: center;
  }
  
  .footer-logo-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo {
    text-align: center !important;
    font-size: 24px !important;
  }
  
  .footer-subtitle {
    color: #FBEECF;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
  }
  
  .footer-social-nav-wrapper,
  .social-icons {
    justify-content: center;
  }
  
  .footer-mobile-links {
    text-align: center;
  }
  
  .footer-links-mobile-first-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  
  .footer-links-mobile-second-row {
    margin-bottom: 15px;
  }
  
  .footer-copyright-mobile {
    text-align: center;
  }
  
  .footer-copyright-mobile .copyright {
    text-align: center;
  }
}

/* ============================================
   PAGE : MENU OFFCANVAS (MOBILE)
   ============================================ */
/* --- Offcanvas --- */
.offcanvas {
  background-color: #FBEECF;
}

.offcanvas-header {
  border-bottom: none;
  justify-content: flex-end;
  padding: 1rem 1rem 0;
}

.offcanvas-header .btn-close {
  filter: invert(72%) sepia(88%) saturate(1600%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

.offcanvas-header .btn-close:hover {
  opacity: 0.8;
}

/* --- Liste du menu --- */
.menu-list {
  list-style: none;
  padding: 30px 0 0;
  margin: 0;
  text-align: center;
}

.menu-list li {
  margin-bottom: 25px;
}

.menu-list li:first-child {
  margin-top: 0;
}

.menu-list a,
.menu-list a:link,
.menu-list a:visited {
  color: #EF9A31 !important;
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.menu-list li:hover a,
.menu-list a:hover,
.menu-list a:focus {
  color: #6B1504 !important;
}

/* ============================================
   RESPONSIVE
   ============================================
   Media queries pour adapter le design aux différentes tailles d'écran
   Mobile-first : les styles de base sont pour mobile, puis on adapte pour desktop
 */

/* Tablettes et petits écrans (max 768px) */
@media (max-width: 768px) {
  .footer-logo {
    font-size: 36px;
  }
  
  .testimonial-arrow {
    right: -30px;
  }
}

/* Petits mobiles (max 576px) */
@media (max-width: 576px) {
  .logoAccueil {
    font-size: 28px;
    letter-spacing: 2px;
  }
  
  .subtitle-hero {
    font-size: 18px;
  }
  
  .testimonial-arrow {
    right: -20px;
    width: 30px;
    height: 30px;
  }
  
  .footer-links-mobile-first-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================
   Animations et transitions pour améliorer l'expérience utilisateur
   Carrousel de témoignages avec transitions fluides
 */

/* Désactivation des animations par défaut du carrousel Bootstrap
   pour un contrôle personnalisé */
.testimonial-section .carousel .testimonial-box {
  transform: none !important;
  transition: none !important;
}

.testimonial-section .carousel-item {
  transition: transform 0.6s ease-in-out;
}

.testimonial-section .carousel-item.active {
  display: block !important;
}

.testimonial-section .carousel-inner {
  overflow: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   PAGE : TROUVER UN COURS
   ============================================
   Styles pour la page de recherche de cours
   Barre de recherche et grille de cartes de professeurs
 */

/* Section principale de la page */
.trouver-cours-section {
  background-color: #FBEECF;
  padding: 40px 20px 60px;
  min-height: 70vh;
}

.trouver-cours-section .page-title {
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

.trouver-cours-section .page-description {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-weight: 400;
}

/* --- Barre de recherche --- */
/* Conteneur de la barre de recherche avec icône de loupe */
.search-bar-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-input {
  width: 100%;
  padding: 15px 60px 15px 20px;
  border: 2px solid #EF9A31;
  border-radius: 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #6B1504;
  background-color: #FBEECF;
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  border-color: #6B1504;
}

.search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B1504;
  transition: opacity 0.3s ease;
}

.search-button:hover {
  opacity: 0.7;
}

.search-button .loupe-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: none;
  border: none;
}

/* Message "aucun résultat" */
.no-results-message {
  text-align: center;
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 40px 20px;
  margin: 20px 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateY(-10px);
}

.no-results-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grille des professeurs */
.teachers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* --- Cartes de professeurs --- */
/* Carte individuelle de professeur avec effet hover */
.teacher-card {
  background-color: #6B1504;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.teacher-card:hover .teacher-info {
  background-color: #EF9A31;
}

.teacher-card:hover .teacher-name,
.teacher-card:hover .teacher-location {
  color: #6B1504;
}

.teacher-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #ddd;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-info {
  padding: 15px;
  transition: background-color 0.3s ease;
}

.teacher-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.teacher-left,
.teacher-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.teacher-name {
  color: #EF9A31;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  transition: color 0.3s ease;
}

.teacher-instrument {
  color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.teacher-location {
  color: #EF9A31;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  text-align: right;
  transition: color 0.3s ease;
}

.teacher-format {
  color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  text-align: right;
}

@media (min-width: 768px) {
  .trouver-cours-section .page-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .trouver-cours-section .page-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .no-results-message {
    font-size: 20px;
    padding: 60px 20px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .teacher-image {
    height: 220px;
  }
  
  .teacher-info {
    padding: 20px;
  }
  
  .teacher-name {
    font-size: 20px;
  }
  
  .teacher-instrument {
    font-size: 16px;
  }
  
  .teacher-location {
    font-size: 16px;
  }
  
  .teacher-format {
    font-size: 16px;
  }
}

/* --- Pagination --- */
/* Conteneur et styles pour la pagination des résultats de recherche */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #6B1504;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-number:hover {
  background-color: #EF9A31;
  color: #fff;
}

.page-number.active {
  background-color: #EF9A31;
  color: #fff;
}

.page-dots {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  padding: 0 5px;
}

/* ============================================
   PAGE : DÉCOUVRIR
   ============================================
   Styles pour la page de découverte des artistes
   Section hero, barre de recherche et grille de cartes d'artistes
 */

/* --- Section Hero Découvrir --- */
/* Section d'introduction en haut de la page */
.decouvrir-hero-section {
  background-color: #FBEECF;
  padding: 60px 20px 40px;
}

.decouvrir-title {
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

/* --- Classe commune pour les titres de page (h1) --- */
.page-title {
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.decouvrir-description {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.decouvrir-description b {
  font-weight: 700;
}

/* --- Section Artistes en vedette --- */
.decouvrir-artists-section {
  background-color: #FBEECF;
  position: relative;
  padding: 0;
  overflow-y: visible;
  max-width: 100vw;
  overflow-x: clip;
}

.decouvrir-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow-y: visible;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .decouvrir-hero-section {
    padding: 80px 20px 50px;
  }
  
  .decouvrir-title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .page-title {
    font-size: 36px;
    margin-bottom: 50px;
  }
  
  .decouvrir-description {
    font-size: 16px;
  }
  
  .decouvrir-container {
    min-height: 500px;
  }
}

.decouvrir-overlay {
  position: absolute;
  top: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  height: 100%;
  z-index: 1;
  overflow-y: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.decouvrir-double-vague {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
  z-index: 2;
  opacity: 0.7;
  align-self: flex-start;
  margin-top: -2vw;
}

.decouvrir-overlay .decouvrir-feuille {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: auto;
  object-fit: contain;
  z-index: 1;
  
}

@media (max-width: 767px) {
  .decouvrir-double-vague {
    margin-top: 30vw;
    transform: scaleY(3);
    transform-origin: center;
  }
  
  .decouvrir-overlay .decouvrir-feuille {
    width: 300px;
    transform: rotate(-50deg);
    bottom: -150px;
    right: -10px;
  }
  
  .featured-artists {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
  }
  
  .featured-artist-circle {
    width: calc(33.333% - 7px);
    flex-basis: calc(33.333% - 7px);
    flex-shrink: 0;
  }
  
  .featured-artist-circle .artist-profile-img {
    width: 80px;
    height: 80px;
  }
  
  .featured-artist-circle .artist-label {
    font-size: 10px;
    padding: 4px 12px;
    bottom: -8px;
  }
  
  .artist-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .artist-card-right {
    width: 100%;
  }
  
  .video-thumbnail-wrapper {
    width: 100%;
    height: 180px;
  }
}

.featured-artists {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  position: relative;
  z-index: 3;
}

.featured-artist-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.artist-profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #6B1504;
  object-fit: cover;
  position: relative;
  transition: border-color 0.3s ease;
}

.featured-artist-circle:hover .artist-profile-img {
  border-color: #EF9A31;
}

.artist-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #EF9A31;
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
  z-index: 4;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.featured-artist-circle:hover .artist-label {
  background-color: #6B1504;
  color: #EF9A31;
}

/* --- Section Recherche --- */
.decouvrir-search-section {
  background-color: #FBEECF;
  padding: 30px 20px 10px;
}

/* --- Section Cartes d'artistes --- */
.decouvrir-cards-section {
  background-color: #FBEECF;
  padding: 10px 20px 60px;
}

.artist-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 8px;
}

.artist-card {
  background-color: #FBEECF;
  border: 2px solid #6B1504;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.artist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #EF9A31;
  border-color: transparent;
}

.artist-card:hover .artist-card-profile {
  border-color: #6B1504;
}

.artist-card:hover .artist-card-name {
  color: #6B1504;
}

.artist-card:hover .artist-card-instrument,
.artist-card:hover .artist-card-video-title {
  color: #FBEECF;
}

.artist-card-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.artist-card-profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #EF9A31;
  transition: border-color 0.3s ease;
}

.artist-card-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.artist-card-name {
  color: #EF9A31;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-card-instrument {
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.artist-card-video-title {
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.artist-card-right {
  flex-shrink: 0;
}

.video-thumbnail-wrapper {
  position: relative;
  display: block;
  width: 200px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .decouvrir-overlay .decouvrir-feuille {
    width: 650px;
    bottom: -550px;
    right: 200px;
    transform-origin: center center;
    transform: rotate(-65deg);
  }
  
  .featured-artists {
    gap: 70px;
    padding: 60px 20px;
    margin-top: 100px;
  }
  
  .artist-profile-img {
    width: 200px;
    height: 200px;
  }
  
  .artist-label {
    font-size: 18px;
    padding: 10px 30px;
    bottom: -15px;
  }
  
  .decouvrir-search-section {
    padding: 40px 20px 15px;
  }
  
  .decouvrir-cards-section {
    padding: 15px 20px 80px;
  }
  
  .artist-cards-grid {
    gap: 30px;
  }
  
  .artist-card {
    padding: 25px;
  }
  
  .artist-card-profile {
    width: 120px;
    height: 120px;
  }
  
  .artist-card-name {
    font-size: 20px;
  }
  
  .artist-card-instrument {
    font-size: 16px;
  }
  
  .artist-card-video-title {
    font-size: 15px;
  }
  
  .video-thumbnail-wrapper {
    width: 250px;
    height: 150px;
  }
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover .youtube-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}


/* ============================================
   PAGE : REGISTER CHOICE (CHOIX PROF/ÉLÈVE)
   ============================================
   Styles pour la page de choix du type d'inscription
   Permet à l'utilisateur de choisir entre "Élève" et "Professeur"
 */

/* Conteneur principal centré verticalement et horizontalement */
.register-choice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem;
  background-color: #FBEECF;
}

.register-choice-wrapper {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.register-choice-description {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 3rem;
}

.register-choice-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-choice {
  border: 2px solid #EF9A31;
  color: #6B1504;
  padding: 30px 40px;
  border-radius: 25px;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
}

.btn-choice:hover,
.btn-choice:focus {
  background-color: #EF9A31;
  color: #FBEECF;
  outline: none;
  border: 2px solid #EF9A31;
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.choice-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.choice-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: inherit;
}

.choice-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
}

@media (max-width: 768px) {
  .register-choice-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .btn-choice {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
  
  .register-choice-description {
    font-size: 16px;
    margin-bottom: 2rem;
  }
}

/* ============================================
   PAGE : WELCOME (BIENVENUE APRÈS CONNEXION)
   ============================================
   Styles pour la page de bienvenue après connexion/inscription
   Affiche l'avatar, le nom de l'utilisateur et les boutons d'action
 */

/* Conteneur principal centré */
.welcome-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem;
  background-color: #FBEECF;
}

.welcome-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.welcome-avatar {
  margin: 30px 0;
}

.welcome-avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.welcome-title {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 20px;
  line-height: 1.4;
}

.welcome-description {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 30px;
  line-height: 1.6;
}

.registration-success-message {
  margin-bottom: 20px;
}

.registration-success-message .welcome-title {
  color: #6B1504;
  font-size: 28px;
  margin-bottom: 15px;
}

.registration-success-message .welcome-description {
  color: #6B1504;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
}

.welcome-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.welcome-buttons .btn-primary {
  min-width: 200px;
  background: none !important;
}

.welcome-buttons .btn-primary:hover {
  background-color: #EF9A31 !important;
  color: #FBEECF !important;
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 20px;
  }
  
  .welcome-description {
    font-size: 14px;
  }
  
  .welcome-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .welcome-buttons .btn-primary {
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }
  
  .welcome-avatar img {
    width: 120px;
    height: 120px;
  }
}

/* ============================================
   PAGE : REGISTER STEPS (FORMULAIRE MULTI-ÉTAPES)
   ============================================ */
.register-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(107, 21, 4, 0.4);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background-color: #6B1504;
  border-radius: 10px;
  transition: width 0.3s ease;
}


.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-back {
  border: 2px solid #6B1504;
  color: #6B1504;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  outline: none;
}

.btn-back:hover,
.btn-back:focus {
  background-color: #6B1504;
  color: #FBEECF;
  outline: none;
}

@media (max-width: 768px) {
  /* Pour les autres boutons (btn-back, submit-btn), colonne */
  .form-actions .btn-back,
  .form-actions .submit-btn {
    width: 100%;
  }
}

/* ============================================
   PAGE : PROF PROFILE
   ============================================
   Styles pour la page de profil de professeur
   Design avec fond beige, carte de profil, témoignages et vidéo
 */

/* Sections de la page Prof */
.prof-profile-section,
.prof-about-section,
.prof-testimonials-section,
.prof-video-section {
  padding: 2.5rem 0;
}

/* Carte de profil */
.prof-profile-card {
  background-color: #FBEECF;
  border: 2px solid #6B1504;
  border-radius: 25px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.prof-profile-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.prof-profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prof-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6B1504;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.prof-specializations {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.specialization {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  color: #EF9A31;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Open Sans', sans-serif;
}

.prof-details {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.detail-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  color: #6B1504;
  font-size: 1rem;
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
}

.prof-contact-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #6B1504;
  border: 2px solid #6B1504;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
}

.prof-contact-btn:hover {
  background-color: #EF9A31;
  color: #FBEECF;
  border-color: #EF9A31;
}

.prof-profile-image {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.prof-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section À propos */
.prof-about {
  margin-bottom: 0;
}

.prof-about p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #6B1504;
  margin: 0;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}

/* Section témoignages */
.prof-testimonials {
  margin-bottom: 2.5rem;
}

/* Centrer les témoignages peu importe leur nombre */
.prof-testimonials .row.justify-content-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Utiliser les mêmes styles que testimonial-section pour les témoignages de prof */
.prof-testimonials .testimonial-box {
  border: 2px solid #6B1504;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  position: relative;
  width: 100%;
}

.prof-testimonials .carousel {
  position: relative;
  padding-right: 50px;
}

/* Section vidéo */
.prof-video-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #6B1504;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.prof-video-subtitle {
  font-size: 1.125rem;
  color: #6B1504;
  margin-bottom: 1.5rem;
  font-family: 'Open Sans', sans-serif;
}

.prof-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.prof-video-wrapper .video-thumbnail-wrapper {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prof-video-wrapper .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive pour desktop - ajustements */
@media (min-width: 992px) {
  .prof-profile-section,
  .prof-about-section,
  .prof-testimonials-section,
  .prof-video-section {
    padding: 3rem 0;
  }
  
  .prof-profile-card {
    padding: 3rem;
  }
  
}

/* Responsive pour tablette et mobile */
@media (max-width: 991px) {
  .prof-profile-section,
  .prof-about-section,
  .prof-testimonials-section,
  .prof-video-section {
    padding: 1.5rem 0;
  }
  
  .prof-profile-card {
    padding: 1.5rem;
  }
  
  .prof-profile-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .prof-profile-image {
    order: -1; /* Image en premier en mobile */
    width: 70%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    border-radius: 8px;
  }
  
  .prof-profile-info {
    width: 100%;
    align-items: center;
  }
  
  .prof-name {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .prof-specializations {
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }
  
  .prof-details {
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  
  .prof-contact-btn {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
  }
  
  .prof-about p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ============================================
   PAGE : MESSAGERIE
   ============================================
   Styles pour la page de messagerie
   Layout en deux colonnes : sidebar + chat
 */

/* Layout principal */
.messagerie-layout {
  display: flex;
  height: calc(100vh - 120px); /* Hauteur moins header/footer */
  min-height: 0;
  background-color: #FBEECF;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar gauche */
.messagerie-sidebar {
  width: 400px;
  background-color: #FBEECF;
  border-right: 1px solid rgba(107, 21, 4, 0.1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 0 1.5rem;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Barre de recherche dans la messagerie */
.messagerie-sidebar .search-bar-wrapper {
  width: 100%;
  max-width: none; /* on annule le max-width global (600px) */
  margin: 0 0 1.5rem 0; /* aligné avec les .messagerie-conv */
  flex-shrink: 0;
}

/* Liste des conversations */
.messagerie-conv-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
}

/* Carte de conversation */
.messagerie-conv {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 15px;
  background-color: #FBEECF;
  border: 2px solid #EF9A31;
  cursor: pointer;
  transition: all 0.3s ease;
}

.messagerie-conv.active {
  background-color: #EF9A31;
  border-color: #EF9A31;
}

.messagerie-conv.active .messagerie-name {
  color: #FBEECF;
  font-weight: 600;
}

.messagerie-conv.active .messagerie-last {
  color: #6B1504; /* rouge du thème pour le dernier message actif */
}

/* Avatar dans la liste */
.messagerie-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.messagerie-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texte de la conversation */
.messagerie-conv-text {
  flex: 1;
  min-width: 0;
}

.messagerie-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #EF9A31; /* jaune/orange du thème par défaut */
  margin-bottom: 0.25rem;
}

.messagerie-last {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(107, 21, 4, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Couleurs au survol des conversations dans la liste */
.messagerie-conv:not(.active):hover {
  background-color: #EF9A31; /* comme l'état actif */
  border-color: #EF9A31;
}

.messagerie-conv:not(.active):hover .messagerie-name {
  color: #FBEECF; /* même couleur que l'état actif */
  font-weight: 600;
}

.messagerie-conv:not(.active):hover .messagerie-last {
  color: #6B1504; /* rouge du thème au hover */
}

/* Message aucun résultat dans la messagerie */
.messagerie-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 1.5rem;
}

.messagerie-no-results p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: rgba(107, 21, 4, 0.7);
  margin: 0;
}

.messagerie-new-message-btn {
  padding: 0.875rem 2rem;
  background-color: #EF9A31;
  color: #FBEECF;
  border: 2px solid #EF9A31;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.messagerie-new-message-btn:hover {
  background-color: #6B1504;
  border-color: #6B1504;
  color: #FBEECF;
  transform: scale(1.05);
}

.messagerie-new-message-btn:active {
  transform: scale(0.98);
}

/* Section chat */
.messagerie-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #FBEECF;
}

/* En-tête du chat */
.messagerie-chat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(107, 21, 4, 0.1);
  position: relative;
}

.messagerie-back-btn {
  position: absolute;
  left: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6B1504;
  cursor: pointer;
  display: none; /* Caché en desktop */
}

.messagerie-chat-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #6B1504;
  margin: 0;
}

/* Thread de conversation */
.messagerie-thread {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Contenu de conversation */
.conversation-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Ligne de bulle */
.bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 70%;
}

.bubble-row.received {
  align-self: flex-start;
}

.bubble-row.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* Avatar dans les bulles */
.bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bulle de message */
.bubble {
  padding: 1rem 1.25rem;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.bubble-row.received .bubble {
  background-color: rgba(239, 154, 49, 0.3); /* Orange clair */
  color: #6B1504;
  border-top-left-radius: 5px;
}

.bubble-row.sent .bubble {
  background-color: rgba(239, 154, 49, 0.7); /* Orange foncé */
  color: #6B1504;
  border-top-right-radius: 5px;
}

/* Zone de saisie */
.messagerie-input {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(107, 21, 4, 0.1);
  background-color: #FBEECF;
}

.messagerie-input input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid #EF9A31;
  border-radius: 25px;
  background-color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #6B1504;
  outline: none;
}

.messagerie-input input::placeholder {
  color: rgba(107, 21, 4, 0.5);
}

.messagerie-input button {
  width: auto;
  height: auto;
  border-radius: 0;
  background-color: transparent;
  border: none;
  color: #FBEECF;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.messagerie-input button:hover {
  background-color: transparent;
  transform: scale(1.05);
}

.messagerie-input .send-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.messagerie-chat-header .back-icon {
  width: 24px;
  height: 24px;
  display: block;
  transform: scaleX(-1);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .messagerie-layout {
    height: calc(100vh - 100px);
    position: relative;
  }
  
  .messagerie-sidebar {
    width: 100%;
    border-right: none;
  }
  
  .messagerie-chat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
  }
  
  .messagerie-layout.show-chat .messagerie-sidebar {
    display: none;
  }
  
  .messagerie-layout.show-chat .messagerie-chat {
    display: flex;
  }
  
  .messagerie-back-btn {
    display: block;
  }
  
  .bubble-row {
    max-width: 85%;
  }
  
  .messagerie-thread {
    padding: 1.5rem 1rem;
  }
}

/* ============================================
   PAGE : ESPACE PERSONNALISÉ (AUJOURD'HUI)
   ============================================
   Layout avec superposition vague + feuille
   et cartes d'événements comme sur la maquette
*/

.espacepersonnalise-page {
  background-color: #FBEECF;
}

.espacepersonnalise-container {
  position: relative;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  background-color: #FBEECF;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 140px 20px 60px; /* plus d'espace sous le header */
}

.espacepersonnalise-bg-image,
.espacepersonnalise-vague {
  position: absolute;
  top: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.espacepersonnalise-bg-image .bg-feuille {
  position: absolute;
  bottom: -550px; /* feuille légèrement remontée */
  left: 50%;
  transform: translateX(-50%);
  width: 47.5%; /* taille réduite de 50% (valeur par défaut) */
  max-width: 600px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

.espacepersonnalise-vague .vague-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
  opacity: 0.7;
  margin-top: -20vw; 
}


@media (min-width: 768px) {
  .espacepersonnalise-container {
    padding: 180px 20px 80px; /* idem en desktop */
  }
  
  .espacepersonnalise-bg-image .bg-feuille {
    bottom: -300px; /* feuille remontée sur desktop pour être plus visible */
    width: 60%; /* feuille plus large sur desktop */
  }
  
  .espacepersonnalise-vague .vague-image {
    margin-top: -24vw; /* vague légèrement remontée sur desktop */
  }
  
  .espacepersonnalise-greeting {
    font-size: 32px;
    margin-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .espacepersonnalise-container {
    overflow: visible; /* permet à la vague de dépasser pour atteindre le footer */
    padding-bottom: 40px; /* espace réduit entre le contenu et le footer */
  }
  
  .espacepersonnalise-bg-image,
  .espacepersonnalise-vague {
    top: auto; /* annule le top: 0 par défaut */
    bottom: 0; /* colle au footer */
    align-items: flex-end; /* aligne le contenu en bas (feuille et vague sont posées sur le footer) */
  }
  
  .espacepersonnalise-bg-image {
    height: 100vh; /* hauteur fixe pour la feuille */
    overflow-x: clip;
  }
  
  .espacepersonnalise-bg-image .bg-feuille {
    bottom: 0; 
    width: 115%; /* légère sur‑taille pour que le haut dépasse encore légèrement la vague sans être trop haut */
    max-width: 2000px;
  }
  
  .espacepersonnalise-vague {
    height: 220vh; /* vague plus longue */
    top: 10vh; /* vague touche footer */
    min-height: auto;
    overflow: hidden;
  }
  
  .espacepersonnalise-vague .vague-image {
    position: absolute;
    top: 0; /* ancre les arrondis en haut du conteneur .espacepersonnalise-vague */
    left: 0;
    width: 100%;
    height: 100%; /* remplit la hauteur visible définie par .espacepersonnalise-vague */
    object-fit: cover; /* coupe le bas du SVG qui dépasse */
    object-position: top center; /* garde les arrondis du haut bien alignés */
  }
  
  .espacepersonnalise-content {
    margin-top: 60px; /* descend la section principale plus bas en mobile */
  }
  
  .btn-all-messages {
    margin-bottom: 10px; /* espace réduit sous le bouton en mobile */
  }
  
  .espacepersonnalise-nav-buttons {
    gap: 0.5rem; /* réduit encore plus l'espace entre les boutons */
    flex-wrap: nowrap; /* garde les trois boutons sur la même ligne */
  }
  
  .espacepersonnalise-nav-buttons .nav-btn {
    min-width: 0 !important; /* supprime la largeur minimale pour permettre un rétrécissement */
    flex: 1 1 0; /* permet aux boutons de se répartir équitablement et de rétrécir */
    padding: 0.5rem 0.75rem !important; /* réduit encore plus le padding des boutons */
    font-size: 0.75rem !important; /* réduit encore plus la taille du texte */
  }
  
  .espacepersonnalise-info-section {
    flex-direction: row; /* garde la disposition horizontale */
    gap: 1.5rem;
    align-items: center; /* centre verticalement les sections par rapport à la date */
    justify-content: center;
  }

  .info-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* centre les éléments */
  }

  .info-date-row,
  .info-time-row {
    flex-direction: column;
    align-items: center; /* centre les éléments */
    gap: 0.25rem;
  }

  .info-label {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .info-value-large {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
  }

  .time-display {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
  }

  .info-month,
  .info-location {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .info-separator {
    display: block; /* affiche le séparateur vertical */
    width: 1px;
    height: auto;
    align-self: stretch;
    background-color: rgba(251, 238, 207, 0.7);
    margin: 0 1rem;
  }
}

.espacepersonnalise-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  text-align: center;
  color: #FBEECF;
}

.espacepersonnalise-greeting {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #FBEECF;
  margin-bottom: 50px; /* plus d'espace sous la salutation */
}

.espacepersonnalise-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 70px; /* plus d'espace avant la date/heure */
  flex-wrap: wrap;
}

.espacepersonnalise-nav-buttons .nav-btn {
  min-width: 180px;
  padding: 0.85rem 2rem;
  border-radius: 20px;
  border: 2px solid #EF9A31;
  background-color: transparent;
  color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.espacepersonnalise-nav-buttons .nav-btn.active {
  background-color: #EF9A31;
  color: #6B1504;
}

.espacepersonnalise-nav-buttons .nav-btn:hover {
  background-color: #EF9A31;
  color: #6B1504;
}

.espacepersonnalise-info-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 80px; /* plus d'espace avant les événements */
  color: #FBEECF;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-date-row,
.info-time-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.info-label {
  font-size: 1.1rem;
  font-weight: 500;
}

.info-value-large {
  font-size: 3rem;
  font-weight: 800;
}

.info-month,
.info-location {
  font-size: 1.1rem;
  font-weight: 600;
}

.info-separator {
  width: 1px;
  height: 80px;
  background-color: rgba(251, 238, 207, 0.7);
}

.time-display {
  font-size: 3rem;
  font-weight: 800;
}


.espacepersonnalise-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 20px; /* plus d'espace avant le bouton messages */
  /* hauteur minimale équivalente à deux cartes pour éviter que la feuille remonte si un seul événement */
  min-height: 380px;
}

.espacepersonnalise-events > * {
  flex: 0 1 430px; /* même largeur de base pour Junia (lien) et Victor (div) */
}

.event-card-link {
  text-decoration: none;
  display: block;
}

.event-card {
  width: 100%;
  max-width: 430px; /* cartes plus larges pour tenir le titre sur une ligne */
  background-color: #FBEECF;
  border-radius: 20px;
  border: 2px solid #6B1504; /* contour rouge */
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  transition: background-color 0.3s ease;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.event-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #6B1504;
  text-align: left;
  max-width: 80%;
  transition: color 0.3s ease;
}

.event-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #EF9A31; /* jaune (couleur accent) */
  transition: color 0.3s ease;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-type {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #EF9A31; /* jaune (couleur accent) */
  transition: color 0.3s ease;
}

/* Hover sur les cartes d'événements */
.event-card-link:hover .event-card,
.event-card--custom:hover {
  background-color: #EF9A31; /* fond jaune (accent) */
  border-color: transparent; /* enlève visuellement la bordure au hover */
}

.event-card-link:hover .event-title,
.event-card--custom:hover .event-title {
  color: #FBEECF; /* beige */
}

.event-card-link:hover .event-time,
.event-card-link:hover .event-type,
.event-card--custom:hover .event-time,
.event-card--custom:hover .event-type {
  color: #6B1504; /* rouge/brun foncé */
}

.event-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.event-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-all-messages {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  border: 2px solid #EF9A31;
  color: #FBEECF;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-all-messages:hover {
  background-color: #EF9A31;
  color: #6B1504;
}

/**
 * ============================================
 * PAGE AGENDA
 * ============================================
 */

.agenda-page {
  background-color: #FBEECF;
}

.agenda-container {
  position: relative;
  min-height: calc(100vh - 120px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

/* Calendrier (colonne gauche) */

.calendar-wrapper {
  height: 100%;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.calendar-month {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #6B1504;
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #6B1504;
  text-align: center;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #6B1504;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.calendar-day-prev,
.calendar-day-next {
  opacity: 0.35;
}

/* Cercle jaune/orange au survol des jours du mois courant (40% d'opacité) */
.calendar-day:not(.calendar-day-prev):not(.calendar-day-next):hover {
  background-color: rgba(239, 154, 49, 0.4);
  color: #6B1504;
}

.calendar-day-today {
  box-shadow: 0 0 0 2px #EF9A31 inset;
}

.calendar-day.selected {
  background-color: #EF9A31;
  color: #6B1504;
}

/* Colonne droite : liste des rendez-vous / disponibilités */

.appointments-section {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agenda-selected-date {
  margin-bottom: 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #6B1504;
}

.btn-add-availability {
  width: 100%;
  max-width: 430px;
  border-radius: 28px;
  border: 2px solid #EF9A31;
  background-color: #FBEECF;
  color: #6B1504;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 32px;
}

.btn-add-availability:hover {
  background-color: #EF9A31;
  color: #6B1504;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.fixed-appointments-today {
  display: flex;
  flex-direction: column;
  gap: 16px; /* espace entre Junia et Victor */
}

.no-appointments {
  padding: 20px 24px;
  border-radius: 18px;
  background-color: rgba(251, 238, 207, 0.9);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #6B1504;
}

/* Bouton de suppression sur les disponibilités créées */
.event-card--custom {
  position: relative;
}

.agenda-delete-availability {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #6B1504;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Modal d'ajout de disponibilité (page agenda) */
.agenda-availability-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.agenda-availability-modal.is-open {
  display: flex;
}

.agenda-availability-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.agenda-availability-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  background-color: #FBEECF;
  border-radius: 32px;
  border: 2px solid #6B1504;
  padding: 32px 40px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.agenda-availability-title {
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #6B1504;
  text-align: center;
}

.agenda-availability-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6B1504;
}

.agenda-availability-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agenda-availability-field label {
  display: block;
  margin-bottom: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6B1504;
}

.agenda-availability-field input,
.agenda-availability-field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #6B1504;
  background: rgba(107, 21, 4, 0.1);
  font-family: inherit;
  font-size: 14px;
  color: #6B1504;
}

.agenda-availability-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.agenda-availability-cancel,
.agenda-availability-submit {
  border-radius: 999px;
  padding: 10px 24px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #EF9A31;
  cursor: pointer;
}

.agenda-availability-cancel {
  background: transparent;
  color: #6B1504;
}

.agenda-availability-submit {
  background: #EF9A31;
  color: #6B1504;
}

@media (min-width: 992px) {
  /* On enlève le fond global sur toute la rangée
     et on l'applique uniquement sur la colonne gauche (calendrier) */
  .agenda-container .row {
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .agenda-container .col-lg-6:first-child {
    background-color: #E1C3A6;
    border-radius: 40px;
    padding: 40px 48px;
  }

  /* Plus d'espace horizontal entre l'agenda et la colonne de droite */
  .agenda-container .col-lg-6:last-child {
    padding-left: 48px;
  }
}

@media (max-width: 991px) {
  .agenda-container {
    padding: 20px 16px 40px;
  }

  /* Même fond coloré derrière le calendrier qu'en desktop,
     mais en pleine largeur sur mobile */
  .agenda-container .col-lg-6:first-child {
    background-color: #E1C3A6;
    border-radius: 40px;
    padding: 24px 20px;
  }

  .appointments-section {
    margin-top: 32px;
  }
}

@media (max-width: 575px) {
  .agenda-availability-dialog {
    margin: 0 16px;
    padding: 24px 20px;
  }
}

/* ============================================
   PAGE : 404 (PAGE D'ERREUR)
   ============================================ */
.error-404-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #FBEECF;
}

.error-404-content {
  padding: 60px 40px;
  background-color: #FBEECF;
  border-radius: 30px;
}

.error-404-title {
  color: #6B1504;
  font-family: 'Montserrat', sans-serif;
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.error-404-message {
  color: #6B1504;
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 50px;
}

.error-404-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-404 {
  min-width: 200px;
  padding: 15px 30px;
  border-radius: 25px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid #6B1504;
  color: #EF9A31;
  background: transparent;
  cursor: pointer;
}

.btn-404:hover,
.btn-404:focus {
  background-color: #EF9A31;
  color: #FBEECF;
  border-color: #EF9A31;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .error-404-title {
    font-size: 48px;
  }
  
  .error-404-message {
    font-size: 18px;
  }
  
  .error-404-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-404 {
    width: 100%;
    max-width: 300px;
  }
  
  .error-404-content {
    padding: 40px 20px;
  }
}

