/* =========================================================
   xdirecttchat
   Base générale
   ========================================================= */

:root {

    --color-primary: #5b5bd6;
    --color-primary-dark: #4848b8;
    --color-primary-light: #eeeeff;

    /* --color-background: #f5f7fb; */
    --color-background: #98a2b3;	
	
    --color-surface: #ffffff;
    --color-surface-soft: #f8f9fc;

    --color-text: #172033;
    --color-text-secondary: #667085;
    --color-text-muted: #98a2b3;

    --color-border: #e4e7ec;
    --color-border-light: #eef0f3;

    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-warning: #ea580c;

    --radius-small: 8px;
    --radius: 12px;
    --radius-large: 18px;

    --shadow-small:
        0 2px 8px rgba(16, 24, 40, 0.05);

    --shadow:
        0 8px 24px rgba(16, 24, 40, 0.07);

    --shadow-large:
        0 16px 40px rgba(16, 24, 40, 0.10);

    --container-width: 1200px;

    --transition:
        0.2s ease;
}


/* =========================================================
   Reset
   ========================================================= */
   
* {
	margin:0;
	padding:0;
	text-decoration: none;
	list-style: none;
	box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {

    background:
        var(--color-background);

    color:
        var(--color-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

a {

    color: inherit;

    text-decoration: none;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

button,
input,
textarea,
select {

    font: inherit;
}

button {
    cursor: pointer;
}

img {

    max-width: 100%;

    display: block;
}


/* =========================================================
   Structure
   ========================================================= */

.site-wrapper {

    min-height: 100vh;

    display: flex;

    flex-direction: column;
}

.site-main {

    width: 100%;

    max-width:
        var(--container-width);

    margin: 0 auto;

    padding:
        32px 20px 60px;

    flex: 1;
}


/* =========================================================
   Conteneurs génériques
   ========================================================= */

.container {

    width: 100%;

    max-width:
        var(--container-width);

    margin: 0 auto;

    padding:
        0 20px;
}


.card {

    background:
        var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-small);
}


.page-card {

    background:
        var(--color-surface);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-large);

    padding:
        28px;

    box-shadow:
        var(--shadow-small);
}


/* =========================================================
   Titres
   ========================================================= */

.page-title {

    margin: 0;

    color:
        var(--color-text);

    font-size: 28px;

    font-weight: 700;

    line-height: 1.25;
	
	font-family: 'New Rocker';	
}

.page-subtitle {

    margin:
        8px 0 0;

    color:
        var(--color-text-secondary);

    font-size: 15px;
}


/* =========================================================
   Formulaires
   ========================================================= */

input,
textarea,
select {

    width: 100%;

    padding:
        11px 13px;

    background:
        var(--color-surface);

    color:
        var(--color-text);

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-small);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {

    border-color:
        var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(91, 91, 214, 0.10);
}

textarea {

    resize: vertical;

    min-height: 120px;
}


/* =========================================================
   Messages système
   ========================================================= */

.alert {

    padding:
        12px 15px;

    border-radius:
        var(--radius);

    margin-bottom:
        20px;

    border:
        1px solid transparent;
}

.alert-success {

    color: #166534;

    background: #f0fdf4;

    border-color: #bbf7d0;
}

.alert-error {

    color: #991b1b;

    background: #fef2f2;

    border-color: #fecaca;
}

.alert-warning {

    color: #9a3412;

    background: #fff7ed;

    border-color: #fed7aa;
}

/* =========================================================
   VÉRIFICATION D'ÂGE
   ========================================================= */

.age-guard-page {
    width: 100%;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.age-guard-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 35px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.age-guard-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f3;
    border: 1px solid #f3c5cc;
    border-radius: 50%;
    font-size: 32px;
}

.age-guard-card h1 {
    margin: 0 0 15px;
    color: #222;
    font-size: 28px;
    font-weight: 700;
}

.age-guard-intro {
    margin: 0 0 8px;
    color: #555;
    font-size: 16px;
}

.age-guard-intro strong {
    color: #222;
}

.age-guard-description {
    margin: 0 auto 25px;
    max-width: 420px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   MESSAGE D'ERREUR
   --------------------------------------------------------- */

.age-guard-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #fff4f4;
    border: 1px solid #f1c5c5;
    border-radius: 9px;
    color: #b42318;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.age-error-icon {
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   FORMULAIRE
   --------------------------------------------------------- */

.age-guard-form {
    width: 100%;
}

.age-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.age-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.age-form-group input[type="date"] {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d8dce3;
    border-radius: 9px;
    color: #333;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.age-form-group input[type="date"]:focus {
    border-color: #d6455d;
    box-shadow: 0 0 0 3px rgba(214, 69, 93, 0.10);
}

.age-form-group small {
    display: block;
    margin-top: 7px;
    color: #888;
    font-size: 12px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   BOUTON
   --------------------------------------------------------- */

.age-guard-submit {
    width: 100%;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #d6455d;
    border-radius: 9px;
    background: #d6455d;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.age-guard-submit:hover {
    background: #c63850;
    border-color: #c63850;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   INFORMATION
   --------------------------------------------------------- */

.age-guard-info {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 14px;
    background: #f7f8fa;
    border: 1px solid #e8eaee;
    border-radius: 9px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}


/* ---------------------------------------------------------
   PAGE ACCÈS REFUSÉ
   --------------------------------------------------------- */

.age-guard-message {
    margin: 0 0 25px;
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

.age-guard-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.age-guard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    box-sizing: border-box;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.age-guard-button-primary {
    background: #d6455d;
    border: 1px solid #d6455d;
    color: #fff;
}

.age-guard-button-primary:hover {
    background: #c63850;
    border-color: #c63850;
}

.age-guard-button-secondary {
    background: #fff;
    border: 1px solid #d8dce3;
    color: #444;
}

.age-guard-button-secondary:hover {
    background: #f7f8fa;
    border-color: #c5cad3;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

    .site-main {

        padding:
            24px 14px 45px;
    }

    .page-card {

        padding:
            20px;
    }

    .page-title {

        font-size: 24px;
    }
}

@media (max-width: 600px) {

    .age-guard-page {
        min-height: auto;
        padding: 25px 15px;
    }

    .age-guard-card {
        padding: 25px 20px;
        border-radius: 13px;
    }

    .age-guard-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 16px;
    }

    .age-guard-card h1 {
        font-size: 24px;
    }

    .age-guard-actions {
        flex-direction: column;
    }

    .age-guard-button {
        width: 100%;
    }
}

/* =====================================================
   NOTIFICATION — AUTEUR + RÔLE
   ===================================================== */

.notification-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px;
    flex-wrap: wrap;
}

.notification-author strong {
    font-size: 14px;
    color: #202124;
}

.notification-role {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.notification-role.administrateur {
    background: #eee7ff;
    color: #6f42c1;
    border: 1px solid #d8c9ff;
}

.notification-role.moderateur {
    background: #e5f2ff;
    color: #1769aa;
    border: 1px solid #c4e0fa;
}

.notification-text {
    color: #555;
    line-height: 1.5;
    word-break: break-word;
}