/* ==============================
   RESET / BASE
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f2f2f7;
    color: #111;
}

/* ==============================
   NAVBAR
============================== */
.navbar {
    height: 90px;
    background-color: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-left .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 80px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right .nav-button {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #1e293b;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.nav-right .nav-button:hover {
    background-color: #334155;
}

/* ==============================
   MAIN CONTENT
============================== */
main {
    padding: 20px;
}

/* ==============================
   EXERCICES CONTAINER (GRID RESPONSIVE)
============================== */
.exercices-container {
    display: grid;
    grid-template-columns: 1fr; /* mobile */
    gap: 16px;
    padding: 16px;
}

@media (min-width: 600px) {
    .exercices-container {
        grid-template-columns: repeat(2, 1fr); /* tablette/PC */
    }
}

@media (min-width: 1024px) {
    .exercices-container {
        grid-template-columns: repeat(2, 1fr); /* ordinateur */
    }
}

/* ==============================
   EXERCICE BOX (CARD)
============================== */
.exercice-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercice-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.exercice-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.exercice-box h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.exercice-box p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

/* ==============================
   FORMULAIRE EXERCICE
============================== */
.exercice-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.exercice-form input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    text-align: center;
}

/* Bouton pleine largeur */
.exercice-form button {
    grid-column: span 3;
    margin-top: 6px;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: #007aff; /* iOS blue */
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.exercice-form button:hover {
    background: #005ecb;
}

/* ==============================
   PERFORMANCE BOX
============================== */
.performance-day-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.performance-day-box h2 {
    margin-top: 0;
    color: #333;
}

/* ==============================
   MEDIA (IMG/VIDEO)
============================== */
.exercice-media img,
.exercice-media video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}





/* ==============================
   SEANCES CONTAINER (GRID RESPONSIVE)
============================== */
.seances-container {
    display: grid;
    grid-template-columns: 1fr; /* mobile */
    gap: 16px;
    padding: 16px;
}

@media (min-width: 600px) {
    .seances-container {
        grid-template-columns: repeat(2, 1fr); /* tablette/PC */
    }
}

@media (min-width: 1024px) {
    .seances-container {
        grid-template-columns: repeat(2, 1fr); /* ordinateur */
    }
}

/* SEANCE BOX */
.seance-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seance-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.seance-box img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.seance-box h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.seance-box p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.seance-box .nav-button {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 12px;
    background-color: #007aff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease;
}

.seance-box .nav-button:hover {
    background-color: #005ecb;
}
