body {
    background-color: #007bff; /* Bleu */
    background-image: url('../img/filigrane.png'); /* Filigrane répété */
    background-repeat: repeat;
    background-size: 600px 600px; /* Ajustez selon l'image */
    background-attachment: fixed;
    background-blend-mode: overlay;
}
.block {
    background-color: rgba(245, 245, 220, 0.94); /* Crème semi-translucide pour voir le filigrane en arrière-plan */
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 1200px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.row {
    margin-bottom: 0.5rem;
    align-items: flex-start; /* Alignement vertical supérieur pour toutes les colonnes */
}
.sticky-menu {
    padding: 0.1rem 0.2rem;
    min-height: 28px;
}
.block.sticky-menu {
    padding: 0.2rem 0.2rem;
    box-shadow: none;
}
.sticky-menu .row {
    margin-bottom: 0;
    padding: 0;
    min-height: auto;
    align-items: center;
}
.sticky-menu .col-10.box {
    padding: 0;
    min-height: auto;
}
.sticky-menu .col-1.box {
    padding: 0 0.2rem;
}
.sticky-menu .menu-toggle {
    top: 0.3rem;
    right: 0.3rem;
    font-size: 20px;
}

.box {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.a-cell {
    min-height: 140px; /* Calibre toutes les cases A pour même hauteur */
}
.last-cell {
    min-height: 140px; /* Calibre toutes les dernières cases pour même hauteur */
}
.rounded-image {
    border-radius: 12px; /* Arrondi des coins */
}
.sticky-menu {
    position: sticky;
    top: 0;
    z-index: 100;
}
.menu-toggle {
    display: none;
    background-color: red;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 101;
}
.menu-content {
    display: none;
}
.desktop-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.desktop-menu .btn {
    background-color: #f1aeae;
    border-color: #f1aeae;
    color: white;
}
.menu-content .btn:hover {
    background-color: white;
    color: #f1aeae;
    border-color: #f1aeae;
}
@media (max-width: 768px) {
    .sticky-menu {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .mobile-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 3rem;
        right: 1rem;
        background-color: rgba(245, 220, 220, 0.98);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 100;
        width: 200px;
        gap: 2rem;
    }
    .mobile-menu.show {
        display: flex;
    }
    .mobile-menu .btn {
        width: 100%;
        font-size: 14px;
    }
    .mobile-menu .btn:hover {
        background-color: #f1aeae;
        color: white;
        border-color: #f1aeae;
    }
    .line5-row {
        display: flex;
        flex-wrap: wrap;
    }
    .line5-text {
        order: 1;
        width: 100%;
        padding-right: 0;
    }
    .row {
        flex-direction: column !important;
    }
    .row > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    .line5-join {
        order: 2;
        width: 100%;
        margin-top: 0.5rem;
    }
    .a-cell,
    .last-cell {
        display: none !important;
    }
    .block:first-of-type .row:first-of-type .a-cell,
    .block:first-of-type .row:first-of-type .last-cell {
        display: block !important;
        width: 100% !important;
        height: 80px !important;
        min-height: 80px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
    .mobile-logo-overlay {
        position: fixed;
        top: 0.5rem;
        left: 0.5rem;
        z-index: 200;
        padding: 4px;
        background: rgba(255,255,255,0.9);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .mobile-logo-overlay img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }
    .main-title {
        margin-top: 80px;
    }
    body {
        padding-top: 0 !important;
    }
    .block:first-of-type {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }
    .mobile-spacer {
        display: none;
        height: 80px;
        width: 100%;
    }
    .mobile-logo-overlay {
        display: block;
    }
    .mobile-logo-overlay + .mobile-spacer {
        display: none;
    }
    .desktop-logo {
        display: block;
    }
    .desktop-logo img {
        display: block;
    }
    .desktop-logo {
        display: none;
    }
    .objectives-grid .row {
        flex-direction: column;
    }
    .objectives-grid .row .col-2 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .objectives-grid .row .col-2 img,
    .objectives-grid .row .col-2 p,
    .objectives-grid .row .col-2 h2 {
        width: 100% !important;
    }
    .block .row {
        margin-bottom: 0 !important;
    }
    .block .col-1.box,
    .block .col-5.box,
    .block .col-8.box,
    .block .col-9.box,
    .block .col-10.box,
    .line5-text,
    .line5-join {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .block .box > h1,
    .block .box > p,
    .block .box > img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
