/* --- Layout général --- */
body {
    margin: 0;
    font-family: 'GothamBold', sans-serif;
    min-height: 100dvh;
    background-color: #e0dcd7; /* fallback color */
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Blurred background image (low-res) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../assets/images/manuel_auray-light.webp') center center / cover no-repeat;
    filter: blur(10px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../assets/images/manuel_auray-full.webp') center center / cover no-repeat;
    opacity: 0;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}

body.loaded::after {
    opacity: 1;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 70px;
}

header {
    position: fixed;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

/* --- Responsive Layout --- */
.info-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    width: 100%;
    gap: 120px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    height: 100%;
}

/* --- Carte --- */
.map-section {
    flex: 1 1 400px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-box {
    height: 450px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.btn-gmaps {
    background: none;
    color: #222;
    border: none;
    border-radius: 0;
    padding: 0;
    text-decoration: underline;
    font-weight: normal;
    font-size: 1.1em;
    box-shadow: none;
    transition: color 0.2s;
    display: block;
    text-align: center;
    width: 100%;
    cursor: pointer;
}
.btn-gmaps:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* --- Colonne Infos --- */
.info-section {
    flex: 0 1 350px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* --- Box horaires --- */
.horaires-box {
    flex: 1 1 auto;
    padding: 24px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 410px;
}

/* --- Titre et icône --- */
.horaires-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}

.icon-clock {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.horaires-box h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* --- Contenu horaires --- */
.horaires-box hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 14px 0;
}

.horaire-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.05rem;
    flex-grow: 1;
    justify-content: center;
}

.horaire-item {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 1.05rem;
}

.horaire-item strong {
    font-weight: 600;
}

/* --- Texte italique bas --- */
.break {
    font-style: italic;
    text-align: center;
    opacity: 0.85;
    font-weight: 500;
    font-size: 1.05rem;
    padding-top: 8px;
}

/* --- Bouton téléphone --- */
.phone-btn-container {
    display: flex;
    justify-content: center;
}

.btn-phone {
    background-color: #ffc30d;
    padding: 12px 24px;
    font-weight: bold;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    font-size: 1.1em;
}
.btn-phone:hover {
    background-color: #dca912;
}

/* --- responsive ------------------------- */

#adresse-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px;
    font-size: 1.1rem;
    color: #222;
    border-radius: 10px;
    margin-bottom: 20px;
}

#adresse-mobile .pin-icon {
    margin-top: -40px;
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

#adresse-mobile p {
    margin: 0;
    font-size: 1.2em;
    line-height: 0.5;
}

@media (max-width: 900px) {
    #map {
        display: none;
    }

    #adresse-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        font-size: 1.1rem;
        color: #222;
        padding: 10px 0 0;
        margin-bottom: 10px;
    }

    #adresse-mobile p {
        margin: 0;
        font-size: 1.2em;
        line-height: 1.2;
    }

    #adresse-mobile img {
        width: 22px;
        height: 22px;
    }

    .btn-gmaps {
        background-color: #ffc30d;
        padding: 12px 12px;
        font-weight: bold;
        color: black !important;
        border-radius: 6px;
        text-decoration: none !important;
        display: inline-block;
        transition: background-color 0.25s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        font-size: 1.1em;
        margin-top: -100px;
        text-align: center;
        cursor: pointer;
    }

    .btn-gmaps:hover {
        background-color: #dca912;
    }

    .horaires-box {
        margin-top: -60px;
    }

    body::before {
        background-image: url('../assets/images/manuel_auray-mobile.webp');
        filter: none !important;
        position: absolute !important;
        background-attachment: scroll !important;
        transform: translateZ(0); 
        will-change: transform;
    }

    body::after {
        content: none !important;
        display: none !important;
        transition: none !important;
    }

    body {
        background-color: #e0dcd7;
        min-height: 100dvh; 
        overflow-x: hidden;
        overscroll-behavior: none
    }
}

