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

/* ============================
   GLOBAL
   ============================ */
body {
    background-color: #F5F9FF;
    font-family: 'Open Sans', sans-serif;
}

/* ============================
   NAVIGATION
   ============================ */
.logo {
    height: 100px;
    width: 80px;
    transform: rotate(-25deg);
}

nav {
    background-color: #2196F3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    height: 100px;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 30px;
}

a,
a:visited {
    text-decoration: none;
    color: white;
}

/* ============================
   BANDEAU
   ============================ */
.cadrebandeau {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

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

.titreh1 {
    position: absolute;
    top: 110px;
    left: 25px;
    color: white;
    font-size: 70px;
     text-shadow: 4px 4px 12px rgba(0,0,0,0.65);
}

.soustitre {
    position: absolute;
    bottom: 40px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-style: italic;
    text-shadow: 4px 4px 12px rgba(0,0,0,0.65);
}

/* ============================
   SUMMARY
   ============================ */
summary {
    font-size: 20px;
    color: #2196F3;
    font-weight: bold;
    cursor: pointer;
}

/* ============================
   INFO
   ============================ */
#info {
    background-color: #90c5f0;
    margin: 10px;
    padding: 20px;
    border-radius: 25px;
}

/* ============================
   CARTES ACCUEIL
   ============================ */
.cartepresentation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    width: fit-content;
    margin: 60px auto;
}

.cartecours {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    justify-content: center;
    margin: 60px auto;
    width: 100%;
    margin: 15px;
}

/* ============================
   CARTES (OMBRE + HOVER)
   ============================ */
.mep {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.mepc {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mep:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.titremep {
    background-color: #2196F3;
    color: white;
    text-align: center;
    font-size: 24px;
    padding: 20px;
}

.illustration img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ============================
   BOUTONS
   ============================ */
.btn,
#btn {
    background-color: blueviolet;
    color: white;
    border-radius: 30px;
    width: 160px;
    padding: 12px 0;
    font-size: 18px;
    text-align: center;
    margin: 20px auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn:hover,
#btn:hover {
    transform: scale(1.08);
}

/* ============================
   CALENDRIER
   ============================ */
.date-accueil {
    text-align: center;
    font-size: 26px;
    color: #2196F3;
    margin-bottom: 20px;
}

#calendrier {
    width: min(600px, 95%);
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================
   HEADER (mois + boutons)
   ============================ */
#calendrier .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#calendrier .header h2 {
    color: #2196F3;
    font-size: 22px;
}

/* boutons flèches */
#calendrier .header button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

#calendrier .header button:hover {
    background: #0b7dd1;
    transform: scale(1.05);
}

/* ============================
   JOURS DE LA SEMAINE
   ============================ */
#calendrier .semaine {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2196F3;
}

/* ============================
   GRILLE DES JOURS
   ============================ */
#calendrier .jours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

#calendrier .jours div {
    background: #f5f5f5;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    transition: 0.2s ease;
}

/* hover sur les jours */
#calendrier .jours div:hover {
    background: #2196F3;
    color: white;
    cursor: pointer;
}

/* jour actuel (si ton JS l'ajoute) */
#calendrier .today {
    background: #2196F3;
    color: white;
    font-weight: bold;
}
/* ============================
   PLANNING HEBDO
   ============================ */
.hebdomadaire {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.hebdomadaire th,
.hebdomadaire td {
    border: 1px solid black;
    padding: 8px;
}

#calendrier .jours .today {
    background: #2196F3 !important;
    color: white !important;
    font-weight: bold;
    border-radius: 6px;
}

/* ============================
   BLOCS ACTIVITÉ (AJOUT IMPORTANT)
   ============================ */
.blocactivite {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 60px auto;
}

/* ============================
   CARTE IMAGE
   ============================ */
.carte {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* important pour éviter que ça casse */
    margin: 60px auto;
}


   .carteP {
    width: 300px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.titreP {
    background-color: #2196F3;
    color: white;
    text-align: center;
    font-size: 20px;
    padding: 15px;
}

.illustrationphoto img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* ============================
   TEXTE ENCADRÉ (AJOUT IMPORTANT)
   ============================ */
.text {
    width: 480px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

details {
    width: min(700px, 90%);
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

summary {
    background-color: #2196F3;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}
/* ============================
   VIDÉO CENTRÉE (AJOUT IMPORTANT)
   ============================ */
.video {
    display: flex;
    justify-content: center;
    margin: 40px auto;
}

.video video {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
}

/* ============================
   GALERIE
   ============================ */
.galerie {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 60px auto;
}

.gal img {
    width: 300px;
}

/*planning semaine*/

#hebdomadaire {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

#hebdomadaire th,
#hebdomadaire td {
    border: 1px solid black;
    padding: 8px;
}

#hebdomadaire caption {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ============================
   COULEURS DES COURS
   ============================ */
.remise { background: #FA6D93; }
.yoga { background: #FCDAFC; }
.danse, .preparation { background: #CBFCCB; }
.pilates { background: #7AF4F4; }
.fullbody { background: #FCF9B3; }
.barre { background: #A6C693; }
.zumba { background: #F5D97B; }
.linedance { background: #f73333; }

/*Page contact*/
form {
    background-color: #2196F3;
    padding: 20px;
    border-radius: 10px;
    width: min(500px, 100%);
    box-sizing: border-box;
}
form input,
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.contact {
    border: 2px solid #000;
    padding: 20px;
    border-radius: 10px;
    background: white;
}

.pagecontact {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin: 60px auto;
    flex-wrap: wrap;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background-color: #2196F3;
    border: 1px solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

ul {
    list-style: none;
}

/* ============================
   RESPONSIVE
   ============================ */
@media screen and (max-width: 768px) {

    .logo {
        height: 60px;
        width: 50px;
    }

    .cadrebandeau {
        height: 250px;
    }

    .titreh1 {
        font-size: 32px;
        top: 40px;
        left: 15px;
    }

    .soustitre {
        font-size: 22px;
        bottom: 20px;
        right: 15px;
    }
    

    nav {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .cartepresentation {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px;
    }

    .cartecours {
        grid-template-columns: 1fr;
    }
    
    .mepc {
   grid-template-columns: 1fr;
    }

    .blocactivite {
        flex-direction: column;
        text-align: center;
    }

    .text {
        width: 100%;
    }

    .carteP {
        width: 100%;
        max-width: 350px;
    }

    .video video {
        width: 95%;
    }
}
