﻿/*=============================================================================
  5. PAGES LÃ‰GALES
=============================================================================*/
.titre-mentions {
    color: #222222;
    text-align: left;
}

.titre-pages {
    color: #000000;
    text-align: center;
}

.contenu-pages {
    text-align: justify;
    color: var(--color-text-body);
}

/*=============================================================================
  6. COOKIES / RGPD
=============================================================================*/
.background-box {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    margin: 20px auto 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    width: 95%;
}

.cookie-header {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.cookie-header h2 {
    color: #222222;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cookie-intro {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cookie-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-card-title h3 {
    font-size: 1.15rem;
    color: var(--color-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.cookie-details {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

.cookie-details p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 8px;
    text-align: left;
}

.cookie-details p:last-child {
    margin-bottom: 0;
}

.cookie-details strong {
    color: #0f172a;
}

.cookie-link {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: var(--color-primary-dark);
}

/* Toggle switch */
.switch-container {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .switch-slider {
    background: var(--gradient-primary);
}

input:focus + .switch-slider {
    box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

input:disabled + .switch-slider {
    cursor: not-allowed;
}

/* Footer bouton sauvegarde cookies */
.cookie-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 24px;
}

.btn-save-preferences {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-shadow: 0 4px 12px rgba(94, 23, 235, 0.2);
}

.btn-save-preferences:hover  { filter: brightness(1.15); }
.btn-save-preferences:active { filter: brightness(0.95); }

/* Toast notification */
.toast-notification {
    visibility: hidden;
    min-width: 320px;
    background-color: #0f172a;
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    padding: 16px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-text-body);
}

.toast-notification.show {
    visibility: visible;
    bottom: 30px;
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.toast-icon {
    background-color: #22c55e;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

