* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, lightgrey, white);
}

header {
    margin-top: -6px;
}

header img{
    display: block;
    width: 100%;
    height: auto;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3{
    font-family: 'Montserrat', sans-serif;
}

header img{
    width: 100%;
    height: auto;
}

#horaires{
    background: linear-gradient( to right,lightgray, rgb(240, 240, 240));
    ul{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    li{
        flex: 1 1 100%;
        text-align: center;
        padding: 1em 0;
        animation: pulse 6s ease-in-out infinite;
    }
    h1{
        text-align: center;
    }
}

@media (min-width: 600px) {
    #horaires ul {
        flex-wrap: nowrap;
    }
    #horaires li{
        flex: 1;
    }
}

#horaires li:nth-child(1){
    animation-delay: 0s;
}
#horaires li:nth-child(2){
    animation-delay: 0.5s;
}
#horaires li:nth-child(3){
    animation-delay: 1s;
}
#horaires li:nth-child(4){
    animation-delay: 1.5s;
}
#horaires li:nth-child(5){
    animation-delay: 2s;
}
#horaires li:nth-child(6){
    animation-delay: 2.5s;
}
#horaires li:nth-child(7){
    animation-delay: 3s;
}

@keyframes pulse{
    0% {transform: scale(1);}
    20% {transform: scale(1.05);}
    40% {transform: scale(1);}
    100%{transform: scale(1);}
}


.navigation{
    background-color: darkgray;
    li{
        flex: 1;
        text-align: center;
        padding: 1em 0;
    }
    ul{
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    a{
        text-decoration: none;
        color: beige;
        display: block;
    }
    a:hover{
        color: lightpink;
    }
    animation: respiration 5s ease-in-out infinite;
}

@keyframes respiration{
    0% {background-color: #a9a9a9;}
    50% {background-color: #696969;}
    100% {background-color: #a9a9a9;}
}

#services{
    background-color: lightgray;
    padding: 3em 2em;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: auto;
}

#services h1{
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 2px;
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

@media (min-width: 768px){
    .services-wrapper{
        flex-direction: row;
        justify-content: space-between;
    }
}

.service-block{
    flex: 1;
    background-color: #eaf2f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: appear 0.6s ease forwards;
}

.service-block:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 2px rgba(0, 0, 0, 0.2);
}

.service-block h3{
    font-size: 1.5em;
    margin-bottom: 0.8em;
    border-left: 4px solid #003380;
    padding-left: 0.6em;
    color: #444;
}

.service-block ul{
    list-style: none;
    padding-left: 1.5em;
}

.service-block li{
    margin-bottom: 0.4em;
    font-size: 1.1em;
}

@keyframes appear{
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


footer {
    background-color: #202020;
    color: #eee;
    padding: 3em 2em;
    margin-top: 4em;
    font-size: 1em;
    box-shadow: 0 -15px 20px rgba(0, 0, 0, 0.2);
}

footer .content{
    max-width: 1200px;
    margin: auto;
}

#presentation h1{
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 0.5em;
}

#presentation p{
    color: #ccc;
    font-size: 1em;
    line-height: 1.6em;
}

footer .copyright{
    margin-top: 2em;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #444;
    padding-top: 1em;
    a:link{
        color: #888;
        text-decoration: none;
    }
    a:visited{
        color: #888;
    }
}


#map {
    text-align: center;
    padding: 3em 1em;
    background: #f7f7f7;
    margin-top: 2em;
}

#map h1{
    margin-bottom: 1em;
    font-size: 2em;
    color: #333;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}


#photos{
    text-align: center;
    margin: 2em auto;
    padding: 1em;
}

.galerie{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.galerie img{
    width: 45vw;
    max-width: 100%;
    height: calc(45vw * (9/16));
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.galerie img:hover{
    transform: scale(1.02);
}

.photo-hover{
    position: relative;
    width: 45vw;
    height: calc(45vw *(9 / 16));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.photo-hover img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.hover-img{
    opacity: 0;
}

.photo-hover:hover .hover-img{
    opacity: 1;
}

.photo-hover:hover{
    transform: scale(1.02);
}

.photo-simple{
    position: relative;
    width: 45vw;
    height: calc(45vw * (9 / 16));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-simple img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.photo-simple img:hover{
    transform: scale(1.02);
}

@media screen and (max-width: 768px) {
    .photo-hover,
    .photo-simple {
        width: 90vw;
        height: calc(90vw * (9 / 16))
    }
}


#mentions-legales{
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    h2{
        text-align: center;
        margin-bottom: 30px;
        font-size: 2rem;
    }
}

.mention h3{
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    p{
        margin-left: 10px;
    }
}


form#rdv-form {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(-45deg, #f0f0f0, #e0eafc, #fcefef, #f0f0f0);
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2em;
    max-width: 600px;
    margin: 2em auto;
    font-family: 'Segoe UI', sans-serif;
}

@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

form#rdv-form h2 {
    text-align: center;
    margin-bottom: 1em;
    color: #333;
}

form#rdv-form label {
    display: block;
    margin-top: 1em;
    font-weight: bold;
    color: #444;
}

form#rdv-form input[type="text"],
form#rdv-form input[type="tel"],
form#rdv-form input[type="email"],
form#rdv-form input[type="date"],
form#rdv-form select {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.2em;
    margin-bottom: 1em;
}

.checkbox-group label {
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4em;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    cursor: pointer;
}

.checkbox-group label:hover {
    transform: scale(1.05);
    background-color: rgba(200, 200, 200, 0.2); /* un léger fond clair */
}

form#rdv-form button[type="submit"] {
    margin-top: 1.5em;
    width: 100%;
    padding: 1em;
    background-color: #d92332;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

form#rdv-form button[type="submit"]:hover {
    background-color: #b51d29;
    transform: scale(1.02);
}

#confirmation-message {
    text-align: center;
    padding: 1em;
    font-size: 1.1em;
    font-weight: bold;
}

#rdv-form label,
#rdv-form input,
#rdv-form select,
#rdv-form button {
    margin-bottom: 1.2em;
}



#schedule-container{
    overflow-x: auto;
    max-width: 100%;
}

#schedule-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff; /* fond blanc cassé */
    border-radius: 12px;
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.07);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    color: #222;
}

#schedule-container th, td{
    padding: 0.5em;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid #ccc;
}

#schedule-container td.rdv {
    background-color: #cfe2ff;
    cursor: pointer;
}

#schedule-container thead th {
  background: #4a90e2; /* un bleu doux */
  color: white;
  padding: 0.6em 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #356ac3;
}

#schedule-container tbody td {
  padding: 0.55em 0.8em;
  border-bottom: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.3s ease;
}

#schedule-container tbody tr:hover td {
  background-color: #f0f7ff;
}

#schedule-container tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #333;
  background-color: #f9fbfd;
  border-right: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
    #schedule-container th, td{
        font-size: 0.75em;
        padding: 0.3em;
    }
    #rdv-details {
        font-size: 0.9em;
    }
}

.rdv {
    background-color: #cfe2ff;
    font-weight: bold;
    transition: transform 0.2s;
}

.rdv:hover{
    transform: scale(1.05);
    background-color: #bfd9ff;
    cursor: pointer;
}


@media (max-width: 768px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    thead {
        display: none;
    }
    tr {
        display: block;
        margin-bottom: 1em;
    }
    td {
        display: flex;
        justify-content: space-between;
        padding: 0.5em 1em;
        border: none;
        border-bottom: 1px solid #ccc;
        position: relative;
    }
}

td::before{
    content: attr(data-label);
    font-weight: bold;
    flex-basis: 40%;
}


#right-panel {
  background: #f9f9f9;
  padding: 1.5em;
  border-left: 1px solid #ddd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  min-height: 100vh;
  box-sizing: border-box;
}

#rdv-details {
  background: white;
  padding: 1.2em 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
  line-height: 1.5;
}

#rdv-details h3 {
  margin-top: 0;
  font-weight: 700;
  color: #2a2a86;
  font-size: 1.4em;
}

#rdv-details p {
  margin: 0.3em 0;
  font-size: 1.05em;
}

#rdv-details p strong {
  color: #555;
}

/* Boutons */

.btn-group {
  display: flex;
  gap: 1em;
  margin-top: auto;
}

.btn {
  flex: 1;
  padding: 0.7em 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
  user-select: none;
}

.btn-supprimer {
  background-color: #e03e3e;
  color: white;
  box-shadow: 0 4px 8px rgb(224 62 62 / 0.4);
}

.btn-supprimer:hover {
  background-color: #b62a2a;
  box-shadow: 0 6px 12px rgb(182 42 42 / 0.6);
}

.btn-decaler {
  background-color: #3b6ee0;
  color: white;
  box-shadow: 0 4px 8px rgb(59 110 224 / 0.4);
}

.btn-decaler:hover {
  background-color: #2a4cbf;
  box-shadow: 0 6px 12px rgb(42 76 191 / 0.6);
}
