body{
    display: flex;
    flex-direction: column;
    font-family: "Roboto Condensed", "Roboto";
    width: 100%;
    margin: 0px;
}

header img:hover{
    box-shadow: 0 0 30px 5px black;
}

header{
    background-color: #333333;
    width: 100%;
    color: white;
}

header p{
    margin: 0px;
}

header img{
    padding: 10px;
    margin: 20px 0 0 60px;
}

.links{
    padding: 20px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.links p{
    padding: 0 20px;
}

.links a:hover{
    background-color: white;
    border-radius: 10px;
    color: #FF392C;
    font-weight: bold;
} 

#admin{
    color: white;
    background-color: #FF392C;
    font-weight: bold;
    border-radius: 10px;
    margin-left: 10px;
    padding: 5px;
}

#admin:hover{
    color: lightgray;
    background-color: #992d25;
}

header a{
    text-decoration: none;
    color: white;
}

/* ======== STYLES DU TABLEAU PLANNING ======== */
.text_block table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.text_block table th {
    background-color: #333333;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    border-right: 1px solid #555;
}

.text_block table th:last-child {
    border-right: none;
}

.text_block table tr:first-child th:first-child {
    background-color: #FF392C;
    font-size: 1.1em;
}

.text_block table tr:nth-child(2) th:first-child {
    background-color: #FF392C;
    font-size: 1.1em;
}

.text_block table td {
    padding: 15px 10px;
    text-align: center;
    color: #555;
    font-size: 0.95em;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.text_block table td:last-child {
    border-right: none;
}

.text_block table tr:last-child td {
    border-bottom: none;
}

.text_block table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.text_block table tr:hover td {
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}


footer{
    position: relative;
    background-color: #333333;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-content: space-around;
}

footer img{
    margin: 20px 0 20px 60px;
}

footer p{
    color: white;
    margin: 20px 60px 20px 0;
}

footer a:hover{
    color: white;
}

footer a{
    text-decoration: none;
}

h1{
    text-align: center;
    margin: 30px 20px;
    font-size: 2em;
    color: #333;
}

.text_block{
    margin-left: 60px;
    margin-right: 60px;
    margin-bottom: 40px;
}

.text_block h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.text_block p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
}

.text_block iframe {
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Countdown Styles */
.countdown {
    display: inline-flex;
    gap: 15px;
    margin: 10px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.time-value {
    font-weight: bold;
    font-size: 1.8em;
    color: #FF392C;
    line-height: 1;
    margin-bottom: 5px;
}

.time-label {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======== RESPONSIVE TABLETTE ======== */
@media (max-width: 1024px) {
    header img {
        margin: 15px 0 0 40px;
    }

    .text_block {
        margin-left: 40px;
        margin-right: 40px;
    }

    .text_block table th,
    .text_block table td {
        padding: 12px 8px;
        font-size: 0.9em;
    }


    .text_block iframe {
        max-width: 100%;
        height: 400px;
    }

    footer img {
        margin: 20px 0 20px 40px;
    }

    footer p {
        margin: 20px 40px 20px 0;
    }
}

/* ======== RESPONSIVE TABLETTE PORTRAIT ======== */
@media (max-width: 768px) {
    header img {
        margin: 15px auto;
        display: block;
        max-width: 220px;
    }
	
    .text_block table {
        font-size: 0.85em;
    }

    .text_block table th,
    .text_block table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }

    .text_block table th {
        font-size: 0.9em;
    }

    .text_block table tr:first-child th:first-child,
    .text_block table tr:nth-child(2) th:first-child {
        font-size: 0.95em;
    }
    
    .links {
        flex-direction: column;
        padding: 15px 0;
    }

    .links p {
        padding: 8px 0;
    }

    #admin {
        margin-left: 0;
        margin-top: 10px;
    }

    h1 {
        font-size: 1.7em;
        margin: 25px 20px;
    }

    .text_block {
        margin-left: 30px;
        margin-right: 30px;
    }

    .text_block h2 {
        font-size: 1.3em;
    }

    .text_block iframe {
        width: 100%;
        height: 350px;
    }

    .countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .time-unit {
        padding: 8px 12px;
    }

    .time-value {
        font-size: 1.5em;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    footer img {
        margin: 15px auto;
        max-width: 180px;
    }

    footer p {
        margin: 15px auto;
    }
}

/* ======== RESPONSIVE MOBILE PORTRAIT ======== */
@media (max-width: 480px) {
    /* Header */
    header img {
        max-width: 200px;
        margin: 10px auto;
        padding: 5px;
    }
	
   
    .text_block table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .text_block table th,
    .text_block table td {
        padding: 8px 5px;
        font-size: 0.75em;
        min-width: 70px;
    }

    .text_block table tr:first-child th:first-child,
    .text_block table tr:nth-child(2) th:first-child {
        font-size: 0.85em;
        min-width: 80px;
    }

    
    .links {
        padding: 10px 0;
    }

    .links p {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    .links a {
        display: block;
        width: 90%;
        max-width: 300px;
        margin: 5px auto;
        text-align: center;
        padding: 8px 0;
    }

    #admin {
        margin: 10px auto 0;
        width: 90%;
        max-width: 300px;
        text-align: center;
    }

    /* Titre principal */
    h1 {
        font-size: 1.4em;
        margin: 20px 15px;
        line-height: 1.3;
    }

    /* Bloc de texte */
    .text_block {
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 30px;
    }

    .text_block h2 {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .text_block p {
        font-size: 0.95em;
        line-height: 1.7;
        text-align: justify;
    }

    /* Google Maps iframe */
    .text_block iframe {
        width: 100%;
        height: 300px;
        margin: 15px 0;
        border-radius: 6px;
    }

    /* Countdown */
    .countdown {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        margin: 15px 0;
        justify-content: center;
    }

    .time-unit {
        padding: 8px 10px;
        min-width: 70px;
    }

    .time-value {
        font-size: 1.4em;
        margin-bottom: 3px;
    }

    .time-label {
        font-size: 0.75em;
    }

    /* Footer */
    footer {
        padding: 15px 10px;
    }

    footer img {
        max-width: 150px;
        margin: 10px auto;
    }

    footer p {
        font-size: 0.9em;
        margin: 10px auto;
    }
}

/* ======== TRÈS PETITS ÉCRANS ======== */
@media (max-width: 360px) {
    header img {
        max-width: 180px;
    }

    .links p {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    h1 {
        font-size: 1.3em;
        margin: 15px 10px;
    }

    .text_block {
        margin-left: 10px;
        margin-right: 10px;
    }

    .text_block h2 {
        font-size: 1.1em;
    }

    .text_block p {
        font-size: 0.9em;
    }
	
    .text_block table th,
    .text_block table td {
        padding: 6px 4px;
        font-size: 0.7em;
        min-width: 60px;
    }

    .text_block table tr:first-child th:first-child,
    .text_block table tr:nth-child(2) th:first-child {
        font-size: 0.8em;
        min-width: 70px;
    }
    
    .text_block iframe {
        height: 250px;
    }

    .countdown {
        gap: 6px;
        padding: 10px;
    }

    .time-unit {
        padding: 6px 8px;
        min-width: 65px;
    }

    .time-value {
        font-size: 1.2em;
    }

    .time-label {
        font-size: 0.7em;
    }

    footer img {
        max-width: 130px;
    }

    footer p {
        font-size: 0.85em;
    }
}