@import url("../assets/cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

@import url("https://fonts.googleapis.com/css?family=Oswald:400|Mada:900,400,200,600,300,500,700|Montserrat:500");


@font-face {
    font-family: "Nexa-Heavy";
    font-style: normal;
    font-weight: 400;
    src: url('https://anima-uploads.s3.amazonaws.com/5c4feaf636c3b1000b0f3d43/Fontfabric - Nexa-Heavy.otf') format("opentype");
}

@font-face {
    font-family: "Nexa-Regular";
    font-style: normal;
    font-weight: 400;
    src: url('https://anima-uploads.s3.amazonaws.com/5c4feaf636c3b1000b0f3d43/Fontfabric - Nexa-Regular.otf') format("opentype");
}

/* The following line is used to measure usage of this code. You can remove it if you want. */
@import url("assets/px.animaapp.com/6132655b666cc9f5db22b7e2.6132655ce93298fefab3d329.0oKCsrb.hch.png");


b {
    font-weight: bold;
}

.link {
    text-decoration: underline;
    cursor: pointer;
}


body {
    padding: 0;
    margin: 0;
    font-family: 'Mada', Helvetica;
    font-size: 16px;
}


/* Styles du popup - Interface Fullscreen Moderne */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Conteneur principal de la galerie */
.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    box-sizing: border-box;
}

/* Image principale */
.gallery-main-image {
    background-color: white;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gallery-main-image:active {
    cursor: grabbing;
}

.gallery-main-image.zoomed {
    cursor: grab;
}

.gallery-main-image.zoomed:active {
    cursor: grabbing;
}

/* Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 30px;
}

.gallery-nav.next {
    right: 30px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: white;
    stroke-width: 2;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* Indicateurs */
.gallery-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10001;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-indicator.active {
    background: #E2001A;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(226, 0, 26, 0.5);
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Informations de l'image */
.gallery-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
}

/* Bouton de fermeture amélioré */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(226, 0, 26, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(226, 0, 26, 0.3);
}

.gallery-close:hover {
    background: rgba(226, 0, 26, 1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(226, 0, 26, 0.5);
}

.gallery-close:active {
    transform: scale(1.05) rotate(90deg);
}

.gallery-close svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: white;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.gallery-close:hover svg {
    stroke-width: 3;
}

/* Contrôles de zoom */
.gallery-zoom-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10001;
}

.gallery-zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.gallery-zoom-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Animation d'entrée */
@keyframes gallerySlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gallery-main-image {
    animation: gallerySlideIn 0.4s ease-out;
}

/* ===== DESIGN ÉLÉGANT POUR LES CARTES D'OUTILS PÉDAGOGIQUES ===== */

.grid-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* border: 1px solid rgba(226, 0, 26, 0.1); */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 260px;
}

/* Effet de survol subtil */
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(226, 0, 26, 0.15);
    border-color: rgba(226, 0, 26, 0.3);
}

/* Images avec design amélioré */
.grid-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 50%;
    /* padding: 10px; */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #E2001A;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(226, 0, 26, 0.2);
}

.grid-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(226, 0, 26, 0.3);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

/* Titres avec typographie améliorée */
.grid-item h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
}

.grid-item:hover h3 {
    color: #E2001A;
}

/* Indicateur de clic discret - seulement pour les éléments cliquables */
.grid-item.clickable::after {
    content: 'Cliquer pour voir';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(226, 0, 26, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.grid-item.clickable:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Effet de focus pour l'accessibilité */
.grid-item:focus {
    outline: 2px solid #E2001A;
    outline-offset: 2px;
}

/* Style spécifique pour les collèges et lycées - sans format de carte */
.grid-item.simple {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: auto;
    border-radius: 0;
}

.grid-item.simple:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.grid-item.simple img {
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.grid-item.simple:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.grid-item.simple h3 {
    margin-top: 10px;
}

.grid-item.simple:hover h3 {
    color: #E2001A;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-nav {
        width: 50px;
        height: 50px;
    }

    .gallery-nav.prev {
        left: 15px;
    }

    .gallery-nav.next {
        right: 15px;
    }

    .gallery-close {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }

    .gallery-close svg {
        width: 20px;
        height: 20px;
    }

    .gallery-indicators {
        bottom: 20px;
    }

    .gallery-zoom-controls {
        bottom: 20px;
        right: 20px;
    }

    .gallery-main-image {
        max-width: 95%;
        max-height: 85%;
    }

    /* Responsive pour les cartes d'outils */
    .grid-item {
        padding: 20px;
        min-height: 240px;
    }

    .grid-item:hover {
        transform: translateY(-3px);
    }

    .grid-item img {
        width: 120px;
        height: 120px;
        padding: 20px;
        margin-bottom: 15px;
    }

    .grid-item h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    .grid-item.clickable::after {
        font-size: 11px;
        padding: 5px 10px;
        bottom: 12px;
    }
}



.btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    border: none;
    background: none;
    font-size: 24px;
    color: #E2001A;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.logonav {
    padding: 15px 10px;
    width: 120px;
    height: 30px;
}

.colnav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding: 8px 25px;
}

.titlenav {
    font-size: 12px;
    font-family: 'Mada', Helvetica;
    font-weight: 700;
}

.titlecontact {
    font-size: 16px;
    font-family: 'Mada', Helvetica;
    font-weight: 700;

}


/* Carousel stype begin */

.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.nav-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #3b82f6;
}

/* Carousel stype end */

.sidebar {
    position: fixed;
    /* Fixé à gauche de l'écran */
    top: 60px;
    left: 0px;
    height: 150vh;
    /* Prend toute la hauteur de l'écran */
    display: flex;
}

.metho_content {
    padding: 30px 50px;
}

/* Définir l'animation fade-down-right */
.fade-down-right-animation {
    opacity: 0;
    transform: translate(50px, 50px);
    transition: opacity 0.8s ease-in, transform 0.8s ease-in;
}

/* Cette classe s'ajoute quand l'élément est visible */
.fade-down-right-animation.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.cursor {
    cursor: pointer !important;
}

.sidd {
    background-image: url('img/vector-4-2.png');
    background-repeat: repeat-y;
    height: 100%;
    left: -106px;
    opacity: 1;
    position: fixed;
    width: 470px;
}

ul li {
    font-size: 17px;
}

.retour {
    --z-index: 6;
    background-color: transparent;
    border: 2px solid;
    border-color: #ffffff;
    border-radius: 70px;
    height: 30px;
    color: white;
    left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 105px;
    width: 100px;
}

.row {
    display: flex;
    overflow-y: scroll;
    top: 20px;
}

.title {
    padding: 25px;
    align-items: center;
    text-align: center;
    font-size: 35px;
    color: #E2001A;
    text-transform: uppercase;
    line-height: 25px;
    font-weight: 200;
}

p {
    font-size: 17px;
    line-height: 25px;
}

.content-prev {
    display: flex;
}

.ellipse {
    margin: 5px;
    padding: 12px;
    border-radius: 50px;
    background-color: white;
    border: 2px solid red;
}

.group-174-YwU3cl {
    --z-index: 999;
    height: 69px;
    right: 25px;
    opacity: 1;
    position: fixed;
    top: 130px;
    width: 28px;
}


.content_text {
    padding: 35px;
    justify-content: center;
    text-align: center;
}

.border_round_red {
    margin: 10px;
    padding: 5px 30px;
    letter-spacing: 1.60px;
    color: #E2001A;
    border-radius: 15px;
    font-weight: 300;
    border: 1px solid #E2001A;
}

.body_prev {
    overflow-x: hidden;
    top: 55px;
    padding-left: 310px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    margin-top: 90px;
}

.content_drop {
    --z-index: 2;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    background-color: transparent;
    cursor: pointer;
    height: 48px;
    left: 12px;
    opacity: 1;
    position: fixed;
    top: 175px;
    color: white;
    width: 258px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Au moins 3 colonnes */
    gap: 20px;
    /* Espacement entre les items */
    padding: 0px;
}

/* Style pour chaque item */
.grid-item {
    display: flex;
    flex-direction: column;
    /* Organisation en colonne */
    align-items: center;
    /* Aligné à gauche */
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.img_rounded {
    border-radius: 80px;
    border: 1px solid red;
    padding: 30px 5px;
    margin: 15px 0px;
}


.img_square {
    border-radius: 20px;
    border: 1px solid red;
    padding: 0px;
    margin: 15px 0px;
    object-fit: cover;
}



.txt_black {
    color: black !important;
    font-weight: 500;
}

/* Style du titre */
.grid-item h6 {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
    color: #E2001A;
}

/* Style du paragraphe */
.grid-item p {
    /* font-size: 14px; */
    font-size: 17 px;
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.rownav {
    display: flex;
}

.headnav {
    height: 60px;
    display: flex;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    /* flex-direction: row; */
    position: fixed;
    width: 100%;
    z-index: 2;
    background-color: white;
    justify-content: space-evenly;
    padding: 0px 50px;
}


.row {
    display: grid;
    grid-template-columns: 30% 70%;
    /* Définit deux colonnes avec 30% et 70% */
    /* height: 100vh; */

}

.txt_red {
    color: #E2001A;
}

/* Colonne de gauche */
.column-left {
    padding-left: 10px;
    text-align: left;
    text-transform: uppercase;
    color: txt_red;
    display: flex;
    align-items: center;
    /* Centrer verticalement */
    justify-content: left;
    /* Centrer horizontalement */
}

/* Colonne de droite */
.column-right {
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Styles pour le pop-up */
.popup {
    display: none;
    /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.show {
    opacity: 1;
}

h5 {
    font-size: 18px;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 25px;
    max-width: 95%;
    width: auto;
    min-width: 300px;
    text-align: center;
    position: relative;
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
    margin: auto;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup.show .popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-content img {
    width: 350px;
    border-radius: 5px;
}

#popup-img-container {
    overflow: auto;
    max-width: 100%;
    max-height: 85vh;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    width: 100%;
}

#popup-zoom-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

.popup-content p {
    margin-top: 10px;
    font-size: 16px;
}

li {
    padding: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.open-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: blue;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}



.book-container-old {
    position: relative;
    width: 900px;
    height: 600px;
    perspective: 2000px;
    margin: 50px auto;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.hard-cover {
    position: absolute;
    width: 50%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: transform 1s ease-in-out;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.hard-cover-front {
    background: #e04666;
    /* Rouge rosé */
    background: linear-gradient(45deg, #cc3355, #e04666);
    border-radius: 0 5px 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hard-cover-front:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hard-cover-back {
    background: #e04666;
    background: linear-gradient(45deg, #e04666, #cc3355);
    border-radius: 5px 0 0 5px;
    left: 50%;
    transform: rotateY(180deg);
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    color: white;
}

.book-spine {
    position: absolute;
    width: 50px;
    height: 100%;
    left: 50%;
    transform: translateX(-25px) rotateY(0deg);
    background: #bb2244;
    z-index: 5;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1);
}

.page {
    position: absolute;
    width: 48%;
    height: 98%;
    top: 1%;
    right: 1%;
    background: white;
    border-radius: 1px;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-front,
.page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 30px;
    box-sizing: border-box;
    background: white;
    backface-visibility: hidden;
}

.page-back {
    transform: rotateY(180deg);
}

.page-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-header {
    color: #bb2244;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0c0c0;
    padding-bottom: 10px;
    font-size: 24px;
}

.page-text {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    text-align: justify;
}

.page-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 5px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.page-number {
    text-align: center;
    font-style: italic;
    color: #bb2244;
    margin-top: 20px;
}

.navigation {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-btn {
    padding: 12px 25px;
    background: #e04666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: #cc3355;
}

.nav-btn:disabled {
    background: #f0c0c0;
    cursor: not-allowed;
}

.book-shadow {
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -25px;
    left: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.cover-title {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.cover-subtitle {
    font-size: 18px;
    margin-top: 20px;
    opacity: 0.9;
}

.cover-image {
    width: 80%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin: 30px 0;
    border: 8px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.open-hint {
    position: absolute;
    bottom: 30px;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 16px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

.page-fold {
    position: absolute;
    height: 100%;
    width: 20px;
    left: 0;
    top: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.book-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
}

.left-page,
.right-page {
    width: 50%;
    height: 100%;
    background: white;
    overflow: hidden;
    padding: 30px;
    box-sizing: border-box;
}

.left-page {
    border-radius: 5px 0 0 5px;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1);
}

.right-page {
    border-radius: 0 5px 5px 0;
    box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.1);
}

.page-content-static {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-header-static {
    color: #bb2244;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0c0c0;
    padding-bottom: 10px;
    font-size: 22px;
}

.page-text-static {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    text-align: justify;
}

.page-image-static {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.paper-texture {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.05;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Animation d'ouverture du livre */
@keyframes openCover {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(-180deg);
    }
}

@keyframes pageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.opening-animation {
    animation: openCover 1.5s forwards;
}

.page-animation {
    animation: pageAppear 0.8s forwards;
    animation-delay: 1s;
}

.navigation-animation {
    animation: pageAppear 0.8s forwards;
    animation-delay: 1.5s;
}

/* ===== ANIMATION SCROLL FULLPAGE ===== */
.scroll-animation-container {
    position: relative;
    height: 100vh;
    /* overflow: hidden; */
    z-index: 1;
}

.scroll-animation-container.single-section {
    height: auto;
    overflow: visible;
}

.scroll-animation-container.single-section .scroll-section {
    position: relative;
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

.scroll-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    pointer-events: none;
}

.scroll-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
    pointer-events: auto;
}

.scroll-section.prev {
    transform: translateY(-100px);
}

/* Section 1: Hero */
.scroll-section[data-section="1"] {
    color: white;
}

.section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    /* padding: 0 40px; */
    /* gap: 60px; */
}

.hero-text {
    flex: 1;
    text-align: left;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.scroll-indicator span {
    font-size: 1rem;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.parallax-img:hover {
    transform: scale(1.05);
}

/* Images cliquables */
.clickable-img {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.clickable-img::after {
    content: 'Cliquez pour ouvrir le livre';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.clickable-img:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.clickable-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(226, 0, 26, 0.3);
}

/* Sections 2-5: Content Layout */
.content-left {
    flex: 1;
    padding-left: 40px;
}

.content-right {
    flex: 1;
    padding-right: 40px;
}

.content-left {
    text-align: left;
}

.content-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #E2001A, #89101e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 40px;
}

.section-img {
    max-width: 100%;
    max-height: 40vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.section-img:hover {
    transform: scale(1.05);
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E2001A;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* Plateau de Jeu - Grille moderne */
.plateau-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    /* padding: 30px 40px; */
}

.plateau-header {
    text-align: center;
    max-width: 800px;
}

.plateau-header .section-title {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.plateau-header .section-description {
    margin-bottom: 0;
    font-size: 1rem;
}

.plateau-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 1200px;
    padding: 10px 0;
}

.plateau-card {
    width: 219px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plateau-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(226, 0, 26, 0.05), rgba(137, 16, 30, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.plateau-card:hover::before {
    opacity: 1;
}

.plateau-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(226, 0, 26, 0.25);
}

.plateau-card-image {
    margin-top: 10px;
    position: relative;
    /* width: 100%; */
    /* padding: 20px; */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* min-height: 220px; */
    overflow: hidden;
}

.plateau-card-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    margin: 0 auto;
    display: block;
}

.plateau-card:hover .plateau-card-image img {
    transform: scale(1.08);
}

.plateau-card-label {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    border-top: 3px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.plateau-card:hover .plateau-card-label {
    color: #E2001A;
    border-top-color: #E2001A;
    background: linear-gradient(to bottom, rgba(226, 0, 26, 0.02), white);
}

/* Responsive pour la grille */
@media (max-width: 1200px) {
    .plateau-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .plateau-section {
        padding: 25px 20px;
    }

    .plateau-header {
        margin-bottom: 20px;
    }

    .plateau-header .section-title {
        font-size: 2rem;
    }

    .plateau-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }

    .plateau-card-image {
        min-height: 180px;
        padding: 15px;
    }

    .plateau-card-image img {
        max-height: 150px;
    }

    .plateau-card-label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Gallery Preview */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.preview-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.05);
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.preview-item .clickable-img::after {
    bottom: -25px;
    font-size: 0.7rem;
    padding: 6px 12px;
}

.preview-item .clickable-img:hover::after {
    bottom: -35px;
}

/* Section 5: Transition */
.transition-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.transition-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #E2001A, #89101e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transition-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 50px;
    line-height: 1.6;
}

.transition-animation {
    margin: 50px 0;
    position: relative;
    height: 200px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-item {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.floating-item:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-item:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-item:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 3s;
}

.floating-item:nth-child(4) {
    top: 40%;
    right: 50%;
    animation-delay: 4.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #E2001A, #89101e);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(226, 0, 26, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(226, 0, 26, 0.4);
}

.button-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Navigation Dots */
.scroll-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.scroll-navigation.tools-nav-visible {
    opacity: 1;
    visibility: visible;
}

/* Pour les pages avec id="outils", les nav-dots doivent être conditionnels */
.page-with-tools .scroll-navigation {
    opacity: 0;
    visibility: hidden;
}

.page-with-tools .scroll-navigation.tools-nav-visible {
    opacity: 1;
    visibility: visible;
}

.nav-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #E2001A;
    position: relative;
    pointer-events: auto;
    z-index: 10000;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
}

.nav-dot.active {
    background: #E2001A;
    border-color: #E2001A;
    transform: scale(1.2);
}

.nav-dot:hover {
    background: rgba(226, 0, 26, 0.7);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 30px;
    }

    .main-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-content {
        padding: 0 20px;
    }

    .content-left,
    .content-right {
        padding: 20px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-preview {
        grid-template-columns: 1fr;
    }

    .scroll-navigation {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .transition-title {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .floating-item {
        font-size: 2rem;
    }
}

/* ===== INTERFACE LIVRE INTERACTIF ===== */
.book-interface {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Couverture du Livre */
.book-cover {
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, #E2001A 0%, #43050c 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="grain"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter></defs><rect width="100%" height="100%" filter="url(%23grain)" opacity="0.1"/></svg>');
    animation: grain 2s steps(10) infinite;
}

.book-cover:hover {
    transform: scale(1.05) rotateY(-5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.book-cover-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.book-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.book-title p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.book-decoration {
    margin: 30px 0;
}

.book-icon {
    font-size: 4rem;
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.book-instruction {
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.book-instruction span {
    font-size: 1rem;
    font-weight: 500;
}

/* Livre Ouvert */
.book-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.book-container.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.book-pages {
    width: 800px;
    height: 600px;
    position: relative;
    perspective: 1000px;
}

.book-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: rotateY(90deg);
}

.book-page.active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
}

.book-page.prev {
    transform: rotateY(-90deg);
}

.page-content {
    /* padding: 40px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-header {
    text-align: center;
    /* margin-bottom: 30px; */
}

.page-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    padding: 10px;
    /* margin-bottom: 10px; */
}

.page-header p {
    font-size: 1.1rem;
    color: #E2001A;
    font-weight: 500;
}

.page-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.page-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.page-image img:hover:not(.zoomed) {
    transform: scale(1.05);
}

.page-image img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
    z-index: 100000;
    position: relative;
    pointer-events: auto;
}

.page-description {
    text-align: center;
    margin-top: 20px;
}

.page-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Contrôles de Navigation */
.book-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 100001;
    pointer-events: auto;
}

.book-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #E2001A, #89101e);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(226, 0, 26, 0.4);
}

.book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    text-align: center;
}

/* Bouton Fermer */
.book-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(226, 0, 26, 0.9);
    color: white;
    font-size: 1.2rem;
    z-index: 100001;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(226, 0, 26, 0.3);
    z-index: 100001;
    pointer-events: auto;
}

.book-close:hover {
    background: rgba(226, 0, 26, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(226, 0, 26, 0.5);
}

.book-close:active {
    transform: scale(1.05) rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .book-cover {
        width: 350px;
        height: 450px;
    }

    .book-pages {
        width: 700px;
        height: 500px;
    }

    .page-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .book-cover {
        width: 300px;
        height: 400px;
    }

    .book-title h2 {
        font-size: 2rem;
    }

    .book-title p {
        font-size: 1rem;
    }

    .book-pages {
        width: 90%;
        height: 70vh;
    }

    .page-content {
        padding: 20px;
    }

    .page-header h3 {
        font-size: 1.5rem;
    }

    .book-controls {
        bottom: 20px;
        padding: 12px 20px;
    }

    .book-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .book-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .book-cover {
        width: 250px;
        height: 350px;
    }

    .book-title h2 {
        font-size: 1.5rem;
    }

    .book-icon {
        font-size: 3rem;
    }

    .book-pages {
        width: 95%;
        height: 80vh;
    }

    .page-content {
        padding: 15px;
    }

    .page-header h3 {
        font-size: 1.2rem;
    }

    .page-description p {
        font-size: 0.9rem;
    }
}

/* ===== CATALOGUE DES SUPPORTS D'ÉVALUATION - IMAGES EN VRAC ===== */
.catalog-container {
    max-width: 1600px;
    /* margin: 0 auto; */
    padding: 40px 20px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header h3 {
    color: #89101e;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1600px;
    gap: 30px;
    /* margin: 30px auto; */
}

.catalog-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: white;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.catalog-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.catalog-image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.catalog-image-item:hover img {
    transform: scale(1.05);
}

.catalog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(137, 16, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.catalog-image-item:hover .catalog-image-overlay {
    opacity: 1;
}

.catalog-image-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout en vrac avec différentes tailles pour 2 images */



.catalog-image-item:nth-child(2) {
    grid-row: span 1;
}

/* Responsive pour le catalogue en vrac */
@media (max-width: 768px) {
    .catalog-container {
        padding: 20px 15px;
    }

    .catalog-header h3 {
        font-size: 1.6rem;
    }

    .catalog-masonry {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .catalog-image-item:nth-child(n) {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .catalog-masonry {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .catalog-header h3 {
        font-size: 1.4rem;
    }
}

/* ===== NAVIGATION ÉVALUATIONS MÉDIAS ===== */
.evaluation-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.evaluation-nav-btn {
    background: linear-gradient(135deg, #89101e, #a01225);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.evaluation-nav-btn:hover {
    background: linear-gradient(135deg, #a01225, #89101e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 16, 30, 0.3);
}

.evaluation-nav-btn:active {
    transform: translateY(0);
}

.evaluation-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.evaluation-counter {
    color: #89101e;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(137, 16, 30, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Responsive pour la navigation */
@media (max-width: 768px) {
    .evaluation-nav {
        flex-direction: column;
        gap: 15px;
    }

    .evaluation-nav-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== GALERIE ÉVALUATIONS MÉDIAS - STYLE LIVRE ===== */
.evaluation-gallery {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: white !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
}

.evaluation-gallery.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.evaluation-gallery-content {
    background: white;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.evaluation-gallery-images {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: auto;
    /* Allow image to overflow this container */
}

.evaluation-gallery-item {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.evaluation-gallery-item.active {
    display: flex;
}

.evaluation-gallery-item img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
}

.evaluation-gallery-item img {
    transition: transform 0.2s ease-out;
}

.evaluation-gallery-item img.zoomed {
    /* Styles gérés par JS via transformation */
    cursor: grab;
    z-index: 100;
}

.evaluation-gallery-item img:hover:not([style*="scale"]) {
    cursor: zoom-in;
}

/* Zoom pour les images dans bookContainer */
.book-container .page-image img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.book-container .page-image img:hover:not(.zoomed) {
    transform: scale(1.05);
}

.book-container .page-image img.zoomed {
    cursor: zoom-out;
    transform: scale(2) !important;
    transition: transform 0.3s ease;
    object-fit: contain;
    z-index: 100000;
    position: relative;
    pointer-events: auto;
}

.evaluation-gallery-caption {
    background: white;
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    width: 100%;
}

.evaluation-gallery-caption h4 {
    color: #89101e;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.evaluation-gallery-caption p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .evaluation-gallery-content {
        width: 100%;
        height: 100vh;
    }

    .evaluation-gallery-item img {
        padding: 15px;
    }

    .evaluation-gallery-caption {
        padding: 15px;
    }

    .evaluation-gallery-caption h4 {
        font-size: 1.3rem;
    }

    .evaluation-gallery-caption p {
        font-size: 0.9rem;
    }
}



.evaluation-gallery-header {
    background: linear-gradient(135deg, #89101e, #a01225);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evaluation-gallery-instructions {
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.evaluation-gallery-instructions small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.evaluation-gallery-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.evaluation-gallery-close {
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Compact viewer variant: centered box, limited height */
.evaluation-gallery.viewer {
    align-items: center !important;
    justify-content: center !important;
}

.evaluation-gallery.viewer .evaluation-gallery-content {
    width: 90%;
    max-width: 1000px;
    height: auto;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.evaluation-gallery.viewer .evaluation-gallery-images {
    height: calc(80vh - 140px);
    /* leave space for header + caption + controls */
    background: #fff;
}

.evaluation-gallery.viewer .evaluation-gallery-item {
    align-items: center;
    justify-content: center;
}

.evaluation-gallery.viewer .evaluation-gallery-item img {
    width: auto;
    max-width: 100%;
    max-height: calc(80vh - 180px);
    margin: 0 auto;
    padding: 8px;
}

.evaluation-gallery.viewer .evaluation-gallery-caption {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fff;
}

.evaluation-gallery.viewer .evaluation-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fafafa;
}

@media (max-width: 768px) {
    .evaluation-gallery.viewer .evaluation-gallery-content {
        width: 96%;
        max-height: 92vh;
    }

    .evaluation-gallery.viewer .evaluation-gallery-images {
        height: calc(92vh - 140px);
    }

    .evaluation-gallery.viewer .evaluation-gallery-item img {
        max-height: calc(92vh - 180px);
    }
}

.evaluation-gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.evaluation-gallery-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.evaluation-gallery-images {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.evaluation-gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.evaluation-gallery-item.active {
    opacity: 1;
    transform: translateX(0);
}

.evaluation-gallery-item img {
    flex: 1;
    width: 100%;
    height: 80%;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
}

.evaluation-gallery-item img {
    transition: transform 0.2s ease-out;
}

.evaluation-gallery-item img.zoomed {
    /* Styles gérés par JS via transformation */
    cursor: grab;
    z-index: 100;
}

.evaluation-gallery-item img:hover:not([style*="scale"]) {
    cursor: zoom-in;
}

.evaluation-gallery-caption {
    background: white;
    padding: 20px;
    border-top: 1px solid #eee;
}

.evaluation-gallery-caption h4 {
    color: #89101e;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.evaluation-gallery-caption p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.evaluation-gallery-controls {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.evaluation-gallery-zoom-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.evaluation-gallery-btn.zoom-btn {
    background: #89101e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 0;
}

.evaluation-gallery-btn.zoom-btn:hover {
    background: #6d0c16;
    transform: scale(1.1);
}

.evaluation-gallery-btn {
    background: linear-gradient(135deg, #89101e, #a01225);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.evaluation-gallery-btn:hover {
    background: linear-gradient(135deg, #a01225, #89101e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 16, 30, 0.3);
}

.evaluation-gallery-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.evaluation-gallery-dots {
    display: flex;
    gap: 10px;
}

.evaluation-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.evaluation-dot.active {
    background: #89101e;
    transform: scale(1.2);
}

.evaluation-dot:hover {
    background: #89101e;
    transform: scale(1.1);
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .evaluation-gallery-content {
        width: 95%;
        height: 90vh;
    }

    .evaluation-gallery-header {
        padding: 15px 20px;
    }

    .evaluation-gallery-header h3 {
        font-size: 1.3rem;
    }

    .evaluation-gallery-controls {
        flex-direction: column;
        gap: 15px;
    }

    .evaluation-gallery-btn {
        width: 100%;
        max-width: 200px;
    }

    .evaluation-gallery-item img {
        padding: 15px;
    }

    .evaluation-gallery-caption {
        padding: 15px;
    }
}

/* ===== NAVIGATION AMÉLIORÉE ENTRE LES OUTILS ===== */
.tools-navigation-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-presentation {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tool-presentation.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.tool-content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 400px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-left,
.tool-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #89101e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tool-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.tool-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: #333;
}

.tool-feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
}

.tool-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tool-image:hover {
    transform: scale(1.05);
}

.tools-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.tool-nav-btn {
    background: linear-gradient(135deg, #89101e, #a01225);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #a01225, #89101e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(137, 16, 30, 0.3);
}

.tool-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.tool-indicator {
    font-size: 1.1rem;
    color: #89101e;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Navigation dots spécifiques pour les outils */
.tools-nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tools-nav-dots.visible {
    opacity: 1;
}

.tools-nav-dots .nav-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #E2001A;
    position: relative;
    pointer-events: auto;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tools-nav-dots .nav-dot::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
}

.tools-nav-dots .nav-dot.active {
    background: #E2001A;
    border-color: #E2001A;
    transform: scale(1.2);
}

.tools-nav-dots .nav-dot:hover {
    background: rgba(226, 0, 26, 0.7);
    transform: scale(1.1);
}

/* Responsive pour la navigation des outils */
@media (max-width: 968px) {
    .tool-content-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
    }

    .tool-title {
        font-size: 2rem;
    }

    .tool-image {
        max-width: 80%;
    }

    .tools-nav-controls {
        flex-direction: column;
        gap: 20px;
    }

    .tool-nav-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .tools-nav-dots {
        right: 20px;
    }
}