/* Style général */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

h1, h2 {
    color: #444;
    text-align: center;
}

h2 {
    margin-bottom: 10px;
}

/* Styles pour le header */
header {
    text-align: center;
    background-color: #0066cc;
    color: white;
    padding: 10px;
    border-bottom: 4px solid #004b99;
}

header h1 {
    font-size: 2em;
}

header p {
    font-size: 1.1em;
    margin-top: 5px;
}

/* Style pour le contenu principal */
main {
    margin: 0 auto;
    max-width: 900px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Style pour les sections */
section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e0f7e0;
    border: 1px solid #b2d8b2;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

section h2 {
    color: #0066cc;
    font-size: 1.8em;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 10px;
}

a {
    color: #004b99;
    text-decoration: underline;
}

a:hover {
    color: #002f66;
}

/* Style pour le formulaire de connexion */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 10px;
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

label {
    font-weight: bold;
    display: block;
}

input {
    width: calc(100% - 20px);
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding-right: 40px;
}

input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    margin: 10px 0;
}

input[type="submit"],
button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 100%;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

button[type="submit"] {
    background-color: #4CAF50;
}

button[type="button"] {
    background-color: #007BFF;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.strength-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.strength-indicator {
    height: 5px;
    flex-grow: 1;
    border-radius: 3px;
    background-color: #ccc;
}

.suggested-password {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}

.logo {
    display: block;
    margin: 0 auto;
    width: 100px;
    margin-bottom: 20px;
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
    cursor: pointer;
    margin: 10px 0;
}

.dropzone:hover {
    border-color: #999;
    background-color: #f1f1f1;
}

.dropzone.dragover {
    border-color: #333;
    background-color: #e6f7ff;
    color: #000;
}

.g-recaptcha {
    display: block !important;
    visibility: visible !important;
    min-height: 78px;
}

/* Style pour le footer */
footer {
    text-align: center;
    background-color: #004b99;
    color: white;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 0.9em;
    width: 100%;
}

.buttons-container {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

/*#notification {
    background-color: red !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    border: 1px solid white !important;
    forced-color-adjust: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 10px;
}*/
#notification {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid white;

    position: fixed;     /* ← important */
    top: 20px;           /* ← en haut */
    left: 50%;           /* centré */
    transform: translateX(-50%);

    width: auto;
    max-width: 400px;

    z-index: 9999;
}

/* Style pour la réservation d'outils */
#reservationFormContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px;
}

#presentationOutil, #reservationOutil, #errormessage {
    width: 100%;
    max-width: 500px;
    margin: 10px;
    text-align: center;
}

#presentationOutil h2, #presentationOutil h3 {
    text-align: center;
}

#presentationOutil img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#calendar {
    flex: 1;
    min-width: 300px;
    margin: 10px;
    max-width: 100%;
}

#reservationForm label {
    margin: 10px 0;
}
/* Style pour le bouton */
.button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007bff; /* Couleur du bouton */
    border-radius: 5px;
    text-decoration: none; /* Retire le soulignement */
    margin-top: 20px; /* Espace au-dessus du bouton */
    display: block; /* ou inline-block */
    margin: 0 auto; /* Cela centre le bouton */
}

.button:hover {
    background-color: #0056b3; /* Couleur au survol */
    color: white; /* Couleur du texte au survol */
}
.btn-reserver {
    background-color: green;
    color: white;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.btn-retour {
    background-color: blue;
    color: white;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.signup-button, .reset-password-button {
    background-color: #007BFF; /* Couleur de fond initiale */
    color: white; /* Couleur du texte */
    border: none; /* Pas de bordure */
    padding: 10px 20px; /* Espacement interne */
    font-size: 16px; /* Taille de la police */
    cursor: pointer; /* Curseur de la souris */
    transition: background-color 0.3s; /* Pour une transition en douceur */
}

.signup-button, .reset-password-button :hover {
    background-color: #0056b3; /* Couleur de fond au survol */
}

/* Style pour la table des réservations */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

td form {
    display: flex;
    justify-content: center;
}

/* Style pour les étoiles de notation */
.rating {
    display: inline-block;
    direction: rtl;
    text-align: center;
}

.rating > input {
    display: none;
}

.rating > label {
    float: right;
    cursor: pointer;
    color: #ccc;
    font-size: 25px;
    transition: color 0.3s;
}

.rating > label:before {
    content: '★';
}

.rating > input:checked ~ label,
.rating > label:hover,
.rating > label:hover ~ label {
    color: #ffd700;
}

/* Responsive design */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    input[type="submit"], button {
        width: 100%;
        font-size: 14px;
    }

    body {
        font-size: 0.9em;
    }

    header h1 {
        font-size: 1.5em;
    }

    section h2 {
        font-size: 1.5em;
    }

    main {
        padding: 10px;
    }
}

@media (max-width: 600px) {
.container {
    padding: 10px;
	text-align: center; /* Centre tout le contenu à l'intérieur de .container */
	display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;    /* Centre verticalement si nécessaire */
    }

    h1, h2 {
        font-size: 1.4em;
        text-align: center;
    }

    table, th, td {
        font-size: 0.9em;
    }

    .buttons-container {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .rating > label {
        font-size: 20px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }
}

/*@media (max-width: 480px) {
    header p,
    section p {
        font-size: 1em;
    }

    footer {
        font-size: 0.8em;
    }

    #presentationOutil h2, #presentationOutil h3 {
        font-size: 18px;
    }

    #presentationOutil img {
        width: 90%;
    }

    #reservationFormContainer, #presentationOutil, #calendar {
        padding: 10px;
        margin: 0;
    }
}*/

/* Pour les petits écrans (375px à ~480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .menu {
    flex-direction: column;
  }

  .image {
    width: 100%;
    height: auto;
  }
}

.bandeau {
    display: block;
    margin: 0 auto;
    width: 400px; /* Modification ici */
    height: auto; /* Cette propriété reste inchangée */
}