/* =====================================================================
 * Fichier : assets/css/pages/datenschutz.css
 * Projet  : Brennholz Shop24
 * Rôle    : Styles propres à la déclaration de protection des données
 *           (datenschutz.php) : pastilles du bandeau, étiquettes
 *           « Rechtsgrundlage / Speicherdauer », carte de l'état du
 *           consentement (mise à jour en direct), fiches des services
 *           tiers avec leur état, encart « pays tiers » et assistant
 *           « droits des personnes » (choix du droit, texte de demande).
 *           Mise en page commune : assets/css/components/legal.css
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. Bandeau
 * ------------------------------------------------------------------- */
.ds-hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.2rem; animation: hfk-fade-up .7s .3s var(--hfk-ease) both; }
.ds-hero-chips > span {
    display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; font-size: .85rem; font-weight: 600;
    color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.ds-hero-chips > span i { width: 16px; color: var(--hfk-amber); text-align: center; }
.ds-cookie-btn i { transition: transform .4s var(--hfk-ease-bounce); }
.ds-cookie-btn:hover i { transform: rotate(-18deg) scale(1.15); }

/* ---------------------------------------------------------------------
 * 2. Étiquettes « base légale » et « durée »
 * ------------------------------------------------------------------- */
.ds-basis { position: relative; padding: .75rem .9rem .75rem 1rem; background: var(--hfk-cream); border-left: 3px solid var(--hfk-sky); font-size: .95rem; }
.ds-basis + .ds-basis { margin-top: -.4rem; border-left-color: var(--hfk-amber); }
.ds-tag {
    display: inline-flex; align-items: center; gap: .35rem; margin-right: .45rem; padding: .18rem .55rem; vertical-align: 1px;
    font-family: var(--hfk-font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.ds-tag i { width: 12px; text-align: center; }
.ds-tag-basis { background: var(--hfk-sky); }
.ds-tag-keep { background: #B07D00; }
.ds-tag-analytics { background: var(--hfk-sky); }
.ds-tag-marketing { background: var(--hfk-plum); }
.ds-tag-security { background: var(--hfk-forest); }

/* ---------------------------------------------------------------------
 * 3. État du consentement
 * ------------------------------------------------------------------- */
.ds-consent { margin: 1.2rem 0 1.4rem; background: #fff; border: 1px solid var(--hfk-border); border-top: 4px solid var(--hfk-amber); box-shadow: var(--hfk-shadow-sm); }
.ds-consent-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--hfk-border); }
.ds-consent-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px;
    background: var(--hfk-grad-fire); color: #fff; font-size: 1.15rem; animation: hfk-float 4s ease-in-out infinite;
}
.ds-consent-head strong { display: block; font-family: var(--hfk-font-head); font-size: 1.05rem; }
.ds-consent-head small { color: var(--hfk-muted); font-size: .85rem; line-height: 1.4; }
.ds-consent-list { margin: 0 !important; padding: 0 !important; }
.ds-consent-list li {
    display: flex !important; align-items: center; justify-content: space-between; gap: 1rem;
    margin: 0 !important; padding: .7rem 1.1rem !important; border-bottom: 1px dashed var(--hfk-border); transition: background .25s;
}
.ds-consent-list li:last-child { border-bottom: 0; }
.ds-consent-list li:hover { background: var(--hfk-cream); }
.ds-consent-list li > span { font-weight: 600; color: var(--hfk-charcoal); }
.ds-consent-list b {
    display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; font-size: .8rem; font-weight: 700;
    color: var(--hfk-muted); background: var(--hfk-ash); transition: background .3s, color .3s;
}
.ds-consent-list b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ds-consent-list b.is-on { color: #fff; background: var(--hfk-forest); }
.ds-consent-list b.is-off { color: #fff; background: #8C8079; }
.ds-consent-list b.is-changed { animation: ds-pop .6s var(--hfk-ease-bounce); }
.ds-consent > .btn, .ds-consent > p { margin: 0 1.1rem 1rem; }
.ds-consent > .btn { max-width: calc(100% - 2.2rem); white-space: normal; text-align: left; }
@keyframes ds-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }

/* ---------------------------------------------------------------------
 * 4. Services tiers
 * ------------------------------------------------------------------- */
.ds-tool { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.ds-tool .ds-tag { margin-right: 0; }
.ds-tool-state { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--hfk-muted); }
.ds-tool-state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #B9ADA2; transition: background .3s, box-shadow .3s; }
.ds-tool-state.is-on { color: var(--hfk-forest-dark); }
.ds-tool-state.is-on::before { background: var(--hfk-forest); box-shadow: 0 0 0 4px rgba(42, 157, 143, .18); }
.ds-third {
    display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; font-size: .9rem;
    background: #EEF6FB; border-left: 3px solid var(--hfk-sky); color: var(--hfk-text);
}
.ds-third i { width: 16px; margin-top: .3rem; color: var(--hfk-sky); text-align: center; }
.lx-section[data-lx-group="tools"] .lx-num { background: var(--hfk-grad-night); }
.lx-dl code, .lx-content td code { padding: .05rem .35rem; font-size: .86em; background: var(--hfk-ash); color: var(--hfk-charcoal); }

/* ---------------------------------------------------------------------
 * 5. Assistant « droits des personnes »
 * ------------------------------------------------------------------- */
.ds-rights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .55rem; margin: 1.2rem 0 1rem; }
.ds-right {
    display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .8rem; text-align: left;
    background: #fff; border: 2px solid var(--hfk-border); color: var(--hfk-charcoal);
    transition: border-color .25s, background .25s, transform .25s var(--hfk-ease), box-shadow .25s;
}
.ds-right:hover { border-color: var(--hfk-flame); transform: translateY(-3px); box-shadow: var(--hfk-shadow-sm); }
.ds-right.is-active { border-color: var(--hfk-flame); background: var(--hfk-flame-light); }
.ds-right-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px;
    background: var(--hfk-ash); color: var(--hfk-flame-dark); transition: background .3s, color .3s, transform .4s var(--hfk-ease-bounce);
}
.ds-right.is-active .ds-right-icon { background: var(--hfk-grad-fire); color: #fff; transform: rotate(-6deg); }
.ds-right-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ds-right-text strong { font-size: .92rem; }
.ds-right-text small { font-size: .76rem; color: var(--hfk-muted); }
.ds-right-panel { padding: 1.1rem; background: var(--hfk-cream); border-left: 4px solid var(--hfk-flame); }
.ds-right-desc { animation: hfk-fade-up .35s var(--hfk-ease) both; }
.ds-right-desc[hidden] { display: none; }
.ds-request { min-height: 190px; font-family: var(--hfk-font-body); font-size: .92rem; line-height: 1.55; resize: vertical; background: #fff; }
.ds-request.is-filled { animation: ds-fill .5s var(--hfk-ease); }
.ds-right-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
@keyframes ds-fill { from { background: var(--hfk-amber-light); } to { background: #fff; } }

/* ---------------------------------------------------------------------
 * 6. Adaptation aux écrans et impression
 * ------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .ds-hero-chips > span, .ds-cookie-btn { width: 100%; justify-content: center; }
    .ds-consent-head { align-items: flex-start; }
    .ds-right-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-consent-icon { animation: none; }
}
@media print {
    .ds-cookie-btn, .ds-rights, .ds-right-panel, .ds-tool-state { display: none !important; }
    .ds-basis, .ds-third { background: none; border-left-color: #999; }
    .ds-tag { color: #000; background: none !important; border: 1px solid #999; }
}