/* ==========================================================================
   FindyourMate - Styles Politique des Cookies (fymcookies.css)
   ========================================================================== */

.cgu-page-wrapper {
    max-width: 980px;
    margin: 0 auto;
    font-family: 'PT Sans', system-ui, sans-serif;
    color: #1e293b;
}

/* Carte principale englobante blanche */
.cgu-main-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Logo FindyourMate dégradé rose/orange */
.cgu-brand-logo {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(92.18deg, #e6007e 15%, #f9b000 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Titre de page (#000F37) */
.cgu-page-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #000F37 !important;
    line-height: 1.25;
    margin-top: 0.2rem;
    margin-bottom: 0;
}

/* Encadré Préambule / Présentation */
.cgu-preambule-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7 !important;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.cgu-preambule-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.cgu-preambule-box p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

/* Barre de recherche et filtres */
.cgu-search-group .form-control {
    border-radius: 0 6px 6px 0;
    font-size: 0.92rem;
    height: calc(1.5em + 1rem + 2px);
    border-color: #cbd5e1;
}

.cgu-search-group .input-group-text {
    border-radius: 6px 0 0 6px;
    border-color: #cbd5e1;
}

.cgu-search-group .form-control:focus {
    border-color: #e6007e !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 0, 126, 0.15) !important;
}

.cgu-expand-group .btn {
    border-color: #cbd5e1;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
}

.cgu-expand-group .btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Badges pilules roses pour les catégories */
.cgu-pill-badge {
    display: inline-block;
    background-color: #fff1f6;
    color: #e6007e;
    border: 1px solid #fbcfe8;
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Cartes individuelles de l'accordéon */
.cgu-accordion .card.cgu-card {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    margin-bottom: 0.65rem !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.cgu-accordion .card.cgu-card:hover {
    border-color: #94a3b8 !important;
}

.cgu-accordion .card-header.cgu-header {
    background-color: #ffffff !important;
    border: none !important;
    padding: 0 !important;
}

/* Bouton cliquable de titre */
.cgu-accordion .btn.cgu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 1.15rem 1.4rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: left !important;
}

/* Chevron à droite orienté vers le bas */
.cgu-accordion .btn.cgu-btn::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.25s ease-in-out;
    margin-left: auto;
    flex-shrink: 0;
}

/* Rotation vers le haut lors de l'ouverture */
.cgu-accordion .btn.cgu-btn:not(.collapsed)::after {
    transform: rotate(-135deg);
    border-color: #0f172a;
}

.cgu-accordion .btn.cgu-btn::before {
    display: none !important;
}

/* Contenu déplié */
.cgu-accordion .card-body.cgu-body {
    padding: 1.5rem !important;
    border-top: 1px solid #f1f5f9;
    background-color: #ffffff !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

.cgu-accordion .card-body.cgu-body p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    margin-bottom: 0.75rem;
}

.cgu-accordion .card-body.cgu-body ul {
    padding-left: 1.25rem !important;
    margin-bottom: 0.75rem;
}

.cgu-accordion .card-body.cgu-body li {
    margin-bottom: 0.35rem;
}

/* Tableaux de cookies soignés */
.cgu-custom-table {
    border-color: #e2e8f0;
    font-size: 0.88rem;
}

.cgu-custom-table thead th {
    background-color: #f8fafc;
    color: #000F37;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
}

.cgu-custom-table tbody td {
    padding: 0.65rem 0.85rem;
    vertical-align: middle;
    color: #334155;
}

.cgu-custom-table code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}