/* input(82,86): run-time error CSS1063: Expected calculation unit, found 'l'
input(82,86): run-time error CSS1064: Expected calculation product, found 'l'
input(82,86): run-time error CSS1065: Expected calculation sum, found 'l'
input(82,86): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(82,86): run-time error CSS1042: Expected function, found 'l'
input(82,89): run-time error CSS1019: Unexpected token, found ' '
input(82,89): run-time error CSS1019: Unexpected token, found ' '
input(82,89): run-time error CSS1042: Expected function, found ' '
input(82,89): run-time error CSS1019: Unexpected token, found ' '
input(82,89): run-time error CSS1042: Expected function, found ' '
input(82,89): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(178,86): run-time error CSS1063: Expected calculation unit, found 'l'
input(178,86): run-time error CSS1064: Expected calculation product, found 'l'
input(178,86): run-time error CSS1065: Expected calculation sum, found 'l'
input(178,86): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(178,86): run-time error CSS1042: Expected function, found 'l'
input(178,89): run-time error CSS1019: Unexpected token, found ' '
input(178,89): run-time error CSS1019: Unexpected token, found ' '
input(178,89): run-time error CSS1042: Expected function, found ' '
input(178,89): run-time error CSS1019: Unexpected token, found ' '
input(178,89): run-time error CSS1042: Expected function, found ' '
input(178,89): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(194,64): run-time error CSS1063: Expected calculation unit, found 'l'
input(194,64): run-time error CSS1064: Expected calculation product, found 'l'
input(194,64): run-time error CSS1065: Expected calculation sum, found 'l'
input(194,64): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(194,64): run-time error CSS1042: Expected function, found 'l'
input(194,67): run-time error CSS1019: Unexpected token, found ' '
input(194,67): run-time error CSS1019: Unexpected token, found ' '
input(194,67): run-time error CSS1042: Expected function, found ' '
input(194,67): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(196,65): run-time error CSS1063: Expected calculation unit, found 'l'
input(196,65): run-time error CSS1064: Expected calculation product, found 'l'
input(196,65): run-time error CSS1065: Expected calculation sum, found 'l'
input(196,65): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(196,65): run-time error CSS1042: Expected function, found 'l'
input(196,68): run-time error CSS1019: Unexpected token, found ' '
input(196,68): run-time error CSS1019: Unexpected token, found ' '
input(196,68): run-time error CSS1042: Expected function, found ' '
input(196,68): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(198,64): run-time error CSS1063: Expected calculation unit, found 's'
input(198,64): run-time error CSS1064: Expected calculation product, found 's'
input(198,64): run-time error CSS1065: Expected calculation sum, found 's'
input(198,64): run-time error CSS1034: Expected closing parenthesis, found 's'
input(198,64): run-time error CSS1042: Expected function, found 's'
input(198,67): run-time error CSS1019: Unexpected token, found ' '
input(198,67): run-time error CSS1019: Unexpected token, found ' '
input(198,67): run-time error CSS1042: Expected function, found ' '
input(198,67): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(203,70): run-time error CSS1063: Expected calculation unit, found 'l'
input(203,70): run-time error CSS1064: Expected calculation product, found 'l'
input(203,70): run-time error CSS1065: Expected calculation sum, found 'l'
input(203,70): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(203,70): run-time error CSS1042: Expected function, found 'l'
input(203,73): run-time error CSS1019: Unexpected token, found ' '
input(203,73): run-time error CSS1019: Unexpected token, found ' '
input(203,73): run-time error CSS1042: Expected function, found ' '
input(203,73): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(205,71): run-time error CSS1063: Expected calculation unit, found 'l'
input(205,71): run-time error CSS1064: Expected calculation product, found 'l'
input(205,71): run-time error CSS1065: Expected calculation sum, found 'l'
input(205,71): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(205,71): run-time error CSS1042: Expected function, found 'l'
input(205,74): run-time error CSS1019: Unexpected token, found ' '
input(205,74): run-time error CSS1019: Unexpected token, found ' '
input(205,74): run-time error CSS1042: Expected function, found ' '
input(205,74): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(207,70): run-time error CSS1063: Expected calculation unit, found 's'
input(207,70): run-time error CSS1064: Expected calculation product, found 's'
input(207,70): run-time error CSS1065: Expected calculation sum, found 's'
input(207,70): run-time error CSS1034: Expected closing parenthesis, found 's'
input(207,70): run-time error CSS1042: Expected function, found 's'
input(207,73): run-time error CSS1019: Unexpected token, found ' '
input(207,73): run-time error CSS1019: Unexpected token, found ' '
input(207,73): run-time error CSS1042: Expected function, found ' '
input(207,73): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(212,65): run-time error CSS1063: Expected calculation unit, found 'l'
input(212,65): run-time error CSS1064: Expected calculation product, found 'l'
input(212,65): run-time error CSS1065: Expected calculation sum, found 'l'
input(212,65): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(212,65): run-time error CSS1042: Expected function, found 'l'
input(212,68): run-time error CSS1019: Unexpected token, found ' '
input(212,68): run-time error CSS1019: Unexpected token, found ' '
input(212,68): run-time error CSS1042: Expected function, found ' '
input(212,68): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(214,66): run-time error CSS1063: Expected calculation unit, found 'l'
input(214,66): run-time error CSS1064: Expected calculation product, found 'l'
input(214,66): run-time error CSS1065: Expected calculation sum, found 'l'
input(214,66): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(214,66): run-time error CSS1042: Expected function, found 'l'
input(214,69): run-time error CSS1019: Unexpected token, found ' '
input(214,69): run-time error CSS1019: Unexpected token, found ' '
input(214,69): run-time error CSS1042: Expected function, found ' '
input(214,69): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(216,65): run-time error CSS1063: Expected calculation unit, found 's'
input(216,65): run-time error CSS1064: Expected calculation product, found 's'
input(216,65): run-time error CSS1065: Expected calculation sum, found 's'
input(216,65): run-time error CSS1034: Expected closing parenthesis, found 's'
input(216,65): run-time error CSS1042: Expected function, found 's'
input(216,68): run-time error CSS1019: Unexpected token, found ' '
input(216,68): run-time error CSS1019: Unexpected token, found ' '
input(216,68): run-time error CSS1042: Expected function, found ' '
input(216,68): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(297,86): run-time error CSS1063: Expected calculation unit, found 'l'
input(297,86): run-time error CSS1064: Expected calculation product, found 'l'
input(297,86): run-time error CSS1065: Expected calculation sum, found 'l'
input(297,86): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(297,86): run-time error CSS1042: Expected function, found 'l'
input(297,89): run-time error CSS1019: Unexpected token, found ' '
input(297,89): run-time error CSS1019: Unexpected token, found ' '
input(297,89): run-time error CSS1042: Expected function, found ' '
input(297,89): run-time error CSS1019: Unexpected token, found ' '
input(297,89): run-time error CSS1042: Expected function, found ' '
input(297,89): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(329,86): run-time error CSS1063: Expected calculation unit, found 'l'
input(329,86): run-time error CSS1064: Expected calculation product, found 'l'
input(329,86): run-time error CSS1065: Expected calculation sum, found 'l'
input(329,86): run-time error CSS1034: Expected closing parenthesis, found 'l'
input(329,86): run-time error CSS1042: Expected function, found 'l'
input(329,89): run-time error CSS1019: Unexpected token, found ' '
input(329,89): run-time error CSS1019: Unexpected token, found ' '
input(329,89): run-time error CSS1042: Expected function, found ' '
input(329,89): run-time error CSS1019: Unexpected token, found ' '
input(329,89): run-time error CSS1042: Expected function, found ' '
input(329,89): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' '
input(5430,47): run-time error CSS1019: Unexpected token, found ':'
input(5430,47): run-time error CSS1042: Expected function, found ':'
input(5430,47): run-time error CSS1062: Expected semicolon or closing curly-brace, found ':' */
/* /css/theme/button.tokens.css */
/* Button tokens derived from global neutrals + theme colors. */

:root {
    /* Button common */
    --btn-radius: var(--border-radius, 1rem);
    /* Disabled */
    --btn-disabled-bg: hsl(var(--neutral-h) var(--neutral-s) 85%);
    --btn-disabled-text: hsl(var(--neutral-h) var(--neutral-s) 45%);
    /* Ghost: neutral background, theme-colored text */
    --btn-ghost-bg: var(--ghost-bg);
    --btn-ghost-hover-bg: var(--ghost-bg-hover);
    --btn-ghost-active-bg: var(--ghost-bg-active);
    /* Muted: discreet action */
    --btn-muted-bg: transparent;
    --btn-muted-text: var(--text-muted);
    --btn-muted-hover-bg: hsl(var(--neutral-h) 10% 45% / 0.10);
    --btn-muted-active-bg: hsl(var(--neutral-h) 10% 45% / 0.16);
    /* Danger (global) */
    --btn-danger-h: 0;
    --btn-danger-s: 75%;
    --btn-danger-l: 52%;
    --btn-danger-bg: hsl(var(--btn-danger-h) var(--btn-danger-s) var(--btn-danger-l));
    --btn-danger-hover-bg: hsl(var(--btn-danger-h) var(--btn-danger-s) clamp(0%, calc(var(--btn-danger-l) + 6%), 100%));
    --btn-danger-active-bg: hsl(var(--btn-danger-h) var(--btn-danger-s) clamp(0%, calc(var(--btn-danger-l) - 6%), 100%));
    --btn-danger-text: hsl(0 0% 100%);
}

:root {
    /* Text on filled buttons */
    --btn-on-color-text: var(--on-color-text);
    /* Focus ring (accent with alpha) */
    --btn-focus-ring: var(--focus-color);
    /* Global focus alias used by other components */
    --focus-color: var(--btn-focus-ring);
    /* PRIMARY */
    --btn-primary-bg: var(--theme-primary);
    --btn-primary-text: var(--btn-on-color-text);
    --btn-primary-hover-bg: hsl(var(--theme-primary-h) var(--theme-primary-s) clamp(0%, calc(var(--theme-primary-l) + 6%), 100%));
    --btn-primary-active-bg: hsl(var(--theme-primary-h) var(--theme-primary-s) clamp(0%, calc(var(--theme-primary-l) - 6%), 100%));
    /* SECONDARY */
    --btn-secondary-bg: var(--theme-secondary);
    --btn-secondary-text: var(--btn-on-color-text);
    --btn-secondary-hover-bg: hsl(var(--theme-secondary-h) var(--theme-secondary-s) clamp(0%, calc(var(--theme-secondary-l) + 6%), 100%));
    --btn-secondary-active-bg: hsl(var(--theme-secondary-h) var(--theme-secondary-s) clamp(0%, calc(var(--theme-secondary-l) - 6%), 100%));
    /* ACCENT */
    --btn-accent-bg: var(--theme-accent);
    --btn-accent-text: var(--btn-on-color-text);
    --btn-accent-hover-bg: hsl(var(--theme-accent-h) var(--theme-accent-s) clamp(0%, calc(var(--theme-accent-l) + 6%), 100%));
    --btn-accent-active-bg: hsl(var(--theme-accent-h) var(--theme-accent-s) clamp(0%, calc(var(--theme-accent-l) - 6%), 100%));
    /* GHOST: keep neutral bg, but theme-colored text */
    --btn-ghost-text: var(--theme-primary);
    /* Surface */
    --btn-surface-bg: transparent;
    --btn-surface-text: var(--text-color);
    --btn-surface-border: var(--muted-border);
    --btn-surface-hover-bg: var(--theme-secondary);
    --btn-surface-hover-text: var(--btn-on-color-text);
    --btn-surface-active-bg: var(--tint-primary-medium);
}

:root[data-theme="blue"] {
    --theme-primary-h: 225;
    --theme-primary-s: 60%;
    --theme-primary-l: 60%;
    --theme-secondary-h: 225;
    --theme-secondary-s: 70%;
    --theme-secondary-l: 70%;
    --theme-accent-h: 225;
    --theme-accent-s: 90%;
    --theme-accent-l: 60%;
}

[data-theme="blue"] {
    --base-color: hsl(225, 60%, 60%);
    --second-color: hsl(225, 100%, 40%);
    --negative-color: hsla(0, 0%, 85%, 1);
    /* base */
    --text-color: hsla(0, 0%, 13%, 1);
    --text-color-inverse: hsla(0, 0%, 100%, 1);
    /* surface */
    --background-color: linear-gradient( 135deg, hsl(from var(--base-color) h s calc(l + 10)), transparent);
    --surface-color: hsla(0, 0%, 97%, 1);
}


    [data-theme="blue"] .share-image {
        content: url("/img/contactus-vert.png");
    }

/* /css/theme/core.tokens.css */
/* Core semantic tokens derived from theme colors + global neutrals. */

:root {
    /* Resolved theme colors */
    --theme-primary: hsl(var(--theme-primary-h) var(--theme-primary-s) var(--theme-primary-l));
    --theme-secondary: hsl(var(--theme-secondary-h) var(--theme-secondary-s) var(--theme-secondary-l));
    --theme-accent: hsl(var(--theme-accent-h) var(--theme-accent-s) var(--theme-accent-l));
    /* Surface (neutral) */
    --surface-bg: var(--color-surface, hsl(0 0% 100%));
    --surface-border: var(--muted-border);
    --surface-active-border: hsl(var(--theme-primary-h) var(--theme-primary-s) 93%);
    --surface-text: var(--text-color);
    /* Hover/active states for surface elements */
    --surface-hover-bg: hsl(var(--neutral-h) var(--neutral-s) 96%);
    --surface-active-bg: hsl(var(--neutral-h) var(--neutral-s) 97%);
    /* Sections */
    --section-tint-bg: hsl(var(--theme-primary-h) var(--theme-primary-s) var(--theme-primary-l) / 0.14);
    --section-title-text: var(--text-color);
    --section-separator: var(--theme-primary);
    /* Selection (soft accent) */
    --selection-bg: hsl(var(--theme-accent-h) var(--theme-accent-s) var(--theme-accent-l) / 0.16);
    --selection-border: hsl(var(--theme-accent-h) var(--theme-accent-s) var(--theme-accent-l) / 0.45);
    --selection-text: var(--theme-accent);
    /* Segmented Control – “calm filters” style */
    --segmented-bg: transparent;
    --segmented-border: transparent;
    /* Inactive items look like soft pills */
    --segmented-item-bg: var(--muted-bg);
    --segmented-item-text: var(--text-color);
    --segmented-item-border: transparent;
    --segmented-item-bg-hover: var(--ghost-bg-hover);
    --segmented-item-text-hover: var(--text-color);
    /* Active item: use secondary (recommended) */
    --segmented-item-bg-active: var(--theme-secondary);
    --segmented-item-text-active: var(--on-color-text);
    --segmented-item-border-active: transparent;
    --segmented-focus: var(--focus-color);
    /* Tint */
    --tint-primary-weak: hsl(var(--theme-primary-h) var(--theme-primary-s) var(--theme-primary-l) / 0.20);
    --tint-primary-medium: hsl(var(--theme-primary-h) var(--theme-primary-s) var(--theme-primary-l) / 0.30);
    --tint-secondary-weak: hsl(var(--theme-secondary-h) var(--theme-secondary-s) var(--theme-secondary-l) / 0.20);
    --tint-secondary-medium: hsl(var(--theme-secondary-h) var(--theme-secondary-s) var(--theme-secondary-l) / 0.30);
    --tint-accent-weak: hsl(var(--theme-accent-h) var(--theme-accent-s) var(--theme-accent-l) / 0.20);
    --tint-accent-medium: hsl(var(--theme-accent-h) var(--theme-accent-s) var(--theme-accent-l) / 0.30);
    /* Controls (inputs, dropdowns, etc.) */
    --control-bg: var(--surface-bg);
    --control-text: var(--surface-text);
    --control-border: var(--surface-border);
    --control-hover-bg: var(--surface-hover-bg);
    --control-active-bg: var(--surface-active-bg);
    --control-disabled-text: var(--text-muted);
    --control-check-bg-off: var(--surface-bg);
    --control-check-border-off: var(--muted-border);
    --control-check-bg-on: var(--theme-accent);
    --control-check-border-on: var(--theme-accent);
    /* Banner */
    --banner-bg: var(--surface-bg);
    --banner-big-border: hsl(0deg 0% 97% / 80%);
    --banner-border: var(--surface-border);
    --banner-shadow: var(--shadow);
    --banner-icon-bg: var(--tint-primary-weak);
}

/* /css/theme/default.css */
/* Theme-specific values + backward-compatible theme variables. */

:root {
    /* Theme HSL values (used by core.tokens.css) */
    --theme-primary-h: 192;
    --theme-primary-s: 40%;
    --theme-primary-l: 30%;
    --theme-secondary-h: 192;
    --theme-secondary-s: 25%;
    --theme-secondary-l: 40%;
    --theme-accent-h: 192;
    --theme-accent-s: 45%;
    --theme-accent-l: 50%;
    /* Legacy theme palette (derived from theme HSL values) */
    --base-color: hsl(var(--theme-primary-h) var(--theme-primary-s) 15%);
    --second-color: hsl(var(--theme-accent-h) var(--theme-accent-s) 35%);
    --negative-color: hsl(0 0% 85%);
    --negative-color-text: var(--on-color-text);
    /* Base */
    --text-color: hsl(0 0% 13%);
    --text-color-inverse: hsl(0 0% 100%);
    /* Surface */
    --background-color: linear-gradient( 135deg, hsl(from var(--base-color) h s calc(l + 10)), transparent);
    --surface-color: hsl(0 0% 97%);
    /* App-level aliases */
    --color-background: var(--background-color);
    --color-surface: var(--surface-color);
    --color-error: hsl(0 100% 50%);
    /* Prefer stable tokens from globals.tokens.css */
    --color-success: var(--status-success);
    --color-info: var(--status-info);
    --color-input: var(--surface-color);
    /* Disabled */
    --color-disabled-hsla: hsl(0 0% 87%);
    --color-disabled-text-hsla: hsl(0 0% 69%);
    /* Primary */
    --color-primary: var(--base-color);
    --color-primary-text: var(--text-color-inverse);
    --color-primary-hover: hsl(from var(--base-color) h s calc(l - 5%));
    --color-primary-hover-text: var(--text-color-inverse);
    --color-primary-active: hsl(from var(--base-color) h s calc(l + 10%));
    --color-primary-active-text: var(--text-color-inverse);
    --color-primary-variant: hsl(from var(--base-color) h calc(s + 10%) calc(l + 10%));
    --color-primary-variant-text: var(--text-color-inverse);
    /* Secondary */
    --color-secondary: var(--negative-color);
    --color-secondary-text: var(--base-color);
    --color-secondary-hover: hsl(from var(--negative-color) h s calc(l - 5%));
    --color-secondary-hover-text: var(--base-color);
    --color-secondary-active: hsl(from var(--negative-color) h s calc(l + 10%));
    --color-secondary-active-text: var(--base-color);
    --color-secondary-variant: hsl(from var(--negative-color) h calc(s + 10%) calc(l + 10%));
    --color-secondary-variant-text: var(--base-color);
    /* Accent */
    --color-accent: var(--second-color);
    --color-accent-text: var(--text-color-inverse);
    --color-accent-hover: hsl(from var(--second-color) h s calc(l - 5%));
    --color-accent-hover-text: var(--text-color-inverse);
    --color-accent-active: hsl(from var(--second-color) h s calc(l + 10%));
    --color-accent-active-text: var(--text-color-inverse);
    --color-accent-variant: hsl(from var(--second-color) h calc(s + 10%) calc(l + 10%));
    --color-accent-variant-text: var(--text-color-inverse);
    /* Warning */
    --color-warning: hsl(0 70.7% 59.48%);
    --color-warning-text: hsl(0 0% 0%);
    --color-warning-hover: hsl(0 100% 67.62%);
    /* Text & borders */
    --color-text: var(--text-color);
    --color-muted: var(--text-muted);
    --color-border: var(--muted-border);
    --color-negative: var(--negative-color);
    --color-negative-text: var(--negative-color-text);
    --radius: var(--border-radius);
}

/* Default images */
.usercreation-image {
    content: url("/img/pollcreation-green.png?v=WuSJouDQqUQUQzzKb5t1_Gj9guE");
}

.share-image {
    content: url("/img/contactus-vert.png");
}

/* /css/theme/globals.tokens.css */
/* Global tokens (not theme-dependent). Keep these stable across themes. */

:root {
    /* Neutral base */
    --neutral-h: 220;
    --neutral-s: 12%;
    /* Common text colors */
    --text-color: hsl(var(--neutral-h) 15% 15%);
    --text-muted: hsl(var(--neutral-h) 10% 45%);
    /* Surfaces / borders (neutral) */
    --muted-bg: hsl(var(--neutral-h) var(--neutral-s) 92%);
    --muted-border: hsl(var(--neutral-h) var(--neutral-s) 82%);
    /* Ghost (neutral interactive background) */
    --ghost-bg: hsl(var(--neutral-h) var(--neutral-s) 90%);
    --ghost-bg-hover: hsl(var(--neutral-h) var(--neutral-s) 86%);
    --ghost-bg-active: hsl(var(--neutral-h) var(--neutral-s) 82%);
    /* On-color text fallback (override per theme if needed) */
    --on-color-text: hsl(0 0% 100%);
    /* Focus ring fallback */
    --focus-color: hsl(210 100% 45% / 0.45);
    /* Backward-compatible aliases used in existing CSS */
    --color-text: var(--text-color);
    --color-text-secondary: var(--text-muted);
    /* Stable status colors (theme-independent) */
    --status-success: hsl(140 55% 35%);
    --status-info: hsl(210 90% 45%);
    --status-warning: hsl(45 100% 45%);
    --status-purple: hsl(285 55% 40%);
    /* Filter badge tokens */
    --filter-badge-text: var(--on-color-text);
    --filter-age-bg: hsl(140deg 29.29% 54.55%);
    --filter-gender-bg: hsl(210deg 47.77% 58.07%);
    --filter-country-bg: hsl(0deg 53.11% 63.37%);
    --filter-language-bg: hsl(285deg 46.15% 56.4%);
}

:root[data-theme="violet"] {
    --theme-primary-h: 280;
    --theme-primary-s: 60%;
    --theme-primary-l: 60%;
    --theme-secondary-h: 280;
    --theme-secondary-s: 70%;
    --theme-secondary-l: 70%;
    --theme-accent-h: 280;
    --theme-accent-s: 90%;
    --theme-accent-l: 60%;
}

[data-theme="violet"] {
    --base-color: hsl(280, 60%, 60%);
    --second-color: hsl(280, 100%, 40%);
    --negative-color: hsla(0, 0%, 85%, 1);
    /* base */
    --text-color: hsla(0, 0%, 13%, 1);
    --text-color-inverse: hsla(0, 0%, 100%, 1);
    /* surface */
    --background-color: linear-gradient( 135deg, hsl(from var(--base-color) h s calc(l + 10)), transparent);
    --surface-color: hsla(0, 0%, 97%, 1);
}


    [data-theme="pink"] .share-image {
        content: url("/img/contactus-vert.png");
    }

/* /css/theme/pink.css */

:root[data-theme="pink"],
body[data-theme="pink"] {
    --theme-primary-h: 340;
    --theme-primary-s: 60%;
    --theme-primary-l: 60%;
    --theme-secondary-h: 340;
    --theme-secondary-s: 70%;
    --theme-secondary-l: 70%;
    --theme-accent-h: 340;
    --theme-accent-s: 90%;
    --theme-accent-l: 60%;
}

[data-theme="pink"] {
    --base-color: hsl(340, 60%, 60%);
    --second-color: hsl(340, 100%, 40%);
    --negative-color: hsla(0, 0%, 85%, 1);
    /* base */
    --text-color: hsla(0, 0%, 13%, 1);
    --text-color-inverse: hsla(0, 0%, 100%, 1);
    /* surface */
    --background-color: linear-gradient( 135deg, hsl(from var(--base-color) h s calc(l + 10)), transparent);
    --surface-color: hsla(0, 0%, 97%, 1);
}


    [data-theme="pink"] .share-image {
        content: url("/img/contactus-vert.png");
    }

/* /css/base/layout.css */

/* layout.css – seulement grille et positionnement */

body {
    margin: 0;
    padding: 0;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* Scroll interne + padding si .pollList */
    main:has(.polls-container) {
        overflow-y: hidden;
        padding-bottom: 4rem; /* pour éviter que le contenu passe sous le footer sticky */
    }

    main:has(.container-centered) {
        padding: clamp(0.8rem, calc(2vw + 0.4rem), 4rem);
    }

.multi-content-page {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
}


@media (min-width: 31.25rem) {
    .contact .container-grid, .poll-creation .container-grid {
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }
}

/* ================================== */
/* Header                             */
/* ================================== */

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Utility Header */
.utility-header {
    height: var(--header-h);
    background: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem min(1.5rem, 3vw);
    color: white;
}

.utility-header-left {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacement entre les éléments */
}

.utility-header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacement entre le switch de langue et le menu utilisateur */
}

.utility-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Conteneur du titre */
.title-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Empêche le conteneur de se réduire */
}

/* Style du titre */
.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0; /* Supprime les marges par défaut */
    color: #ffffff;
}

/* Links */
.link-container {
    display: flex;
    gap: 1rem;
}

.link-light {
    color: white;
    text-decoration: none;
    padding-left: 0.5rem;
}

    .link-light:hover {
        color: white;
    }

.user-options-container {
    display: flex;
    align-items: center; /* Assure un alignement vertical correct */
    gap: 0.5rem; /* Espacement horizontal entre le switch de langue et le menu utilisateur */
}

/* ================================== */
/* Footer                             */
/* ================================== */

/* Footer sticky uniquement quand .pollList est dans main */
main:has(.polls-container) + footer {
    position: sticky;
    bottom: 0;
}


.avatar-img {
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f7; /* couleur de fond si l'image met du temps à charger */
    box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

    .avatar-img.is-fallback {
        filter: none;
        opacity: 1;
    }

/* /css/base/reset.css */

/* reset.css minimal et clair */
*, *::before, *::after {
    box-sizing: border-box;
}

*, ul, ol, li, p, h1, h2, h3, h4, h5, h6,
figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
}

button:focus-visible, img:focus-visible {
    outline:none;
}

fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* /css/base/base.css */

/* base.css – global HTML + typo seulement */
html {
    font-family: var(--font-family-base); /*"Noto Sans", system-ui, sans-serif;*/
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-feature-settings: normal;
    font-variation-settings: normal;
    scrollbar-gutter: stable;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

small {
    font-size: 0.875rem;
    color: #666;
}

code, pre {
    font-family: monospace;
    background-color: #f5f5f5;
    border-radius: var(--border-radius-sm);
}

pre {
    padding: var(--padding);
    overflow-x: auto;
}

.text-centered {
    text-align: center;
}


/* /css/base/variables.css */

:root {
    /* Font families */
    --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: var(--font-family-base);
    /* Font sizes */
    --font-size-base: 1rem;
    --font-size-small: 0.7rem;
    --font-size-large: 1.3rem;
    /* Line heights */
    --line-height-base: 1.5;
    --line-height-heading: 1.2;
    /* Layout dimensions */
    --left-rail-w: 8rem;
    --header-h: 3.5rem;
    --footer-h: 2.5rem;
    /* Spacing */
    --gap-xs: 0.3rem;
    --gap-sm: 0.5rem;
    --gap: 1rem;
    --gap-lg: 2rem;
    --gap-xl: 4rem;
    --padding-xs: 0.25rem;
    --padding-sm: 0.5rem;
    --padding: 1rem;
    --padding-lg: 1.5rem;
    --padding-xl: 2rem;
    --margin-xxs: 0.25rem;
    --margin-xs: 0.5rem;
    --margin-sm: 0.75rem;
    --margin: 1rem;
    --margin-lg: 1.25rem;
    --margin-xl: 1.5rem;
    --margin-xxl: 2rem;
    /* Border radius */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    /* Borders */
    --border-width: 0.0625rem; /* 1px */
    /* Shadows */
    --shadow-sm: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.05);
    --shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.625rem 0.9375rem rgba(0, 0, 0, 0.15);
    /* Transition */
    --transition: all 0.3s ease;
    /* Z-index */
    --z-dropdown: 1000;
}

/* /css/global/form.css */

/* Formulaire en colonne */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Description */
.section-description {
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: hsl(var(--theme-secondary-h) var(--theme-secondary-s) var(--theme-secondary-l) / 0.14);
    color: hsl(var(--neutral-h) 18% 18%);
    border-left: 0.35rem solid var(--theme-secondary);
}

/* Sections */
.form-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    background-color: var(--section-tint-bg);
    color: var(--section-title-text);
    border-radius: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: default;
    user-select: none;
    margin-bottom: 0.5rem;
}

    .form-section-title::before,
    .form-section-title::after {
        content: "";
        flex: 1;
        height: 0.1rem;
        background-color: var(--section-separator);
        opacity: 0.35;
    }

    .form-section-title::before {
        margin-right: 0.8rem;
    }

    .form-section-title::after {
        margin-left: 0.8rem;
    }

.section-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-form-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap-reverse;
}

.form-fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Conteneur de groupe de champs */
.form-group,
.form-group-single-file {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .form-group .form-input,
    .form-group .select-container,
    .form-group .input-date-container {
        width: 100%;
    }

    /* Label des champs */
    .form-label {
        display: block;
    }

.form-multiple-anwser-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Indication obligatoire */
.field-required::after {
    content: " *";
    color: var(--color-error);
}

/* Inputs */
.form-input,
.form-select,
.form-area,
.form-area-small,
.form-area-xs {
    width: 100%;
    padding: var(--padding-sm) var(--padding);
    box-sizing: border-box;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: var(--color-input);
}

    .form-input:disabled,
    .form-select:disabled,
    .form-area:disabled,
    .form-area-small:disabled,
    .form-area-xs:disabled {
        background-color: var(--color-disabled, #f2f2f2); /* variable si définie, sinon gris clair */
        color: #888; /* texte grisé */
        border-color: #ddd;
        cursor: not-allowed;
        opacity: 1; /* évite que certains navigateurs l’atténuent trop */
    }

    .form-input.small-input {
        width:5.6rem;
        margin:0;
    }

.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .select-container .form-select {
        appearance: none;
        cursor: pointer;
    }

    .select-container::after {
        content: "▼";
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #888;
        font-size: 0.9rem;
    }

.form-group-plain {
    display: contents; /* très pratique pour “enlever” le wrapper visuellement */
}

/* Zone de texte */
.form-area {
    resize: none;
    min-height: calc(1.2em * 12);
    max-height: calc(1.2em * 24);
    overflow-y: auto;
    line-height: 1.2;
    field-sizing: content;
}

.form-area-small {
    resize: none;
    min-height: calc(1.2em * 10);
    max-height: calc(1.2em * 15);
    overflow-y: auto;
    line-height: 1.2;
    field-sizing: content;
}

.form-area-xs {
    resize: none;
    min-height: calc(1.2em * 4);
    max-height: calc(1.2em * 6);
    overflow-y: auto;
    line-height: 1.2;
    field-sizing: content;
}

/* Clickable wrapper */
.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    user-select: none;
    position: relative;
}

    /* Visually hide the input but keep it accessible */
    .form-checkbox input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        margin: 0;
        padding: 0;
    }

    /* Visual box */
    .form-checkbox .checkmark {
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        border-radius: 0.4rem;
        background: #fff;
        border: 0.0625rem solid #ccc;
        box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.06);
        position: relative;
        transition: background 0.18s, border 0.18s;
    }

    /* Checked state: the checkmark is directly after the input */
    .form-checkbox input[type="checkbox"]:checked + .checkmark {
        background: var(--color-accent);
        border-color: var(--color-accent-active);
    }

    /* Tick */
    .form-checkbox .checkmark::after {
        content: "";
        display: none;
        width: 0.7rem;
        height: 0.45rem;
        border-left: 0.1875rem solid #fff;
        border-bottom: 0.1875rem solid #fff;
        position: absolute;
        top: 0.29rem;
        left: 0.27rem;
        transform: rotate(-45deg);
    }

    .form-checkbox input[type="checkbox"]:checked + .checkmark::after {
        display: block;
    }

    /* Keyboard focus */
    .form-checkbox input[type="checkbox"]:focus-visible + .checkmark {
        outline: 0.125rem solid var(--focus-color);
        outline-offset: 0.125rem;
    }

    /* Optional text span if you want styling */
    .form-checkbox .checkbox-text {
        line-height: 1.6;
        user-select: text;
    }

        .form-checkbox .checkbox-text a {
            color: var(--color-accent);
            text-decoration: underline;
            cursor: pointer;
        }


/* Champ invalide */
.form-input.invalid,
.options-list-text:has(+ .form-error) .option-item:last-child .form-input {
    border: 2px solid var(--color-error);
}

/* Message d'erreur */
.form-error,
.error-message {
    color: var(--color-error);
    font-size: 0.875rem;
}

/* Message de succès */
.form-success {
    font-size: 1.3rem;
    line-height: 1.4;
    gap: 1rem;
    max-width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .form-success > p {
        text-align:center;
    }

    /* Bouton stylé */
    .upload-button {
        position: relative;
        display: inline-block;
        width: auto;
    }

.upload-button-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: none;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .upload-button-label:hover {
        background-color: var(--btn-secondary-hover-bg);
    }

    .upload-button-label svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: currentColor;
    }

.form-file {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Bouton poubelle */
.btn-remove-option,
.btn-remove-option-image {
    background-color: #fff8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(0.5rem);
    z-index: 2;
}

.btn-remove-option-image {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.btn-remove-option svg,
.btn-remove-option-image svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* === InputDate === */

.input-date-container {
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.input-date-field {
    width: 100%;
    padding: var(--padding-sm) var(--padding);
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: var(--color-input);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Ton icône SVG custom */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23888' viewBox='0 0 24 24'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM7 12h5v5H7z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1.35rem 1.35rem; /* Ajuste la taille à ton goût */
    padding-right: 2.6rem; /* Un peu plus large pour ne pas masquer le texte */
    cursor: pointer;
}

    .input-date-field::-webkit-calendar-picker-indicator {
        display:none;
    }

    .input-date-field:focus {
        border-color: var(--color-accent);
        outline: none;
    }

    /* Champ invalide */
    .input-date-field.invalid {
        border: 2px solid var(--color-error);
    }

    /* Message d'erreur */
    .input-date-field + .error-message {
        color: var(--color-error);
        font-size: 0.94rem;
    }

/* Responsive */
@media (max-width: 500px) {
    .input-field,
    .input-date-field {
        font-size: 0.97rem;
        padding: var(--padding-sm) 0.6rem;
    }
}

.form-group-single-file {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hidden-input {
    display: none;
}

.form-input .no-margin{
    margin:0;
}

/* Wrapper for input + addon button */
.input-with-addon {
    display: flex;
    align-items: stretch;
    gap: var(--gap);
}

    /* Keep input taking remaining space */
    .input-with-addon .form-input {
        flex: 1;
    }

/* Button aligned with input height */
.input-addon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    background: var(--btn-color-muted);
    color: var(--btn-color-muted-text);
}

@media (hover: hover) and (pointer: fine) {
    .input-addon-button:hover {
        background: var(--btn-color-muted-hover);
    }
}

/* Toggle */
.toggle-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1rem;
    row-gap: .5rem;
}

    .toggle-option:first-child {
        border-top: 0;
    }

.toggle-label {
    font-size: 1rem;
    color: var(--color-text);
}

/* Segmented YES|NO toggle
   - Hidden checkbox remains focusable
   - Visual label follows checkbox state
*/

.toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Segmented container */
.toggle.toggle-segmented {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    width: var(--toggle-width, 7rem);
    height: var(--toggle-height, 3rem);
    border: 1px solid var(--color-border);
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    background: var(--segmented-item-bg, #eee);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

    /* Active background (covers the active half) */
    .toggle.toggle-segmented::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 50%;
        background: var(--segmented-item-bg-active);
        transform: translateX(0%); /* NO active by default (unchecked) */
        transition: transform .2s ease, background-color .2s ease;
    }

    /* Labels */
    .toggle.toggle-segmented .seg {
        position: relative;
        z-index: 1;
        text-align: center;
        font-weight: 700;
        font-size: .9rem;
        line-height: 1;
        color: var(--text-muted, #666); /* inactive */
        padding-bottom: .05rem;
    }

        .toggle.toggle-segmented .seg.no {
            grid-column: 1;
        }

        .toggle.toggle-segmented .seg.yes {
            grid-column: 2;
        }

/* Unchecked = NO active */
.toggle-input:not(:checked) + .toggle.toggle-segmented::before {
    transform: translateX(0%);
}

.toggle-input:not(:checked) + .toggle.toggle-segmented .seg.no {
    color: var(--segmented-item-text-active); /* FIX: active NO is white */
}

.toggle-input:not(:checked) + .toggle.toggle-segmented .seg.yes {
    color: var(--text-muted, #666);
}

/* Checked = YES active */
.toggle-input:checked + .toggle.toggle-segmented::before {
    transform: translateX(100%);
}

.toggle-input:checked + .toggle.toggle-segmented .seg.yes {
    color: var(--segmented-item-text-active); /* use your token (on-color-text) */
}

.toggle-input:checked + .toggle.toggle-segmented .seg.no {
    color: var(--text-muted, #666);
}

/* Keyboard focus */
.toggle-input:focus-visible + .toggle.toggle-segmented {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Password */
/* Wrapper becomes the positioning context */
.input-with-addon {
    position: relative;
    display: block;
}

    /* Make space inside the input so the icon doesn't overlap text */
    .input-with-addon .input,
    .input-with-addon input,
    .input-with-addon textarea {
        padding-right: 2.75rem; /* adjust if your icon size changes */
    }

/* Button visually inside the input */
.input-addon-button {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

    /* Icon sizing */
    .input-addon-button svg {
        width: 1.35rem;
        height: 1.35rem;
        display: block;
    }

    /* Hover/focus states */
    .input-addon-button:hover {
        color: var(--text-color);
        background: var(--ghost-bg-hover);
    }

    .input-addon-button:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 0.2rem var(--segmented-focus, var(--focus-color));
    }

    /* Disabled */
    .input-addon-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Optional: if input has an error style, you can tint the icon too */
.input-with-addon[aria-invalid="true"] .input-addon-button {
    color: var(--danger, var(--text-color));
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}




/* /css/global/loader.css */
/* ================================== */
/* Loader Styles                      */
/* ================================== */
.loader-overlay {
    position: fixed;
    inset: 0; /* top/right/bottom/left = 0 */
    display: grid;
    place-items: center; /* perfect center */
    z-index: 9999;
}

.loader-box {
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

    .loader-box.fullwidth{
        width: 100%;
    }

    /* Loader dots: build -> chase (filled dot) -> collapse */
    .loader-dots {
        --loader-size: 1rem;
        --loader-gap: .45rem;
        --loader-border: .12rem;
        --loader-color: var(--color-primary);
        --loader-fill: var(--color-primary);
        --loader-duration: 4s;
        display: inline-flex;
        align-items: center;
        gap: var(--loader-gap);
        line-height: 1;
    }

    .loader-dots__dot {
        width: var(--loader-size);
        height: var(--loader-size);
        border-radius: 50%;
        border: var(--loader-border) solid var(--loader-color);
        background: transparent;
        opacity: 0;
        animation-duration: var(--loader-duration);
        animation-iteration-count: infinite;
        animation-timing-function: steps(1, end);
    }
    /* Dot 1: visible from step 1 -> 8, filled at step 5, hidden from step 9 */
    .loader-dots__dot--1 {
        animation-name: loaderDot1;
    }
    /* Dot 2: visible from step 2 -> 9, filled at step 6, hidden from step 10 */
    .loader-dots__dot--2 {
        animation-name: loaderDot2;
    }
    /* Dot 3: visible from step 3 -> 10, filled at step 7, hidden from step 11 */
    .loader-dots__dot--3 {
        animation-name: loaderDot3;
    }
    /* Dot 4: visible from step 4 -> 11, filled at step 8, hidden from step 12 */
    .loader-dots__dot--4 {
        animation-name: loaderDot4;
    }

    @keyframes loaderDot1 {
        0% {
            opacity: 1;
            background: transparent;
        }

        33.34% {
            opacity: 1;
            background: var(--loader-fill);
        }
        /* step 5 */
        41.67% {
            opacity: 1;
            background: transparent;
        }

        66.67% {
            opacity: 0;
            background: transparent;
        }
        /* step 9 */
        100% {
            opacity: 0;
            background: transparent;
        }
    }

    @keyframes loaderDot2 {
        0% {
            opacity: 0;
            background: transparent;
        }

        8.34% {
            opacity: 1;
            background: transparent;
        }
        /* step 2 */
        41.67% {
            opacity: 1;
            background: var(--loader-fill);
        }
        /* step 6 */
        50% {
            opacity: 1;
            background: transparent;
        }

        75% {
            opacity: 0;
            background: transparent;
        }
        /* step 10 */
        100% {
            opacity: 0;
            background: transparent;
        }
    }

    @keyframes loaderDot3 {
        0% {
            opacity: 0;
            background: transparent;
        }

        16.67% {
            opacity: 1;
            background: transparent;
        }
        /* step 3 */
        50% {
            opacity: 1;
            background: var(--loader-fill);
        }
        /* step 7 */
        58.34% {
            opacity: 1;
            background: transparent;
        }

        83.34% {
            opacity: 0;
            background: transparent;
        }
        /* step 11 */
        100% {
            opacity: 0;
            background: transparent;
        }
    }

    @keyframes loaderDot4 {
        0% {
            opacity: 0;
            background: transparent;
        }

        25% {
            opacity: 1;
            background: transparent;
        }
        /* step 4 */
        58.34% {
            opacity: 1;
            background: var(--loader-fill);
        }
        /* step 8 */
        66.67% {
            opacity: 1;
            background: transparent;
        }
        /* step 9 */
        91.67% {
            opacity: 0;
            background: transparent;
        }
        /* step 12 */
        100% {
            opacity: 0;
            background: transparent;
        }
    }
    /* Visually hidden helper */
    .loader-text {
        color: var(--color-primary);
    }
    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .loader-dots__dot {
            animation: none;
            opacity: 1;
        }

        .loader-dots__dot--1 {
            background: var(--loader-fill);
        }
    }

/* /css/global/popin.css */
.popin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000; /* Ajuste selon tes besoins */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 35, 0.52); /* ou var(--color-backdrop) */
    animation: popin-fade-in 0.2s;
}

.popin-content {
    max-height: 85vh; /* ou 80vh selon ton padding et ta préférence */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    padding: min(3rem, 15%) min(2rem, 4%) 2rem min(2rem, 4%);
    margin: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: var(--color-surface);
    border-radius: 10px;
    display: block;
    position: relative;
    margin-top: var(--header-h);
}

    .popin-content::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
    }

    .popin-content > h2 {
        font-size: clamp(1.5rem, calc(4vw + 1rem), 3rem);
        margin-bottom: 2rem;
        background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
        background-clip: text;
        color: transparent;
        width: fit-content;
        padding-bottom: 0.2rem;
    }

@keyframes popin-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popin-scale-in {
    from {
        transform: scale(0.96);
        opacity: 0.9;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popin-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: var(--popin-close-size, 2.4rem);
    height: var(--popin-close-size, 2.4rem);
    background: var(--popin-close-bg, transparent);
    color: var(--popin-close-color, #888);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}

    .popin-close-button:hover,
    .popin-close-button:focus {
        background: var(--popin-close-hover-bg, #f1f1f1);
        color: var(--popin-close-hover-color, #222);
        outline: none;
    }

/* Optionnel: Désactive le scroll du body quand popin ouverte */
body.popin-open {
    overflow: hidden;
}

/* /css/global/container.css */
.container-centered {
    width: 100%;
    padding: min(2rem, 4%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: var(--color-surface);
    border-radius: 10px;
    display: block;
}

@media (min-width: 712px) {
    .container-centered {
        width: fit-content;
        /* compat anciens navigateurs */
        width: -moz-fit-content;
        width: -webkit-fit-content;
    }
}

.container-header > h1,
.container-header > h2 {
    font-size: clamp(1.5rem, calc(3vw + 1rem), 3rem);
    margin-bottom: 2rem;
    background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    color: transparent;
    width: fit-content;
    padding-bottom: 0.2rem;
}

.grid {
    display: grid;
    gap: var(--gap-lg);
    grid-template-columns: 1fr; /* mobile = une colonne */
    justify-content: center;
}

@media (max-width: 512px) {
    /* on réaffiche les éléments masqués */
    .hide-to-tablet {
        display: none;
    }
}

@media (max-width: 1439px) {
    /* on réaffiche les éléments masqués */
    .hide-to-desktop {
        display: none;
    }
}

@media (min-width: 512px) {
    /* on réaffiche les éléments masqués */
    .hide-from-tablet {
        display: none;
    }
}

@media (min-width: 1440px) {
    /* on réaffiche les éléments masqués */
    .hide-from-desktop {
        display: none;
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100%;
    display: none;
}


/* Form submiting loader */
.submission-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(0.12rem);
}

.submission-overlay__box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 18rem;
    max-width: 90vw;
    padding: 1.2rem 1.6rem;
    border-radius: 1rem;
    background: rgba(20, 20, 20, 0.88);
    box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.28);
    text-align: center;
}

.submission-overlay__text {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.submission-overlay__dots {
    display: inline-flex;
    width: 2.2rem;
    justify-content: flex-start;
}

    .submission-overlay__dots span {
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        opacity: 0;
        animation: submission-dots 1.4s infinite;
    }

        .submission-overlay__dots span:nth-child(1) {
            animation-delay: 0s;
        }

        .submission-overlay__dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .submission-overlay__dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes submission-dots {
    0%, 20% {
        opacity: 0;
    }

    30%, 70% {
        opacity: 1;
    }

    80%, 100% {
        opacity: 0;
    }
}

/* /css/global/button.css */

/* Button group */
.btn-group {
    display: flex;
    flex-flow: row wrap-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: var(--gap);
    width: 100%;
    padding: 0.5rem 0;
}

.btn-group--centered {
    justify-content: center;
}

.btn-align-right {
    width: fit-content;
    margin-left: auto;
    white-space: nowrap;
}

/* Base button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--btn-radius, var(--border-radius));
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    min-height: 2.5rem;
    padding: 0.8rem min(2rem, 6%);
}

/* Sizes */
.btn--sm {
    min-height: 2.25rem;
    padding: 0.563rem min(1.5rem, 5%);
    font-size: 0.95rem;
}

.btn--md {
    min-height: 2.5rem;
    padding: 0.8rem min(2rem, 6%);
}

.btn--lg {
    min-height: 2.75rem;
    padding: 0.9rem min(4rem, 12%);
    font-size: 1.05rem;
}

.btn--fullwidth {
    width: 100%;
}

/* Focus */
.btn:focus-visible {
    outline: 0.2rem solid var(--btn-focus-ring, var(--focus-ring-color));
    outline-offset: 0.2rem;
}

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
    background-color: var(--btn-disabled-bg);
    color: var(--btn-disabled-text);
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Variants */
.btn--primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn--secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.btn--accent {
    background-color: var(--btn-accent-bg);
    color: var(--btn-accent-text);
}

.btn--ghost {
    background-color: var(--btn-ghost-bg);
    color: var(--btn-ghost-text);
}

.btn--muted {
    background-color: var(--btn-muted-bg);
    color: var(--btn-muted-text);
}

.btn--danger {
    background-color: var(--btn-danger-bg);
    color: var(--btn-danger-text);
}

/* Active state */
.btn--primary.active {
    background-color: var(--btn-primary-active-bg);
}

.btn--secondary.active {
    background-color: var(--btn-secondary-active-bg);
}

.btn--accent.active {
    background-color: var(--btn-accent-active-bg);
}

.btn--ghost.active {
    background-color: var(--btn-ghost-active-bg);
}

.btn--muted.active {
    background-color: var(--btn-muted-active-bg);
}

.btn--danger.active {
    background-color: var(--btn-danger-active-bg);
}

/* Hover state (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .btn--primary:not(.active):hover {
        background-color: var(--btn-primary-hover-bg);
    }

    .btn--secondary:not(.active):hover {
        background-color: var(--btn-secondary-hover-bg);
    }

    .btn--accent:not(.active):hover {
        background-color: var(--btn-accent-hover-bg);
    }

    .btn--ghost:not(.active):hover {
        background-color: var(--btn-ghost-hover-bg);
    }

    .btn--muted:not(.active):hover {
        background-color: var(--btn-muted-hover-bg);
    }

    .btn--danger:not(.active):hover {
        background-color: var(--btn-danger-hover-bg);
    }
}

/* /css/global/multiselectdropdown.css */
/* ================================== */
/* Multi-Select Dropdown Styles       */
/* ================================== */

.multi-select-dropdown {
    position: relative;
}

.multi-select-dropdown-toggle {
    width: 100%;
    padding: var(--padding-sm);
    background-color: var(--control-bg);
    color: var(--control-text);
    border: var(--border-width) solid var(--control-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .multi-select-dropdown-toggle:hover {
        background-color: var(--control-hover-bg);
    }

    .multi-select-dropdown-toggle:focus-visible {
        outline: 0.125rem solid var(--segmented-focus);
        outline-offset: 0.125rem;
    }

.multi-select-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-bg);
    color: var(--surface-text);
    border: var(--border-width) solid var(--surface-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: var(--z-dropdown);
    max-height: 15.625rem; /* 250px */
    overflow-y: auto;
}

.multi-select-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.625rem var(--padding-sm); /* 10px 8px */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .multi-select-dropdown-item:hover {
        background-color: var(--surface-hover-bg);
    }

    .multi-select-dropdown-item label {
        flex: 1;
        cursor: pointer;
    }

    .multi-select-dropdown-item.disabled {
        cursor: not-allowed;
        opacity: 0.6;
        color: var(--control-disabled-text);
    }

        .multi-select-dropdown-item.disabled label {
            cursor: not-allowed;
        }

/* Accessible visually-hidden checkbox (keeps focusability) */
.custom-checkbox {
    position: absolute;
    opacity: 0;
    width: 0.0625rem;
    height: 0.0625rem;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

    .custom-checkbox + label::before {
        content: '';
        display: inline-block;
        width: 1rem; /* 16px */
        height: 1rem; /* 16px */
        border: 0.125rem solid var(--control-check-border-off); /* 2px */
        border-radius: var(--border-radius-sm);
        margin-right: var(--gap-sm);
        background-color: var(--control-check-bg-off);
        vertical-align: middle;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .custom-checkbox:focus-visible + label::before {
        box-shadow: 0 0 0 0.1875rem var(--segmented-focus); /* 3px */
    }

    .custom-checkbox:checked + label::before {
        background-color: var(--control-check-bg-on);
        border-color: var(--control-check-border-on);
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNOC41IDExLjU4Nkw1LjQyIDguNDRhMSAxIDAgMCAwLTEuNDEgMCAxIDEgMCAwIDAgMCAxLjQxbDMuNTkgMy42N2ExIDEgMCAwIDAgMS40MSAwbDcuNzktNy43OWExIDEgMCAwIDAtMS40MS0xLjQxbC03LjA4IDcuMDh6Ij48L3BhdGg+PC9zdmc+');
        background-size: 0.75rem 0.75rem; /* 12px */
        background-repeat: no-repeat;
        background-position: center;
    }

/* Disabled checkbox visual */
.multi-select-dropdown-item.disabled .custom-checkbox + label::before {
    border-color: var(--muted-border);
    background-color: var(--muted-bg);
}

/* /css/global/themeselector.css */
/* TODO */
.theme-selector{

}

.theme-selector .theme-option{

}

.login-benefits-modal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-login-benefits {
    max-width: 45rem;
}

/* Description text */
.login-benefits-modal__text {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

/* Benefits list */

.login-benefits-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    /* Benefit item */

    .login-benefits-modal__list li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.35;
    }

        /* Small visual bullet */

        .login-benefits-modal__list li::before {
            content: "✓";
            color: var(--color-primary);
            font-weight: bold;
            flex-shrink: 0;
        }

.btn-group-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Primary button */
.login-benefits-modal__primary {
    margin-top: 0.5rem;
}

/* Secondary link */

.login-benefits-modal__secondary {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

    .login-benefits-modal__secondary:hover {
        opacity: 0.7;
    }

/* Mobile adjustments */

@media (max-width: 480px) {

    .login-benefits-modal__text {
        font-size: 0.9rem;
    }

    .login-benefits-modal__list li {
        font-size: 0.9rem;
    }
}

/* css/languageonboardingbanner.css */
/* css/languageonboardingbanner.css */

.language-onboarding-banner {
    width: 100%;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) and (min-height: 890px) {
    .language-onboarding-banner {
        padding-left: var(--left-rail-w);
    }
}



.language-onboarding-banner-container {
    margin: min(1.5rem, 3vw) min(1.5rem, 3vw) 0 min(1.5rem, 3vw);
    padding: var(--padding);
    background: var(--banner-big-border);
    border-radius: calc(var(--border-radius-lg) + var(--padding-xs));
}

.language-onboarding-banner__content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--gap-lg);
    padding: var(--padding-lg);
    background: var(--banner-bg);
    border: var(--border-width) solid var(--banner-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--banner-shadow);
}

/* Icon */

.language-onboarding-banner__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--border-radius);
    background: var(--banner-icon-bg);
    flex-shrink: 0;
}

.language-onboarding-banner__icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* Text */

.language-onboarding-banner__text {
    min-width: 0;
}

.language-onboarding-banner__title {
    margin: 0 0 var(--margin-xs) 0;
    font-size: var(--font-size-large);
    font-family: var(--font-family-heading);
    line-height: var(--line-height-heading);
    color: var(--text-color);
}

.language-onboarding-banner__message {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-muted);
}

/* Actions */

.language-onboarding-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--gap);
}

/* Login button */

.language-onboarding-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: var(--padding-sm) var(--padding);
    border-radius: var(--btn-radius);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

    .language-onboarding-banner__button:hover {
        background: var(--btn-primary-hover-bg);
    }

    .language-onboarding-banner__button:active {
        background: var(--btn-primary-active-bg);
    }

    .language-onboarding-banner__button:focus-visible {
        outline: 0.125rem solid var(--btn-focus-ring);
        outline-offset: 0.125rem;
    }

/* Dismiss */

.language-onboarding-banner__dismiss {
    background: transparent;
    border: none;
    padding: 0;
    font-size: var(--font-size-small);
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

    .language-onboarding-banner__dismiss:hover {
        color: var(--text-color);
    }

    .language-onboarding-banner__dismiss:focus-visible {
        outline: 0.125rem solid var(--focus-color);
        outline-offset: 0.125rem;
    }

/* Tablet */

@media (max-width: 68rem) {

    .language-onboarding-banner__content {
        grid-template-columns: auto 1fr;
    }

    .language-onboarding-banner__actions {
        grid-column: 1 / -1;
        align-items: flex-start;
    }
}

/* Mobile */

@media (max-width: 48rem) {

    .language-onboarding-banner__content {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    .language-onboarding-banner__icon-wrapper {
        width: 3rem;
        height: 3rem;
    }

    .language-onboarding-banner__actions {
        width: 100%;
        align-items: stretch;
    }

    .language-onboarding-banner__button {
        width: 100%;
    }

    .language-onboarding-banner__dismiss {
        align-self: center;
    }
}

/* /css/components/ad.css */
.cookie-wall-box {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 10001;
    width: min(36rem, calc(100% - 2rem));
    padding: 1rem;
    border-radius: 1rem;
    background: var(--surface, #fff);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cookie-wall-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.2);
    pointer-events: none; /* soft wall: does not block clicks */
}

.ad-placeholder {
    min-height: 10rem;
    border: 0.1rem dashed var(--color-border, rgba(0,0,0,.2));
    border-radius: 0.75rem;
    background: var(--color-surface, #fff);
    opacity: .6;
}

.adblock-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.65);
    padding: 2rem;
}

.adblock-box {
    max-width: 32rem;
    width: 100%;
    background: var(--color-surface, #fff);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Legal page layout (Mentions légales) */
.container-centered.medium {
    max-width: 60rem;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.legal-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-color);
    margin: 0;
}

.legal-text {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
}

.legal-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

    .legal-list li {
        margin: 0;
    }

.legal-note {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: var(--muted-bg);
    border: 1px solid var(--muted-border);
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.legal-link {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

    .legal-link:hover {
        color: var(--theme-secondary);
    }

.legal-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Optional: add a subtle separator between big sections */
.legal-section:not(:first-of-type) {
    padding-top: 1.25rem;
    border-top: 1px solid var(--muted-border);
}

/* Automatic section numbering for legal pages */
.legal-numbering {
    counter-reset: legalSection;
}

    .legal-numbering .legal-section:not(.legal-section--no-number) {
        counter-increment: legalSection;
    }

        .legal-numbering .legal-section:not(.legal-section--no-number) > .legal-title::before {
            content: counter(legalSection) ") ";
            margin-right: 0.25rem;
        }

    .legal-numbering .legal-section.legal-section--no-number > .legal-title::before {
        content: "";
        margin-right: 0;
    }


/* /css/components/comment.css */

.grid-commentpopin {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
    align-items: start;
    justify-items: stretch;
}

.comment-loader-top {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    z-index: 1;
}

.comment-poll-section {
    max-width: 30rem;
}

.comment-section {
    display: flex;
    flex-direction: column;
}

.comment-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.comment-list {
    flex-grow: 1;
    max-height: 50vh;
    overflow-y: auto;
    padding: var(--padding-sm);
    margin-bottom: var(--margin);
    background-color: #fff;
    border-radius: 10px;
}

.comment-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap:0.5rem;
}

.user-comment {
    justify-content: flex-end;
}

.other-comment {
    justify-content: flex-start;
}

.comment-content {
    max-width: 25rem;
    min-width: 12.5rem;
    padding: var(--padding-sm);
    background-color: #bee3f8;
    border-radius: 0.5rem;
}

.user-comment .comment-content {
    background-color: #e1e1e1;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-comment .comment-header {
    flex-direction: row-reverse;
}

.comment-author {
    font-size: 0.875rem;
    font-weight: 600;
}

.comment-date {
    font-size: 0.75rem;
    color: #000;
}

.comment-text {
    margin-top: 0.5rem;
    word-break: break-word;
}

.comment-form {
    display: flex;
    align-items: center;
}

.comment-input {
    flex-grow: 1;
    width: 100%;
    padding: var(--padding-sm) var(--padding);
    border: 1px solid #ddd;
    border-radius: 0.25rem 0 0 0.25rem;
    outline: none;
    background-color: #fff;
}

.comment-submit-button {
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--padding-sm) var(--padding);
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
}

    .comment-submit-button:hover {
        background-color: #3182ce;
    }

.comment-author-image img{
    width:2.5rem;
    height:2.5rem;
    border-radius:50%
}

@media (min-width: 712px) {
    .grid-commentpopin {
        grid-template-columns: 1fr 2fr;
        max-width: 70rem;
    }
}
/* /css/components/cta.css */

/* ================================== */
/* CTA Poll Creation                      */
/* ================================== */

@media (min-width: 512px) {
    .grid-cta-card {
        /* image = min 6rem / max 12rem, form = min 18rem / max 40rem */
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--cta-card {
        display: block;
    }
}

.grid-cta-card {
    width: min(36rem, 92%);
    margin: 3.5rem auto 2rem;
    padding: 1.25rem 1.4rem;
    gap: 1rem;
    align-items: center;
    border-radius: 1.25rem;
    border: 0.09rem solid var(--muted-border);
    background: linear-gradient( 135deg, hsl(var(--neutral-h) var(--neutral-s) 98% / 0.92), hsl(var(--neutral-h) var(--neutral-s) 94% / 0.92) );
    box-shadow: 0 1rem 2.2rem hsl(var(--neutral-h) 20% 20% / 0.16);
    backdrop-filter: blur(0.6rem);
    position: relative;
    overflow: hidden;
}

    .cta-card::before,
    .cta-card::after {
        content: "";
        position: absolute;
        inset: auto auto -5rem -5rem;
        width: 12rem;
        height: 12rem;
        border-radius: 50%;
        background: hsl(var(--accent-h) var(--accent-s) 55% / 0.12);
        filter: blur(0.2rem);
    }

    .cta-card::after {
        inset: -6rem -6rem auto auto;
        width: 14rem;
        height: 14rem;
        background: hsl(var(--primary-h) var(--primary-s) 55% / 0.10);
    }

.illustration--cta-card {
    content: url("/img/astro.png?v=tlEpSWIQwGs6iUe60X6kca6eO6Q");
}

.cta-card__icon {
    flex: 0 0 auto;
    width: 11.25rem;
    height: 12.25rem;
    border-radius: 1.1rem;
    display: grid;
    place-items: center;
    background: hsl(var(--accent-h) var(--accent-s) 55% / 0.14);
    color: hsl(var(--accent-h) var(--accent-s) 35%);
}

.cta-card__svg {
    width: 2.1rem;
    height: 2.1rem;
}

.cta-card__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.cta-card__title {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--theme-primary);
    margin-bottom: 0.25rem;
}

.cta-card__text {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.cta-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cta-card__btn {
    padding: 0.8rem 1.05rem;
    border-radius: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    min-width: 12.5rem;
}

.cta-card__btnSecondary {
    padding: 0.8rem 1.05rem;
    border-radius: 0.95rem;
    font-weight: 700;
}

.cta-card__hint {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
    .cta-card {
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

        .cta-card:hover {
            transform: translateY(-0.12rem);
            box-shadow: 0 1.2rem 2.6rem hsl(var(--neutral-h) 20% 20% / 0.18);
        }
}


/* /css/components/avatar.css */

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-preview img,
.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #888;
    font-size: 14px;
}

/* /css/components/pollstat.css */

/* Desktop layout */
@media (min-width: 600px) { /* 600px */
    .grid-pollstat {
        /* Image = min 15rem / max 24rem, form = min 15rem / max 30rem */
        grid-template-columns: minmax(15rem, 24rem) minmax(15rem, 30rem);
    }
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: var(--padding-xs) var(--padding);
    border-radius: 9999px;
    background-color: var(--filter-badge-bg);
    color: var(--filter-badge-text);
    margin: var(--margin-xs);
}

    .filter-badge .remove-filter-button {
        background: none;
        border: none;
        color: inherit;
        margin-left: var(--gap-xs);
        padding: 0;
        cursor: pointer;
        font-size: 0.875rem; /* 14px */
        line-height: 1;
        width: 0.75rem;
        height: 0.75rem;
        color: white;
    }

.filter-age {
    --filter-badge-bg: var(--filter-age-bg);
}

.filter-gender {
    --filter-badge-bg: var(--filter-gender-bg);
}

.filter-country {
    --filter-badge-bg: var(--filter-country-bg);
}

.filter-language {
    --filter-badge-bg: var(--filter-language-bg);
}

.no-filters {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.multiselect-label {
    flex: 1;
    cursor: pointer;
}

/* scriptwarning.css */

.script-warning-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgb(0 0 0 / 55%);
    backdrop-filter: blur(0.2rem);
}

.script-warning-box {
    width: min(100%, 34rem);
    padding: 1.5rem;
    background: var(--color-surface, #ffffff);
    color: var(--color-text, #1f2937);
    border: 0.0625rem solid var(--color-border, #d1d5db);
    border-radius: var(--border-radius-lg, 1rem);
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 18%), 0 0.25rem 0.75rem rgb(0 0 0 / 10%);
}

    .script-warning-box h2 {
        margin: 0 0 1rem 0;
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .script-warning-box p {
        margin: 0 0 1rem 0;
        line-height: 1.5;
    }

        .script-warning-box p:last-of-type {
            margin-bottom: 0;
        }

.script-warning-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

    .script-warning-actions .btn {
        min-width: 9.5rem;
    }

@media (max-width: 40rem) {
    .script-warning-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .script-warning-box {
        width: 100%;
        padding: 1.25rem;
        border-radius: var(--border-radius-lg, 1rem) var(--border-radius-lg, 1rem) 0 0;
    }

    .script-warning-actions {
        flex-direction: column;
    }

        .script-warning-actions .btn {
            width: 100%;
            min-width: 0;
        }
}

@media (prefers-reduced-motion: reduce) {
    .script-warning-overlay,
    .script-warning-box {
        transition: none;
    }
}

/* /css/components/share.css */

/* ==================================== */
/* Share poll Styling               */
/* ==================================== */
@media (min-width: 31.25rem) {
    .grid-sharepoll {
        /* image = min 6rem / max 12rem, form = min 18rem / max 40rem */
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--sharepoll {
        display: block;
    }
}

.illustration--sharepoll {
    content: url("/img/contactus-vert.png");
    aspect-ratio: 10/14;
}


.section-form-social-share {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-form-link-share {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-form-integration-share {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-share-link-list {
    display: flex;
    gap: 0.5rem;
    justify-content: space-evenly;
    flex-wrap: nowrap;
}

.social-share-link {
    display: inline-block;
    width: clamp(3.5rem, 18vw, 6rem);
    height: clamp(3.5rem, 18vw, 6rem);
    flex: 0 1 clamp(3.5rem, 18vw, 6rem);
    min-width: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .social-share-link:hover {
        transform: translateY(-0.25rem);
        opacity: 0.85;
        cursor: pointer;
    }

.form-line {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* /css/components/usermodification.css */

@media (min-width: 512px) {
    .grid-editprofileform {
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--editprofileform {
        display: block;
    }
}

.illustration--editprofileform {
    content: url("/img/register.png?v=KJf5WgtR8vOeK4KqnniHKUkfviY");
}

.upload-trigger {
    cursor: pointer;
    position: absolute;
    top: 0rem;
    right: 0rem;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    border: 1px solid #ccc;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .upload-trigger:hover {
        background: #ffeaea;
    }


.section-divider {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--color-primary);
}

.danger-zone {
    border: 1px solid var(--color-border);
    border-radius: var(--radius, .75rem);
    background: var(--color-surface);
    padding: 1rem;
}

.danger-zone__text {
    max-width: 50rem;
    white-space: normal;
    overflow-wrap: anywhere; /* ou: break-word */
    word-break: break-word;
}

.danger-zone__summary {
    cursor: pointer;
    font-weight: 600;
}

.danger-zone__content {
    margin-top: 1rem;
}

.danger-zone__confirm {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
}

.danger-zone__actions {
    display: flex;
    justify-content: flex-end;
}

/* Use your existing "negative/danger" button token */
.btn-danger {
    background: var(--color-negative);
    color: var(--color-on-negative, #fff);
}

/* /css/components/poll.css */

/* ================================== */
/* Polls Container and Div Styling    */
/* ================================== */

/* Virtualize spacers: prevent empty grid cell at the start */
.polls-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    column-gap: 1rem;
    row-gap: 0; /* Important: avoid extra top space caused by Virtualize spacer row */
    width: 100%;
    padding: min(1.5rem, 3vw);
}

    .polls-container > div[aria-hidden="true"] {
        grid-column: 1 / -1;
        margin: 0;
        padding: 0;
    }

    /* Apply vertical spacing only to real items, not Virtualize spacers */
    .polls-container > :not([aria-hidden="true"]) {
        margin-bottom: 1rem;
    }

.full-poll-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: var(--surface-active-bg);
    border-radius: 15px;
    /*box-shadow: 0 0 5px 0px var(--surface-active-border);*/
    position: relative;
    min-width: 15rem;
}

    .full-poll-block > *:not(:last-child) {
        margin-bottom: 0rem;
    }

    /* Conteneur pour les icônes, aligné en bas */
.icon-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-primary);
    margin-top: 1rem;
}

/* Bouton d'icône sans texte */
.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
}

    .icon-button:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }

/* Styliser les icônes */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.button-style {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #e2e8f0;
    border-radius: 0.375rem;
    cursor: pointer;
    border: none;
}

    .button-style:hover {
        background-color: #d1d5db;
    }



/* ================================== */
/* Poll Header                        */
/* ================================== */

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.poll-date {
    font-size: smaller;
    display: flex;
    flex-direction: column;
}

/* Conteneur pour les drapeaux */
.flags-container {
    display: flex;
    gap: 0.3rem;
}

/* Style supplémentaire pour les drapeaux, sans modifier .fflag */
.flag-item {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

/* ================================== */
/* Poll Block and Vote Options        */
/* ================================== */

/* Poll Block and Vote Options */
.poll-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poll-question {
    /* Makes this element a "container" so children can use cqw */
    container-type: inline-size;
}

.poll-question-image {
    width: 100%;
    height: auto;
    padding-bottom: 1rem;
    object-fit: cover;
    aspect-ratio: 2/1;
}

.poll-block-title {
    font-size: var(--qfs, 1.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.vote-option {
    position: relative;
    display: flex;
    align-items: center;
    height: 2.5rem;
    margin: 0.5rem 0;
}

.percentage-bar-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    background-color: #9f9f9f;
    width: 100%;
}

.percentage-bar-foreground {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    background-image: linear-gradient(to right, #235943, #289186);
}

.option-text {
    flex: 1;
    z-index: 10;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.75rem;
    color: #ffffff;
}

.vote-count {
    z-index: 10;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
    color: #ffffff;
}

.vote-button,
.result-button {
    padding: 0.5rem 1rem;
    background-color: #e2e8f0;
    border-radius: 0.375rem;
    cursor: pointer;
}

    .vote-button:hover,
    .result-button:hover {
        background-color: #d1d5db;
    }

/* Conteneur pour les boutons d'option */

.option-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.75rem;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid var(--btn-surface-border);
    font-weight: bold;
    background: var(--btn-surface-bg);
    overflow-wrap: break-word;
}

    .option-button:hover {
        background: var(--btn-surface-hover-bg);
        color: var(--btn-surface-hover-text);
    }

    /* Pour s'assurer que la hauteur des boutons est cohérente */
    .option-button:active {
        transform: scale(0.98);
    }

/* Gère la disposition en fonction du mode */
.option-buttons,
.vote-results-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

/* Effet de zoom/ombre au survol */
.option-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid lightgrey;
    border-radius: 0.75rem;
    overflow: hidden; /* Pour éviter que l’image dépasse lors du zoom */
    cursor: pointer;
    background: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .option-image-button img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform 0.2s ease; /* Animation sur l'image */
    }

    /* Pseudo-élément qui recouvre l'image : voile au hover */
    .option-image-button::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0); /* Transparent par défaut */
        transition: background 0.2s ease;
        pointer-events: none; /* Évite d'interférer avec le clic */
    }

    /* Effet de zoom + voile au survol */
    /*.option-image-button:hover::after {
        background: rgba(0, 0, 0, 0.3);*/ /* Voile gris */
    /*}*/

    .option-image-button:hover {
        transform: scale(1.02);
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    }

        /* Effet de zoom léger sur l'image */
        .option-image-button:hover img {
            transform: scale(1.05);
        }

    /* Effet au clic : bouton légèrement enfoncé */
    .option-image-button:active {
        transform: scale(0.98);
    }

/* 📌 Mode liste (par défaut) */
.option-buttons.list {
    flex-direction: column;
}

    .option-buttons.list .option-image-button img {
        aspect-ratio: 5/1;
    }

/* 📌 Mode tuile (2 par ligne, ratio 1/1) */
.option-buttons.tile {
    flex-direction: row;
    justify-content: space-between;
}

    .option-buttons.tile .option-image-button {
        width: calc(50% - 0.25rem);
    }

        .option-buttons.tile .option-image-button img {
            aspect-ratio: 1/1;
        }

/* 📌 Mode portrait (2 par ligne, images verticales) */
.option-buttons.portrait {
    flex-direction: row;
    justify-content: space-between;
}

    .option-buttons.portrait .option-image-button {
        width: calc(50% - 0.25rem);
    }

        .option-buttons.portrait .option-image-button img {
            aspect-ratio: 3/4;
        }

/* ================================== */
/* Vote result                        */
/* ================================== */

.vote-result-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vote-result {
    width: 100%;
}

    .vote-result:has(.vote-result-image) {
        border: 1px solid lightgrey;
        padding: 0.5rem;
        border-radius: 10px;
        align-items: center;
    }

.vote-result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    flex-direction: row-reverse;
}

.vote-result-option {
    font-weight: 500;
    word-break: break-word;
}

.vote-result-percentage {
    color: #333;
}

.vote-result-bar {
    position: relative;
    width: 100%;
    height: 0.6rem;
    background-color: var(--segmented-item-bg);
    border-radius: 999px;
    overflow: hidden;
}

.vote-result-bar-foreground {
    height: 100%;
    background-color: var(--segmented-item-bg-active);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.vote-total {
    text-align: end;
    padding-top: 0.5rem;
}

.vote-result-image {
    margin-bottom: 0.5rem;
    width: 100%;
}

.vote-result-image img {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 📌 Mode liste (par défaut) */
.list .vote-result-image img {
    aspect-ratio: 5/1;
}

/* 📌 Mode tuile (2 par ligne, ratio 1/1) */
.tile .vote-result {
    width: calc(50% - 0.25rem);
}

    .tile .vote-result-image img {
        aspect-ratio: 1/1;
    }

/* 📌 Mode portrait (2 par ligne, images verticales) */
.portrait .vote-result {
    width: calc(50% - 0.25rem);
}

.portrait .vote-result-image img {
    aspect-ratio: 3/4;
}

/* ================================== */
/* Timer                              */
/* ================================== */
.vote-timer {
    text-align: center;
}

span.poll-expiration {
    font-size: smaller;
}


/* ================================== */
/* Poll Layout                        */
/* ================================== */

.poll-layout {
    width: 100%;
    position: relative; /* NEW */
    isolation: isolate; /* NEW */
}

.poll-content {
    min-width: 0;
    width: 100%;
    position: relative; /* NEW */
    z-index: 1; /* NEW - en dessous du menu */
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) and (min-height: 890px) {
    .poll-content {
        padding-left: var(--left-rail-w); /* NEW - réserve l’espace du menu */
        min-width: 0;
        width: 100%;
        position: relative; /* NEW */
        z-index: 1; /* NEW - en dessous du menu */
    }
}

/* ================================== */
/* Poll Favorite                        */
/* ================================== */

.favorite-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.favorite.is-on {
    color: var(--primary-color, #e11d48);
}

.favorite-button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    overflow: hidden;
}

.favorite-button__icon {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.favorite-button__icon--plus {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.favorite-button__icon--check {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
    color: var(--segmented-item-bg-active);
}

.favorite-button.is-favorite .favorite-button__icon--plus {
    opacity: 0;
    transform: scale(0.6) rotate(12deg);
}

.favorite-button.is-favorite .favorite-button__icon--check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .favorite-button__icon {
        transition: none;
    }
}
/* /css/components/contactus.css */

/* ==================================== */
/* Contact us Styling               */
/* ==================================== */

@media (min-width: 512px) {
    .grid-contactform {
        /* image = min 6rem / max 12rem, form = min 18rem / max 40rem */
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--contactform {
        display: block;
    }
}

.illustration--contactform {
    content: url("/img/contact.png?v=5WeGFwIIkX9BBC0gHv54HwvUubE");
}

/* /css/components/ranking.css */

/* ========= Base (mobile-first, <512px) ========= */

.container-centered.ranking {
    display: block;
    inline-size: 100%;
    max-inline-size: clamp(70rem, 92vw, 96rem);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Grille : 1 colonne par défaut (mobile) */
.ranking-container {
    display: grid;
    gap: var(--gap-lg, 1rem);
    align-items: stretch;
    grid-template-columns: 1fr;
}

/* Carte */
.ranking-table-container {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg, 1rem);
    background: var(--surface, #fff);
    border-radius: 1rem;
    padding: var(--padding, 1rem);
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
    min-inline-size: 0;
    -webkit-overflow-scrolling: touch;
    width: auto;
}

/* Table “cartes” */
.ranking-table thead {
    display: none;
}

.ranking-table th,
.ranking-table td {
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0;
    padding: 0;
    background: transparent;
}

/* Chaque ligne = carte (compacte mobile) */
.ranking-table tbody.ranking-table-body tr {
    display: grid;
    grid-template-columns: 1rem 1fr auto; /* rang étroit | infos | résultat */
    grid-template-rows: auto auto; /* nom | achievement */
    align-items: center;
    column-gap: .5rem;
    row-gap: .25rem;
    padding: .625rem .625rem;
    margin-block: .5rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: .5rem;
    box-shadow: var(--shadow-xs, 0 1px 1px rgba(0,0,0,.03));
}

/* 1) Rang (col 1, sur 2 lignes) — compact */
.ranking-table tbody.ranking-table-body td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    align-self: center;
    font-weight: 700;
    color: var(--rank-color, var(--color-primary, #2563eb));
    min-inline-size: 1rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1;
}

/* 2) Nickname (col 2, ligne 1) avec avatar */
.ranking-table tbody.ranking-table-body td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: auto 1fr; /* avatar | nom */
    align-items: center;
    column-gap: .375rem;
    min-inline-size: 0;
}
    /* avatar compact */
    .ranking-table tbody.ranking-table-body td:nth-child(2) img {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: var(--shadow-xs, 0 0 0 1px rgba(0,0,0,.05));
        flex: 0 0 auto;
    }
    /* pseudo ellipsé à droite */
    .ranking-table tbody.ranking-table-body td:nth-child(2) > *:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
        font-size: .9375rem;
    }

/* 4) Result (col 3, sur 2 lignes) */
.ranking-table tbody.ranking-table-body td:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: .9375rem;
}

/* Cellule utilitaire si tu utilises .ranking-cell-user dans ton markup */
.ranking-cell-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-inline-size: 0;
}

    .ranking-cell-user img {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        object-fit: cover;
        flex: 0 0 auto;
    }

    .ranking-cell-user .nickname {
        flex: 1 1 auto;
        min-inline-size: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.achivements-td {
    display:none;
}

/* ========= ≥512px (32rem) : version “plus aérée” ========= */
@media (min-width: 512px) {
    .ranking-table tbody.ranking-table-body tr {
        grid-template-columns: auto 1fr auto; /* rang normal | infos | résultat */
        column-gap: .75rem;
        row-gap: .5rem;
        padding: .875rem .875rem;
        border-radius: .75rem;
        margin-block: .375rem;
    }

    .ranking-table tbody.ranking-table-body td:nth-child(1) {
        min-inline-size: 2.5rem;
        font-size: 1rem; /* revient normal */
    }

    .ranking-table tbody.ranking-table-body td:nth-child(2) img {
        width: 2.25rem;
        height: 2.25rem;
    }

    .ranking-table tbody.ranking-table-body td:nth-child(2) > *:last-child {
        font-size: 1rem;
    }

    .ranking-table tbody.ranking-table-body td:nth-child(3) {
        font-size: 1rem;
    }

    .achivements-td {
        display: block;
    }
}

/* ========= ≥1024px : 2 colonnes pour les blocs ========= */
@media (min-width: 1024px) { 
    .ranking-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* /css/components/notfound.css */

@media (min-width: 31.25rem) {
    .grid-404 {
        /* image = min 6rem / max 12rem, form = min 18rem / max 40rem */
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--404 {
        display: block;
    }
}

.illustration--404 {
    content: url("/img/alert.png?v=z-1wzrnfo8V74H6OVa--BhKAWYs");
}

/* /css/components/usercreation.css */

/* ==================================== */
/* User Creation Styling               */
/* ==================================== */


@media (min-width: 512px) {
    .grid-usercreationform {
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--usercreationform {
        display: block;
    }
}

.illustration--usercreationform {
    content: url("/img/register.png?v=KJf5WgtR8vOeK4KqnniHKUkfviY");

}

.verification-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Avatar */
.avatar-preview-container {
    width: 100%;
    max-width: 10rem;
    min-width: 6rem;
    position: relative;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-preview-image {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    background: #f9f9f9;
    display: block;
}

/* Bouton suppr : adapte-le selon besoin, là on le laisse comme tu as */
.btn-remove-avatar-image {
    position: absolute;
    top: 0rem;
    right: 0rem;
    background: #fff;
    border-radius: 50%;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.2s;
    width: 2rem;
    height: 2rem;
}

    .btn-remove-avatar-image:hover {
        background: #ffeaea;
    }


/* /css/components/login.css */

.section-form-description {
    margin-bottom: 1rem;
}

.section-form-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-form-login {
    width: 25rem;
    max-width: 85vw; /* Empêche de dépasser la largeur de la fenêtre */
}

.section-form-signup {
    margin-top:1rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60,60,60,0.07);
    transition: background 0.18s, box-shadow 0.18s;
    position: relative;
}

    .social-button .icon {
        display: flex;
        align-items: center;
    }

.google-button {
    border: 1.5px solid #ddd;
    color: #222;
    background: #fff;
}

    .google-button:hover,
    .google-button:focus {
        background: #f7f7f7;
        box-shadow: 0 4px 14px rgba(66,133,244,0.09);
    }

.facebook-button {
    background: #1877F3;
    color: #fff;
    border: none;
}

    .facebook-button:hover,
    .facebook-button:focus {
        background: #166FE0;
        box-shadow: 0 4px 14px rgba(24,119,243,0.09);
    }

.separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.separator-line {
    flex: 1;
    border: none;
    height: 1px;
    background: #c1c1c1;
}

.separator-text {
    margin: 0;
    padding: 0 0.5rem;
    font-size: 1rem;
    color: #c1c1c1;
    font-weight: 500;
}

.form-login {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.form-group-xs {
    margin-bottom: var(--margin-xs);
}

.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Button spinner: absolutely positioned so the label stays perfectly centered */
.btn {
    position: relative; /* anchor for the absolute spinner */
}

/* Hidden by default (no animation, no layout impact) */
.btn__spinner {
    position: absolute;
    top: 50%;
    right: 1rem; /* adjust spacing from the right edge */
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem; /* center vertically without transform */
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
}

/* Visible + animated only while loading */
.btn.is-loading .btn__spinner {
    opacity: 1;
    animation: btn-spin 0.75s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Screen-reader only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* /css/components/pollcreation.css */

/* ==================================== */
/* Polls Creation Styling               */
/* ==================================== */

.illustration--createpollform {
    content: url("/img/astro.png?v=tlEpSWIQwGs6iUe60X6kca6eO6Q");
}

@media (min-width: 820px) {
    .grid-createpollform {
        grid-template-columns: minmax(25rem,40rem) minmax(18rem,20rem);
    }

    .options-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .sticky-preview {
        position: sticky;
        top: 5rem;
    }
}

@media (min-width: 1440px) {
    .grid-createpollform {
        /* image = min 6rem / max 12rem, form = min 18rem / max 40rem , preview = min 18rem / max 27rem */
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem) minmax(18rem,27rem);
    }

    .illustration--createpollform {
        display: block;
    }
}







.options-list-image {
    display: grid;
    justify-items: left;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--gap); /* ou var(--gap) si tu utilises des variables */
}

.options-list-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* ou var(--gap) si tu utilises des variables */
}

.option-item {
    display:flex;
    gap: 1rem;
}

.translation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.translation-block,
.translation-block-add-button {
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    border-style: dotted;
    border-width: revert;
    border-color: var(--btn-surface-border);
}

.translation-block-add-button {
    align-items: center;
    display: flex;
    flex-direction: column;
    color: var(--color-accent);
    font-weight: bold;
}

.btn-remove-option-translation-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.btn-remove-option-translation {
    display: flex;
    align-items: center;
    text-decoration: underline;
    gap: 0.25rem;
    width: auto;
}

/* Container pour les boutons de style d'image */
.pollimagestyle-container {
    display: flex;
    gap: 1rem;
}

/* ============================================== */
/* Poll mode selection item (segmented-like card) */
/* ============================================== */
.optionmode-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    /* Keep centered section without stretching too wide */
    max-width: 48rem;
    margin-inline: auto;
}

/* 1 column on small screens */
@media (max-width: 34rem) {
    .optionmode-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.optionmode-column {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    align-content: start;
    gap: 1rem;
    /* IMPORTANT for container queries: stable width from grid cell */
    min-width: 0;
    container-type: inline-size;
}

.optionmode-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Divider becomes a vertical line only on wide screens if you want it */
.optionmode-divider {
    display: none;
}

/* If you want a divider, do it with a pseudo-element on the wrapper */
@media (min-width: 34.01rem) {
    .optionmode-wrapper {
        position: relative;
    }

        .optionmode-wrapper::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 3.2rem;
            bottom: 0.5rem;
            width: 0.125rem;
            border-radius: 999rem;
            background: hsl(var(--neutral-h) var(--neutral-s) 82%);
            transform: translateX(-50%);
            opacity: 0.9;
            pointer-events: none;
        }
}

/* ================== */
/* Poll preview mode) */
/* ================== */
.preview-container {
    width: 100%;
    max-width: 15rem;
    min-width: 10rem;
    position: relative; /* Important pour le positionnement du bouton */
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-image-preview {
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    display: block;
}


/* ============================== */
/* Image mode buttons row (GRID)  */
/* ============================== */

/* =============================== */
/* Option mode (4 cards, pro grid) */
/* =============================== */

.optionmode-grid {
    /* This is the ONLY query container: stable width, no circular dependency */
    container-type: inline-size;
    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: start;
    /* Titles row then buttons row */
    grid-template-columns: repeat(4, max-content);
    grid-template-rows: auto auto;
    /* Text title spans col 1, Image spans col 2-4 */
    grid-template-areas:
        "titleText titleImage titleImage titleImage"
        "btnText   btnTile    btnList    btnPortrait";
    gap: clamp(0.5rem, 1.6cqi, 1rem);
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    /* Keep 4 visible in one line; if truly too small, scroll is the only honest fallback */
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-inline: 0.25rem;
    margin-bottom: var(--margin-lg);
}

.optionmode-title {
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    /* Prevent titles from “colliding” visually */
    min-height: 1.6em;
    font-size: clamp(1.05rem, 2.6cqi, 1.5rem);
}

.optionmode-title--text {
    grid-area: titleText;
}

.optionmode-title--image {
    grid-area: titleImage;
}

/* Place each button in its area */
.optionmode-grid > .btn-pollmodeselection:nth-of-type(1) {
    grid-area: btnText;
}

.optionmode-grid > .btn-pollmodeselection:nth-of-type(2) {
    grid-area: btnTile;
}

.optionmode-grid > .btn-pollmodeselection:nth-of-type(3) {
    grid-area: btnList;
}

.optionmode-grid > .btn-pollmodeselection:nth-of-type(4) {
    grid-area: btnPortrait;
}

/* ============================= */
/* Poll mode selection card item */
/* ============================= */

.btn-pollmodeselection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Defaults (desktop max values) */
    min-width: 7rem;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 1rem 1rem 0.5rem 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    user-select: none;
    text-decoration: none;
    background-color: var(--segmented-item-bg);
    color: var(--segmented-item-text);
    border: solid 0.0625rem var(--muted-border);
    border-radius: var(--btn-radius, var(--border-radius));
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

    .btn-pollmodeselection > svg {
        width: 2.5rem;
        height: 2.5rem;
    }

/* Progressive shrinking based on the container width */
@supports (width: 1cqi) {
    .btn-pollmodeselection {
        min-width: clamp(3.5rem, 18cqi, 7rem);
        gap: clamp(0.3rem, 1.3cqi, 0.5rem);
        font-size: clamp(0.9rem, 2.6cqi, 1rem);
        padding-top: clamp(0.5rem, 2.5cqi, 1rem);
        padding-right: clamp(0.4rem, 2.5cqi, 1rem);
        padding-bottom: clamp(0.4rem, 1.3cqi, 0.5rem);
        padding-left: clamp(0.4rem, 2.5cqi, 1rem);
    }

        .btn-pollmodeselection > svg {
            width: clamp(1.5rem, 5.9cqi, 2.3rem);
            height: clamp(1.5rem, 5.9cqi, 2.3rem);
        }
}

.btn-pollmodeselection:not(.active):hover {
    background-color: var(--segmented-item-bg-hover);
    color: var(--segmented-item-text-hover);
}

.btn-pollmodeselection.active {
    background-color: var(--segmented-item-bg-active);
    color: var(--segmented-item-text-active);
    border-color: var(--segmented-item-border-active, var(--muted-border));
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.10);
    cursor: auto;
}

    .btn-pollmodeselection.active:hover {
        transform: translateY(-0.03rem);
    }

.btn-pollmodeselection:focus-visible {
    outline: 0.2rem solid var(--segmented-focus, var(--focus-color));
    outline-offset: 0.2rem;
}

/* /css/components/consent.css */

/* Cookiebot declaration - responsive */
.cookie-declaration {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

    .cookie-declaration * {
        box-sizing: border-box;
    }

    /* Make any injected tables behave on small screens */
    .cookie-declaration table {
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse;
    }

    /* Wrap long text instead of forcing huge lines */
    .cookie-declaration th,
    .cookie-declaration td,
    .cookie-declaration p,
    .cookie-declaration a {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* Mobile tuning */
@media (max-width: 48rem) {
    .cookie-declaration {
        font-size: 0.9rem;
    }

        .cookie-declaration th,
        .cookie-declaration td {
            padding: 0.5rem !important;
        }
}
/* /css/components/userachievement.css */

.achievement-card {
    /* Container layout */
    display: flex; /* Put image on the left, text on the right */
    align-items: center; /* Vertically center image and text */
    gap: 1rem; /* Space between image and text */
    /* Visuals */
}

.achievement-icon {
    /* Achievement image */
    width: 4rem;
    height: 4rem;
    object-fit: contain; /* Keep image ratio without cropping */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.achievement-content {
    /* Right side: title above, date below */
    display: flex;
    flex-direction: column; /* Stack title and date vertically */
    justify-content: center; /* Center them vertically relative to image */
    margin-top: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.achievement-title {
    /* Achievement name */
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.achievement-date {
    display: none;
}

.achievement-date-short {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

@media (min-width: 1440px) {
    .achievement-date {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.875rem;
        opacity: 0.8;
    }

    .achievement-date-short {
        display: none;
    }
}

.achievement-toast {
    padding: 1rem;
    background-color: #1e1e1e;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
    color: #fff;
}

/* Wrapper around the image so we can place a gray veil */
.achievement-icon-wrapper {
    /* Image wrapper for next achievement */
    position: relative;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Keep existing .achievement-icon but allow it to fill wrapper when inside wrapper */
    .achievement-icon-wrapper .achievement-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* Gray veil over the image */
.achievement-icon-overlay {
    /* Gray overlay over the icon */
    position: absolute;
    inset: 0;
    background: rgb(125 122 122 / 70%);
    border-radius: 10px;
    pointer-events: none; /* Do not block clicks */
}

/* Specific content styling for next achievement (optional override hook) */
.achievement-content-next {
    /* Place for future overrides if needed */
}

/* Progress container under the title */
.achievement-progress {
    /* Layout for progress area */
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Progress bar background */
.achievement-progress-bar {
    /* Background of the progress bar */
    width: 100%;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--color-secondary);
    overflow: hidden;
}

/* Filled part of the progress bar */
.achievement-progress-fill {
    /* Filled portion of progress bar */
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
}

/* Text "current / threshold" under the bar */
.achievement-progress-text {
    /* Numerical progress text */
    font-size: 0.75rem;
    opacity: 0.8;
}
/* /css/components/alert.css */

@media (min-width: 31.25rem) {
    .grid-alertform {
        /* image = min 6rem / max 12rem, form = min 18rem / max 40rem */
        grid-template-columns: minmax(6rem,12rem) minmax(18rem,40rem);
    }

    .illustration--alertform {
        display: block;
    }
}

.illustration--alertform {
    content: url("/img/alert.png?v=z-1wzrnfo8V74H6OVa--BhKAWYs");
}

/* /css/components/myachievements.css */

.container-centered.my-achievements {
    display: block;
    inline-size: 100%;
    max-inline-size: clamp(70rem, 92vw, 96rem);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Grille : 1 colonne par défaut (mobile) */
.my-achievements-container {
    display: grid;
    gap: var(--gap-lg, 1rem);
    align-items: stretch;
    grid-template-columns: 1fr;
}

/* Carte */
.my-achievements-table-container {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg, 1rem);
    background: var(--surface, #fff);
    border-radius: 1rem;
    padding: var(--padding, 1rem);
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
    min-inline-size: 0;
    -webkit-overflow-scrolling: touch;
    width: auto;
}

.my-achievement-poll-area {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    align-items: center;
}

.my-polls-title {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
}

/* ========= ≥1024px : 2 colonnes pour les blocs ========= */
@media (min-width: 1024px) { /* 1024px */
    .my-achievements-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* /css/components/menu/profile.css */
/* Bouton déclencheur */
.profile-avatar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem; /* padding interne */
    border: none;
    background: transparent; /* ou ta couleur */
    cursor: pointer;
    border-radius: 9999px; /* arrondi si tu veux une pastille */
    overflow: hidden; /* évite qu’un contenu dépasse */
    anchor-name: --avatar-menu;
}

    .profile-avatar-button img {
        width: 2rem; /* ~32px en rem */
        height: 2rem;
        border-radius: 50%;
        object-fit: cover; /* si jamais l’image n’est pas carrée */
        flex-shrink: 0; /* ne rétrécit pas */
    }

/* Popover stylé */
.profile-menu[popover] {
    display: flex;
    flex-direction: column;
    border: 0;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    min-width: 12rem;
    inset: auto;
    background: var(--surface-color);
    color: var(--text-color);
}

/* Ancrage sous le bouton si anchor positioning dispo */
@supports (position-anchor: --x) {
    .profile-menu[popover] {
        position-anchor: --avatar-menu; /* référence le bouton */
        inset: auto; /* on ignore tout inset précédent */
        top: anchor(bottom); /* un peu en dessous */
        right: anchor(right); /* aligne sur le bord droit du bouton */
        margin-block-start: 0.5rem; /* espace entre bouton et menu */
        transform: translateX(-100%); /* la droite du menu = droite du bouton */
        transform-origin: top right;
    }
}

/* Closed state */
.profile-menu[popover]:not(:popover-open) {
    opacity: 0;
    transform: translateY(-0.25rem);
    pointer-events: none;
}

/* Open state */
.profile-menu[popover]:popover-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .12s ease, transform .12s ease;
}

.profile-menu[popover] {
    opacity: 0;
    transform: translateY(-4px);
}

/* Items */
.profile-menu .menu-item {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
}

    .profile-menu .menu-item:hover {
        background: var(--btn-surface-hover-bg);
        color: var(--btn-surface-hover-text);
    }

/* /css/components/menu/footer.css */
.site-footer {
    display: none;
}

@media (min-width: 1440px) {
    .site-footer {
        display:block;
        background: var(--color-primary);
        color: var(--text-color-inverse, #fff); /* assure un vrai blanc par défaut */
    }

        /* Assure que les liens du footer sont bien en “blanc” */
        .site-footer a {
            color: inherit;
        }

    .footer-inner {
        height: 2.5rem;
        margin: 0 auto;
        padding: 0 var(--padding, 1rem);
        display: flex;
        align-items: center;
        gap: var(--gap, 1rem);
        justify-content: center;
        flex-wrap: nowrap;
    }

    .footer-links ul {
        display: flex;
        align-items: center; /* centre verticalement */
        gap: 0.75rem 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer-links li {
        display: flex;
        align-items: center; /* centre verticalement le contenu */
    }

        /* Séparateur vertical centré via bordure (plus propre qu’un pseudo-élément) */
        .footer-links li + li {
            border-inline-start: 1px solid var(--text-color-inverse, #fff);
            padding-inline-start: 0.75rem;
            margin-inline-start: 0.75rem;
        }

    .footer-links a,
    .footer-links .linklike {
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600; /* renforce la lisibilité sur fond sombre */
    }

    .footer-links .linklike {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }

    .footer-copy {
        font-size: 0.85rem;
        opacity: 0.9; /* légère atténuation, mais pas trop pour garder le contraste */
    }
}
/* /css/components/menu/header.css */
.site-logo {
    width: 10rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-select-header {
    width: 100%;
    appearance: none;
    cursor: pointer;
    padding: 0.5rem 2.5rem 0.5rem 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
    field-sizing: content;
}

.form-select-header:focus-visible {
    outline: none;
}

.form-select-header-option {
    color: black;
}

/* Bouton burger */
.nav-burger {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: .25rem .5rem;
    border-radius: .5rem;
}

/* Drawer Popover */
.mobile-drawer[popover] {
    position: fixed;
    inset: 0 0 0 auto; /* panneau à droite */
    width: 100%;
    height: 100%;
    max-width: 18rem;
    border: none;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    translate: 100% 0;
    transition: translate .25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.25);
    z-index: 2000;
}

.mobile-drawer:popover-open {
    translate: 0 0;
}

.mobile-drawer::backdrop {
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    z-index: 1999;
}

.drawer-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.25rem;
    padding: 1rem;
    border-radius: .5rem;
}

.mobile-drawer a,
.mobile-drawer button.link-like {
    color: #fff;
    text-decoration: none;
    text-align: left;
    background: none;
    border: 0;
    padding: .75rem .5rem;
    border-radius: .5rem;
    cursor: pointer;
}

    .mobile-drawer a:hover,
    .mobile-drawer button.link-like:hover {
        background: rgba(255,255,255,.08);
    }

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.drawer-accordion summary {
    cursor: pointer;
    list-style: none;
    padding: .75rem .9rem;
    border-radius: .6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

    /* Hide the default marker (Chrome/Safari) */
    .drawer-accordion summary::-webkit-details-marker {
        display: none;
    }

    /* Optional hover/focus styling */
    .drawer-accordion summary:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .drawer-accordion summary:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.25);
        outline-offset: 2px;
    }

    /* The icon on the right */
    .drawer-accordion summary::after {
        content: "+";
        font-weight: 700;
        line-height: 1;
        opacity: .8;
        width: 1.6rem;
        height: 1.6rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: .5rem;
        background: rgba(255, 255, 255, 0.08);
    }

/* When open, turn + into × (or you can use "−") */
.drawer-accordion[open] summary::after {
    content: "−";
    opacity: 1;
}

/* Your existing rule (keep) */
.drawer-accordion[open] > nav {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
}


.mobile-drawer-scroll {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Critical for flex + scrolling */
}

/* 1) The popover itself must NOT scroll, otherwise you get an extra scrollbar */
#mainMenu[popover] {
    max-height: 100dvh;
    overflow: hidden;
}

/* 2) Only this element scrolls */
.mobile-inner-mainmenu {
    height: 100%;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

    /* 3) Nav must NOT be another scroll container */
    .mobile-inner-mainmenu > nav,
    .mobile-drawer-scroll,
    .drawer-section {
        overflow: visible;
    }

    /* 4) Keep your "footer goes to bottom if space, otherwise after last item" behavior */
    .mobile-inner-mainmenu > nav {
        min-height: 100%; /* Important so margin-top:auto can push the footer down */
        display: flex;
        flex-direction: column;
    }

.mobile-drawer-footer {
    margin-top: auto;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

/* Block background scroll when the popover is open */
body:has(#mainMenu:popover-open),
html:has(#mainMenu:popover-open) {
    overflow: hidden;
}

/* Optional: reduce scroll chaining/bounce */
#mainMenu:popover-open .mobile-inner-mainmenu {
    overscroll-behavior: contain;
}

.mobile-drawer button.drawer-full,
.mobile-drawer a.drawer-full {
    width: 100%;
}



/* /css/components/menu/aside.css */
/* ================================== */
/* Poll Menu                          */
/* ================================== */

/* Par défaut (desktop) : montrer desktop, cacher mobile */
.poll-sidebar {
    display: none;
}

.poll-sidebar-mobile {
    display: block;
}

/* Mobile/Tablet <= 1024px : montrer mobile, cacher desktop */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) and (min-height: 890px) {
    .poll-sidebar {
        display: block !important;
    }

    .poll-sidebar-mobile {
        display: none !important;
    }
}

/* Menu réservé à gauche, reste visible au scroll */
.poll-sidebar {
    position: fixed;
    top: calc(var(--header-h) + 1.5rem);
    left: 0; /* NEW */
    width: var(--left-rail-w); /* NEW - largeur fixe */
    background: var(--color-surface, #fff);
    z-index: 1000; /* NEW - au-dessus du contenu */
    overflow: visible; /* NEW - pour laisser sortir le flyout */
    border-radius: 0 15px 15px 0;
}

/* NAV GLOBAL */
.pollmenu-nav-category {
    width: 100%;
    padding: 0.5rem 0;
}

/* Ligne de séparation sous le logo/filtre */
.pollmenu-nav-filter {
    position: relative;
}

    .pollmenu-nav-filter::after {
        content: "";
        display: block;
        height: 1px;
        margin: 1rem 0 0;
        background: var(--menu-border);
    }

/* LISTE PRINCIPALE */
.pollmenu-category-list {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pollmenu-category-item {
    position: relative;
    width: 100%;
    padding: 0.5rem;
}

    .pollmenu-category-item.selected {
        color: var(--segmented-item-bg-active);
        background: var(--segmented-item-text-active);
    }

    /* ITEM PRINCIPAL (catégorie) */
    .category-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        text-decoration: none;
        color: var(--menu-muted);
        text-align: center;
        transition: color .2s ease, opacity .2s ease, transform .15s ease;
    }

    .pollmenu-category-item .pollmenu-category-logo,
    .pollmenu-category-item .category-logo {
        width: 2rem;
        height: 2rem;
        object-fit: contain;
        display: block;
        filter: grayscale(100%) opacity(.55);
        transition: filter .2s ease, transform .15s ease, opacity .2s ease;
    }

    /* Libellé sous l’icône */
.category-link span {
    font-size: .75rem;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    color: currentColor;
    text-align: center;
}

    /* Hover / Focus */
.category-link:hover,
.category-link:focus-visible {
    color: var(--menu-text);
}

    .category-link:hover .pollmenu-category-logo,
    .category-link:focus-visible .pollmenu-category-logo,
    .category-link:hover .category-logo,
    .category-link:focus-visible .category-logo {
        filter: grayscale(0%) opacity(1);
        transform: translateY(-1px);
    }

    /* État sélectionné */
.pollmenu-category-item.selected category-link {
    color: var(--menu-text);
}

    .pollmenu-category-item.selected .pollmenu-category-logo,
    .pollmenu-category-item.selected .category-logo {
        filter: grayscale(0%) opacity(1);
    }

/* SOUS-CATÉGORIES */
.pollmenu-subcategory-list {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% - .5rem);
    list-style: none;
    padding: .75rem;
    gap: .5rem;
    min-width: 12rem;
    overflow: auto;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, rgba(0,0,0,.12));
    border-radius: .5rem;
    box-shadow: 0px 0px 10px 7px rgba(0, 0, 0, .12);
    z-index: 2000;
}

.pollmenu-subcategory-list.top {
    top: auto;
    bottom: 0;
}

    /* Pont invisible pour éviter trou de souris */
    .pollmenu-subcategory-list::before {
        content: "";
        position: absolute;
        top: 0;
        left: -12px;
        width: 12px;
        height: 100%;
        background: transparent;
    }

/* style des items du flyout */
.subcategory-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--menu-muted, #444);
    border-radius: .375rem;
    transition: background .15s ease, color .15s ease;
    flex-direction: column;
    padding: 0.5rem;
}

    .subcategory-link:hover {
        background: var(--color-negative);
        color: var(--color-primary);
    }

    .subcategory-link span {
        font-size: .75rem;
        line-height: 1.2;
        letter-spacing: .06em;
        text-transform: uppercase;
        font-weight: 600;
        color: currentColor;
        text-align: center;
    }

.pollmenu-subcategory-item .pollmenu-category-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: grayscale(100%) opacity(.7);
    transition: filter .2s ease;
}

.subcategory-link:hover .pollmenu-category-logo {
    filter: grayscale(0%) opacity(1);
}

/* accessibilité */
.subcategory-link:focus-visible + .pollmenu-subcategory-list {
    display: flex;
}



.pollmenu-category-item.open > .pollmenu-subcategory-list {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

.pollmenu-category-item.selected > subcategory-link {
    color: var(--color-accent);
}

li.pollmenu-subcategory-item {
    min-width: 8rem;
}


/* ============================= */
/*  FILTRE : bouton + flyout     */
/* ============================= */

/* Conteneur */
.pollmenu-nav-filter {
    position: relative;
    display: flex;
    justify-content: center; /* centre horizontalement */
    padding: 0.5rem;
    border-bottom: 1px solid lightgrey;
}

/* Wrapper bouton + menu */
.pollmenu-filter {
    position: relative;
    display: inline-block;
}

/* Bouton Filtre (style catégorie) */
.pollmenu-filter-button.as-category {
    /* reset bouton */
    appearance: none;
    background: none;
    border: none;
    padding: .5rem;
    margin: 0;
    /* layout catégorie */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
    cursor: pointer;
    color: var(--menu-muted);
    transition: color .2s ease, opacity .2s ease, transform .15s ease;
}

    /* Libellé sous l’icône */
    .pollmenu-filter-button.as-category > span {
        font-size: .75rem;
        line-height: 1.2;
        letter-spacing: .06em;
        text-transform: uppercase;
        font-weight: 600;
        color: currentColor;
    }

    /* Icône filtre */
    .pollmenu-filter-button.as-category .pollmenu-category-logo {
        width: 2rem;
        height: 2rem;
        object-fit: contain;
        display: block;
        filter: grayscale(100%) opacity(.55);
        transition: filter .2s ease, transform .15s ease, opacity .2s ease;
    }

    /* Hover / Focus */
    .pollmenu-filter-button.as-category:hover,
    .pollmenu-filter-button.as-category:focus-visible {
        color: var(--menu-text);
    }

        .pollmenu-filter-button.as-category:hover .pollmenu-category-logo,
        .pollmenu-filter-button.as-category:focus-visible .pollmenu-category-logo {
            filter: grayscale(0%) opacity(1);
            transform: translateY(-1px);
        }

/* État sélectionné (si tu veux marquer filtre actif en ajoutant .selected sur .pollmenu-filter) */
.pollmenu-filter.selected .pollmenu-filter-button.as-category {
    color: var(--menu-text);
}

.pollmenu-filter.selected .pollmenu-category-logo {
    filter: grayscale(0%) opacity(1);
}



/* ============================= */
/*  FLYOUT DU FILTRE             */
/* ============================= */
.pollmenu-filter-menu,
.pollmenu-filtermobile-menu {
    position: absolute;
    padding: .75rem;
    display: none; /* caché par défaut */
    flex-direction: column;
    gap: .75rem;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, rgba(0,0,0,.12));
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 3000;
}

.pollmenu-filter-menu {
    top: 0;
    left: calc(100% + 2rem); /* ouvre à droite */
}

.pollmenu-filtermobile-menu {
    top: calc(100%);
    left: auto;
    right: 0;
    margin: 0 0.5rem;
    width: calc(100vw - 1rem);
}

/* Ouverture au survol et focus */
.pollmenu-filter.open .pollmenu-filter-menu,
.pollmenu-filtermobile.open .pollmenu-filtermobile-menu {
    display: flex;
    align-items: center;
    max-width: 30.5rem;
}

/* ============================= */
/*  GROUPES DANS LE FLYOUT       */
/* ============================= */
.pollmenu-filter-group {
    display: grid;
    gap: .5rem;
    padding: .25rem;
}

.pollmenu-filter-title {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--menu-muted, #666);
}

.filter-not-connected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: fit-content;
}

.form-filter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ============================= */
/*  Segmented control (switch)   */
/* ============================= */
/* Le conteneur gris arrondi */
.radio-inputs {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem;
    border-radius: .75rem;
    background: var(--segmented-item-bg); /* fond gris clair */
    color: var(--segmented-item-text);
    box-shadow: 0 0 0 1px rgba(0,0,0,.06); /* fin liseré */
    flex-wrap: nowrap; /* tout sur une ligne */
    justify-content: center;
    flex-direction: column;
}

/* Chaque option prend la place de son texte */
.radio-inputs .radio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
    width: 100%;
}

    /* Input radio Blazor masqué (accessible) */
    .radio-inputs .seg-radio {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
        padding: 0;
        margin: -1px;
    }

    /* Le “pillage” cliquable */
    .radio-inputs .radio .name {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .55rem 1rem; /* hauteur + confort */
        min-height: 2.25rem;
        border-radius: .6rem;
        background: transparent; /* inactif = transparent */
        color: #475569; /* gris bleuté (muted) */
        font-weight: 500;
        transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
        user-select: none;
        cursor: pointer;
        width: 100%;
    }

    .radio-inputs .radio:hover .name {
        transform: translateY(-1px);
        background: var(--segmented-item-bg-hover);
        color: var(--segmented-item-text-hover:);
    }

    /* Segment actif : fond blanc + léger relief */
    .radio-inputs .seg-radio:checked + .name {
        background: var(--segmented-item-bg-active);
        color: var(--segmented-item-text-active);
        font-weight: 700;
        box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 0 0 1px rgba(0,0,0,.06) inset; /* fin liseré intérieur */
        cursor: default;
    }

    /* Focus clavier visible sur le segment */
    .radio-inputs .radio .name:focus-visible {
        outline: 2px solid rgba(0,0,0,.12);
        outline-offset: 2px;
    }

@media (min-width: 512px) {
    .pollmenu-filtermobile-menu{
        width: auto;
    }

    .filter-not-connected {
        width:max-content;
    }
    
    .radio-inputs {
        flex-direction: row;
    }

        .radio-inputs.two-lines {
            flex-wrap: wrap;
        }

        .radio-inputs .radio {
            width: 9rem;
        }
}

/* ============================= */
/*  ACTIONS (Appliquer)          */
/* ============================= */
.pollmenu-filter-actions {
    padding-top: 1rem;
    border-top: 1px solid color-mix(in oklab, var(--color-border, rgba(0,0,0,.12)) 60%, transparent);
    margin-top: 1rem;
}

.btn-primary {
    padding: .5rem .75rem;
    border-radius: .5rem;
    font: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--color-accent, #2f6fed);
    color: var(--color-accent-text, #fff);
    transition: filter .15s ease;
}

    .btn-primary:hover {
        filter: brightness(1.05);
    }

/* Panneau déroulant “Spécifique” (caché par défaut) */
.specific-panel {
    display: block;
    margin-top: .5rem;
    padding: .5rem;
    border-radius: .5rem;
    background: color-mix(in oklab, var(--menu-border, rgba(0,0,0,.06)) 20%, transparent);
}

@keyframes spanel-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Afficher si “Spécifique” est coché */
.pollmenu-filter-group:has(.radio-inputs input[name="langScope"][value="specific"]:checked) .specific-lang {
    display: block;
}

.pollmenu-filter-group:has(.radio-inputs input[name="countryScope"][value="specific"]:checked) .specific-country {
    display: block;
}

/* Style du label + select */
.select-label {
    font-size: .8rem;
    color: var(--menu-muted, #666);
    display: block;
    margin-bottom: .35rem;
}

.select-field {
    width: 100%;
    padding: .5rem .6rem;
    border-radius: .5rem;
    border: 1px solid var(--color-border, rgba(0,0,0,.15));
    background: var(--color-surface, #fff);
    color: var(--menu-text, #111);
    font: inherit;
    line-height: 1.2;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .select-field:focus {
        outline: none;
        border-color: color-mix(in oklab, var(--menu-border, rgba(0,0,0,.25)) 60%, transparent);
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--menu-border, rgba(0,0,0,.12)) 50%, transparent);
    }


.category-link svg {
    width: 2.5rem;
    height: 2.5rem;
}


/* ============================= */
/*  MODE MOBILE / TABLETTE       */
/* ============================= */
@media (hover: none),(pointer: coarse),(max-width: 1023px),(max-height: 889px) {
    /* On masque le menu latéral et son flyout desktop */
    .pollmenu-nav-category, .pollmenu-nav-filter {
        display: none;
    }

    /* Barre mobile sous le header (header = 4rem) */
    .pollmenu-mobile {
        position: sticky; /* reste sous le header quand on scrolle */
        top: 4rem;
        z-index: 2500;
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .5rem min(1.5rem, 3vw);
        background: var(--color-surface, #fff);
        border-bottom: 1px solid var(--menu-border, rgba(0,0,0,.12));
    }

        .pollmenu-mobile .select {
            flex: 1 1 auto;
            min-width: 0;
            display: grid;
            gap: .25rem;
        }

            .pollmenu-mobile .select label {
                font-size: .75rem;
                color: var(--menu-muted, #666);
            }

        .pollmenu-mobile .select-field {
            width: 100%;
            padding: .5rem .6rem;
            border-radius: .5rem;
            border: 1px solid var(--color-border, rgba(0,0,0,.15));
            background: var(--color-surface, #fff);
            color: var(--menu-text, #111);
            font: inherit;
            line-height: 1.2;
        }

        .pollmenu-mobile .btn-filter {
            flex: 0 0 auto;
            padding: .55rem .8rem;
            border-radius: .5rem;
            border: 1px solid transparent;
            background: var(--color-accent, #2f6fed);
            color: var(--color-accent-text, #fff);
            font: inherit;
            cursor: pointer;
        }

    /* Même contenu de filtre, rendu en "full sheet" sur mobile */
    .pollmenu-filter-sheet {
        position: fixed;
        inset: 0;
        z-index: 4000;
        background: color-mix(in oklab, black 20%, transparent);
        display: none;
    }

        .pollmenu-filter-sheet.open {
            display: block;
        }

        .pollmenu-filter-sheet .sheet-panel {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            max-height: 85vh;
            overflow: auto;
            background: var(--color-surface, #fff);
            border-radius: 1rem 1rem 0 0;
            box-shadow: 0 -8px 24px rgba(0,0,0,.18);
            padding: 1rem;
        }

        .pollmenu-filter-sheet .sheet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: .5rem;
        }

        .pollmenu-filter-sheet .sheet-title {
            font-weight: 700;
            font-size: 1rem;
        }

        .pollmenu-filter-sheet .sheet-close {
            appearance: none;
            background: none;
            border: 0;
            font-size: 1.25rem;
            cursor: pointer;
        }
}


