/*
Theme Name: Neuraly

*/

/*==============================================================*/
/*========================================================GLOBAL*/
/*==============================================================*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/*Couleurs*/
:root {
	--main: #7c43b6;
	--ui: #F1EAF8;
	--ui-colored: #7c43b629;
	--background: #fbfbfb;
	--text: #1A0533;
	--secondary-text: #6B6670;
	--hover: #6D39A5;
	
	--hpi-bg: #c093ed;
	--hpi-text: #7133af;
	--sus-hpi-bg: #deceed;
	--sus-hpi-text: #7c43b6;
	--tsa-bg: #6ca8e7;
	--tsa-text: #2e436b;
	--sus-tsa-bg: #9acbff;
	--sus-tsa-text: #2e436b;
	--tdah-bg: #ffeb50ad;
	--tdah-text: #615c1c;
	--sus-tdah-bg: #ede793;
	--sus-tdah-text: #615c1c;
	--dys-bg: #f96868;
	--dys-text: #6b1414;
	--sus-dys-bg: #ed9393;
	--sus-dys-text: #794949;
	--autre-bg: #f9b97a;
	--autre-text: #7a3a0c;
	
	--color-rechercheamoureuse: #ff4cc6;
	--color-rechercheamicale: #1f8d19;
	--color-rechercheautre: #808ed7;
	
	--header-height: 5rem;
	--footer-height: 5rem;
}
/*Padding*/
:root {
	--section-padding-classic: 0 3rem;
	--section-margin-classic: 0 auto 6rem;
}


/*Border radius*/
:root {
	--borderradius-low: 4px;
	--borderradius-classic: 8px;
	--borderradius-high: 12px;
}

/*Tailles*/
:root {
	--ratio: 1.25;
	--paragraphe-base: 19px;
	--paragraphe-petit: calc(var(--paragraphe-base) / var(--ratio));
	--titre-carte: calc(var(--paragraphe-base) * var(--ratio));
	--sous-titre: calc(var(--paragraphe-base) * var(--ratio) * var(--ratio) * var(--ratio));
	--titre-principal: calc(var(--paragraphe-base) * var(--ratio) * var(--ratio) * var(--ratio) * var(--ratio) * var(--ratio));

}
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	background: var(--background);
}

h1, h2, h3, h4, h5, h6, p, a, li, label, button, span {
	font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
	text-decoration: none;
	color: initial;
}

ul {
	list-style: none;
}

img {
	display: block;
}

button {
	border: none;
	cursor: pointer;
	padding: .5rem;
	background: var(--main);
	color: #fff;
	border-radius: var(--borderradius-low);
}

input {
	border: solid 1px lightgray;
}

/*----------------------------------FORM*/
.form-item-grid2 {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: .5rem;
	width: 100%;
}

.form-item-flex {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.form-item-radio-column {
	display: flex;
	flex-direction: column;
}

.form-item-radio-column-c {
	display: flex;
	gap: .3rem;
}

.darkenover {
	width: 100dvw;
    height: 100dvh;
    position: fixed;
    background: #808080ba;
    z-index: 10;
}

/*==============================================================*/
/*======================================================TEMPLATE*/
/*==============================================================*/
.error-box {
	display: none;
	position: fixed;
	bottom: 5dvh;
	left: 50%;
	transform: translatex(-50%);
    width: 50%;
    background: gray;
    padding: 2rem 1rem;
	color: #fff;
	text-align: center;
}

.error-box.visible {
	display: block;
}

.error-box.error {
	background: red;
}

.error-box.success {
	background: green;
}

.signalement-box {
	display: none;

	width: 50%;
    background: #fff;
    padding: 2rem 1rem;
	text-align: center;
	z-index: 11;
	border-radius: var(--borderradius-classic);
	
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.signalement-box.visible {
	display: block;
}

.signalement-box-c {
	
}

.signalement-box-title-c {
	margin-bottom: 1rem;
}

.signalement-box-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.signalement-box-row {
	display: flex;
	gap: 1rem;
}

.signalement-box-block {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.signalement-box-block textarea {
	width: 90%;
	height: 100px;
	padding-left: .1rem;
}

.signalement-box-row-checkbox {
	width: 20px;
}

.signalement-box-row-right {
	width: 90%;
	text-align: left;
}

.signalement-box-row-label {
	font-size: 1.3rem;
	font-weight: bold;
}
	.tag-hpi {background: var(--hpi-bg); color: var(--hpi-text);}
	.tag-sus-hpi {background: var(--sus-hpi-bg); color: var(--sus-hpi-text);}
	.tag-tsa {background: var(--tsa-bg); color: var(--tsa-text);}
	.tag-sus-tsa {background: var(--sus-tsa-bg); color: var(--sus-tsa-text);}
	.tag-tdah {background: var(--tdah-bg); color: var(--tdah-text);}
	.tag-sus-tdah {background: var(--sus-tdah-bg); color: var(--sus-tdah-text);}
	.tag-dys {background: var(--dys-bg); color: var(--dys-text);}
	.tag-sus-dys {background: var(--sus-dys-bg); color: var(--sus-dys-text);}
	.tag-autre {background: var(--autre-bg); color: var(--autre-text);}
	.tag-autre {background: var(--autre-bg); color: var(--autre-text);}

/*==============================================================*/
/*========================================================HEADER*/
/*==============================================================*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');


.neuraly-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 5rem;
	max-width: 100dvw;
    background: #fff;
    border-bottom: 1px solid #f0ece6;
    position: sticky;
    top: 0;
    font-family: 'DM Sans', sans-serif;
    gap: 2rem;
	z-index: 1000;
	overflow: auto;
}

/* ── LOGO ── */
.neuraly-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.neuraly-header-logo img {
    height: 3rem;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.neuraly-header-logo:hover img { opacity: 0.8; }

/* ── NAV ── */
.neuraly-header-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
}

.neuraly-header-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    letter-spacing: -0.01em;
	border: solid #f9f9f9 1px;
}

.neuraly-header-nav a:hover {
    color: #7c43b6;
    background: #f5f3ff;
}

.neuraly-header-nav a.active {
    color: #7c43b6;
    font-weight: 600;
    background: #f5f3ff;
}

/* ── DROITE ── */
.neuraly-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.neuraly-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    border: 1px solid transparent;
}

.icon-signalement {
	background: red;
	color: #fff;
	font-weight: bold;
}

.neuraly-header-icon:hover {
    background: #f5f3ff;
    color: #7c43b6;
    border-color: #ede9fe;
}

.neuraly-header-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.neuraly-header-badge {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    background: #7c43b6;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: 'DM Sans', sans-serif;
}

.neuraly-header-sep {
    width: 1px;
    height: 1.5rem;
    background: #e5e7eb;
    margin: 0 0.25rem;
}

/* ── USER ── */
.neuraly-header-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: 2rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.neuraly-header-user:hover {
    border-color: #c4b5fd;
    background: #faf8ff;
}

.neuraly-header-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f3ff;
    flex-shrink: 0;
}

.neuraly-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.neuraly-header-username {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

/* ── DISCORD ── */
.neuraly-header-discord {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}

.neuraly-header-discord:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.neuraly-header-discord svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #fff;
}

/*------------------------------------------------RESPONSIVE*/
/* ── RESPONSIVE 64em ── */
@media (max-width: 64em) {

    .neuraly-header {
        padding: 0 1.5rem;
        gap: 1.25rem;
    }

    .neuraly-header-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
		border: none;
    }
}

/* ── RESPONSIVE 48em — la navigation passe en barre fixe en bas de l'écran ── */
@media (max-width: 48em) {

    :root {
        --mobile-nav-height: 3.75rem;
    }

    /* La barre du bas a sa propre place, comme le header en haut : rien ne passe dessous.
       On réserve cette place sur <html> plutôt que sur <body>, car WordPress ajoute
       ses propres styles qui peuvent remettre le padding du body à 0. */
    html {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .neuraly-header {
        padding: 0 1rem;
        height: 4rem;
        gap: 0.75rem;
    }

    .neuraly-header-logo img {
        height: 2.25rem;
    }

    /* Barre de navigation en bas, comme une application mobile */
    .neuraly-header-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;

        display: flex;
        align-items: center;
        gap: 0.25rem;

        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding: 0 0.375rem env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid #f0ece6;
    }

    /* Les liens se partagent la largeur selon leur longueur : tout tient dans l'écran, rien ne défile.
       Un lien trop long (« Se déconnecter ») passe sur deux lignes. */
    .neuraly-header-nav li {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .neuraly-header-nav a {
        display: block;
        width: 100%;
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .neuraly-header-username {
        display: none;
    }

    .neuraly-header-sep {
        display: none;
    }

    .neuraly-header-right {
        gap: 0.375rem;
    }

    .neuraly-header-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .neuraly-header-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .neuraly-header-discord {
        width: 2.25rem;
        height: 2.25rem;
    }

    .neuraly-header-user {
        padding: 0.25rem;
        border-radius: 50%;
        gap: 0;
    }

    .neuraly-header-avatar {
        width: 2rem;
        height: 2rem;
    }
}

/* ── RESPONSIVE 30em ── */
@media (max-width: 30em) {

    .neuraly-header {
        padding: 0 0.75rem;
    }

    .neuraly-header-nav {
        gap: 0;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .neuraly-header-nav a {
        padding: 0.45rem 0.2rem;
        font-size: 0.75rem;
    }
}

/*==============================================================*/
/*===========================================HEADER DISCONNECTED*/
/*==============================================================*/
.neuraly-header-disconnected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 5rem;
    max-width: 100dvw;
    background: #fff;
    border-bottom: 1px solid #f0ece6;
    position: sticky;
    top: 0;
    font-family: 'DM Sans', sans-serif;
    gap: 2rem;
    z-index: 1000;
    overflow: auto;
}

/* ── LOGO ── */
.neuraly-header-disconnected-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.neuraly-header-disconnected-logo img {
    height: 3rem;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.neuraly-header-disconnected-logo:hover img { opacity: 0.8; }

/* ── NAV ── */
.neuraly-header-disconnected-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
}

.neuraly-header-disconnected-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    letter-spacing: -0.01em;
    border: solid #f9f9f9 1px;
}

.neuraly-header-disconnected-nav a:hover {
    color: #7c43b6;
    background: #f5f3ff;
}

.neuraly-header-disconnected-nav a.active {
    color: #7c43b6;
    font-weight: 600;
    background: #f5f3ff;
}

/* ── DROITE ── */
.neuraly-header-disconnected-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.neuraly-header-disconnected-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    border: 1px solid transparent;
}

.icon-signalement {
    background: red;
    color: #fff;
    font-weight: bold;
}

.neuraly-header-disconnected-icon:hover {
    background: #f5f3ff;
    color: #7c43b6;
    border-color: #ede9fe;
}

.neuraly-header-disconnected-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.neuraly-header-disconnected-badge {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    background: #7c43b6;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: 'DM Sans', sans-serif;
}

.neuraly-header-disconnected-sep {
    width: 1px;
    height: 1.5rem;
    background: #e5e7eb;
    margin: 0 0.25rem;
}

/* ── USER ── */
.neuraly-header-disconnected-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: 2rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.neuraly-header-disconnected-user:hover {
    border-color: #c4b5fd;
    background: #faf8ff;
}

.neuraly-header-disconnected-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f3ff;
    flex-shrink: 0;
}

.neuraly-header-disconnected-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.neuraly-header-disconnected-username {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

/* ── DISCORD ── */
.neuraly-header-disconnected-discord {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}

.neuraly-header-disconnected-discord:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.neuraly-header-disconnected-discord svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #fff;
}

/*------------------------------------------------RESPONSIVE*/
/*-----------------------------------MOBILE*/
@media (max-width: 767px) {
    .neuraly-header-disconnected {
        flex-direction: column;
		gap: 0;
		padding-bottom: 0.3rem;
    }
}


/* ── RESPONSIVE 48em — la navigation passe en barre fixe en bas de l'écran ── */
@media (max-width: 48em) {

    :root {
        --mobile-nav-height: 3.75rem;
    }

    /* La barre du bas a sa propre place, comme le header en haut : rien ne passe dessous.
       On réserve cette place sur <html> plutôt que sur <body>, car WordPress ajoute
       ses propres styles qui peuvent remettre le padding du body à 0. */
    html {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .neuraly-header-disconnected-logo img {
        height: 2.25rem;
    }

    /* Barre de navigation en bas, comme une application mobile */
    .neuraly-header-disconnected-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;

        display: flex;
        align-items: center;
        gap: 0.25rem;

        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding: 0 0.375rem env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid #f0ece6;
    }

    /* Les liens se partagent la largeur selon leur longueur : tout tient dans l'écran, rien ne défile.
       Un lien trop long (« Se déconnecter ») passe sur deux lignes. */
    .neuraly-header-disconnected-nav li {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .neuraly-header-disconnected-nav a {
        display: block;
        width: 100%;
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .neuraly-header-disconnected-username {
        display: none;
    }

    .neuraly-header-disconnected-sep {
        display: none;
    }

    .neuraly-header-disconnected-right {
        gap: 0.375rem;
    }

    .neuraly-header-disconnected-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .neuraly-header-disconnected-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .neuraly-header-disconnected-discord {
        width: 2.25rem;
        height: 2.25rem;
    }

    .neuraly-header-disconnected-user {
        padding: 0.25rem;
        border-radius: 50%;
        gap: 0;
    }

    .neuraly-header-disconnected-avatar {
        width: 2rem;
        height: 2rem;
    }
}


/*==============================================================*/
/*========================================================FOOTER*/
/*==============================================================*/
.neuraly-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	height: 5rem;
    gap: 0.4rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0ece6;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
}

.neuraly-footer-copy {
    font-size: 0.85rem;
    color: #9ca3af;
}

.neuraly-footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.neuraly-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}

.neuraly-footer-links a:hover { color: #7c43b6; }

.neuraly-footer-sep {
    color: #d1d5db;
}

/* ── RESPONSIVE 48em ── */
@media (max-width: 48em) {

    /* Pages classiques : footer compact, juste au-dessus de la barre de navigation du bas */
    .neuraly-footer {
        gap: 0.3rem;
        padding: 1rem 1rem 1.1rem;
        text-align: center;
    }

    .neuraly-footer-copy,
    .neuraly-footer-links {
        font-size: 0.8rem;
    }

    .neuraly-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 0.6rem;
    }

    /* Pages « application » : l'écran est entièrement occupé, on cache le footer
       - Messagerie : repérée par .messages-content
       - Membres    : repérée par .members-fullpage */
    body:has(.messages-content) .neuraly-footer,
    body:has(.members-fullpage) .neuraly-footer {
        display: none;
    }
}
/*==============================================================*/
/*=======================================================ACCUEIL*/
/*==============================================================*/
.home-hero-c {
	text-align: center;
	padding: var(--section-padding-classic);
	margin: var(--section-margin-classic);
}

.home-hero-title {
	font-size: 3dvw;
}

.home-navigation {
	padding: var(--section-padding-classic);
	margin: var(--section-margin-classic);
}

.home-navigation-c {
	display: flex;
	gap: 12rem;
}

.home-navigation-tosite {
	width: 50%;
	background: var(--ui);
	border-radius: var(--borderradius-classic);
}

.home-navigation-tosite-title-c {
	
}

.home-navigation-tosite-title {
	text-align: center;
	font-size: 1.5dvw;
}

.home-navigation-tosite-choice-c {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.home-navigation-tosite-choice-signup {
	background: var(--ui-colored);
	border-radius: var(--borderradius-classic);
	padding: 1rem 2rem;
}

.home-navigation-tosite-choice-login {
	background: var(--ui-colored);
	border-radius: var(--borderradius-classic);
	padding: 1rem 2rem;
}

.home-navigation-toelse {
	width: 50%;
	background: var(--ui);
	border-radius: var(--borderradius-classic);
}

.home-navigation-toelse-title-c {
	
}

.home-navigation-toelse-title {
	text-align: center;
	font-size: 1.5dvw;
}

.home-navigation-toelse-grid-c {
	
}

.home-navigation-toelse-grid-item-c {
	background: var(--ui);
}

.home-navigation-toelse-grid {
	display: grid;
}

.home-signupbox {
	position: fixed;
	top: 30%;
	left: 50%;
	z-index: 11;
	
	padding: 1rem;
	background: #fff;
	border-radius: var(--borderradius-classic);
	
	transform: translate(-50%, -50%);
}

.home-signupbox-title-c {
	text-align: center;
}

.home-signupbox-title {
	font-size: 1.3rem;
	font-weight: bold;
}

.home-signupbox-form-c {
	margin-top: 3rem;
}

.home-signupbox-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.home-signupbox-item {
	
}

.home-signupbox-button-c {
	
}

.home-signupbox-button {
	
}

.home-loginbox {
	position: fixed;
	top: 30%;
	left: 50%;
	z-index: 11;
	
	padding: 1rem;
	background: #fff;
	border-radius: var(--borderradius-classic);
	
	transform: translate(-50%, -50%);
}

.home-loginbox-recoverpassword {
	font-size: .8rem;
	color: blue;
	cursor: pointer;
}

.home-box-close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	color: var(--secondary-text);
	border-radius: 50%;
}

.home-box-close svg {
	width: 1rem;
	height: 1rem;
}

.home-box-close:hover {
	background: var(--ui);
	color: var(--main);
}
/*----------------------------------POPUPS INSCRIPTION / CONNEXION*/
.home-signupbox,
.home-loginbox {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 11;

	width: min(28rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;

	background: #fff;
	border: 1px solid rgba(124,67,182,0.1);
	border-radius: 1.25rem;
	padding: 2.25rem 2rem 2rem;
	box-shadow: 0 20px 50px rgba(26,5,51,0.18);

	animation: home-popup-in .3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes home-popup-in {
	from { opacity: 0; transform: translate(-50%, -46%) scale(.98); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Titre */
.home-signupbox-title-c {
	text-align: center;
	margin-bottom: 1.5rem;
}

.home-signupbox-title-c::after {
	content: '';
	display: block;
	width: 2.5rem;
	height: 3px;
	margin: .75rem auto 0;
	background: linear-gradient(90deg, #7c43b6, #c084fc);
	border-radius: 2px;
}

.home-signupbox-title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
}

/* Formulaire */
.home-signupbox-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.home-signupbox-form .form-item-grid2 {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	width: 100%;
}

.home-signupbox-form label {
	font-size: .9rem;
	font-weight: 600;
	color: var(--text);
}

.home-signupbox-form input[type="text"],
.home-signupbox-form input[type="password"],
.home-signupbox-form input[type="email"] {
	width: 100%;
	background: #faf8f5;
	border: 1px solid rgba(124,67,182,0.12);
	border-radius: .75rem;
	padding: .75rem 1rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	color: var(--text);
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.home-signupbox-form input[type="text"]:focus,
.home-signupbox-form input[type="password"]:focus,
.home-signupbox-form input[type="email"]:focus {
	border-color: #c4b5fd;
	box-shadow: 0 0 0 3px rgba(124,67,182,0.12);
}

/* Case à cocher des CGU */
.home-signupbox-form .form-item-flex {
	align-items: flex-start;
	gap: .6rem;
}

.home-signupbox-form input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: .15rem;
	flex-shrink: 0;
	accent-color: var(--main);
	cursor: pointer;
}

.home-signupbox-form .form-item-flex p {
	font-size: .85rem;
	line-height: 1.5;
	color: var(--secondary-text);
}

.home-signupbox-form .form-item-flex p a {
	color: var(--main);
	font-weight: 600;
	cursor: pointer;
}

/* Lien mot de passe oublié / retour */
.home-loginbox-recoverpassword {
	font-size: .85rem;
	font-weight: 500;
	color: var(--main);
	cursor: pointer;
}

.home-loginbox-recoverpassword:hover {
	text-decoration: underline;
}

/* Bouton d'envoi */
.home-signupbox-button-c {
	margin-top: .5rem;
}

.home-signupbox-button {
	width: 100%;
	background: linear-gradient(135deg, #7c43b6, #a855f7);
	color: #fff;
	border: none;
	border-radius: .75rem;
	padding: .85rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, transform .15s;
}

.home-signupbox-button:hover {
	background: linear-gradient(135deg, #8b50c9, #bc70ff);
	transform: translateY(-1px);
}

.home-signupbox-button:active {
	transform: scale(.98);
}

/* Bouton de fermeture */
.home-box-close {
	position: absolute;
	top: .75rem;
	right: .75rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	color: var(--secondary-text);
	border-radius: 50%;
	transition: background .15s, color .15s;
}

.home-box-close:hover {
	background: var(--ui);
	color: var(--main);
}

.home-box-close svg {
	width: 1rem;
	height: 1rem;
}

@media (max-width: 30em) {
	.home-signupbox,
	.home-loginbox {
		padding: 2rem 1.25rem 1.5rem;
	}
}
/*==============================================================*/
/*==============================================COMPLETE PROFILE*/
/*==============================================================*/

/*----------------------------------BANNIÈRE*/
.completeprofile-hero {
	position: relative;
	background: var(--main);
	padding: 3.5rem 2rem 5.5rem;
	text-align: center;
	overflow: hidden;
}

.completeprofile-hero-dots {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
	background-size: 1.75rem 1.75rem;
	pointer-events: none;
}

.completeprofile-hero-content {
	position: relative;
	max-width: 40rem;
	margin: 0 auto;
}

.completeprofile-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
}

.completeprofile-subtitle {
	margin-top: .75rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255,255,255,0.85);
}

.completeprofile-hero .completeprofile-required {
	color: #fbcfe8;
}

/*----------------------------------STRUCTURE*/
.completeprofile-main {
	position: relative;
	max-width: 56rem;
	margin: -3rem auto 0;
	padding: 0 1.5rem 4rem;
}

.completeprofile-form {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.completeprofile-section {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.completeprofile-section-title {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 .25rem .25rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text);
}

.completeprofile-section-title::before {
	content: '';
	width: 1.5rem;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #7c43b6, #c084fc);
}

/* La première section passe sur la bannière : son titre doit rester lisible */
.completeprofile-section:first-of-type > .completeprofile-section-title {
	color: #fff;
}

.completeprofile-section:first-of-type > .completeprofile-section-title::before {
	background: #fff;
}

.completeprofile-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1fr);
	gap: .75rem;
}

.completeprofile-grid-three {
	grid-template-columns: repeat(3, minmax(0,1fr));
}

/*----------------------------------CARTES*/
.completeprofile-card {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	background: #fff;
	border: 1px solid rgba(124,67,182,0.07);
	border-radius: 0.875rem;
	padding: 1.25rem 1.375rem;
	transition: border-color 0.2s;
}

.completeprofile-card:hover,
.completeprofile-card:focus-within {
	border-color: rgba(124,67,182,0.2);
}

.completeprofile-card-full {
	grid-column: 1 / -1;
}

.completeprofile-card-featured {
	border-left: 3px solid #7c43b6;
	border-radius: 0 0.875rem 0.875rem 0;
}

.completeprofile-label {
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #a78bfa;
	font-weight: 600;
}

.completeprofile-card-featured .completeprofile-label {
	color: #7c43b6;
}

.completeprofile-required {
	color: #d72828;
	margin-left: .15rem;
}

.completeprofile-hint {
	font-size: .875rem;
	line-height: 1.5;
	color: var(--secondary-text);
	margin-top: -.25rem;
}

/*----------------------------------CHAMPS*/
.completeprofile-input {
	width: 100%;
	background: #faf8f5;
	border: 1px solid rgba(124,67,182,0.12);
	border-radius: 0.625rem;
	padding: .7rem .9rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	color: #1a0533;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.completeprofile-input:focus {
	border-color: #c4b5fd;
	box-shadow: 0 0 0 3px rgba(124,67,182,0.1);
}

.completeprofile-textarea {
	min-height: 8rem;
	resize: vertical;
	line-height: 1.65;
}

.completeprofile-textarea-small {
	min-height: 5rem;
}

/* Les vraies cases restent accessibles au clavier, mais invisibles */
.completeprofile-choice-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/*----------------------------------CHOIX (sexe, recherche)*/
.completeprofile-choices {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
}

.completeprofile-choice,
.completeprofile-search-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: #fff;
	color: #5b21b6;
	border: 1px solid #ddd6fe;
	padding: 0.7em 1.4em;
	border-radius: 0.75rem;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.completeprofile-choice:hover,
.completeprofile-search-option:hover {
	background: #f5f3ff;
	border-color: #c4b5fd;
	transform: translateY(-1px);
}

.completeprofile-choice:has(input:checked) {
	background: linear-gradient(135deg, #7c43b6, #a855f7);
	border-color: transparent;
	color: #fff;
}

.completeprofile-search-option img {
	width: 1.1rem;
	height: 1.1rem;
	opacity: .5;
	transition: opacity .2s;
}

.completeprofile-search-option:has(input:checked) img {
	opacity: 1;
}

.completeprofile-search-amour:has(input:checked) {
	background: #fdf2f8;
	border-color: #f9a8d4;
	color: #be185d;
}

.completeprofile-search-amical:has(input:checked) {
	background: #e1f5ee;
	border-color: #9fe1cb;
	color: #0f6e56;
}

.completeprofile-search-autre:has(input:checked) {
	background: #f5f3ff;
	border-color: #a78bfa;
	color: #5b21b6;
}

/*----------------------------------ÉTIQUETTES DE NEUROATYPIES*/
.completeprofile-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.completeprofile-tag-option {
	position: relative;
	cursor: pointer;
}

.completeprofile-tag-option .profile-diag-tag {
	display: inline-block;
	cursor: pointer;
	opacity: .4;
}

.completeprofile-tag-option:has(input:checked) .profile-diag-tag {
	opacity: 1;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(124,67,182,0.35);
}

.completeprofile-tag-aucune {
	background: #ede9fe;
	color: #5b21b6;
}

/* Contour au clavier, pour tous les choix */
.completeprofile-choice:has(input:focus-visible),
.completeprofile-search-option:has(input:focus-visible),
.completeprofile-tag-option:has(input:focus-visible) .profile-diag-tag {
	outline: 2px solid var(--main);
	outline-offset: 2px;
}

/* Champ "Précisez", visible seulement si "Autre" est coché */
.completeprofile-other-text {
	display: none;
	flex-direction: column;
	gap: .5rem;
	margin-top: .5rem;
}

.completeprofile-form:has(#neuroa-other:checked) .completeprofile-other-text {
	display: flex;
}

/*----------------------------------SECTIONS DE RECHERCHE*/
.completeprofile-amour,
.completeprofile-amical {
	display: none;
}

.completeprofile-form:has(#recherche-amoureuse:checked) .completeprofile-amour,
.completeprofile-form:has(#recherche-amicale:checked) .completeprofile-amical {
	display: flex;
	animation: completeprofile-in 0.35s cubic-bezier(0.16,1,0.3,1);
}

@keyframes completeprofile-in {
	from { opacity: 0; transform: translateY(0.5rem); }
	to   { opacity: 1; transform: translateY(0); }
}

.completeprofile-section-hero {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: #fff;
	border: 1px solid rgba(124,67,182,0.1);
	border-radius: 0.875rem;
	padding: 1.5rem;
}

.completeprofile-section-hero-svg {
	flex-shrink: 0;
	width: 5.5rem;
	opacity: 0.92;
}

.completeprofile-section-hero-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: .35rem;
}

.completeprofile-section-hero .completeprofile-hint {
	margin-top: 0;
}

/* Rose doux, comme l'onglet amoureux du profil */
.completeprofile-amour .completeprofile-section-hero { border-color: rgba(244,114,182,0.15); }
.completeprofile-amour .completeprofile-section-hero-title { color: #be185d; }
.completeprofile-amour .completeprofile-label { color: #f472b6; }
.completeprofile-amour .completeprofile-card-featured { border-left-color: #fda4af; }
.completeprofile-amour .completeprofile-card-featured .completeprofile-label { color: #be185d; }
.completeprofile-amour .completeprofile-input:focus { border-color: #f9a8d4; box-shadow: 0 0 0 3px rgba(244,114,182,0.12); }

/* Vert doux, comme l'onglet amical du profil */
.completeprofile-amical .completeprofile-section-hero { border-color: rgba(29,158,117,0.15); }
.completeprofile-amical .completeprofile-section-hero-title { color: #0f6e56; }
.completeprofile-amical .completeprofile-label { color: #1d9e75; }
.completeprofile-amical .completeprofile-card-featured { border-left-color: #1d9e75; }
.completeprofile-amical .completeprofile-card-featured .completeprofile-label { color: #0f6e56; }
.completeprofile-amical .completeprofile-input:focus { border-color: #9fe1cb; box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }

/*----------------------------------CONSENTEMENT*/
.completeprofile-consent {
	border-color: rgba(124,67,182,0.2);
	background: #faf8ff;
}

.completeprofile-consent-label {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--text);
	cursor: pointer;
}

.completeprofile-consent-input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: .2rem;
	flex-shrink: 0;
	accent-color: var(--main);
	cursor: pointer;
}

.completeprofile-consent-label a {
	color: var(--main);
	font-weight: 500;
	text-decoration: underline;
}

/*----------------------------------BOUTON*/
.completeprofile-submit-c {
	display: flex;
	justify-content: center;
}

.completeprofile-submit {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #7c43b6, #a855f7);
	color: #fff;
	border: none;
	padding: 0.9em 2.5em;
	border-radius: 0.75rem;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.completeprofile-submit:hover {
	background: linear-gradient(135deg, #8b50c9, #bc70ff);
	transform: translateY(-1px);
}

.completeprofile-submit:active {
	transform: scale(0.97);
}

/*----------------------------------RESPONSIVE*/
@media (max-width: 48em) {
	.completeprofile-hero {
		padding: 2.5rem 1.25rem 4.5rem;
	}

	.completeprofile-title {
		font-size: 1.85rem;
	}

	.completeprofile-main {
		padding: 0 1rem 3rem;
	}

	.completeprofile-grid,
	.completeprofile-grid-three {
		grid-template-columns: 1fr;
	}

	.completeprofile-card {
		padding: 1rem 1.1rem;
	}

	.completeprofile-section-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: .75rem;
	}

	.completeprofile-section-hero-svg {
		width: 4rem;
	}

	.completeprofile-submit {
		width: 100%;
	}
}
/*==============================================================*/
/*========================================================SIGNUP*/
/*==============================================================*/
.signup {
	
}

.signup-supercontainer {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.signup-card-container {
	width: 50%;
	background: #fff;
	padding: 2rem 4rem;
	border-radius: var(--borderradius-classic);
}

.signup-card-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.signup-avatar-container {
	
}

.signup-avatar {
	width: 10dvw;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
}

.signup-basicinfos-container {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.signup-basicinfos-firstname {
	font-size: 1.3rem;
	font-weight: bold;
}

.signup-basicinfos-age {
	font-size: 1.3rem;
	font-weight: bold;
}

/*========================================================OLD======*/
.signup-signup {
	  padding: var(--section-padding-classic);
}

.signup-c {
	background: var(--ui);
}

.signup-title-c {
	
}

.signup-title {
	text-align:center;
	margin-bottom: 1rem;
}

.signup-form-c {
	
}

.signup-form {
	display: flex;
	flex-wrap: wrap;
}

.signup-form-firstpart {
	width: 33%;
}

.signup-form-secondpart {
	width: 33%;
}

.signup-form-thirdpart {
	width: 33%;
}

.signup-form-4thpart {
	width: 33%;
}

.signup-form-5thpart {
	width: 33%;
}

.signup-form-6thpart {
	width: 33%;
}

.signup-form-items-c {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.signup-form-item-c {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.signup-form-item-title {
	font-size: 1.2rem;
}

.signup-form-item-desc {
	font-size: 1rem;
	color: var(--secondary-text);
}

.signup-form-item-input {
	
}

.signup-form-item-radio-line-c {
	display: flex;
}

.signup-secondary-title {
	text-align: center;
	margin-top: 2rem;
}


/*==============================================================*/
/*=======================================================PROFILE*/
/*==============================================================*/
.profile-banner-container {
    width: 100%;
    height: 19rem;
    background: linear-gradient(135deg, #2d0a5e 0%, #6d3fc7 55%, #c084fc 100%);
    position: relative;
}

.profile-banner-dots {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
    background-size: 1.75rem 1.75rem;
    pointer-events: none;
}

.profil-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(250,248,245,0.15) 100%);
    pointer-events: none;
}

.profile-profile-picture-wrapper {
    position: absolute;
    top: 11rem;
    left: 2rem;
    width: 14rem;
    height: 14rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #7c43b6, #c084fc);
    padding: 0.2rem;
}

.profile-profile-picture-inner {
    width: 100%;
    height: 100%;
    border-radius: 1.35rem;
    border: 0.2rem solid #faf8f5;
    overflow: hidden;
}

.profile-profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-edit-icon {
	width: 32px;
	cursor: pointer;
	border-radius: var(--borderradius-classic);
}

.profile-central-element {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem 1.25rem;
	flex-direction: column;
}

.profile-user-info {
	display: flex;
	flex-direction: column;
}

.profile-user-info-primary {
	display: flex;
    align-items: center;
	gap: 1rem;
}

.profile-user-info-secondary {
    min-width: 12rem;
}

.profile-user-name {
    font-family: 'Fraunces', serif;
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #1a0533;
    margin-bottom: 1rem;
	margin-top:1rem;
}

.profile-myprofile-buttons-c {
	display: flex;
	flex-direction: column;
}

.profile-editprofile-link {
	background: linear-gradient(135deg, rgb(124, 67, 182), rgb(168, 85, 247));
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--borderradius-classic);
	width: fit-content;
}

.profile-disconnect-button {
	color: #d72828;
	padding: .5rem 0;
}

.profile-user-pseudo {
    font-size: 1.1rem;
    color: #7c43b6;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.profile-badge-collection {
	display: flex;
    flex: 1;
}

.profile-badge-c {
	position: relative;
}

.profile-badge {
	width: 32px;
}

.profile-badge-description-c {
	display: none;
	background: black;
	padding: .5rem;
	border-radius: var(--borderradius-classic);
	width: 30ch;
	
	position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%);
	
	animation: displayBadge .3s ease;
}

.profile-badge-description {
	color: #fff;
}

.profile-badge:hover + .profile-badge-description-c {
	display: block;
}

@keyframes displayBadge {
	0% {
		opacity: 0%;
	}
	
	100% {
		opacity: 100%;
	}
}

.profile-user-age,
.profile-user-ville,
.profile-user-departement {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-right: 0.5rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-left: auto;
}

.profile-action-bouton {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    padding: 0.7em 1.4em;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.profile-action-bouton:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

.profile-action-bouton:active { transform: scale(0.97); }

.profile-action-bouton-ami {
    background: linear-gradient(135deg, #7c43b6, #a855f7);
    color: #fff;
    border: none;
}

.profile-action-bouton-ami:hover {
    background: linear-gradient(135deg, #8b50c9, #bc70ff);
    color: #fff;
}

.profile-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0);
    animation: ripple-anim 0.55s linear;
    pointer-events: none;
}

@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

.profile-user-diagnostics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 2rem;
    background: #fff;
    border-top: 1px solid #ede9fe;
    border-bottom: 1px solid #ede9fe;
}

.profile-signalement-button-c {

}

.profile-signalement-button {
	background: #d72828;
}

.profile-signalement-button:hover {
	background: #dd5252;
}

.profile-central-element .profile-user-diagnostics {
    background: none;
    border: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.profile-central-element .profile-diag-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.profile-diag-title {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7c43b6;
    font-weight: 600;
    margin-right: 0.35rem;
    flex-shrink: 0;
}

.profile-diag-tag {
    padding: 0.4em 1em;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.18s, opacity 0.18s;
    cursor: default;
}

.profile-diag-tag:hover { transform: translateY(-2px); opacity: 0.85; }

.profile-container-boutons-tabs {
    position: relative;
    display: flex;
    border-bottom: 1px solid #e8e2d9;
    padding: 0 2rem;
}

.profile-tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #7c43b6, #c084fc);
    border-radius: 2px;
    transition: left 0.4s cubic-bezier(0.16,1,0.3,1), width 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}

.profile-boutons-tabs {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #9ca3af;
    padding: 0.9rem 1.3rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    margin-bottom: -1px;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.profile-boutons-tabs-disabled {
	background: #d3d3d3;
	border: none;
    font-size: 1.1rem;
    color: #9ca3af;
    padding: 0.9rem 1.3rem;
    cursor: not-allowed;
    border-bottom: 2px solid transparent;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    margin-bottom: -1px;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.profile-boutons-tabs.active { color: #7c43b6; }
.profile-boutons-tabs:hover:not(.active) { color: #6b7280; }

.profile-super-container {
    padding: 0;
    flex: 1;
}

.profile-container-content {
    padding: 1.5rem 2.5rem 2.5rem;
}

.profile-tab-content {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-tab-content.active {
    display: flex;
    animation: tab-in 0.35s cubic-bezier(0.16,1,0.3,1);
}

@keyframes tab-in {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-tab-two-cols {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 0.75rem;
}

.profile-tab-colonne-gauche,
.profile-tab-colonne-droite {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-section-card {
    background: #fff;
    border: 1px solid rgba(124,67,182,0.07);
    border-radius: 0.875rem;
    padding: 1.25rem 1.375rem;
    transition: border-color 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.profile-section-card:hover {
    border-color: rgba(124,67,182,0.2);
    transform: translateY(-2px);
}

.profile-section-card-featured {
    border-left: 3px solid #7c43b6;
    border-radius: 0 0.875rem 0.875rem 0;
    padding: 1.35rem 1.5rem;
}

.profile-section-card h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-section-card-featured h4 { color: #7c43b6; }
.profile-section-card-featured h4::before { background: #7c43b6; }

.profile-section-card-p {
    font-size: 1.05rem;
    color: #1a0533;
    line-height: 1.65;
}

.profile-missing-data {
	color: lightgray;
}

.profile-section-card-featured p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.profile-tab-hero {
    background: #fff;
    border: 1px solid rgba(124,67,182,0.1);
    border-radius: 0.875rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.profile-tab-hero-svg {
    flex-shrink: 0;
    width: 6.5rem;
    opacity: 0.92;
}

/*----------------------------------POPUP NOUVELLE CONVERSATION*/
.profile-newconv-window {
	display: none;
}

.profile-newconv-window.visible {
	display: block;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 11;

	width: min(34rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;

	background: #fff;
	border: 1px solid rgba(124,67,182,0.1);
	border-radius: 1.25rem;
	padding: 1.75rem;
	box-shadow: 0 20px 50px rgba(26,5,51,0.18);

	animation: profile-newconv-in .3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes profile-newconv-in {
	from { opacity: 0; transform: translate(-50%, -46%) scale(.98); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.profile-newconv-close {
	position: absolute;
	top: .75rem;
	right: .75rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	color: var(--secondary-text);
	border-radius: 50%;
	transition: background .15s, color .15s;
}

.profile-newconv-close:hover {
	background: var(--ui);
	color: var(--main);
}

.profile-newconv-close svg {
	width: 1rem;
	height: 1rem;
}

.profile-newconv-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-right: 2rem;
}

.profile-newconv-avatar {
	width: 3.5rem;
	height: 3.5rem;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #ede9fe;
}

.profile-newconv-window-title {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
}

.profile-newconv-hint {
	margin-top: .15rem;
	font-size: .9rem;
	color: var(--secondary-text);
}

.profile-newconv-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.profile-newconv-input {
	width: 100%;
	min-height: 9rem;
	resize: vertical;
	background: #faf8f5;
	border: 1px solid rgba(124,67,182,0.12);
	border-radius: .875rem;
	padding: .875rem 1rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.profile-newconv-input:focus {
	border-color: #c4b5fd;
	box-shadow: 0 0 0 3px rgba(124,67,182,0.1);
}

.profile-newconv-input::placeholder {
	color: #b9a9d6;
}

.profile-newconv-actions {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
}

@media (max-width: 30em) {
	.profile-newconv-window.visible {
		padding: 1.5rem 1.25rem;
	}

	.profile-newconv-actions {
		flex-direction: column-reverse;
	}
}

/* ── COULEURS AMOUREUX — rose doux ── */
.profile-tab-hero-content h4 { color: #be185d; }
.profile-tab-hero-content h4::before { background: #fda4af; }

#tab-amoureux .profile-tab-hero { border-color: rgba(244,114,182,0.15); }
#tab-amoureux .profile-section-card h4 { color: #f472b6; }

#tab-amoureux .profile-section-card-featured {
    border-left-color: #fda4af;
}
#tab-amoureux .profile-section-card-featured h4 { color: #be185d; }
#tab-amoureux .profile-section-card-featured h4::before { background: #fda4af; }

/* ── COULEURS AMICAL — vert doux ── */
.profile-tab-hero-amical h4  { color: #0f6e56; }
.profile-tab-hero-amical h4::before { background: #1d9e75; }

#tab-amical .profile-tab-hero { border-color: rgba(29,158,117,0.15); }
#tab-amical .profile-section-card h4 { color: #1d9e75; }

#tab-amical .profile-section-card-featured {
    border-left-color: #1d9e75;
}
#tab-amical .profile-section-card-featured h4 { color: #0f6e56; }
#tab-amical .profile-section-card-featured h4::before { background: #1d9e75; }

/*-----------------------------------------------------RESPONSIVE*/
/*----------------------------MOBILE*/
@media (max-width: 768px) {
	.profile-profile-picture-wrapper {
        position: relative;
        top: auto;
        left: 50%;
        width: 7.5rem;
        height: 7.5rem;
        margin: -4rem 0 0 0rem;
        border-radius: 1.25rem;
        transform: translateX(-50%);
    }
	
	.profile-user-info {
        width: 100%;
    }
	
	.profile-user-info-primary {
    	flex-direction: column;
		gap: .5rem;
		margin-bottom: 1rem;
}
	
	.profile-user-info-secondary {
		display: flex;
    	justify-content: center;
}
	
	.profile-disconnect-button {
    	text-align: center;
}
	
}

/* ── RESPONSIVE 64em ── */
@media (max-width: 64em) {

    .profile-central-element {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

/* ── RESPONSIVE 48em — même mise en page qu'en grand, en plus compact ── */
@media (max-width: 48em) {

    /* ── Bannière et photo ── */
    .profile-banner-container { height: 11rem; }


    .profile-profile-picture-inner { border-radius: 1.1rem; }

    .profile-profile-picture-wrapper .profile-edit-icon,
    .profile-banner-container .profile-edit-icon { width: 28px; }

    /* ── Bloc central : même ligne qu'en grand, qui passe à la ligne ──
       ligne 1 : prénom (et bouton Modifier sur son propre profil), sur toute la largeur
       ligne 2 : badges à gauche, Signaler à droite
       ligne 3 : bandeau des neuroatypies
       ligne 4 : boutons d'action */
    .profile-central-element {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem 1rem;
        padding: 0.75rem 1rem 1.25rem;
    }

    .profile-user-name {
        font-size: 2rem;
        margin: 0;
        overflow-wrap: break-word;
    }

    .profile-editprofile-link {
        display: inline-block;
        font-size: 0.9rem;
        padding: 0.45rem 0.9rem;
    }

    .profile-badge-collection {
        flex: none;
        align-self: center;
    }

    /* Pas de badge : on cache le bloc vide pour ne pas créer d'espace */
    .profile-badge-collection:not(:has(*)) { display: none; }

    .profile-badge-description-c {
        left: 0;
        transform: none;
        width: min(30ch, 80vw);
    }


    .profile-signalement-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }


    .profile-central-element .profile-diag-tags-row { gap: 0.35rem; }

    .profile-diag-tag { font-size: 0.9rem; }

    /* Boutons d'action : sous le bandeau, sur toute la largeur */
    .profile-actions {
        order: 2;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 0;
    }

    /* Sur son propre profil, il n'y a aucun bouton : on cache le bloc vide */
    .profile-actions:not(:has(*)) { display: none; }

    .profile-action-bouton {
        flex: 1;
        min-width: 8rem;
        text-align: center;
    }

    /* Pop-up de premier message : largeur de l'écran moins une marge */
    .profile-central-element .profile-newconv-window.visible { width: calc(100vw - 2rem); }

    /* ── Onglets : les trois toujours visibles, en parts égales, collés sous le header quand on fait défiler.
       Le texte passe sur deux lignes si besoin ── */
    .profile-container-boutons-tabs {
        position: sticky;
        top: 4rem;
        z-index: 5;
        background: var(--background);
        padding: 0;
    }

    .profile-boutons-tabs,
    .profile-boutons-tabs-disabled {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.25;
        padding: 0.75rem 0.35rem;
    }

    /* ── Contenu des onglets ── */
    .profile-container-content { padding: 1rem 1rem 2rem; }

    .profile-tab-two-cols { grid-template-columns: 1fr; }

    .profile-section-card { padding: 1rem 1.1rem; }
    .profile-section-card-featured { padding: 1.1rem 1.25rem; }

    .profile-section-card h4 {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .profile-section-card-featured p,
    .profile-section-card-p { font-size: 1rem; }

    /* Âge / Ville / Département : Âge et Ville côte à côte, Département en dessous sur toute la largeur.
       !important est nécessaire ici : les 3 colonnes sont écrites dans un style="" du template,
       qui passe sinon avant le CSS. */
    #tab-general > .profile-tab-two-cols:first-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem;
    }

    #tab-general > .profile-tab-two-cols:first-child > :last-child { grid-column: 1 / -1; }

    #tab-general > .profile-tab-two-cols:first-child h4 {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    #tab-general > .profile-tab-two-cols:first-child p { overflow-wrap: break-word; }

    /* Encadrés amoureux / amical : l'illustration reste à gauche du texte, comme en grand */
    .profile-tab-hero {
        align-items: flex-start;
        gap: 1rem;
        padding: 1.1rem;
    }

    .profile-tab-hero-svg { width: 4rem; }
}

.profile-newconv-window {
	display: none;
}

.profile-newconv-window.visible {
	display: block;
	z-index: 11;
	width: 680px;
	background: var(--background);
	padding: 1rem;
	border-radius: var(--borderradius-classic);
	
	position: fixed;
	top: 50%;
	left: 50%;
	
	transform: translate(-50%, -50%);
}

.profile-newconv-window-title-c {
	text-align: center;
	margin-bottom: 1rem;
}

.profile-newconv-window-title {
	
}

.profile-newconv-form {
	width: 100%;
	text-align: center;
}

.profile-newconv-input {
	width: 80%;
	height: 180px;
	margin-bottom: 1rem;
}

/* ── RESPONSIVE 30em ── */
@media (max-width: 30em) {
    .profile-user-name { font-size: 1.7rem; }
    .profile-actions { flex-direction: column; }
    .profile-action-bouton { flex: none; width: 100%; }
}

/*==================================================================================================================================*/
/*=========================================================================================EDIT PROFILE=============================*/
/*==================================================================================================================================*/
.editprofile-banner-input {
	display: none;
}

.editprofile-banner-label {
	position: absolute;
	top: 16px;
	right: 16px;
}

.editprofile-pp-input {
	display: none;
}

.editprofile-pp-label {
	position: absolute;
	top: 0;
	right: 0;
}




/*==================================================================================================================================*/
/*=========================================================================================MESSAGERIE=============================*/
/*==================================================================================================================================*/

/* ══════════════════════
   PAGE WRAPPER
══════════════════════ */
.messages-page {
    display: flex;
    height: calc(100vh - 5rem);
    font-family: 'DM Sans', sans-serif;
    background: #faf8f5;
    overflow: hidden;
}

/* ══════════════════════
   CONTENU PRINCIPAL
══════════════════════ */
.messages-content {
    flex: 1;
    display: flex;
    min-width: 0;
    overflow: hidden;
}

/* ══════════════════════
   LISTE CONVERSATIONS
══════════════════════ */
.messages-list-panel {
    width: 20rem;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #f0ece6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages-list-header {
    padding: 1.25rem 1rem 0.875rem;
    border-bottom: 1px solid #f0ece6;
}

.messages-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a0533;
    margin-bottom: 0.875rem;
}

.messages-list-search-bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #faf8f5;
    border: 1px solid rgba(124,67,182,0.1);
    border-radius: 0.625rem;
    padding: 0.55rem 0.875rem;
}

.messages-list-search-icon {
    width: 1rem;
    height: 1rem;
    color: #c4b5fd;
    flex-shrink: 0;
}

.messages-list-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    color: #1a0533;
}

.messages-list-search-input::placeholder {
    color: #c4b5fd;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
}

.messages-conversation {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(124,67,182,0.05);
    transition: background 0.15s;
    position: relative;
}

.messages-conversation:hover {
    background: #faf8f5;
}

.messages-conversation-active {
    background: #f5f3ff;
    border-right: 3px solid #7c43b6;
}

.messages-conversation-active:hover {
    background: #f5f3ff;
}

.messages-conversation-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #ede9fe;
}

.messages-conversation-unread-dot {
    width: 0.6rem;
    height: 0.6rem;
    background: #7c43b6;
    border-radius: 50%;
    position: absolute;
    left: 0.7rem;
    top: 0.875rem;
    border: 1.5px solid #fff;
}

.messages-conversation-info {
    flex: 1;
    min-width: 0;
}

.messages-conversation-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a0533;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-conversation-preview {
    font-size: 0.825rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.messages-conversation-preview-unread {
    color: #1a0533;
    font-weight: 500;
}

.messages-conversation-time {
    font-size: 0.75rem;
    color: #c4b5fd;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.1rem;
}

.messages-conversation-badge {
    background: #7c43b6;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 0.1rem;
}

/* ══════════════════════
   PANNEAU CHAT
══════════════════════ */
.messages-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
	height: calc(100dvh - 5rem);
}

.messages-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f0ece6;
    flex-shrink: 0;
}

.messages-chat-header-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ede9fe;
    flex-shrink: 0;
}

.messages-chat-header-info {
    flex: 1;
    min-width: 0;
}

.messages-chat-header-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a0533;
}

.messages-chat-header-status {
    font-size: 0.825rem;
    color: #22c55e;
    margin-top: 0.1rem;
}

.messages-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.messages-chat-header-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: none;
    border: 1px solid transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.messages-chat-header-btn:hover {
    background: #f5f3ff;
    color: #7c43b6;
    border-color: #ede9fe;
}

.messages-chat-header-btn-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* ── Zone messages ── */
.messages-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.messages-chat-date-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 500;
}

.messages-chat-date-line {
    flex: 1;
    height: 1px;
    background: #ede9fe;
}

/* ── Bulle reçue ── */
.messages-bubble-in {
    display: flex;
    align-items: flex-end;
    gap: 0.625rem;
    max-width: 70%;
    align-self: flex-start;
}

.messages-bubble-in-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ede9fe;
}

.messages-bubble-in-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.messages-bubble-in-text {
    background: #fff;
    border: 1px solid rgba(124,67,182,0.1);
    border-radius: 0 1rem 1rem 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.975rem;
    color: #1a0533;
    line-height: 1.55;
}

.messages-bubble-in-time {
    font-size: 0.72rem;
    color: #c4b5fd;
    padding-left: 0.25rem;
}

.messages-bubble-img {
	max-width: 256px
}

/* ── Bulle envoyée ── */
.messages-bubble-out {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    max-width: 70%;
    align-self: flex-end;
}

.messages-bubble-out-text {
    background: linear-gradient(135deg, #7c43b6, #a855f7);
    border-radius: 1rem 1rem 0 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.975rem;
    color: #fff;
    line-height: 1.55;
}

.messages-bubble-out-time {
    font-size: 0.72rem;
    color: #c4b5fd;
    padding-right: 0.25rem;
}

/* ── Input envoi ── */
.messages-chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-top: 1px solid #f0ece6;
    flex-shrink: 0;
}

.messages-chat-input-field {
    flex: 1;
    min-width: 0;
    background: #faf8f5;
    border: 1px solid rgba(124,67,182,0.12);
    border-radius: 0.875rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: #1a0533;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
    height: 3rem;
}

.messages-chat-input-field:focus {
    border-color: #c4b5fd;
}

.messages-chat-input-field::placeholder {
    color: #c4b5fd;
}

.messages-chat-send-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #7c43b6, #a855f7);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.15s;
}

.messages-chat-send-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.messages-chat-send-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.messages-chat-input-image-icon {
	width: 32px;
}

.messages-image-label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.messages-image-count {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #8b5cf6;
    color: white;
    font-size: 11px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
}

.messages-image-label.has-image .messages-image-count {
    display: flex;
}

/* ── Bouton retour (visible seulement sur mobile) ── */
.messages-chat-back {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: -0.5rem;
    border-radius: 0.625rem;
    color: #7c43b6;
    transition: background 0.15s;
}

.messages-chat-back:hover {
    background: #f5f3ff;
}

.messages-chat-back svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* ── Panneau vide (« Sélectionnez une conversation ») ── */
.messages-chat-panel:not(:has(form)) {
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.messages-chat-panel:not(:has(form)) p {
    font-size: 1rem;
    color: #9ca3af;
}

/* ══════════════════════
   RESPONSIVE 64em
══════════════════════ */
@media (max-width: 64em) {

    .messages-list-panel {
        width: 16rem;
    }
}

/* ══════════════════════
   RESPONSIVE 48em
   Un seul panneau à la fois :
   - aucune conversation ouverte → la liste en plein écran
   - une conversation ouverte    → la discussion en plein écran, avec le bouton retour
   Le formulaire d'envoi (.messages-chat-input-row) n'existe que quand une conversation est ouverte,
   c'est lui qui sert de repère.
══════════════════════ */
@media (max-width: 48em) {

    .messages-page {
        height: calc(100dvh - 4rem - var(--mobile-nav-height, 0px) - env(safe-area-inset-bottom));
    }

    /* Hauteur disponible : écran - header - barre de navigation du bas */
    .messages-content {
        height: calc(100dvh - 4rem - var(--mobile-nav-height, 0px) - env(safe-area-inset-bottom));
    }

    .messages-list-panel {
        width: 100%;
        border-right: none;
    }

    .messages-chat-panel {
        height: 100%;
    }

    /* Conversation ouverte : on cache la liste */
    .messages-content:has(.messages-chat-input-row) .messages-list-panel {
        display: none;
    }

    /* Pas de conversation ouverte : on cache le panneau « Sélectionnez une conversation » */
    .messages-content:not(:has(.messages-chat-input-row)) .messages-chat-panel {
        display: none;
    }

    /* Sauf s'il n'y a aucune conversation : on affiche « Aucune conversation pour le moment » à la place de la liste vide */
    .messages-content:not(:has(.messages-conversation)) .messages-list-panel {
        display: none;
    }

    .messages-content:not(:has(.messages-conversation)) .messages-chat-panel {
        display: flex;
    }

    .messages-conversation-active {
        border-right: none;
    }

    /* En-tête de la discussion */
    .messages-chat-back {
        display: flex;
    }

    .messages-chat-header {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .messages-chat-header-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Messages */
    .messages-chat-body {
        padding: 1rem;
        gap: 0.75rem;
    }

    .messages-bubble-in,
    .messages-bubble-out {
        max-width: 85%;
    }

    .messages-bubble-in-text,
    .messages-bubble-out-text {
        overflow-wrap: anywhere;
    }

    .messages-bubble-img {
        max-width: min(256px, 60vw);
    }

    /* Zone d'envoi */
    .messages-chat-input-row {
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }

    .messages-chat-input-field {
        height: 2.75rem;
        padding: 0.65rem 1rem;
    }

    .messages-chat-send-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .messages-chat-input-image-icon {
        width: 28px;
    }
}

/*==================================================================================================================================*/
/*=========================================================================================GLOBAL CLASS=============================*/
/*==================================================================================================================================*/
.displayblock {
	display: block;
}

.displaynone {
	display: none;
}

.backgroundgreen {
	background: green;
}

.overflow-hidden {
	overflow: hidden;
}

/*==============================================================*/
/*==========================================================FEED*/
/*==============================================================*/

/*----------------------------------BANNIÈRE*/
.feed-hero {
	position: relative;
	background: var(--main);
	padding: 3rem 2rem 5rem;
	text-align: center;
	overflow: hidden;
}

.feed-hero-dots {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
	background-size: 1.75rem 1.75rem;
	pointer-events: none;
}

.feed-hero-content {
	position: relative;
}

.feed-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
}

.feed-subtitle {
	margin-top: .6rem;
	font-size: 1.05rem;
	color: rgba(255,255,255,0.85);
}

/*----------------------------------STRUCTURE*/
.feed-main {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	max-width: 42rem;
	margin: -3rem auto 0;
	padding: 0 1.5rem 4rem;
}

/*----------------------------------ZONE D'ÉCRITURE*/
.feed-writing-card {
	background: #fff;
	border: 1px solid rgba(124,67,182,0.1);
	border-radius: 0.875rem;
	padding: 1.25rem 1.375rem;
	margin-bottom: 1rem;
	box-shadow: 0 10px 30px rgba(26,5,51,0.08);
}

.feed-writing-form {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.feed-writing-label {
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #7c43b6;
	font-weight: 600;
}

.feed-writing-textarea {
	width: 100%;
	min-height: 6rem;
	background: #faf8f5;
	border: 1px solid rgba(124,67,182,0.12);
	border-radius: 0.625rem;
	padding: .75rem .9rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	resize: vertical;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.feed-writing-textarea:focus {
	border-color: #c4b5fd;
	box-shadow: 0 0 0 3px rgba(124,67,182,0.1);
}

.feed-writing-textarea::placeholder {
	color: #b9a9d6;
}

.feed-writing-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.feed-writing-images {
	position: relative;
	display: flex;
	align-items: center;
	gap: .75rem;
}

/* Le vrai champ fichier reste accessible au clavier, mais invisible */
.feed-writing-images-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.feed-writing-images-label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: #fff;
	color: #5b21b6;
	border: 1px solid #ddd6fe;
	padding: 0.6em 1.2em;
	border-radius: 0.75rem;
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.feed-writing-images-label:hover {
	background: #f5f3ff;
	border-color: #c4b5fd;
	transform: translateY(-1px);
}

.feed-writing-images-input:focus-visible + .feed-writing-images-label {
	outline: 2px solid var(--main);
	outline-offset: 2px;
}

.feed-writing-images-icon {
	width: 1.1rem;
	height: 1.1rem;
}

.feed-writing-images-count {
	font-size: .85rem;
	color: var(--main);
}

.feed-writing-images-count-error {
	color: #d72828;
}

.feed-writing-button {
	background: linear-gradient(135deg, #7c43b6, #a855f7);
	color: #fff;
	border: none;
	padding: 0.65em 1.8em;
	border-radius: 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.feed-writing-button:hover {
	background: linear-gradient(135deg, #8b50c9, #bc70ff);
	transform: translateY(-1px);
}

.feed-writing-button:active {
	transform: scale(0.97);
}

/*----------------------------------POSTS*/
.feed-empty {
	text-align: center;
	color: #9ca3af;
	padding: 2rem 0;
}

.feed-post-container {
	display: flex;
	flex-direction: column;
	gap: .875rem;
	background: #fff;
	border: 1px solid rgba(124,67,182,0.07);
	border-radius: 0.875rem;
	padding: 1.25rem 1.375rem;
	transition: border-color 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.feed-post-container:hover {
	border-color: rgba(124,67,182,0.2);
	transform: translateY(-2px);
}

.feed-post-header {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.feed-post-pp-link {
	flex-shrink: 0;
}

.feed-post-pp {
	width: 2.75rem;
	height: 2.75rem;
	object-fit: cover;
	border-radius: 50%;
	border: 1.5px solid #ede9fe;
}

.feed-post-header-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.feed-post-author {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	text-transform: capitalize;
	transition: color .15s;
}

.feed-post-author:hover {
	color: var(--main);
}

.feed-post-date {
	font-size: .8rem;
	color: #9ca3af;
}

.feed-post-content {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--text);
	overflow-wrap: anywhere;
}

/*----------------------------------IMAGES DES POSTS*/
.feed-post-images {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: .375rem;
	border-radius: 0.75rem;
	overflow: hidden;
}

.feed-post-images-one {
	grid-template-columns: 1fr;
}

.feed-post-image-link {
	display: block;
	background: var(--ui);
}

.feed-post-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: opacity .2s;
}

.feed-post-images-one .feed-post-image {
	aspect-ratio: auto;
	max-height: 32rem;
}

.feed-post-image-link:hover .feed-post-image {
	opacity: .9;
}

/*----------------------------------RESPONSIVE*/
@media (max-width: 48em) {
	.feed-hero {
		padding: 2.5rem 1.25rem 4.5rem;
	}

	.feed-title {
		font-size: 1.85rem;
	}

	.feed-main {
		padding: 0 1rem 3rem;
	}

	.feed-writing-card,
	.feed-post-container {
		padding: 1rem 1.1rem;
	}
}

@media (max-width: 30em) {
	.feed-writing-button {
		width: 100%;
	}
}
/*==============================================================*/
/*=====================================MENTIONS LÉGALES / COOKIES*/
/*==============================================================*/

/*----------------------------------BANNIÈRE*/
.legal-hero {
	position: relative;
	background: var(--main);
	padding: 3rem 2rem 5rem;
	text-align: center;
	overflow: hidden;
}

.legal-hero-dots {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
	background-size: 1.75rem 1.75rem;
	pointer-events: none;
}

.legal-hero-content {
	position: relative;
}

.legal-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #fff;
}

.legal-subtitle {
	margin-top: .6rem;
	font-size: 1.05rem;
	color: rgba(255,255,255,0.85);
}

/*----------------------------------STRUCTURE*/
.legal-main {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	max-width: 50rem;
	margin: -3rem auto 0;
	padding: 0 1.5rem 4rem;
}

.legal-intro {
	margin: .75rem .25rem;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--secondary-text);
}

.legal-update {
	margin-top: 1rem;
	text-align: center;
	font-size: .875rem;
	color: #9ca3af;
}

/*----------------------------------CARTES*/
.legal-card {
	background: #fff;
	border: 1px solid rgba(124,67,182,0.07);
	border-radius: 0.875rem;
	padding: 1.5rem 1.75rem;
	scroll-margin-top: 6.5rem; /* le header fixe ne masque pas le titre après un clic dans le sommaire */
}

.legal-card p,
.legal-card li,
.legal-card td,
.legal-card th {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
}

.legal-card p + p,
.legal-card ul + p,
.legal-card p + ul {
	margin-top: .6rem;
}

.legal-card ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.legal-card ul li {
	position: relative;
	padding-left: 1.1rem;
}

.legal-card ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .7em;
	width: .4rem;
	height: .4rem;
	border-radius: 50%;
	background: #c4b5fd;
}

.legal-card a {
	color: var(--main);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: #ddd6fe;
	text-underline-offset: 2px;
	transition: text-decoration-color .15s;
}

.legal-card a:hover {
	text-decoration-color: var(--main);
}

.legal-intro a {
	color: var(--main);
	font-weight: 500;
}

/* Titres de section */
.legal-section-title {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1rem;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
}

.legal-section-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: .6rem;
	background: var(--ui);
	color: var(--main);
	font-size: .95rem;
	font-weight: 700;
}

/* Sous-titres, comme les titres de cartes du profil */
.legal-card h3 {
	margin: 1.4rem 0 .4rem;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #7c43b6;
	font-weight: 600;
}

/*----------------------------------SOMMAIRE*/
.legal-summary {
	box-shadow: 0 10px 30px rgba(26,5,51,0.08);
	border-color: rgba(124,67,182,0.1);
}

.legal-summary-title {
	margin-bottom: .75rem;
	font-size: .85rem !important;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #a78bfa !important;
	font-weight: 600;
}

.legal-summary-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: .35rem 1.5rem;
	padding-left: 1.25rem;
}

.legal-summary-list li {
	color: #a78bfa;
	font-weight: 600;
}

.legal-summary-list a {
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
}

.legal-summary-list a:hover {
	color: var(--main);
}

/*----------------------------------TABLEAU (cookies)*/
.legal-table-c {
	margin: 1rem 0;
	overflow-x: auto;
	border: 1px solid #ede9fe;
	border-radius: .75rem;
}

.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.legal-table th:last-child,
.legal-table td:last-child {
	white-space: nowrap;
}

.legal-table th {
	background: var(--ui);
	color: #5b21b6;
	font-size: .85rem;
	font-weight: 600;
	text-align: left;
	padding: .7rem 1rem;
}

.legal-table td {
	padding: .7rem 1rem;
	border-top: 1px solid #ede9fe;
	font-size: .95rem;
	vertical-align: top;
}

.legal-table code {
	font-size: .85rem;
	background: #faf8f5;
	border: 1px solid rgba(124,67,182,0.12);
	border-radius: .375rem;
	padding: .1rem .35rem;
	white-space: nowrap;
}

/*----------------------------------RESPONSIVE*/
@media (max-width: 48em) {
	.legal-hero {
		padding: 2.5rem 1.25rem 4.5rem;
	}

	.legal-title {
		font-size: 1.85rem;
	}

	.legal-main {
		padding: 0 1rem 3rem;
	}

	.legal-card {
		padding: 1.25rem 1.1rem;
	}

	.legal-summary-list {
		grid-template-columns: 1fr;
	}
}


/*-------------------------DELETE PROFILE PART ON EDIT PROFILE*/
.delete-profile-card {
	display: none;
}

.delete-profile-card.visible {
	display: block;
	position: fixed;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	padding: 2rem;
	background: var(--ui);
}

.delete-profile-button {
	display: block;
	margin: 1rem auto 0;
	background: #d72828;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--borderradius-classic);
    width: fit-content;
}

.no-delete-profile-button {
	margin: 1rem auto 0;
    color: red;
    text-align: center;
	cursor: pointer;
}