/* Style commun pour toutes les pages RGPD */
:root {
    --rgpd-primary-color: #1e40af;
    --rgpd-secondary-color: #3b82f6;
    --rgpd-accent-color: #f59e0b;
    --rgpd-text-primary: #1f2937;
    --rgpd-text-secondary: #6b7280;
    --rgpd-background: #f8fafc;
    --rgpd-card-bg: #ffffff;
    --rgpd-border-color: #e5e7eb;
    --rgpd-success-color: #10b981;
    --rgpd-warning-color: #f59e0b;
    --rgpd-error-color: #ef4444;
}

/* Wrapper pour les pages RGPD avec fond dynamique */
.rgpd-page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Animation du gradient bleu */
.rgpd-gradient-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, #3498db, #6dd5fa, #1e3c72, #2a5298);
    background-size: 800% 800%;
    animation: rgpd-gradientMove 18s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Animation du fond dégradé */
@keyframes rgpd-gradientMove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

/* Image de fond avec effet smooth */
.rgpd-background-image {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    transition: opacity 0.6s ease;
    z-index: 1;
    animation: rgpd-smoothImageFade 1.2s ease-out;
    background-image: url('../img/login.jpeg');
}

/* Animation smooth pour l'image */
@keyframes rgpd-smoothImageFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.45;
    }
}

/* Overlay pour améliorer la lisibilité du texte */
.rgpd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.6) 0%, rgba(30, 60, 114, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Container principal pour les pages RGPD */
.rgpd-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--rgpd-background);
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 3;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Bouton de retour à l'accueil */
.rgpd-back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--rgpd-primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.rgpd-back-home-btn:hover {
    background: var(--rgpd-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
    text-decoration: none;
    color: white;
}

.rgpd-back-home-btn i {
    font-size: 0.9rem;
}

/* En-tête de page RGPD */
.rgpd-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--rgpd-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--rgpd-primary-color);
}

.rgpd-header h1 {
    color: var(--rgpd-primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rgpd-header .subtitle {
    color: var(--rgpd-text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.rgpd-institution-badge {
    display: inline-block;
    background: var(--rgpd-primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Sections de contenu */
.rgpd-content-section {
    background: var(--rgpd-card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--rgpd-border-color);
}

.rgpd-content-section h2 {
    color: var(--rgpd-primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--rgpd-secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rgpd-content-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--rgpd-accent-color);
    border-radius: 2px;
}

.rgpd-content-section h3 {
    color: var(--rgpd-text-primary);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.rgpd-content-section p {
    margin-bottom: 1rem;
    color: var(--rgpd-text-secondary);
    line-height: 1.8;
}

.rgpd-content-section ul,
.rgpd-content-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--rgpd-text-secondary);
}

.rgpd-content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Boîtes de mise en évidence */
.rgpd-highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--rgpd-primary-color);
}

.rgpd-highlight-box .icon {
    color: var(--rgpd-primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Listes de données */
.rgpd-data-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 3px solid var(--rgpd-accent-color);
}

.rgpd-data-list h4 {
    color: var(--rgpd-primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rgpd-data-list ul {
    list-style: none;
    padding: 0;
}

.rgpd-data-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--rgpd-text-secondary);
}

.rgpd-data-list li::before {
    content: '✓';
    color: var(--rgpd-success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Grille de droits */
.rgpd-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rgpd-right-card {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.rgpd-right-card .icon {
    color: var(--rgpd-primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rgpd-right-card h4 {
    color: var(--rgpd-primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Section de contact */
.rgpd-contact-section {
    background: linear-gradient(135deg, var(--rgpd-primary-color) 0%, var(--rgpd-secondary-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.rgpd-contact-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.rgpd-contact-section p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
}

.rgpd-contact-btn {
    display: inline-block;
    background: white;
    color: var(--rgpd-primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rgpd-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--rgpd-primary-color);
}

/* Footer pour les pages RGPD */
.rgpd-footer-info {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--rgpd-card-bg);
    border-radius: 8px;
    border: 1px solid var(--rgpd-border-color);
}

.rgpd-footer-info p {
    color: var(--rgpd-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.rgpd-footer-info strong {
    color: var(--rgpd-primary-color);
}

/* Navigation entre les pages RGPD */
.rgpd-nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.rgpd-nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--rgpd-card-bg);
    color: var(--rgpd-primary-color);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--rgpd-border-color);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.rgpd-nav-link:hover {
    background: var(--rgpd-primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .rgpd-page-container {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .rgpd-header h1 {
        font-size: 2rem;
    }

    .rgpd-content-section {
        padding: 1.5rem;
    }

    .rgpd-rights-grid {
        grid-template-columns: 1fr;
    }

    .rgpd-nav-links {
        flex-direction: column;
        align-items: center;
    }

    .rgpd-back-home-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Ajuster l'opacité de l'image sur mobile pour meilleure lisibilité */
    .rgpd-background-image {
        opacity: 0.35;
    }

    .rgpd-overlay {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.75) 0%, rgba(30, 60, 114, 0.75) 100%);
    }
}

