/* ===== VARIABLES CSS GLOBALES ===== */
:root {
    font-size: 16px;
    --ratio: 1.333;
    --font-size-h1: calc(1.5rem * var(--ratio));
    --font-size-h2: calc(1.25rem * var(--ratio));
    --font-size-h3: calc(1rem * var(--ratio));
    --font-size-h4: calc(0.875rem * var(--ratio));
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;
    --mobile-factor: 0.85;
    --tablet-factor: 0.9;
    --metal-gradient: linear-gradient(145deg, #b0b0b8 0%, #9898a0 25%, #808088 50%, #686870 75%, #505058 100%);
    --metal-gradient-hover: linear-gradient(145deg, #b8b8c0 0%, #a0a0a8 25%, #888890 50%, #707078 75%, #585860 100%);
}

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

body {
    background: url("./commun/fond.png") center/cover no-repeat, linear-gradient(135deg, #9F9FA9 0%, #171717 100%);
	background-attachment: fixed !important;
    font-family: "Source Code Pro Light", monospace;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 5px;
    overflow-x: hidden;
    font-size: var(--font-size-body);
    line-height: 1.5;
}
/* ===== PAGINATION DANS L'IMAGE ===== */
.carousel-pagination-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: "Source Code Pro Light", monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 30;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .carousel-pagination-overlay {
        bottom: 5px;
        padding: 3px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .carousel-pagination-overlay {
        bottom: 3px;
        padding: 2px 10px;
        font-size: 0.7rem;
        border-width: 1px;
    }
}

/* Pour très petits écrans */
@media (max-width: 320px) {
    .carousel-pagination-overlay {
        padding: 2px 8px;
        font-size: 0.65rem;
        bottom: 2px;
    }
}

/* Support tactile */
@media (hover: none) and (pointer: coarse) {
    .carousel-pagination-overlay {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
    }
}

/* ===== INDICATION SUPPLÉMENTAIRE DE SLIDES ===== */
.slide-indicators .indicator:not(.active) {
  animation: softPulse 2s infinite ease-in-out;
}

@keyframes softPulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

/* CONTAINER PRINCIPAL COMPACT */
.compact-container {
    width: 100%;
    max-width: 1030px;
    margin: 0 auto;
    padding-top: 0px;
    align-items: center;
    position: relative;
}

.main-content {
    background: white;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 20px 15px 0px;
    position: relative;
}

/* ===== STYLES DES TITRES - CORRIGÉS ===== */
h1, h2, h3, h4 {
    font-family: "Source Code Pro Light", monospace;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #000;
}

h1 {
    font-size: clamp(1.5rem, 3.5vw, var(--font-size-h1));
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

h2 {
    font-size: clamp(1.3rem, 3vw, var(--font-size-h2));
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.25px;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, var(--font-size-h3));
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2px;
}

h4 {
    font-size: clamp(1rem, 2.2vw, var(--font-size-h4));
}

.update-stamp {
    width: 15%;
    background-color: transparent;
    color: red;
    padding: 8px 15px;
    font-weight: bold;
    font-size: var(--font-size-small);
    transform: rotate(15deg);
    border: 2px solid red;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    text-align: center;
    position: absolute;
    top: 30px;
    right: 10px;
    margin: 0;
}

/* EN-TÊTE INTÉGRÉ - HOME */
.integrated-header-main {
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 99;
}

.header-visual-main {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 99;
}

.header-visual-main img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.header-text-overlay-main {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -25%);
    text-align: center;
    width: 100%;
    max-width: 90%;
    pointer-events: none;
}

.header-text-overlay-main h1 {
    margin-bottom: 5px;
}

.header-subtitle-main {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #333;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0.9;
}

/* EN-TÊTE INTÉGRÉ */
.integrated-header {
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 99;
}

.header-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 150px;
    margin: 0 auto;
    z-index: 99;
    background-image: url(./commun/cadre-fleche.svg);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-visual img {
    display: none;
}

.header-text-overlay {
    position: relative;
    text-align: center;
    width: 85%;
    max-width: 400px;
    pointer-events: none;
    padding: 15px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-text-overlay h1 {
    margin-bottom: 5px;
}

.header-text-overlay h2 {
    margin-bottom: 5px;
    line-height: 1.3;
}

.header-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #333;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* CARROUSEL COMPACT */
.compact-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    min-height: 600px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #9F9FA9;
    background: white;
    color: #9F9FA9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-size: 1.5rem;
}

.nav-arrow:hover {
    background: #9F9FA9;
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(159, 159, 169, 0.35);
    z-index: 101;
}

.nav-arrow.arrow-left {
    left: 0px;
}

.nav-arrow.arrow-right {
    right: 0px;
}

.nav-arrow svg {
    width: 30px;
    height: 30px;
}

.slides-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 2px;
    position: relative;
}

.slides-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.4s ease;
    height: 100%;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}
.choice-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(159, 159, 169, 0.15);
    position: relative;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    border-color: #9F9FA9;
}

/* VISUEL DE LA CARTE - IMAGE OPTIMISÉE ET AGRANDIE */
.card-visual {
    flex: 0 0 75%;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-image {
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.25));
    z-index: 2;
}

.choice-card:hover .weapon-image {
    transform: scale(1.12);
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.3));
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(159, 159, 169, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

/* INFORMATIONS DE LA CARTE */
.card-info {
    flex: 0 0 25%;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-top: 3px solid #9F9FA9;
    position: relative;
}

.card-info h3 {
    margin-bottom: 12px;
    line-height: 1.2;
}

.card-description {
    color: #444;
    font-size: var(--font-size-body);
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 90%;
    opacity: 0.9;
}

.select-hint {
    font-size: var(--font-size-small);
    color: #9F9FA9;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.choice-card:hover .select-hint {
    opacity: 1;
    color: #7F7F89;
}

/* ACTIONS SUR LA CARTE - POSITIONNEMENT FIXE POUR LES BOUTONS */
.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    align-items: flex-end;
}

/* Style pour chaque bouton d'action */
.card-actions .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Style spécifique pour le bouton VIDEO - TOUJOURS EN DESSOUS DU INFO */
.card-actions .action-btn.video-btn {
    position: absolute;
    top: 53px;
    right: 0;
    margin-top: 0;
}

/* Les boutons doivent toujours être visibles s'ils existent dans le HTML */
.card-actions .action-btn.info-btn,
.card-actions .action-btn.video-btn {
    display: flex !important;
}

/* Masquer seulement si explicitement demandé */
.card-actions .action-btn[style*="display: none"] {
    display: none !important;
}

/* Base métallique pour les boutons */
.card-actions .action-btn.info-btn,
.card-actions .action-btn.video-btn {
    background: #808088;
    background: linear-gradient(145deg, 
        #b0b0b8 0%,
        #9898a0 25%,
        #808088 50%,
        #686870 75%,
        #505058 100%);
}

/* Variation de teinte entre les boutons */
.card-actions .action-btn.info-btn {
    background: #787880;
    background: linear-gradient(145deg, 
        #a8a8b0 0%,
        #909098 25%,
        #787880 50%,
        #606068 75%,
        #484850 100%);
}

.card-actions .action-btn.video-btn {
    background: #888890;
    background: linear-gradient(145deg, 
        #b8b8c0 0%,
        #a0a0a8 25%,
        #888890 50%,
        #707078 75%,
        #585860 100%);
}

/* Reflet métallique supérieur */
.card-actions .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

/* Ombre intérieure pour profondeur */
.card-actions .action-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 100%);
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

/* Bordure élégante */
.card-actions .action-btn .btn-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Icone stylisée */
.card-actions .action-btn .btn-icon {
    font-size: 1rem;
    line-height: 1;
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

/* Effet de survol élégant */
.card-actions .action-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
}

.card-actions .action-btn:hover .btn-border {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.card-actions .action-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Effet au clic */
.card-actions .action-btn:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-actions .action-btn:active .btn-border {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== FOOTER DU CARROUSEL - RÉCUPÉRÉ DEPUIS FOOTER-OK ===== */
.carousel-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 0;
    width: 100%;
}

/* Indicateurs de slides - Style métallique */
.slide-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    background: var(--metal-gradient);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.5;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%);
    border-radius: 50% 50% 0 0;
}

.indicator:hover {
    transform: scale(1.2);
    opacity: 0.8;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.3);
}

.indicator.active {
    background: var(--metal-gradient-hover);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 3px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(159, 159, 169, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.3);
    opacity: 1;
}

/* Instructions de navigation */
.navigation-hint {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #666;
    font-size: var(--font-size-small);
    margin-top: 6px;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(159, 159, 169, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(159, 159, 169, 0.15);
}

.hint-item:hover {
    background: rgba(159, 159, 169, 0.15);
    border-color: #9F9FA9;
}

.hint-item svg {
    width: 16px;
    height: 16px;
    color: #9F9FA9;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.hint-item span {
    font-size: 0.75rem;
    line-height: 1;
    color: #444;
}

/* INFOBULLE STYLES */
.tooltip {
    position: fixed;
    background: linear-gradient(135deg, #9F9FA9 0%, #171717 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    font-family: "Source Code Pro Light";
    font-size: 0.813rem;
    line-height: 1.4;
    max-width: 280px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.tooltip.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tooltip-content {
    line-height: 1.5;
}

.tooltip-content strong {
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

.tooltip-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    display: block;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4px;
}

.tooltip-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #9F9FA9 0%, #171717 100%);
    transform: rotate(45deg);
}

/* Positions de la flèche */
.tooltip[data-position="top"] .tooltip-arrow {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
}

.tooltip[data-position="bottom"] .tooltip-arrow {
    top: -5px;
    left: 50%;
    margin-left: -5px;
}

.tooltip[data-position="left"] .tooltip-arrow {
    right: -5px;
    top: 50%;
    margin-top: -5px;
}

.tooltip[data-position="right"] .tooltip-arrow {
    left: -5px;
    top: 50%;
    margin-top: -5px;
}
/* STYLE POUR LES LIENS DANS LES INFOBULLES */
.tooltip-content a {
    color: #ffffff !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
    pointer-events: auto !important;
}

.tooltip-content a:hover {
    color: #9F9FA9 !important;
    text-decoration: none !important;
}

/* S'assurer que l'infobulle permet les interactions */
.tooltip {
    pointer-events: auto !important;
}

.tooltip-content {
    pointer-events: auto !important;
}

/* Animation */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tooltip.active {
    animation: tooltipFadeIn 0.2s ease-out;
}

/* POPUP VIDEO STYLES */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.video-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

.close-video-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-video-popup:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* BOUTON PRÉCÉDENT */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #9F9FA9 0%, #171717 100%);
    color: white;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s;
    font-size: var(--font-size-body);
}

.btn:hover {
    opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablette */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: calc(1.5rem * var(--ratio) * var(--tablet-factor));
        --font-size-h2: calc(1.25rem * var(--ratio) * var(--tablet-factor));
        --font-size-h3: calc(1rem * var(--ratio) * var(--tablet-factor));
    }
    
    .main-content {
        padding: 10px 12px 5px;
    }
    .btn {
        padding: 10px;
        margin-top: 8px;
        font-size: calc(var(--font-size-body) * 0.9);
    }
    .integrated-header {
        margin-bottom: 8px;
    }
    
    .header-visual {
        height: 140px;
    }
    
    .compact-carousel {
        min-height: 500px;
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.375rem;
    }
    
    .nav-arrow.arrow-left {
        left: 0px;
    }
    
    .nav-arrow.arrow-right {
        right: 0px;
    }
    
    .nav-arrow svg {
        width: 26px;
        height: 26px;
    }
    
    .choice-card {
        height: 100%;
    }
    
    .card-visual {
        flex: 0 0 72%;
    }
    
    .card-info {
        flex: 0 0 28%;
    }
    
    .card-actions .action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.938rem;
        border-radius: 7px;
    }
    
    .card-actions .action-btn.video-btn {
        top: 48px;
    }
    
    .card-actions .action-btn .btn-icon {
        font-size: 0.938rem;
    }
    
    .card-actions .action-btn .btn-border {
        border-radius: 7px;
    }
    
    .update-stamp {
        width: 10%;
        font-size: calc(var(--font-size-small) * 0.9);
        padding: 7px 12px;
        top: 25px;
        right: 15px;
    }
    
    /* Footer tablette */
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .navigation-hint {
        gap: 12px;
        margin-top: 5px;
    }
    
    .hint-item {
        padding: 3px 10px;
    }
    
    .hint-item svg {
        width: 14px;
        height: 14px;
    }
    
    .hint-item span {
        font-size: 0.7rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
        --font-size-h1: calc(1.5rem * var(--ratio) * var(--mobile-factor));
        --font-size-h2: calc(1.25rem * var(--ratio) * var(--mobile-factor));
        --font-size-h3: calc(1rem * var(--ratio) * var(--mobile-factor));
    }
    
    body {
        padding: 10px 5px;
    }
    .card-actions {
        top: 5px;
        right: 0px;
    }
    .card-actions .action-btn {
        width: 30px;
        height: 30px;
        border-radius: 5px;
    }
    
    .compact-container {
        padding-top: 0;
        position: relative;
        padding-top: 0px !important;
    }
    .btn {
        padding: 10px;
        margin-top: 8px;
        font-size: calc(var(--font-size-body) * 0.9);
        opacity: 0.5;
    }
    .main-content {
        padding: 0px 10px opx;
        border-radius: 14px;
    }
    
    .integrated-header {
        margin-bottom: 5px;
    }
    
    .header-visual {
        height: 100px;
        max-width: 350px;
    }
    
    .header-text-overlay {
        width: 80%;
        padding: 8px 0;
        transform: none;
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto;
    }
    
    .header-text-overlay h2 {
        font-size: clamp(1.1rem, 3.2vw, 1.3rem);
        line-height: 1.2;
        margin-bottom: 3px;
    }
    
    .header-subtitle {
        font-size: clamp(0.75rem, 2vw, 0.95rem);
        line-height: 1.3;
    }
    
    .compact-carousel {
        min-height: 420px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    }
    
    .nav-arrow.arrow-left {
        left: 0px;
    }
    
    .nav-arrow.arrow-right {
        right: 0px;
    }
    
    .nav-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .nav-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .nav-arrow:hover svg {
        stroke: white;
    }
    
    .choice-card {
        height: 100%;
    }
    
    .card-visual {
        flex: 0 0 68%;
    }
    
    .card-info {
        flex: 0 0 32%;
        padding: 15px 20px;
    }
    
    .card-info h3 {
        margin-bottom: 8px;
    }
    
    .card-description {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
    
    .select-hint {
        font-size: calc(var(--font-size-small) * 0.9);
    }
    
    .card-actions .action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.875rem;
        border-radius: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    
    .card-actions .action-btn.video-btn {
        top: 44px;
    }
    
    .card-actions .action-btn .btn-icon {
        font-size: 0.875rem;
    }
    
    .card-actions .action-btn .btn-border {
        border-radius: 6px;
    }
    
    /* Footer mobile */
    .carousel-footer {
        margin-top: 5px;
        padding: 2px 8px 3px;
    }
    
    .indicator {
        width: 9px;
        height: 9px;
        border-width: 1.5px;
    }
    
    .navigation-hint {
        gap: 8px;
        margin-top: 4px;
    }
    
    .hint-item {
        padding: 2px 8px;
        gap: 4px;
    }
    
    .hint-item svg {
        width: 12px;
        height: 12px;
    }
    
    .hint-item span {
        font-size: 0.6rem;
    }
    
    .update-stamp {
        position: absolute;
        top: 5px;
        right: 5px;
        width: auto !important;
        min-width: 90px;
        max-width: 65%;
        font-size: calc(var(--font-size-small) * 0.6) !important;
        padding: 4px 10px !important;
        transform: rotate(7deg);
        z-index: 1000;
        border: 2px solid red;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
        background-color: transparent;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tooltip.mobile {
        max-width: 90%;
        font-size: 0.875rem;
        text-align: center;
        padding: 15px;
    }
    
    .tooltip.mobile .tooltip-content strong {
        font-size: 1rem;
    }
    
    .tooltip.mobile .tooltip-content em {
        font-size: 0.813rem;
    }
}

/* Très petits mobiles */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    .card-actions {
        top: 3px;
        right: 0px;
    }
    .card-actions .action-btn {
        width: 25px;
        height: 25px;
        border-radius: 3px;
    }

    .btn {
        padding: 10px;
        margin-top: 8px;
        font-size: calc(var(--font-size-body) * 0.9);
        opacity: 0.5;
    }
    body {
        padding: 5px 2px;
    }
    
    .main-content {
        padding: 0px 8px 0px;
        border-radius: 12px;
    }
    
    .integrated-header {
        margin-bottom: 4px;
    }
    
    .header-visual {
        height: 85px;
        max-width: 280px;
    }
    
    .header-text-overlay {
        width: 75%;
        padding: 6px 0;
    }
    
    .header-text-overlay h2 {
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        margin-bottom: 2px;
    }
    
    .header-subtitle {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    }
    
    .compact-carousel {
        min-height: 380px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .nav-arrow.arrow-left {
        left: 0px;
    }
    
    .nav-arrow.arrow-right {
        right: 0px;
    }
    
    .choice-card {
        height: 100%;
    }
    
    .card-info {
        padding: 12px 15px;
    }
    
    .card-info h3 {
        margin-bottom: 6px;
    }
    
    .card-description {
        margin-bottom: 8px;
    }
    
    .select-hint {
        font-size: calc(var(--font-size-small) * 0.85);
    }
    
    .card-actions .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.813rem;
        border-radius: 5px;
    }
    
    .card-actions .action-btn.video-btn {
        top: 42px;
    }
    
    .card-actions .action-btn .btn-icon {
        font-size: 0.813rem;
    }
    
    .card-actions .action-btn .btn-border {
        border-radius: 5px;
    }
    
    .card-actions .action-btn:hover {
        transform: scale(1.05) translateY(-2px);
    }
    
    /* Footer très petits mobiles */
    .carousel-footer {
        margin-top: 3px;
        padding: 1px 5px 2px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    .navigation-hint {
        gap: 6px;
        margin-top: 3px;
    }
    
    .hint-item {
        padding: 2px 6px;
        gap: 3px;
    }
    
    .hint-item svg {
        width: 10px;
        height: 10px;
    }
    
    .hint-item span {
        font-size: 0.55rem;
    }
    
    .update-stamp {
        top: 1px;
        right: 1px;
        min-width: 70px;
        font-size: calc(var(--font-size-small) * 0.6) !important;
        padding: 3px 7px !important;
        transform: rotate(7deg);
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
        letter-spacing: 0.3px;
    }
}

/* Pour les écrans très petits */
@media (max-width: 320px) {
    :root {
        font-size: 13px;
    }
    
    .card-actions {
        top: 2px;
        right: 0px;
    }
    .card-actions .action-btn {
        width: 20px;
        height: 20px;
        border-radius: 2px;
    }
    .header-visual {
        height: 75px;
        max-width: 240px;
    }
    
    .header-text-overlay {
        width: 70%;
        padding: 4px 0;
    }
    
    .header-text-overlay h2 {
        font-size: 0.85rem;
        margin-bottom: 1px;
    }
    
    .header-subtitle {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .nav-arrow {
        opacity: 0.8;
        width: 38px;
        height: 38px;
    }
    
    .nav-arrow:active {
        opacity: 1;
        transform: translateY(-50%) scale(0.95);
    }
    
    .compact-carousel {
        min-height: 340px;
    }
    
    .card-actions .action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .card-actions .action-btn.video-btn {
        top: 40px;
    }
    
    .card-actions .action-btn .btn-icon {
        font-size: 0.75rem;
    }
    
    .card-actions .action-btn .btn-border {
        border-radius: 4px;
    }
    
    /* Footer très petits écrans */
    .carousel-footer {
        margin-top: 2px;
        padding: 0px 3px 1px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .navigation-hint {
        gap: 4px;
        margin-top: 2px;
    }
    
    .hint-item {
        padding: 1px 4px;
        gap: 2px;
    }
    
    .hint-item svg {
        width: 8px;
        height: 8px;
    }
    
    .hint-item span {
        font-size: 0.45rem;
    }
    
    .update-stamp {
        top: 2px;
        right: 5px;
        min-width: 75px;
        font-size: calc(var(--font-size-small) * 0.7) !important;
        padding: 4px 8px !important;
        transform: rotate(2deg);
        letter-spacing: 0.2px;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .compact-carousel {
        min-height: 320px;
    }
    
    .choice-card {
        flex-direction: row;
    }
    
    .card-visual {
        flex: 0 0 58%;
    }
    
    .card-info {
        flex: 0 0 42%;
    }
    
    .main-content {
        padding: 8px 10px 0px;
    }
    
    .header-visual {
        height: 95px;
        max-width: 400px;
    }
    
    .header-text-overlay h2 {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }
    
    .nav-arrow {
        width: 42px;
        height: 42px;
    }
    
    .nav-arrow.arrow-left {
        left: 0px;
    }
    
    .nav-arrow.arrow-right {
        right: 0px;
    }
    
    .header-text-overlay {
        padding: 10px 0;
    }
    
    .card-actions .action-btn.video-btn {
        top: 46px;
    }
    
    .update-stamp {
        top: 3px;
        right: 10px;
        min-width: 75px;
    }
}

/* Support tactile */
@media (hover: none) and (pointer: coarse) {
    .choice-card:hover {
        transform: none;
    }
    
    .choice-card:active {
        transform: scale(0.98);
    }
    
    .nav-arrow {
        opacity: 0.9;
    }
    
    .card-actions .action-btn:hover {
        transform: none;
    }
    
    .nav-arrow:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .nav-arrow:active {
        transform: translateY(-50%) scale(0.95);
        background: #9F9FA9;
        color: white;
    }
    
    .card-actions .action-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .hint-item:hover {
        background: rgba(159, 159, 169, 0.08);
        border-color: rgba(159, 159, 169, 0.15);
    }
    
    .indicator:hover {
        background: transparent;
        transform: scale(1);
    }
}

/* Pour les écrans très larges */
@media (min-width: 1200px) {
    :root {
        font-size: 17px;
    }
    
    .compact-container {
        max-width: 1030px;
    }
    
    .header-visual {
        height: 160px;
    }
    
    .compact-carousel {
        min-height: 650px;
    }
    
    .nav-arrow {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .nav-arrow.arrow-left {
        left: 0px;
    }
    
    .nav-arrow.arrow-right {
        right: 0px;
    }
    
    .nav-arrow svg {
        width: 34px;
        height: 34px;
    }
    
    /* Footer grands écrans */
    .carousel-footer {
        margin-top: 10px;
        padding: 10px 20px 8px;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
    }
    
    .hint-item {
        padding: 5px 15px;
    }
    
    .hint-item svg {
        width: 18px;
        height: 18px;
    }
    
    .hint-item span {
        font-size: 0.85rem;
    }
}

/* Animation pour l'entrée des flèches */
@keyframes arrowSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.nav-arrow {
    animation: arrowSlideIn 0.4s ease-out;
}

/* Amélioration de la visibilité des flèches au survol du carousel */
.compact-carousel:hover .nav-arrow {
    opacity: 1;
}

/* Ajustement pour garantir que les flèches restent visibles */
@media (max-width: 1024px) {
    .compact-carousel {
        padding: 0 5px;
    }
}

/*PETITE IMAGE EN LIGNE AVEC LE TEXTE*/
.card-title-with-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.title-text {
    flex: 1;
}

.title-image {
    height: 60px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .inline-image {
        height: 50px;
        max-width: 60px;
    }
    
    .card-title-container {
        gap: 10px;
    }
}
/* ===== BOUTONS CHOIX METALLIQUE 3D ===== */
.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.metal-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 60px;
    border-radius: 12px;
    text-decoration: none;
    background: var(--metal-gradient);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.metal-choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.metal-choice-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 100%);
    border-radius: 0 0 10px 10px;
    z-index: 1;
}

.metal-choice-btn .btn-text {
    font-family: "Source Code Pro Light", monospace;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.metal-choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: var(--metal-gradient-hover);
}

.metal-choice-btn:hover .btn-text {
    transform: scale(1.05);
}

.metal-choice-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.choice-buttons-container {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(159, 159, 169, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(159, 159, 169, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    text-align: center;
}

.ou-container {
    position: relative;
    padding-left: 30px;
    margin: 10px 0;
}

.ou-brace {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    border-left: 2px solid #9F9FA9;
    border-top: 2px solid #9F9FA9;
    border-bottom: 2px solid #9F9FA9;
    border-radius: 4px 0 0 4px;
}

.ou-text {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #9F9FA9;
    background: white;
    padding: 0 4px;
    font-size: 0.9em;
}

.ou-content {
    margin-left: 30px;
}

/* ===== BOUTON PRÉCÉDENT ===== */
.back-button-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.back-btn {
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #9F9FA9 0%, #171717 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.back-btn:hover {
    background: linear-gradient(135deg, #AFAFB9 0%, #272727 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.back-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back-arrow {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.back-arrow::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 5px;
    left: 8px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
}

.back-btn .btn-text {
    display: none;
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */

/* Tablettes et grands mobiles (481px-768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .main-content {
        padding: 15px 12px 0px;
    }
    
    .integrated-header,
    .integrated-header-main {
        margin-bottom: 8px;
    }
    
    .header-visual {
        height: 130px;
    }
    
    h1 {
        font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    }
    
    h2 {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    }
    
    h3 {
        font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    }
    
    h4 {
        font-size: clamp(1rem, 2vw, 1.3rem);
    }
    
    .update-stamp {
        width: 18%;
        top: 25px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .choice-buttons {
        gap: 15px;
    }
    
    .metal-choice-btn {
        width: 135px;
        height: 55px;
    }
    
    .metal-choice-btn .btn-text {
        font-size: 1.1rem;
    }
    
    .choice-buttons-container {
        padding: 12px;
        margin-top: 12px;
    }
    
    .back-button-container {
        top: 12px;
        left: 12px;
    }
    
    .back-btn {
        width: 42px;
        height: 42px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Mobile standard */
@media (max-width: 768px) {
    .choice-buttons {
        gap: 15px;
        margin-top: 10px;
    }
    
    .metal-choice-btn {
        width: 130px;
        height: 55px;
    }
    
    .metal-choice-btn .btn-text {
        font-size: 1.1rem;
    }
    
    .choice-buttons-container {
        padding: 12px;
        margin-top: 12px;
    }
    
    .back-button-container {
        top: 12px;
        left: 12px;
    }
    
    .back-btn {
        width: 42px;
        height: 42px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .main-content {
        padding: 12px 10px 0px;
    }
    
    .integrated-header,
    .integrated-header-main {
        margin-bottom: 6px;
    }
    
    .header-visual {
        height: 110px;
    }
    
    h1 {
        font-size: clamp(1.3rem, 3vw, 1.6rem);
    }
    
    h2 {
        font-size: clamp(1.15rem, 2.8vw, 1.4rem);
    }
    
    h3 {
        font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    }
    
    h4 {
        font-size: clamp(0.95rem, 2.3vw, 1.2rem);
    }
    
    .choice-buttons {
        gap: 15px;
        margin-top: 12px;
    }
    
    .metal-choice-btn {
        width: 110px;
        height: 50px;
        border-radius: 10px;
    }
    
    .metal-choice-btn .btn-text {
        font-size: 1rem;
    }
    
    .choice-buttons-container {
        padding: 10px;
        margin-top: 10px;
    }
    
    .back-button-container {
        top: 10px;
        left: 10px;
    }
    
    .back-btn {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }
    
    .back-arrow::before {
        width: 12px;
        height: 12px;
        top: 4px;
        left: 7px;
        border-left: 2.5px solid white;
        border-bottom: 2.5px solid white;
    }
    
    .indicator {
        width: 9px;
        height: 9px;
    }
    
    .slide-indicators {
        gap: 8px;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .main-content {
        padding: 10px 8px 0px;
    }
    
    .choice-buttons {
        gap: 7px;
        margin-top: 7px;
    }
    
    .metal-choice-btn {
        width: 100px;
        height: 45px;
    }
    
    .metal-choice-btn .btn-text {
        font-size: 0.95rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .slide-indicators {
        gap: 7px;
    }
}

/* Support tactile */
@media (hover: none) and (pointer: coarse) {
    .back-btn:hover {
        transform: none;
        background: linear-gradient(135deg, #9F9FA9 0%, #171717 100%);
    }
    
    .back-btn:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #AFAFB9 0%, #272727 100%);
    }
}
/* ===== PAGINATION DANS L'IMAGE ===== */
.carousel-pagination-overlay {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: white !important;
    padding: 4px 14px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-family: "Source Code Pro Light", monospace !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    line-height: 1.3 !important;
}

/* Forcer le positionnement relatif du conteneur */
.slides-container {
    position: relative !important;
}

/* ===== RENDRE LE FOOTER VISIBLE ===== */
.carousel-footer {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* ===== STYLES RESPONSIVE POUR .ou-content ===== */

/* Grands écrans (1200px et plus) */
@media (min-width: 1200px) {
    .ou-content {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 90%;
        margin-left: 35px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 993px) {
    .ou-content {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 90%;
        margin-left: 32px;
    }
}

/* Tablettes paysage / petits desktop (768px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .ou-content {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 88%;
        margin-left: 28px;
    }
}

/* Tablettes portrait et grands mobiles (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .ou-content {
        font-size: 0.9rem;
        line-height: 1.4;
        max-width: 85%;
        margin-left: 25px;
    }
}

/* Mobiles standard (321px - 480px) */
@media (max-width: 480px) and (min-width: 321px) {
    .ou-content {
        font-size: 0.85rem;
        line-height: 1.4;
        max-width: 82%;
        margin-left: 22px;
    }
}

/* Très petits mobiles (320px et moins) */
@media (max-width: 320px) {
    .ou-content {
        font-size: 0.8rem;
        line-height: 1.3;
        max-width: 80%;
        margin-left: 20px;
    }
}

/* Support pour orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .ou-content {
        font-size: 0.9rem;
        line-height: 1.4;
        max-width: 86%;
        margin-left: 25px;
    }
}

/* Support pour écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .ou-content {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
}

/* Support pour haute résolution */
@media (min-resolution: 192dpi) {
    .ou-content {
        font-weight: 400;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Style par défaut (si non défini) */
.ou-content {
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}