*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 22px;
    background-color: rgba(253, 238, 205, 0.3);
    color: #333;
    max-width: 100%;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    margin-top: 20px;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 15px;
    background-color: #bb5c32;
    color: #ffffff;
}

.header-top h1 {
    font-family: 'Cookie';
    font-size: 60px;
    margin-top: 20px;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 15px;
}

.logo {
    height: 45px;
    margin-right: 10px;
}

/* Menu de navigation */
.nav-menu {
    padding: 5px;
    background-color: #bb5c32;
    display: flex;
    justify-content: space-around;
    font-size: 26px;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 15px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-menu ul li {
    flex-grow: 1;
    text-align: center;
}

.nav-menu .items {
    border: 2px solid #fff;
    border-radius: 10px;
    margin: 5px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
	color: #ffffff;
    text-decoration: none;
    display: block;
}

.nav-menu .items:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-menu .items.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
}

.tableaux-ent {
    width: 80%;
    background-color: rgba(238, 206, 189, 0.6);
    padding: 20px;
    border: solid;
    border-color: black;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tableaux {
    border: solid;
    border-color: black;
    border-width: 3px;
    width: 80%;
    padding: 10px;
    text-align: left;
}

/* Footer */

.footer-content {
    background-color: rgba(253, 238, 205);
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 20px;
    border-radius: 15px;
}

.footer-links {
    padding: 5px;
    background-color: rgba(222, 193, 128);
    border-radius: 15px;
}

.footer-backtotop a {
    color: white;
}

#boutop {
    background-color: #bb5c32;
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#boutop:hover {
    background-color: #ff7373;
}

/* Page d'accueil : index.html */

.galerie-crea {
    border-radius: 10px;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
    background-color: orange;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.galerie-crea img {
    width: 30%;
    height: 70%;
    margin: 1.5%;
}

/* Page de produits : produits.html */

.produits {
    border-radius: 10px;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
    height: 60%;
}

.produits .produit {
    width: 90%;
    height: 50%;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
}

/* Page de cours : cours.html */

.propos-cours {
    border-radius: 10px;
    padding: 20px;
    margin-top: 2%;
    margin-bottom: 2%;
    margin: 5%;
}

/* Page de stage : stage.html */

.pres-stages h2,
.pres-stages h4,
.pres-stages p {
    color: black;
}

.pres-stages {
    border-radius: 10px;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
    text-align: center;
    background-color: rgba(226, 172, 148, 0.6);
}

.tabl-stages {
    border-radius: 10px;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
    text-align: center;
}

/* Page de services : services.html */

.services {
    border-radius: 10px;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
    color: white;
}

/* Page de contact : contacts.html */

h2 {
    color: #ffffff;
    text-align: center;
}

.contact form {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.contact {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 5px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.contact .droite {
    padding: 20px;
    flex: 1;
    background-color: rgba(247, 232, 225, 0.6);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.contact .gauche {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    background-color: rgba(226, 172, 148, 0.6);
    border-radius: 10px;
    padding: 18px;
    margin-right: 15px;
    width: 20%;
}

.contact .gauche .inputs {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    width: 98%;
}

.bas {
    border-radius: 10px;
    padding: 15px;
    margin: 15px;
    background-color: rgba(226, 172, 148, 0.6);
}

#boutenvoyer {
    margin-top: 15px;
    background-color: #bb5c32;
    color: white;
    border: none;
    padding: 10px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#boutenvoyer:hover {
    background-color: #ff7373;
}

#boutannuler {
    margin-top: 15px;
    background-color: #888;
    color: white;
    border: none;
    padding: 10px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#boutannuler:hover {
    background-color: #aaa;
}

/* Page d'informations légales */

.mentions {
    border-radius: 10px;
    padding: 20px;
    margin-left: 5%;
}

.mentions h2 {
    color: black;
    text-align: center;
}

/* ✅ TABLEAU RESPONSIVE PRODUITS & STAGES */

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-container th,
.table-container td {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
    word-wrap: break-word;
}

.table-container td img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: auto;
}

/* 🔄 RESPONSIVE DESIGN */

@media screen and (max-width: 900px) {

    body {
        font-size: 18px;
        max-width: 100%;
        overflow-x: hidden;
    }

    h1,
    .header-top h1 {
        font-size: 70px;
    }

    .nav-menu {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 22px;
    }

    .nav-menu ul {
        flex-direction: row !important;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }
	
	.nav-menu .items.active {
		background-color: rgba(255, 255, 255, 0.3); 
		font-weight: bold;
		color: #fff;
		border: 2px solid #fff;
		border-radius: 10px;
	}

    .galerie-crea {
        flex-direction: column;
		align-items: center;
    }

    .galerie-crea img {
        width: 90%;
        margin: 10px 0;
    }

    .tableaux-ent,
    .tableaux,
    .produits,
    .propos-cours,
    .pres-stages,
    .tabl-stages,
    .services,
    .mentions {
        width: 90%;
    }

    .contact {
        display: flex;
        flex-direction: column-reverse !important;
        align-items: stretch;
        width: 100% !important;
    }

    .contact form {
        flex-direction: column-reverse !important;
    }

    .contact .gauche,
    .contact .droite {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 10px;
    }

    .contact .bas {
        font-size: 16px;
        color: blue;
    }

    #boutenvoyer,
    #boutannuler {
        width: 100%;
    }

    .table-container {
        width: 100%;
        overflow-x: auto;
    }

    .table-container table {
        min-width: 600px;
        width: max-content;
    }

    .table-container th,
    .table-container td {
        font-size: 14px;
        padding: 8px;
    }

    .table-container td img {
        max-width: 100px;
    }

    .table-container::-webkit-scrollbar {
        height: 8px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}
