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

:root {
    --primary-green: #2E7D32;
    --primary-purple: #6A1B9A;
    --light-green: #4CAF50;
    --light-purple: #9C27B0;
    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-muted: #95A5A6;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF2 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-top: var(--body-pad, 100px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(46, 125, 50, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 27, 154, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 60;
    padding: 0.5rem 1rem;
    text-align: center;
    line-height: 1.4;
}

.banner-timer {
    font-weight: 800;
    margin-left: 8px;
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
}

nav {
    position: fixed;
    width: 100%;
    top: 40px;
    left: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo-box {
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(46, 125, 50, 0.05);
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(46, 125, 50, 0.4);
}

.btn-outline {
    background: rgba(106, 27, 154, 0.1);
    color: var(--primary-purple);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.share-btn {
    background: rgba(106, 27, 154, 0.05);
    color: var(--primary-purple);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-purple);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.campagne-image {
    width: auto;
    max-width: min(90vw, 1200px);
    max-height: 75vh;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .campagne-image {
        max-width: min(85vw, 800px);
    }
}

@media (max-width: 768px) {
    .campagne-image {
        max-width: 95vw;
        max-height: 60vh;
        border-radius: 16px;
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .campagne-image {
        max-width: 100%;
        border-radius: 12px;
        margin: 1rem auto;
    }
}

.campaign-item {
    padding: 2rem;
    text-align: center;
    display: none;
}

.campaign-item.active {
    display: block;
}

.campaign-content {
    flex: 1;
    margin: 3rem 0 0;
    text-align: left;
    border-top: 1px solid rgba(106, 27, 154, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.content-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid;
}

.content-card.green {
    background: rgba(46, 125, 50, 0.03);
    border-color: rgba(46, 125, 50, 0.1);
}

.content-card.purple {
    background: rgba(106, 27, 154, 0.03);
    border-color: rgba(106, 27, 154, 0.1);
}

.content-card.white {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.content-card.teal {
    background-color: #047482 !important; /* Force la couleur */
    background: #047482 !important;       /* Sécurité doublée */
    border-color: rgba(4, 116, 130, 0.2);
    color: white;
    -webkit-print-color-adjust: exact;    /* Aide pour certains rendus */
}

.content-card.teal h4 {
    color: #ffd600;
}

.content-card.teal p,
.content-card.teal div {
    color: rgba(255, 255, 255, 0.9);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.thumbnail-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
    padding: 1rem;
    text-align: center;
}

.thumbnail-card:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.thumbnail-card.active {
    border-color: var(--primary-purple);
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.15);
}

.thumbnail-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.doc-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(106, 27, 154, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(46, 125, 50, 0.1);
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

@media (max-width: 768px) {
    body {
        padding-top: 180px;
    }

    nav {
        position: relative;
        top: 0;
        margin-top: 40px;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-logo {
        height: 40px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .sticky-bar {
        font-size: 0.7rem;
        padding: 10px 1rem;
    }
}

#affiche-info .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    #affiche-info .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

/* Tooltips */
.tooltip-trigger {
    position: relative;
    color: #ffd600;
    font-weight: 700;
    cursor: help;
    border-bottom: 2px dotted #ffd600;
    padding-bottom: 1px;
    display: inline;
    white-space: normal;
}

.info-icon {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Desktop Styles (Default) */
.custom-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: #047482;
    color: #ffd600;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    width: 300px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid rgba(255, 214, 0, 0.3);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #047482 transparent transparent transparent;
}

/* Desktop Hover */
@media (min-width: 1024px) {
    .tooltip-trigger:hover .custom-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Mobile: Hide individual tooltips to use the global overlay */
@media (max-width: 1023px) {
    .custom-tooltip {
        display: none !important;
    }
}

/* Global Mobile Tooltip Overlay */
.tooltip-mobile-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #047482;
    color: #ffd600;
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    z-index: 100001; /* Above backdrop */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    text-align: center;
}

.tooltip-mobile-overlay.active {
    transform: translateY(0);
}

.tooltip-mobile-overlay::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 214, 0, 0.3);
    border-radius: 2px;
}

.tooltip-mobile-content {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Tooltip Backdrop */
.tooltip-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
