/* La ligne */

    #d1 {
        background-color: white;
    }

/* Colonne image */

        #d1 .col-md-8 {
            position: relative; 
            display: flex;
            justify-content: start; 
            align-items: center; 
            padding: 0;
            min-height: 850px;
            background-image: url("../img/img5.jpg");
            background-size: cover;
            background-position: center;
            overflow: hidden;
        }

        #d1 .col-md-8::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
            z-index: 1;
        }

        .overlay-text {
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            text-align: center;
            z-index: 2;
            color: white;
        }

        @media (max-width: 767px) {
            #d1 .col-md-8 {
                min-height: 480px;
            }
        }

/* Colonne texte */

        #d1 .col-md-4 {
            text-align: center;
            color: #FDFDFD;
            padding: 20px;
            background: linear-gradient(135deg, rgba(0, 176, 230, 0.8), rgba(0, 159, 253, 0.8), rgba(0, 110, 195, 0.8));
        }

        #d1 .col-md-4 img {
            width: 50px;
            height: 50px;
            display: inline-block;
            animation: saut 2s infinite ease-in-out;
        }

        #titre h2, #tel h2, #email h2 {
            transition: color 0.5s ease;
        }

        #tel h2:hover, #email h2:hover {
            color:  #073273; 
        }

        #titre {
            margin-bottom: 4em; /* Plus d'espace sous le titre */
        }

        #tel, #email {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5em;
            margin-bottom: 4em;
        }

        #tel h2, #email h2 {
        	margin: 0;
            font-size: clamp(1rem, 5vw, 2rem); /* Min 1rem, adaptatif avec 5vw, max 2rem */
        }

        #precision {
            margin-bottom: 2em;
        }

        #add img {
        display: inline-block;
        animation: saut 1.5s infinite ease-in-out;
        }

/* Horaires */

    #horaires {
        background-color: #FDFDFD;
        padding: 3em 0 8em 0;
        text-align: center;
    }

    #horaires h2 {
        font-size: 2rem;
        font-weight: bold;
        color: #006ec3;
        margin-bottom: 0.5em;
    }

    .separator {
        height: 3px;
        width: 125px;
        background-color: #073273; 
        margin: 15px auto; 
        border-radius: 5px; 
    }

    .table-container {
        max-width: 800px;
        margin: 0 auto;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        padding: 0 20px;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }

    .table-container:hover {
        transform: translateY(-5px);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    thead th {
        background-color: #006ec3;
        color: white;
        padding: 15px;
    }

    thead th[scope="col"] {
        padding-top: 0;
    }

    tbody tr {
        transition: background-color 0.3s ease;
    }

    tbody tr:hover {
        background-color: rgba(0, 110, 195, 0.1);
    }

    td, th {
        padding: 18px;
        text-align: center;
        border-bottom: 1px solid #ddd;
        font-size: 1.1rem;
    }

    tbody tr:last-child td {
        border-bottom: none;
    }

/* Localisation */

    #localisation {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centre verticalement le contenu */
        align-items: center; /* Centre horizontalement */
        height: auto;
        padding: 10px 0 50px 0; 
        position: relative;
        background: linear-gradient(135deg, rgba(0, 110, 195, 0.8), rgba(0, 159, 253, 0.8), rgba(0, 176, 230, 0.8)), 
                url(../img/world.png);
        background-position: center;
        background-size: cover;
        overflow: hidden;
    }

    #localisation h1 {
        position: relative;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
        margin: 20px 0 30px 0;
        color: #FDFDFD;
    }

    #carte {
    	height: 80vh;
    	display: flex;
        flex-direction: column;
        align-items: center; /* Centre les éléments */
        width: 90%; /* Réduit la largeur pour éviter les débordements */
        max-width: 1200px;
    }

    #maps {
    	height: 90%;
    	width: 100%;
    }

    #add {
    	height: 15%;
        max-width: 100%; 
        word-wrap: break-word; 
        text-align: center;
        padding: 20px; 
        color: #FDFDFD;
        margin-bottom: 40px;
    }

    #add img {
        display: inline-block;
        animation: saut 1.5s infinite ease-in-out;
    }

    @keyframes saut {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }

/* Footer réduit */

    footer {
        background-color: #FDFDFD;
    }

    #small_foot {
    	display: flex;
    	justify-content: center;
    }

    #small_foot .row {
    	width: 80%;
    	height: 100%;
    }

    #small_foot .col {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #small_foot a[href="mentions_legales.html"]:hover {
            color: #0056b3; 
            text-decoration: none;
        }
