/* ==================== POLITIQUE DE COOKIES STYLES ==================== */
:root {
    --policy-primary: #3a9c8d;
    --policy-secondary: #b88598;
    --policy-light: #f8f9fa;
    --policy-dark: #2c3e50;
    --policy-gray: #6c757d;
    --policy-gray-light: #adb5bd;
    --policy-border: rgba(0, 0, 0, 0.08);
    --policy-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --policy-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Couleurs des badges */
    --essential-color: #ff6b6b;
    --analytics-color: #4ecdc4;
    --functional-color: #45b7d1;
}

.policy-page {
    background-color: var(--policy-light);
}

/* ==================== CONTENU PRINCIPAL ==================== */
.policy-content {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.policy-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-main {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--policy-shadow);
    position: relative;
    overflow: hidden;
}

.policy-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--policy-primary), var(--policy-secondary));
}

.policy-section {
    margin-bottom: 80px;
    scroll-margin-top: 30px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

/* ==================== HEADERS DE SECTION ==================== */
.section-header {
    margin-bottom: 40px;
    position: relative;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.12), rgba(184, 133, 152, 0.12));
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--policy-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid rgba(58, 156, 141, 0.2);
}

.section-title {
    font-size: 2.6rem;
    color: var(--policy-dark);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--policy-primary), var(--policy-secondary));
    margin-top: 15px;
    border-radius: 2px;
}

/* ==================== TEXTE DE POLITIQUE ==================== */
.policy-text {
    line-height: 1.8;
    color: var(--policy-gray);
    font-size: 1.1rem;
}

.policy-text p {
    margin-bottom: 25px;
}

/* ==================== CARTE D'INFORMATION ==================== */
.info-card {
    display: flex;
    gap: 30px;
    background: rgba(58, 156, 141, 0.06);
    padding: 35px;
    border-radius: 20px;
    margin: 35px 0;
    border: 1px solid rgba(58, 156, 141, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--policy-shadow-hover);
    border-color: var(--policy-primary);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--policy-primary), var(--policy-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(58, 156, 141, 0.3);
}

.info-card-content h4 {
    color: var(--policy-primary);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.info-card-content p {
    color: var(--policy-gray);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==================== GRID DES TYPES DE COOKIES ==================== */
.cookies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.cookie-type-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--policy-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cookie-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--policy-shadow-hover);
    border-color: rgba(58, 156, 141, 0.3);
}

.cookie-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.cookie-type-card:nth-child(1)::before {
    background: var(--essential-color);
}

.cookie-type-card:nth-child(2)::before {
    background: var(--analytics-color);
}

.cookie-type-card:nth-child(3)::before {
    background: var(--functional-color);
}

.cookie-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.cookie-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: -1;
    transform: scale(1.1);
}

.cookie-icon.essential {
    background: linear-gradient(135deg, var(--essential-color), #ff8e8e);
}

.cookie-icon.analytics {
    background: linear-gradient(135deg, var(--analytics-color), #88d3ce);
}

.cookie-icon.functional {
    background: linear-gradient(135deg, var(--functional-color), #96d9e6);
}

.cookie-type-card h3 {
    color: var(--policy-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cookie-type-card p {
    color: var(--policy-gray);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-features {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.cookie-features li {
    padding: 10px 0;
    color: var(--policy-gray);
    font-size: 0.95rem;
    position: relative;
    padding-left: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-features li:last-child {
    border-bottom: none;
}

.cookie-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--policy-primary);
    font-weight: bold;
    font-size: 1rem;
}

/* ==================== TABLE DES COOKIES ==================== */
.cookies-table {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--policy-shadow);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
}

.cookies-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.cookies-table th {
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.15), rgba(184, 133, 152, 0.15));
    color: var(--policy-primary);
    font-weight: 600;
    text-align: left;
    padding: 20px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cookies-table td {
    padding: 18px 25px;
    color: var(--policy-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    line-height: 1.5;
}

.cookies-table tbody tr {
    transition: background-color 0.3s ease;
}

.cookies-table tbody tr:hover {
    background: rgba(58, 156, 141, 0.05);
}

.cookies-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Montserrat', sans-serif;
}

.badge.essential {
    background: rgba(255, 107, 107, 0.12);
    color: var(--essential-color);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.badge.analytics {
    background: rgba(78, 205, 196, 0.12);
    color: var(--analytics-color);
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.badge.functional {
    background: rgba(69, 183, 209, 0.12);
    color: var(--functional-color);
    border: 1px solid rgba(69, 183, 209, 0.2);
}

/* ==================== ÉTAPES DE GESTION ==================== */
.steps {
    margin: 45px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--policy-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--policy-shadow-hover);
    border-color: rgba(58, 156, 141, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--policy-primary), var(--policy-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(58, 156, 141, 0.3);
}

.step-content h4 {
    color: var(--policy-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.step-content > p {
    color: var(--policy-gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.step-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 10px;
    color: var(--policy-gray);
    line-height: 1.6;
    position: relative;
    padding-left: 10px;
}

.step-content li::marker {
    color: var(--policy-primary);
}

/* ==================== LIENS NAVIGATEURS ==================== */
.browser-links {
    margin: 45px 0;
    padding: 40px;
    background: rgba(58, 156, 141, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(58, 156, 141, 0.15);
}

.browser-links h4 {
    color: var(--policy-primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.browser-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--policy-dark);
    transition: all 0.3s ease;
    box-shadow: var(--policy-shadow);
    border: 2px solid transparent;
}

.browser-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--policy-shadow-hover);
    border-color: rgba(58, 156, 141, 0.3);
    color: var(--policy-primary);
}

.browser-link i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.browser-link:hover i {
    transform: scale(1.1);
}

.browser-link span {
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* ==================== GRID DES DROITS ==================== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 45px 0;
}

.right-card {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--policy-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.right-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--policy-shadow-hover);
    border-color: rgba(58, 156, 141, 0.3);
}

.right-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--policy-primary), var(--policy-secondary));
}

.right-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.12), rgba(184, 133, 152, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--policy-primary);
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.right-card:hover .right-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--policy-primary), var(--policy-secondary));
    color: white;
}

.right-card h3 {
    color: var(--policy-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.right-card p {
    color: var(--policy-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==================== SECTION CONTACT ==================== */
.contact-info {
    margin: 45px 0;
}

.contact-info > p {
    color: var(--policy-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--policy-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--policy-shadow-hover);
    border-color: rgba(58, 156, 141, 0.2);
}

.contact-method i {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 156, 141, 0.12), rgba(184, 133, 152, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--policy-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    background: linear-gradient(135deg, var(--policy-primary), var(--policy-secondary));
    color: white;
    transform: scale(1.1);
}

.contact-method-content {
    flex: 1;
}

.contact-method h4 {
    color: var(--policy-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.contact-method a {
    color: var(--policy-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.contact-method a:hover {
    color: var(--policy-primary);
    text-decoration: underline;
}

.contact-method p {
    color: var(--policy-gray);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablette (768px - 992px) */
@media (max-width: 992px) {
    .policy-content {
        padding: 80px 0;
    }
    
    .policy-main {
        padding: 50px 40px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cookies-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .cookies-table table {
        min-width: 800px;
    }
    
    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .browser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablette petite (576px - 768px) */
@media (max-width: 768px) {
    .policy-content {
        padding: 60px 0;
    }
    
    .policy-main {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .section-badge {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .info-card-icon {
        margin-bottom: 20px;
    }
    
    .cookie-type-card {
        padding: 30px 25px;
    }
    
    .cookie-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .steps {
        gap: 30px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .step-number {
        margin: 0 auto 20px;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .browser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (481px - 576px) */
@media (max-width: 576px) {
    .policy-content {
        padding: 50px 0;
    }
    
    .policy-main {
        padding: 30px 20px;
        border-radius: 18px;
    }
    
    .policy-section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .policy-text {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .info-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .cookies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cookie-type-card {
        padding: 25px 20px;
    }
    
    .cookie-features li {
        padding-left: 25px;
    }
    
    .browser-links {
        padding: 30px 20px;
    }
    
    .browser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .browser-link {
        padding: 20px 15px;
    }
    
    .browser-link i {
        font-size: 2.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-method {
        padding: 20px;
    }
}

/* Mobile très petit (jusqu'à 480px) */
@media (max-width: 480px) {
    .policy-content {
        padding: 40px 0;
    }
    
    .policy-grid {
        padding: 0 15px;
    }
    
    .policy-main {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-badge {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .cookie-type-card h3 {
        font-size: 1.3rem;
    }
    
    .step {
        padding: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .browser-grid {
        grid-template-columns: 1fr;
    }
    
    .right-card {
        padding: 30px 20px;
    }
    
    .right-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Correction pour les table horizontales sur mobile */
@media (max-width: 768px) {
    .cookies-table {
        border-radius: 10px;
    }
    
    .table-responsive {
        margin: 0 -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .cookies-table table {
        min-width: 700px;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

/* Support pour les hauteurs d'écran réduites */
@media (max-height: 600px) {
    .policy-content {
        padding: 40px 0;
    }
    
    .policy-section {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
}

/* Support pour le mode paysage */
@media (max-height: 500px) and (orientation: landscape) {
    .policy-content {
        padding: 30px 0;
    }
    
    .policy-section {
        margin-bottom: 40px;
    }
    
    .info-card,
    .cookie-type-card,
    .right-card,
    .contact-method {
        padding: 20px;
    }
}

/* Animation pour les éléments au défilement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }
.policy-section:nth-child(5) { animation-delay: 0.5s; }
.policy-section:nth-child(6) { animation-delay: 0.6s; }