@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");


/* --- Variables de couleurs --- */
:root {
    --primary: #D9C5B4;
    --secondary: #375F7C;
    --white: #ffffff;
    --dark: #384050;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------------- header ------------------ */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10000;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary); 
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary);
    padding: 1rem 5%;
    color: var(--primary);
    z-index: 9999;
    margin: 0;
    position: relative;
}

.nav-links { display: flex; list-style: none; }
.nav-links li { position: relative; padding: 10px 20px; }
.nav-links a { color: var(--primary); text-decoration: none; transition: 0.3s; }

.logo {
    height: 80px;
    width: auto;
}

/* --- Sous-menu Histoire --- */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    min-width: 180px;
    list-style: none;
    z-index: 10001;
}

.submenu li a { 
    color: var(--primary); 
    display: block; 
    padding: 10px; 
}

.submenu li a:hover { 
    background: var(--dark);
    border-radius: 20%;
}

.dropdown:hover .submenu { display: block; }

/* ---------------- ACCEUIL -----------------*/

/* --- Hero section --- */
.hero {
    height: 600px;
    min-height: 40vh;
    background-image: url('../img/Hero_photo.jpg');
    background-position: right 70% !important;
    background-size: 150% auto;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
    width: 100%;
}

.hero h1 {
    text-align: right;    
    color: #DADCC6;   
    text-shadow: 2px 2px 4px rgba(145, 145, 145, 0.527);
    width: 100%;            
    margin: 0 auto;           
    padding-top: 50px;        
    padding-right: 20px;
}

/* --- Bloc découvrir l'histoire --- */

.intro-box {
    background-color: var(--primary);
    width: 85%;
    max-width: 1200px;
    margin: -50px auto 40px;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
    color: var(--dark);
}

.intro-text {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
}

.intro-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 30px;
    gap: 40px;
}

.intro-image-placeholder {
    flex: 0 0 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    border-radius: 0 60px 0 60px;
    margin-left: 40px;
    padding: 0px;
    min-height: 250px;
    overflow: hidden;

}

.intro-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.btn-decouvrir {
    background: linear-gradient(to right, #793723, #ffffff, #793723);
    border: 1px solid var(--dark);
    padding: 8px 98px;
    border-radius: 25px;
    color: var(--dark);
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.btn-decouvrir:hover {
    transform: scale(1.05);
}

/* --- COMPTE À REBOURS --- */
.countdown-section {
    padding: 60px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    color: var(--primary);
    position: relative;
    padding-bottom: 100px;
}

.countdown-container {
    background-color: var(--secondary);
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    gap: 30px;
    box-shadow: 0 10px 30px var(--primary);
    border: 1px solid var(--dark);
    flex-shrink: 0;
}

.countdown-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    min-width: 80px;
}

.countdown-item .number {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

.countdown-item .label {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.9;
}

.countdown-numbers {
    flex: 1;
    font-size: 5rem;
    font-weight: bold;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 5px;
}

.countdown-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    padding-left: 50px;
    max-width: 400px;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
}

.time-box strong { font-size: 2.5rem; display: block; }

/* --- events --- */

.events-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 80px 5%;
    background-color: var(--secondary);
    color: var(--primary);
}

.events-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    width: 100%;
    flex-wrap: wrap;
}

.event-card {
    background-color: var(--primary);
    border: 1px solid var(--dark);
    border-radius: 20px;
    overflow: hidden;
    width: 350px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card a { 
    text-decoration: none; 
    color: inherit; 
}

.event-text {
    padding: 20px;
    text-align: center;
    color: var(--dark);
    font-size: 1rem;
    font-weight: bold;
}

/* ------- aperçu galerie -------- */

.galerie-preview {
    width: 100%;
    padding: 60px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 50px;
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

.slider {
    flex-grow: 1;
    max-width: 1200px;
    height: 550px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center; 
    display: block;
}



.prev-btn, .next-btn {
    background-color: var(--primary);
    color: var(--secondary);
    border: 2px solid var(--dark);
    font-size: 1.8rem;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--dark);
    color: var(--primary);
}


.slider-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    margin-top: 20px;
}

.slider-footer .btn-decouvrir {
    display: inline-block;
    padding: 4px 40px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- FOOTER --- */
footer {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 40px 5% 20px;
}

.footer-top {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 300px;
}


.footer-links-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    text-align: center;
}


.footer-plan {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.footer-plan h4 {
    margin-bottom: 20px;
    text-decoration: underline;
    width: fit-content;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 20px 100px;
}

footer a {
    color: var(--secondary-beige);
    text-decoration: none;
    font-size: 0.8rem;
}

hr {
    border: 0.2px solid var(--dark);
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}

/* ------------------ CONTACT --------------------- */


.container {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../img/mer.jpg') no-repeat center center fixed;
    background-size: cover;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 80px 20px;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.contact-intro-box {
    background-color: var(--primary);
    border: 1px solid var(--dark);
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.contact-intro-box p {
    margin: 0;
    font-weight: bold;
    color: var(--dark);
}

.contact-section {
    width: 100%;
    max-width: 800px;
}

.contact-section h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-form {
    background: var(--primary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.champ-secret {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
    z-index: -1;
    overflow: hidden;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--dark);
    border-radius: 20px;
    font-size: 1rem;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: calc(100% - 25px) center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    border-radius: 20px;
}

#formFeedback {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.contact-form .btn-decouvrir {
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

/* ---------------  Un Peu d'Histoire -------------- */

.main-container {
    max-width: 1400px; 
    margin: 0 auto;   
    width: 100%;     
    padding: 0 20px;   
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}



.history-submenu {
    background-color: var(--secondary);
    border: 1px solid var(--dark);
    width: fit-content;
    margin: 0 auto;
    padding: 4px 0;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 1;

}

.history-submenu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 0 10px 0 10px;
}

.history-submenu a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
    position: relative;
}

.history-submenu a.active {
    color: var(--dark);
    border-bottom: 1px solid var(--dark);
}

.history-submenu a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);

}

.history-page {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section-sea {
    background: linear-gradient(rgba(217, 197, 180, 0.8), rgba(217, 197, 180, 0.8)),
                url('../img/Histoire/histoire_page/histoire_Erbalunga_B99.jpg') no-repeat center center/cover;
    padding: 1px 5% 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    color: var(--dark);
}

article.info-card + article.info-card {
    margin: 20px 0 20px;
}

.main-page-title {
    text-transform: capitalize;
    margin-bottom: 10px;
    font-weight: bold;
    text-decoration: none; 
}

.title-separator {
    width: 350px;
    border: none;
    border-top: 2px solid var(--dark);
    margin: 10px auto;
}

.bubble-1 {
    align-self: center !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    width: 100%;
}

.bubble-2 {
    display: block; 
    width: fit-content;
    max-width: 600px;  
    margin-left: auto !important; 
    margin-right: 5% !important;  
    position: relative;
}

.bubble-3 {
    align-self: flex-start !important;
    margin-left: 5%;
    max-width: 500px;
    width: 100%;
}
.arrow-decor {
    flex: 0 0 auto;        
    display: flex;
    align-items: center;
}

.arrow-decor img {
    width: 170px;              
    height: auto;
}

.row-container {
    display: flex;
    flex-direction: row;    
    align-items: center;     
    justify-content: flex-start; 
    width: 100%;
    gap: 20px;               
}
/*
.arrow-decor {
    position: absolute;
    top: 52%;
    right: 27%;
    width: 170px;
    text-align: right;
    height: auto;
    z-index: 10;
    pointer-events: none;
    transform: rotate(-10deg); 
}
*/

.section-boats-bg {
    background: linear-gradient(rgba(217, 197, 180, 0.8), rgba(217, 197, 180, 0.8)),
                url('../img/Histoire/histoire_page/histoire_Vieux_Port_Esquif.jpg') no-repeat center/cover;
    background-size: 330%;
    background-position: 80% center;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.boat-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 60px;
    width: 100%;
    margin-bottom: 10px;
}

.boat-row.row-right .boat-description-bubble {
    order: 1 !important;
}

.boat-row.row-right .boat-image-card {
    order: 2 !important;
}

.boat-row.row-left .boat-image-card {
    order: 1 !important;
}

.boat-row.row-left .boat-description-bubble {
    order: 2 !important;
}

.boat-row.row-center {
    flex-direction: column !important;
}


.boat-image-card {
    background-color: var(--primary);
    border: 1px solid var(--dark);
    border-radius: 40px;
    padding: 20px;
    width: 450px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.boat-image-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}


.boat-description-bubble {
    background-color: var(--primary);
    border: 1px solid var(--dark);
    border-radius: 30px;
    padding: 20px 30px;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
}

.boat-description-bubble.large-bubble {
    max-width: 900px;
    width: 90%;
    padding: 15px 50px; 
}

.info-card, .boat-frame, .boat-bubble {
    background-color: var(--primary);
    border: 1px solid var(--dark);
    border-radius: 40px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.underline-title {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: underline
}

/* bouton back to top */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    border: 1px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    cursor: pointer;
    border: none;

    /* CACHÉ PAR DÉFAUT */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* CLASSE QUI SERA AJOUTÉE PAR LE JS */
#backToTop.show {
    opacity: 1;
    visibility: visible;
    border: 1px solid var(--dark)
}

/* ----------------------- La sainte elisabeth page ------------------------ */

.ste-elisabeth-page {
    background: linear-gradient(rgba(217, 197, 180, 0.8), rgba(217, 197, 180, 0.8)),
                url('../img/Histoire/ste_elisabeth_page/La_SE__Vieux_Port_Quai_Nord_4ème_barque_1940.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 1px 5% 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


.intro-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    margin-top: 50px;
    padding: 0 10px 10px;
}


.text-bubble {
    flex: 1;
    background-color: var(--primary);
    padding: 30px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    color: var(--dark);
    max-width: 800px;
}

.text-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.text-link:hover {
    color: var(--secondary);
}


.image-frame {
    flex: 0 0 350px; 
    border: 1px solid var(--dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    width: fit-content;
    transform: rotate(2deg);
    transition: 0.3s;

}

.image-frame img {
    display: block;
    width: 100%;
    height: auto;

}


.details-section {
    display: flex;
    justify-content: center;
    margin: 40px auto; 
    padding: 0 20px;
    max-width: 1100px;
    width: 100%;
}


.text-bubble-centered {
    background-color: var(--primary);
    padding: 10px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: var(--dark);
    text-align: center;
    width: 100%;
    position: relative;
}


.triple-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 50px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}


.text-bubble-middle {
    flex: 2;
    background-color: var(--primary);
    padding: 30px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: var(--dark);
    line-height: 1.6;
    text-align: center;
}


.triple-section .image-frame {
    flex: 1;
    max-width: 250px;
    border: 1px solid var(--dark);
}


.frame-left {
    transform: rotate(-3deg);
}

.frame-right {
    transform: rotate(3deg);
}

.frame-left:hover, .frame-right:hover {
    transform: rotate(0deg) scale(1.1);
}


.vertical-center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 10px auto;
    max-width: 1100px;
    width: 100%;
    padding: 0 20px;
}


.text-bubble-wide {
    background-color: var(--primary);
    padding: 15px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: var(--dark);
    line-height: 1.8;
    text-align: center;
    width: 100%;
}


.centered-frame {
    max-width: 600px;
    width: 100%;
    border: 1px solid var(--dark);
    transform: rotate(-1deg);
    transition: transform 0.3s;
}

.centered-frame:hover {
    transform: rotate(0deg) scale(1.02);
}


.stack-section {
    align-items: center;
    margin: 0 auto; 
}


.images-stack {
    position: relative;
    flex: 0 0 400px;
    height: 430px;   
    display: flex;
    align-items: center;
    justify-content: center;
}


.images-stack .image-frame {
    position: absolute; 
    width: 250px;
    border: 1px solid var(--dark);
    transition: transform 0.3s ease, z-index 0.3s;
}


.stack-1 {
    transform: rotate(-10deg) translateX(-40px);
    z-index: 1;
}

.stack-2 {
    transform: rotate(5deg);
    z-index: 2;
}

.stack-3 {
    transform: rotate(15deg) translateX(40px);
    z-index: 3;
}

/* Effet au survol : l'image passe au premier plan */
.images-stack .image-frame:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
    cursor: pointer;
}

/* --- Style de la Lightbox (Modal) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    cursor: zoom-out;
    overflow: hidden;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--primary);
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.no-scroll {
    overflow: hidden !important;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


.image-frame img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-frame img:hover {
    transform: scale(1.02);
}

/* ----------------------------------- La Rénovation ---------------------------------- */
.restauration-page {
    background: linear-gradient(rgba(217, 197, 180, 0.8), rgba(217, 197, 180, 0.8)),
                url('../img/Histoire/ste_elisabeth_page/La_SE__Vieux_Port_Quai_Nord_4ème_barque_1940.jpg') no-repeat right center/cover;
    background-attachment: fixed;
    padding: 1px 5% 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.small-centered-frame {
    width: 75%;
}


.double-images-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

.double-images-container .image-frame {
    flex: 1;
    max-width: 320px;
}

/* ----------------------------- Le Projet ------------------------------ */

.projet-page {
    background: linear-gradient(rgba(217, 197, 180, 0.8), rgba(217, 197, 180, 0.8)),
                url('../img/Histoire/projet_page/histoire_Vieux_Port_grosse_Tartane.jpg') no-repeat 20% center/cover;
    background-attachment: fixed;
    padding: 1px 5% 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.img-dual-section {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important; 
    gap: 100px;
}

.stacked-images-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    flex: 0 0 auto !important; 
}

.stacked-images-container .image-frame {
    width: 300px !important;  
    height: 150px !important;  
    min-height: 0 !important; 
    max-height: 200px !important; 
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important; 
    border: 1px solid var(--dark);
}

.stacked-images-container .image-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    display: block !important;
    position: static !important;
}

 .vertical-center-section .centered-frame .little {
    width: 100px !important;      
    height: 50px !important;     
    min-height: 0 !important;      
    max-width: 100%;               
    margin: 20px auto;             
    padding: 0 !important;         
    overflow: hidden;              
}


.vertical-center-section .centered-frame .little img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;  
    display: block;
}

.centered-frame.little {
    width: 300px !important;   
    height: 200px !important;  
    min-height: 0 !important;   
    max-width: 100%;
    margin: 20px auto !important;
    padding: 0 !important;
}

.centered-frame.little img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    display: block;
}


.partners-section {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    flex-wrap: wrap; 
}

.partner-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partner-item h4 {
    font-size: 0.9rem;
    color: var(--dark);
    min-height: 40px; 
    display: flex;
    align-items: center;
}

.partner-logo {
    width: 200px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Section des donateurs et souscripteurs */
.donors-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 5%;
    flex-wrap: wrap; 
}

.donor-column {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.donor-bubble {
    width: 100% !important; 
    height: 100%;
    background: var(--primary);
    padding: 30px !important;
}

.donor-bubble ul {
    list-style: none; 
    padding: 0;
    margin-top: 20px;
}

.donor-bubble li {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--secondary); 
    padding-bottom: 5px;
}



/* ------------------------------- activités ------------------------------ */

.event-page {
    background: var(--primary);
    padding: 1px 5% 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);    

}

.next-event-section {
    margin-top: 50px;
}

/* --- Mise en page spécifique Activités --- */
.event-flex-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px !important;
    text-align: left; 
    background-color: var(--primary);
    border-radius: 15px;
}

.event-text-content {
    flex: 1; 
}

.event-visual-sidebar {
    flex: 0 0 320px; 
    display: flex;
    flex-direction: column;
    gap: 50px; 
    border-left: 1px solid var(--dark);
    padding: 20px 10px 20px 30px;
}

.event-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--dark);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.sidebar-countdown {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 5px !important;
    background: var(--secondary);
    box-shadow: none !important;
    border: 1px solid var(--dark);
}

.sidebar-countdown .number {
    font-size: 1.4rem !important;
}



/* --- Page Activités Spécifique --- */
.next-event-hero {
    background: linear-gradient(rgba(55, 95, 124, 0.7), rgba(55, 95, 124, 0.7)), 
                url('../img/mer.jpg') no-repeat center/cover;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.next-event-hero .text-bubble-wide {
    max-width: 900px;
    background-color: var(--primary);
    border: 2px solid var(--dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}


.next-event-hero .countdown-container {
    box-shadow: none;
    background: rgba(56, 64, 80, 0.1); 
    border: 1px solid var(--dark);
    margin: 20px 0;
}



.activity-wrapper {
    display: flex;
    background-color: var(--primary);
    border-radius: 0 15px 15px 0;
    margin: 0 auto;
    width: 95%;
    min-height: 400px;
    max-width: 1800px;
}


.activity-sidebar {
    flex: 0 0 250px;
    padding: 10px 20px 20px 5px;
    color: var(--dark);
}


.activity-content {
    flex: 1;
    padding: 20px;

    border-left: 1px solid var(--dark); 
    position: relative;
    padding-bottom: 70px;

}


.activity-tabs { list-style: none; }
.activity-tabs .tab {
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
    color: var(--dark);
}

.activity-tabs .tab.active {
    background-color: var(--secondary);
    color: var(--primary);
    text-decoration: underline;
}


.regatta-title {
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: bold;
}


.full-width-separator {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--dark);
    margin: 15px 0;
    opacity: 0.5;
}

.semi-width-separator {
    width: 50%;
    border: 0;
    border-top: 1px solid var(--dark);
    margin: 15px 0;
    opacity: 0.5;
}


.regatta-location {
    font-size: 0.9rem;
    color: var(--dark);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}


.regatta-images-container {
    display: flex;
    justify-content: center; 
    gap: 20px;             
    margin: 50px auto;          
    max-width: 100%;
    max-height: 200px;
}


.centered-regatta-img {
    max-width: 100%;          
    height: auto;
    border: 1px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.regatta-description-portrait {
    margin-top: 200px; 
    margin-bottom: 50px;
    padding: 0 10px; 
    text-align: left; 
}


.regatta-description {
    margin-top: 30px; 
    margin-bottom: 50px;
    padding: 0 10px;  
    text-align: left; 
}

.regatta-description h3 {
    color: var(--dark);
}

.regatta-description p {
    color: var(--dark); 
    line-height: 1.6;
}

.portrait-frame {
    flex: 0 0 250px; 
    height: 320px; 
    border: 1px solid var(--dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    transition: 0.3s;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    cursor: zoom-in;
}

/* Puce */
.puce-list {
    list-style-type: disc; 
    padding-left: 20px;   
    margin-top: 10px;
    color: var(--dark);
}

.puce-list li {
    margin-bottom: 10px;   
}

/* ------------------------------- A propos ------------------------------- */

.apropos-body {
    background: linear-gradient(to bottom, #d2c1b0, #375F7C);
    min-height: 100vh;
}

.apropos-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}


.apropos-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    border-radius: 40px;
}


.profile-block .image-wrapper, .map-block .map-wrapper {
    flex: 0 0 400px;
}

.profile-block .text-wrapper, .map-block .text-wrapper, .partners-block .text-wrapper {
    flex: 2;
    text-align: center;
}


.map-block {
    background-color: var(--primary);
    border: 1px solid var(--dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.rounded-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    border: 1px solid #333;
}

.rounded-map {
    border-radius: 30px; 
    border: 1px solid #333;
    width: 100%;
    height: 100px;
}

.map-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden; 
    border: 1px solid #333;
    border-radius: 30px;
    line-height: 0;
    font-size: 0;
}

.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    display: block; 
    border: none;
    margin: 0;
    padding: 0;
}

/* Bloc Partenaires */
.partners-block {
    align-items: flex-start;
}

.partners-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.partners-logos img {
    width: 100%;
    max-width: 100px;
    object-fit: contain;
}

.apropos-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-decoration: underline;
}

/* ------------------------------ Galerie photo ---------------------------- */

.gallery-container {
    display: flex;
    min-height: 80vh;
    margin-top: 0;
    background-color: var(--primary);
}

/* Sidebar à gauche */
.gallery-sidebar {
    width: 250px;
    background: var(--primary);
    color: var(--dark);
    padding: 20px;
    border-right: 1px solid var(--dark);
}

.category-tabs {
    list-style: none;
    position: sticky;
    top: 20px;
    font-weight: bold;
    color: var(--dark);
}

.tab {
    padding: 12px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.tab:hover, .tab.active {
    background-color: var(--secondary);
    color: var(--primary);
    text-decoration: underline;
}


.gallery-content {
    flex: 1;
    padding: 20px;
    background: linear-gradient(rgba(217, 197, 180, 0.8), rgba(217, 197, 180, 0.8)),
                url('../img/Un\ peu\ d\'histoire\ Doc\ 19\ Vieux\ Port\ grosse\ Tartane.jpg') no-repeat center center/cover;
    border-radius: 50px 0 0 50px;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03); 
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    margin: 0;
    color: var(--primary);
}

/* --------------------------- admin galerie photo ------------------------------- */

.admin-container {
    background-color: var(--primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.admin-container h1 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 40px;
    width: 100%;
}

.tab-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark);
}

.admin-contact-form {
    background: var(--primary);
    color: var(--dark);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--dark);
    border-radius: 10%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-contact-form .form-group input, 
.admin-contact-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark);
    border-radius: 20px; 
    font-size: 1rem;
    background-color: var(--white);
}


.admin-contact-form .btn-decouvrir {
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    border-bottom: 2px solid var(--dark);
    width: 100%;
}

.tab-btn {
    padding: 12px 30px;
    cursor: pointer;
    border: 1px solid var(--dark);
    background: var(--primary);
    border-radius: 15px 15px 0 0;
    font-weight: bold;
    transition: all 0.3s ease;
    color: var(--dark);
}

.tab-btn.active {
    background: var(--primary); 
    color: var(--white);
    border-bottom-color: var(--secondary); 
    transform: translateY(2px); 
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.admin-table th, .admin-table td {
    padding: 15px;
    border: 1px solid var(--primary);
    text-align: left;
    color: var(--dark);
}

.admin-table th {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-action {
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-view { background: var(--secondary); color: var(--primary); }
.btn-delete { background: #d9534f; color: var(--primary); }

.admin-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.admin-photo-card {
    background: var(--primary);
    border: 1px solid var(--dark);
    border-radius: 15px;
    padding: 15px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: var(--dark);
}

.admin-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.category-group-title {
    width: 100%;
    text-align: left;
    max-width: 1000px;
    margin: 40px auto 20px;
    padding-left: 15px;
    border-left: 5px solid var(--dark);
    color: var(--dark);
}

/* Flèches de navigation dans le modal */
.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--primary);
    font-weight: bold;
    font-size: 50px;
    transition: 0.3s ease;
    user-select: none;
    text-decoration: none;
    z-index: 100001;
}

.prev-modal { left: 5%; }
.next-modal { right: 5%; }

.prev-modal:hover, .next-modal:hover {
    color: var(--white);
    transform: scale(1.2);
}



/* --- Page de lecture des messages (Admin) --- */

.message-detail-container {
    background: var(--primary);
    padding: 30px;
    border: 1px solid var(--dark);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    text-align: left; 
}

.message-info-line {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

.message-info-line strong {
    color: var(--dark);
}

.message-content-box {
    background-color: #f8f9fa;
    border: 1px solid var(--dark);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap; 
}

.admin-actions-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}


.btn-reply {
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-reply:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
}

/* ------------ login page ----------- */

.login-page h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 25px;
}

.login-page {
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}


.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary);
    color: var(--white);
    border: 1px solid var(--dark);
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 20px;
}

.login-page .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark);
    border-radius: 20px; 
    font-size: 1rem;
    background-color: var(--white);
    text-align: center; 
    outline: none;
    transition: border-color 0.3s ease;
}

.login-page .form-group label {
    display: block;
    margin-top: 15px;
    color: var(--dark);
    font-weight: bold;
}


/* -------------- page mentions legales ---------------- */ 
.page-mentions {
    background-color: var(--primary);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.page-mentions h1 {
    text-align: center;
}

.page-mentions h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.page-mentions ul {
    list-style: none;
    padding-left: 0;
}

.page-mentions li {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;

}

.page-mentions p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}



.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background-color: var(--primary);
    border: 2px solid var(--dark);
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    
    /* Centrage du contenu */
    text-align: center;
}

/* Centrage des boutons */
.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.cookie-banner p {
    color: var(--dark);
    margin: 0; 
    font-size: 0.95em;
}

/* Style des boutons */
.cookie-buttons button {
    padding: 15px 40px;
    cursor: pointer;
    border: 2px solid var(--dark);
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.cookie-buttons button:hover {
    background-color: var(--dark);
    color: var(--white);
}

/* ============================================================
   SECTION RESPONSIVE UNIFIÉE (Mobile & Tablettes)
   ============================================================ */

@media (max-width: 1024px) {
    /* Ajustements Tablettes */

    /* --- Header & Burger Menu --- */
    .burger-menu {
        display: flex; 
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(55, 95, 124, 0.70); 
        
        

        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0; 
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.4s ease-out, visibility 0.4s ease-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .navbar {
        padding: 1rem 5%; 
    }

/* Classe activée en JavaScript lors du clic */
    .nav-links.nav-open {
        max-height: 500px;
        padding: 20px 0;
        visibility: visible;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .nav-links li {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* Adaptation des sous-menus (Dropdown) sur mobile */
    .nav-links .submenu {
        position: static;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow: none;
    }

    /* Animation des barres du burger qui se transforment en "X" */
    .burger-menu.toggle-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-menu.toggle-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.toggle-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }



    .history-submenu { 
        width: 95%; 
    }


    .intro-content-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
        margin-top: 20px;
    }

    .intro-image-placeholder {
        flex: auto;
        width: 100%;
        max-width: 400px;
        margin-left: 0;
    }

    /* ---------- page activités ------- */

    .activity-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    /* 2. Cibler les blocs internes contenant le texte et les images */
    .activity-content-block, 
    .navigation-details, 
    .regatta-details {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        width: 100%;
    }

    /* 3. Ajuster le conteneur des images pour qu'il prenne toute la largeur */
    .regatta-images-container {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        margin-top: 15px; 
    }

    /* 4. Forcer les cadres des images à occuper 100% de la largeur disponible */
    .image-frame {
        width: 75% !important;
        max-width: 450px;
        margin: 0 auto;
    }

    .centered-regatta-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    .activity-sidebar {
        width: 100%;
        border: 5px var(--dark);
        margin-bottom: 0px;
    }

    .activity-tabs li {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .activity-tabs {
        display: flex;
        overflow-x: auto; 
        white-space: nowrap;
        padding: 10px;
        list-style: none;
    }

    /* --------- page galerie -------- */

    .gallery-container {
        display: flex !important;
        flex-direction: column !important; 
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .gallery-content {
        width: 100% !important;
        display: block !important; 
        opacity: 1 !important; 
        visibility: visible !important;  
        padding: 10px !important;
    }

    .gallery-grid {
        display: grid !important;  
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .gallery-item {
        display: block;    
    }

    .gallery-sidebar {
        width: 100%;
        border: 5px var(--dark);
        margin-bottom: 0px;
    }

    .category-tabs li {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .category-tabs {
        display: flex;
        overflow-x: auto; 
        white-space: nowrap;
        padding: 10px;
        list-style: none;
    }

    /* --------- page un peu d'histoire --------- */

    .section-boats-bg {
        margin-top: 0 !important; 
        padding: 60px 5% !important;
        background-size: cover !important; 
        background-position: center !important;
        background-attachment: scroll !important;
    }

    .section-sea {
        margin-bottom: 0 !important;
        padding-bottom: 40px !important;
    }

    .history-page {
        gap: 0 !important; 
    }

    .boat-intro-block, 
    .boat-intro-block-reverse {
        flex-direction: column !important; 
        align-items: center !important;  
        justify-content: center !important;
        gap: 20px !important; 
        width: 100% !important;
        padding: 10px 0 !important;
    }


    /* 2. Réajuster les cadres d'images pour qu'ils soient bien centrés */
    .image-card {
        width: 80% !important;  
        max-width: 320px !important;  
        text-align: center !important;
        margin: 0 auto !important;
    }

    .image-card img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* 3. Ajuster et centrer les bulles de description */
    .boat-description-bubble, 
    .large-bubble {
        width: 90% !important; 
        max-width: 550px !important; 
        text-align: center !important; 
        margin: 0 auto !important; 
        padding: 20px !important;
    }

    /* Retirer les effets de flèches ou décalages CSS spécifiques de la version ordi si nécessaire */
    .boat-description-bubble::before,
    .boat-description-bubble::after {
        display: none !important; 
    }


    .arrow-decor {
        display: none !important;
    }

    .row-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .bubble-3 {
        width: 90% !important; 
        max-width: 600px !important; 
        margin: 0 auto !important; 
        align-self: center !important; 
        text-align: center !important;
    }

    /* ---------- page La Restauration --------- */ 

    .restauration-page .intro-section {
        gap: 50px !important;
    }

    .images-stack {
        flex: 0 0 300px;
        height: 350px;
        gap: 40px;
        padding: 20px;
    }

    .images-stack .image-frame {
        width: 180px;
    }

    /* --------- page le projet --------- */

    .projet-page .main-container {
        width: 100% !important;
    }

  
    .projet-page .donor-bubble {
        width: 100% !important;
    }

    .donor-bubble ul {
        columns: 1 !important;
    }

    /* -------  page la ste elisabeth --------- */

    .ste-elisabeth-page .image-frame, .centered-frame {
        flex: none;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 10px auto !important;
        overflow: hidden !important; 
    }

    .ste-elisabeth-page .image-frame img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .intro-section {
        flex-direction: column;
        gap: 30px;
    }

}

@media (max-width: 768px) {
    /* --- Structure Globale --- */
    .navbar {
        flex-direction: row;
        text-align: center;
        padding: 1rem 5%;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        display: flex;
        list-style: none;
    }

    .logo { height: 60px; margin-bottom: 10px; width: auto; }

    /* --- Page Index (Accueil) --- */
    .hero {
        height: 60vh;
        background-attachment: scroll; 
        background-size: cover;
        background-position: center;
    }
    
    .hero h1 { font-size: 1.8rem; padding: 0 10px; }
    
    .intro-section, .triple-section, .stack-section {
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
        display: flex;
    }



    .text-bubble, .text-bubble-middle, .text-bubble-wide {
        width: 95% !important;
        margin: 10px auto !important;
        float: none !important;
    }

    .image-frame {
        max-width: 90% !important;
        transform: rotate(0deg) !important; 
        margin: 15px auto !important;
        float: none !important;
    }

    .slider-container { 
        height: auto; 
        width: 100%; 
    }

    .slider {
        height: 400px; 
        width: 100%;
    }

    .slider-footer {
        margin-top: 30px;
        position: relative;
        z-index: 10;
    }

    /* --- Page Activités --- */
    .activity-wrapper {
        flex-direction: column;
        display: flex;
    }

    

    .activity-content-block, 
    .navigation-details, 
    .regatta-details {
        display: flex;
        flex-direction: column; 
        align-items: center;
    }

    .regatta-images-container {
        display: flex;
        flex-direction: row; 
        align-items: center;
        gap: 15px; 
    }

    /* Application du cadre réduit et centré pour les téléphones */
    .image-frame {
        width: 55% !important; 
        max-width: 160px !important; 
        margin: 0 auto !important;
    }

    .centered-regatta-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* --- Page Galerie --- */
    .gallery-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .gallery-sidebar {
        width: 100% !important;
        position: static !important;
        margin-bottom: 15px;
    }

    .category-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;      
        justify-content: flex-start !important;
        overflow-x: auto !important;   
        white-space: nowrap !important;  
        gap: 10px;
        padding: 10px 15px !important;
    }

    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; 
        gap: 10px !important;
    }

    .category-tabs .tab {
        flex: 0 0 auto !important; 
        padding: 8px 16px;      
        font-size: 0.9rem;
    }

    .gallery-content {
        width: 100% !important;
        display: block !important;
    }

    /* --- Page un peu d'histoire --- */
    .history-submenu ul {
        flex-wrap: wrap;
        justify-content: center;
        display: flex;
        list-style: none;
    }

    .history-submenu li {
        margin: 5px;
    }

    .info-card {
        width: 95% !important;
        padding: 20px !important;
        margin: 10px auto !important;
    }

    .boat-section {
        flex-direction: column;
        display: flex;
    }

    .boat-row .boat-image-card {
        width: 70% !important;   
        max-width: 250px !important; 
        margin: 0 auto !important;
    }

    .boat-row .boat-image-card img {
        width: 100% !important;
        height: auto !important;
    }

    /* -------- page La Restauration ------ */

    .restauration-page .intro-section,
    .restauration-page .triple-section,
    .restauration-page .vertical-center-section {
        flex-direction: column !important;
        gap: 30px;
        padding: 0 10px;
    }

    /* Inverser l'ordre de la section inverse (Texte en premier, images en dessous) */
    .restauration-page .intro-section.inverse-section {
        flex-direction: column-reverse !important;
    }

    .restauration-page .text-bubble-wide,
    .restauration-page .text-bubble-middle {
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Annulation de l'effet d'empilement (stack) sur mobile */
    .images-stack {
        position: relative;
        height: auto !important;
        min-height: 0 !important;
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-top: 10px;
    }

    .images-stack .image-frame {
        position: relative !important; 
        transform: none !important;    
        width: 56% !important; 
        max-width: 85% !important;
        flex: none !important;
        height: fit-content !important;  
        display: block !important;
        margin: 15px auto !important;
        z-index: 1 !important;
        overflow: hidden !important; 
    }

    

    .images-stack .image-frame img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        
    }

    .images-stack .image-frame:hover {
        transform: scale(1.02) !important;
    }

    /* Gestion des doubles images */
    .double-images-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .double-images-container .image-frame {
        max-width: 85% !important;
        margin: 0 auto;
    }

    /* Gestion des triples sections (Image - Texte - Image) */
    .triple-section .image-frame {
        transform: none !important; 
        max-width: 85% !important;
        margin: 15px auto !important;
    }
    
    .frame-left, .frame-right {
        transform: none !important;
    }

    /* ----------- page le projet -------------  */ 

    

    /* Transforme la disposition des bulles en colonne */
    .projet-page .donor-bubble {
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 15px !important;
    }

    /* Liste des noms plus lisible sur mobile */
    .donor-bubble ul {
        columns: 1 !important;
        font-size: 0.9rem;
    }

    .centered-frame, 
    .image-frame {
        flex: none !important;
        height: fit-content !important; 
        display: block !important;
        overflow: hidden;  
    }

    .centered-frame img,
    .image-frame img {
        display: block !important; 
        width: 100% !important;  
        height: auto !important;     
    }

    .img-dual-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    .stacked-images-container {
        display: flex !important;
        flex-direction: row !important;
    }




    /* ----------- Page À Propos  --------------- */

    .profile-block {
        flex-direction: column; 
        align-items: center;   
        text-align: center;   
        gap: 25px; 
    }

    /* Optionnel : S'assurer que les blocs prennent bien toute la largeur sur mobile */
    .profile-block .image-wrapper,
    .profile-block .text-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .profile-block .rounded-img {
        max-width: 250px;     
        height: auto;
    }

    .map-block {
        display: flex;
        flex-direction: column;  
        align-items: center;  
        text-align: center;  
        gap: 20px; 
        width: 100%;
    }

    .map-block .text-wrapper {
        width: 100%;
        padding: 0 15px; 
    }

    .map-block .map-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 0px; 
    }

    /* Force l'iframe Google Maps à s'adapter parfaitement à la largeur du mobile */
    .map-block .map-wrapper iframe {
        width: 100% !important;
        height: 280px;  
        border-radius: 8px; 
    }

/* --- RESPONSIVE FOOTER --- */
    footer {
        padding: 30px 5% 20px;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;  
        gap: 30px;
    }

    .footer-links-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-plan {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-plan .plan-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center; 
        width: 100%;
        max-width: 300px; 
    }
}

@media (max-width: 480px) {
    /* Très petits écrans */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .btn-decouvrir { width: 100%; text-align: center; display: inline-block; }
}