/* Réinitialisation de certains styles par défaut */
@font-face {
    font-family: 'CabinetGrotesk';
    src: url('../css/fonts/CabinetGrotesk-Regular.eot'); /* IE9 Compat Modes */
    src: url('../css/fonts/CabinetGrotesk-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../css/fonts/CabinetGrotesk-Regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../css/fonts/CabinetGrotesk-Regular.woff') format('woff'), /* Modern Browsers */
         url('../css/fonts/CabinetGrotesk-Regular.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CabinetGrotesk';
    src: url('../css/fonts/CabinetGrotesk-Bold.eot'); /* IE9 Compat Modes */
    src: url('../css/fonts/CabinetGrotesk-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../css/fonts/CabinetGrotesk-Bold.woff2') format('woff2'), /* Super Modern Browsers */
         url('../css/fonts/CabinetGrotesk-Bold.woff') format('woff'), /* Modern Browsers */
         url('../css/fonts/CabinetGrotesk-Bold.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */
body {
    font-family: 'CabinetGrotesk', sans-serif;
    background-color: #fff4ee;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre la page */
}

a {
  color: darksalmon;
  text-decoration: none;
}

a:visited {
  color: darksalmon;

}
h1 {
    margin-bottom: 0.1em;
    font-size: 2em;
    text-align: center;
}

img {
    display: block;
    margin: 0 auto; /* Pour centrer l'image */
    width: 100%; /* Réduction de la taille à 80 % */
}

p {
    margin-top: 0.7em;
    margin-bottom: 0.7em;
    letter-spacing: 0.1px;
}

.signature {
  width: 100px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Container principal pour diviser l'écran */
.container {
    width: 100%;
    max-width: 600px; /* Limite la largeur pour centrer l'intro */
}

/* Partie gauche pour l'image et la description */
.intro {
    padding: 20px;
    background: #ffffff;
    margin: 0 auto; /* Centre le conteneur */
    text-align: left; /* Texte aligné à gauche */
    border-radius: .375rem;
    border: none;
    margin-bottom: 2rem;
}

/* Encadré des informations principales */
.info-box {
    border: none;
    padding: 4px 10px;
    margin-bottom: 20px;
    background-color: #fff;
}

.info-box h2 {
    margin-bottom: 10px;
    color: #333;
}

.info-box p {
    color: #666;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

.info-box h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    margin-bottom: 0.5em;
}

.inscrits-list, .attente-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5em 0;
}

.attente-list li {
    color: #666;
    font-style: italic;
}

/* Conteneur du formulaire masqué par défaut */
#formContainer {
    display: none; /* Cache le formulaire */
    margin-top: 30px;
    padding-top: 30px;
}

#formContainer h1 {
text-align: center;
}


/* Formulaire */
form {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 28px;
    margin: 0 auto; /* Centre le formulaire */
    max-width: 600px; /* Limite la largeur sur les grands écrans */
    border: 1px solid bisque;

}

/* Styles des divs conteneurs pour chaque groupe de champs */
form div {
    margin-bottom: 1em;
}

label {
    display: block;
    margin-bottom: .2em;
    color: #666;
}

.input-group {
    display: flex;
    justify-content: space-between;
}

.input-group > div {
    flex: 1;
    margin-right: 10px;
}

.input-group > div:last-child {
    margin-right: 0;
}

/* Styles des inputs et textarea */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid antiquewhite;
    border-radius: 0px;
}

select {
    background-color: white;
}

/* Styles des boutons */
button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #ff8473;
    color: white;
    cursor: pointer;
    font-size: 1em;
    margin-top: 30px;
}

button:hover {
    background-color: #ea7e6f;
}

/* Styles pour les versions bureau */
@media (min-width: 769px) {


    .container {
        width: 100%; /* Largeur maximale sur grand écran */
    }
}

/* Responsive styles pour tablette */
@media (max-width: 768px) {
    #formContainer {
        padding: 0; /* Pas de marges sur tablette */
    }

    .container {
        width: 100%; /* Prend toute la largeur sur tablette */
    }

    .input-group {
        flex-direction: column;
    }

    .input-group > div {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Responsive styles pour mobile */
@media (max-width: 480px) {
  body {
        padding: 10px;
  }
    #formContainer {
        padding: 0; /* Pas de marges sur mobile */
    }

    .container {
        width: 100%; /* Prend toute la largeur sur mobile */
    }

    h1 {
        font-size: 1.5em;
  
    }

    img {
        display: block;
        margin: 0 auto; /* Pour centrer l'image */
        width: 100%; /* Réduction de la taille à 80 % */
    }

    .message-container {
       padding-left: 20px;
       padding-right: 20px;
    }
    
}

/* Styles pour la page de confirmation */
.confirmation-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100%;
    background-color: #fff4ee;
}

.confirmation-container h1 {
    margin-bottom: 0.5em;
    font-size: 2.5em;
    color: #333;
}

.confirmation-container p {
    margin-bottom: 1.5em;
    font-size: 1.2em;
    color: #666;
}

.confirmation-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: darksalmon;
    color: white;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    width: auto;
}

.confirmation-container button:hover {
    background-color: #555;
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    justify-content: center; /* Centre verticalement */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
}

.form-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.form-status button {
    margin-top: 0;
    flex: 1;
}

.status-badge {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Widget HelloAsso */
.helloasso-container {
    margin-top: 2rem;
    margin-bottom: 4rem;
    visibility: hidden;
    height: 0;
    background: #fff4ee;
    border-radius: .375rem;
    overflow: visible;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
    left: 0;
    right: 0;
}

.helloasso-container.visible {
    visibility: visible;
    opacity: 1;
    position: relative;
    height: 1000px;
}

/* Styles pour le widget HelloAsso */
.helloasso-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    position: relative;
    display: block;
}

/* Supprime les styles qui pourraient interférer */
.helloasso-container * {
    max-width: none;
    max-height: none;
}

/* Cache les éléments inutiles */
.MadeBy,
iframe[src*="abtasty"],
iframe[src*="screeb"],
iframe[src*="cloudflareinsights"] {
    display: none !important;
}