* {
    box-sizing: border-box;
}

:root {
    --c-bg: #F8F9FA;
    --c-surface: #ffffff;
    --c-surface-2: #f8f9fa;
    --c-surface-3: #f5f5f5;
    --c-text: #333333;
    --c-text-2: #555555;
    --c-muted: #666666;
    --c-muted-2: #64748b;
    --c-border: #e5e7eb;
    --c-border-strong: #cbd5e1;
    --c-border-accent: rgba(25, 125, 255, 0.2);
    --c-outline: #000000;
    --c-accent: #197dff;
    --c-accent-2: #0c63d4;
    --c-accent-soft: rgba(25, 125, 255, 0.10);
    --c-accent-soft-2: rgba(25, 125, 255, 0.05);
    --c-danger: #d63031;
    --c-danger-soft: #ffe6e6;
    --c-danger-border: #fab1a0;
    --c-warning: #fbbf24;
    --shadow-soft: 5px 5px 2px 1px rgba(144, 144, 144, 0.20);
    --shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.40);
    --shadow-pop: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --c-import: #197dff;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --c-bg: #0b1220;
    --c-surface: #1a2a4e;
    --c-surface-2: #111c33;
    --c-surface-3: #0b1326;
    --c-text: #e5e7eb;
    --c-text-2: #cbd5e1;
    --c-muted: #94a3b8;
    --c-muted-2: #94a3b8;
    --c-border: #1f2a44;
    --c-border-strong: #2b3a5e;
    --c-border-accent: rgba(25, 125, 255, 0.35);
    --c-outline: #2b3a5e;
    --c-accent: #197dff;
    --c-accent-2: #5aa8ff;
    --c-accent-soft: rgba(25, 125, 255, 0.18);
    --c-accent-soft-2: rgba(25, 125, 255, 0.08);
    --c-danger: #fb7185;
    --c-danger-soft: rgba(251, 113, 133, 0.14);
    --c-danger-border: rgba(251, 113, 133, 0.35);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-pop: 0 20px 25px -5px rgba(0, 0, 0, 0.55), 0 10px 10px -5px rgba(0, 0, 0, 0.35);
    --c-import: #fff;
}


html {
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F9FA;
}

.header_logo img {
    margin: 10px;
    width: 11em;
}

.wrapper {
    padding: 0 30px 0 280px;
    background-color: var(--c-bg);
}

/*----------------------------les parametres commun des boutons----------------------------------*/

.bouton_bleu {
    padding: 10px;
    border-radius: 6px;
    background-color: #197dff;
    color: #FFFFFF;
    border: solid #FFFFFF 2px;
    font-weight: bold;
}

.bouton_bleu:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 125, 255, 0.5);
}

.bouton_transparent {
    border-radius: 6px;
    background-color: #ffffff00;
    color: #197dff;
}

.bouton_transparent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 125, 255, 0.5);
    background-color: #197dff;
    color: #FFFFFF;
}

.bouton_gris {
    border-radius: 6px;
    background-color: #e2e8f0;
    color: #475569;
    border: solid #e2e8f0 2px;
}

.bouton_gris:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px #a8acb1;
}

.btn_rouge {
    padding: 10px;
    border-radius: 6px;
    background-color: rgb(210, 0, 0);
    color: #FFFFFF;
    border: solid #FFFFFF 2px;
    font-weight: bold;
    border-radius:10px ;
}

.btnrouge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 125, 255, 0.5);
}



/*----------------------------Landing page----------------------------------*/
.land_body {
    display: flex;
    color: #333333;
    flex-direction: column;
}

.land_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: solid rgba(25, 125, 255, 0.5) 1px;

}

header div {
    display: flex;
    align-items: center;
}

.land_compte a {
    padding: 10px;
    font-size: 75%;
    text-decoration: none;
    border: solid 2px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.land_connect {
    background-color: #197dff;
    color: #FFFFFF;
    margin-right: 15px;
}

.land_create {
    color: #197dff;
    margin-right: 10px;
}

.land_create:hover {
    background-color: rgba(25, 125, 255, 0.1);
    background-color: #197dff;
    color: #FFF;
}

.land_div {
    display: flex;
    justify-content: center;
}

.land_content {
    width: 80%;
}

.land_content {
    width: 80%;
    padding: 60px 0;
}

.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(25, 125, 255, 0.05) 0%, rgba(135, 187, 255, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #197dff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: #333;
}

.hero-section p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(90deg, rgba(25, 125, 255, 1) 0%, rgba(135, 187, 255, 1) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 125, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 125, 255, 0.6);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(25, 125, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 15px 1px rgba(25, 125, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #197dff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.about-section {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.2);
    margin-bottom: 60px;
}

.about-section h2 {
    color: #197dff;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(25, 125, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #197dff;
}

.benefit-item::before {
    content: "✓";
    font-size: 1.5rem;
    color: #197dff;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    border-top: 1px solid rgba(25, 125, 255, 0.2);
}



@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .land_content {
        width: 95%;
    }
}


/*--------------------------Register/Login----------------------------------*/

.body_login {
    color: #333;
    background-image: url("/public/img/register-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
}

.html_login {
    height: 100%;
}

.intro_top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.div-login-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reg-h1 {
    margin-bottom: 0;
}

.intro_top h2 {
    margin-top: 3px;
    margin-bottom: 48px;
}

.form_register {
    margin: 5px 10%;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 70px 50px;
    background-color: rgba(25, 125, 255, 0.75);
    backdrop-filter: blur(30px);
    box-shadow: 5px 5px 15px 1px rgba(25, 125, 255, 0.3);
    width: 700px;
}


@media (max-width: 768px) {

    .div-login-content {
        padding: 12px;
        align-items: stretch;
    }

    .intro_top {
        align-items: flex-start;
        text-align: left;
    }

    .form_register {
        width: 100%;
        max-width: 520px;
        margin: 12px auto;
        padding: 22px 16px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .form-account {
        align-items: stretch;
    }

    .form-account label,
    .form-account input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-account button,
    .login a {
        width: 100%;
    }
}

.form-account {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-account p {
    margin-top: 0;
    margin-bottom: 40px;
}

.form-account label {
    align-self: center;
    width: 400px;
    text-align: left;
    margin: 4px;
    font-size: larger;
}

.form-account input {
    margin-bottom: 15px;
    width: 400px;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    font-size: large;
}

.form-account input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

.form-account button {
    margin-top: 15px;
    font-size: large;
}

.login {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login a {
    padding: 10px;
    font-size: 90%;
    text-decoration: none;
    border: solid 2px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    white-space: nowrap;
}

input[type="checkbox"] {
    width: min-content;
}

.cond_util {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 4px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox:checked~.checkmark {
    background-color: #2196F3;
    box-shadow: 0 3px 7px rgba(33, 150, 243, 0.3);
}

.custom-checkbox:checked~.checkmark:after {
    display: block;
}

@keyframes checkAnim {
    0% {
        height: 0;
    }

    100% {
        height: 10px;
    }
}

.custom-checkbox:checked~.checkmark:after {
    animation: checkAnim 0.2s forwards;
}


.p-cgu {
    margin-bottom: 10px !important;
    margin-left: 10px;
}


.btn-login-registerpage {
    color: #fff;
}


.mdp-oublie {
    color: #fff;
    margin-bottom: 20px;
}

/*----------------------------contact----------------------------------*/

.contact-layout {
    max-width: 980px;
    margin: 28px auto;
    padding: 0 10px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.wrapper {
    background: var(--c-bg);
    color: var(--c-text);
}

.pageTitle {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--c-text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border-accent);
}

.FAQ {
    background: var(--c-surface);
    border: 1px solid var(--c-border-accent);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.FAQ h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
}

.FAQ .q {
    margin: 0;
    padding: 14px;
    margin: 10px 0;
    border-radius: 12px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text);
    font-weight: 750;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.FAQ .q::after {
    content: "+";
    font-weight: 900;
    color: var(--c-accent);
    opacity: .95;
}

.FAQ .q:hover {
    background: var(--c-accent-soft);
    border-color: var(--c-border-accent);
}

.FAQ .r {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--c-accent-soft-2);
    border: 1px solid var(--c-border-accent);
    border-left: 4px solid var(--c-accent);
    color: var(--c-text-2);
    line-height: 1.6;
}

.contact-title {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
}

.contactForm {
    background: var(--c-surface);
    border: 1px solid var(--c-border-accent);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
}

.contactForm label {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-muted);
    margin-top: 6px;
}

.contactForm input,
.contactForm textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--c-border-strong);
    background: var(--c-surface-3);
    color: var(--c-text);
    padding: 12px 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.contactForm input::placeholder,
.contactForm textarea::placeholder {
    color: var(--c-muted);
    opacity: .75;
}

.contactForm textarea {
    resize: vertical;
    min-height: 140px;
}

.contactForm input:focus,
.contactForm textarea:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(25, 125, 255, .25);
}

.contactForm button {
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(25, 125, 255, 0.35);
    transition: transform .15s ease, filter .15s ease;
    justify-self: start;
    margin-top: 6px;
}

.contactForm button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/*----------------------------logout----------------------------------*/

.logout {
    min-height: 100vh;
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--c-surface);
    padding: 24px;
    box-sizing: border-box;
}

.logout h1 {
    margin-bottom: 5px;
}

.logout p {
    margin: 18px 0;
    text-align: center;
    font-size: large;
}

.logout form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.logout button {
    padding: 10px;
    margin-right: 0.5em;
    font-size: 90%;
    text-decoration: none;
    border: solid 2px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    white-space: nowrap;
    font-size: large;
}

.logout button:last-child {
    padding: 11px 13px;
}

/*------------------------pop-up ajout fichier-----------------------------*/

.popup-hidden {
    display: none;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
}

.popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #1e293b;
}

.popup-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 32px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.form-group-pop {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}

.form-label-pop {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.form-input-pop,
.form-textarea-pop {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input-pop:focus,
.form-textarea-pop:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea-pop {
    resize: vertical;
    min-height: 80px;
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: space-between;
}

.btn-pop {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-ann-pop {
    background-color: #e2e8f0;
    color: #475569;
}

.btn-ann-pop:hover {
    background-color: #cbd5e1;
}

.btn-aj-pop {
    background-color: #197dff;
    color: white;
}

.btn-aj-pop:hover {
    background-color: #0c63d4;
}

.popup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.popup-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.popup-value {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.image-preview {
    background-color: #e2e8f0;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 200px;
}

.image-placeholder {
    opacity: 0.6;
}


/*----------------------------contact----------------------------------*/
.contactForm {
    box-shadow: solid black 10px;
    box-sizing: 10px;
}

.contactForm button:hover {
    background-color: #197dff;
    color: #FFFFFF;
}

.cache {
    display: none;
}

/*--------------------------Fiche personne aidée----------------------------------*/
.input_de_la_pp_profil {
    background: none !important;
    border: none !important;
    padding-top: 0px !important;
}


.img-profile {
    max-width: 7rem;
    max-height: 7rem;
    margin: 20px;
    object-fit: cover;
    border-radius: 50%;
    width: 120px;
    height: 120px;

}

.carte-profil {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border-accent);
    border-radius: 14px;
    border: 1px solid var(--c-border-accent);
    width: 400px;
    height: auto;
    padding: 0;
    overflow: hidden;
    align-items: center;
    background: var(--c-surface);
}

.profil-body {
    width: 100%;
    padding: 20px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profil-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.group-cards-profil {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    margin-top: 5%;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 5%;
}

.paragraphe-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.edit {
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 10px 12px;
    background: rgba(135, 187, 255, 0.4);
    border: 1px solid rgb(109, 109, 255);
    color: var(--c-text-2);
    font-size: 1rem;
}

.profil-actions .edit {
    border-bottom: 0;
}

.supprimer-aidee {
    width: 100%;
    padding: 12px 10px;
    background: var(--c-danger-soft);
    border: solid 1px red;
    border-radius: 0 0 14px 14px;
    color: var(--c-danger);
    text-align: center;
    text-decoration: none;
}

.infoaide {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text-2);
    font-size: 1rem;
}

.edit:hover {
    filter: brightness(0.9);
}

.supprimer-aidee:hover {
    filter: brightness(0.9);
}

.btn-inviter-profil {
    width: 100%;
    padding: 12px 10px;
    background: rgba(135, 187, 255, 0.4) !important;
    border: 1px solid rgb(109, 109, 255);
    border-radius: 0 0 14px 14px;
    color: var(--c-danger);
    text-align: center;
    text-decoration: none;
}

.liste-aidants-profil {
    display: flex;
    flex-direction: column;
    gap: 25px;

}

.cercle-soin-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;

}

.titres-profile {
    text-align: center;
}

.liste-aidants-profil {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border-strong);
    width: 100%;
}

.liste-aidants-profil img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 44px;
}

.liste-aidants-profil p {
    margin: 0;
    font-weight: 700;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*--------------------------popup créer profil aidée----------------------------------*/
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.html-popup {
    background-color: rgba(0, 0, 0, 0.5);
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.section-title {
    color: #197dff;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    color: #FFFFFF;
}

.aidee-area {
    resize: vertical;
    min-height: 100px;
}

.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn-container button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.aidee-btn1 {
    background: #197dff;
    color: white;
}

.aidee-btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 125, 255, 0.5);
}

.aidee-btn2 {
    background: #e0e0e0;
    color: #333;
}

.aidee-btn2:hover {
    background: #d0d0d0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.section-title:first-of-type {
    margin-top: 0;
}

.close {
    cursor: pointer;
    transition: 0.15s ease;
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.close:hover {
    background-color: #d0d0d0;
}

.add-helped-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/*---------------------------popup ajouter un event------------------------------------*/

.hidden {
    display: none;
}

.popup-flex-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.popup-left-panel {
    width: 320px;
    max-height: 75vh !important;
    background: linear-gradient(180deg, #197dff 0%, #1568d6 100%);
    color: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}


.popup-left-panel h3 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.event-item-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(230, 230, 230, 0.5);
    border-left: 5px solid #197dff;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);

    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.event-item-sidebar:hover {
    transform: translateY(-4px) scale(1.02);
    border: none;
    background: #197dff;
    border-color: #197dff;
    border-left-color: #60a5fa;

    box-shadow: 0 10px 25px rgba(25, 125, 255, 0.35);
    z-index: 10;
}

.event-item-time {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;

    background-color: #f1f5f9;
    color: #334155;

    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.event-item-sidebar p.resume-event:nth-of-type(1) {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2px 0;
    transition: color 0.2s;
}

.resume-event-locate {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.event-item-sidebar p.resume-event:nth-of-type(2) {
    font-size: 0.9rem;
    color: #197dff;
    font-weight: 600;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}


.event-item-sidebar p.resume-event:nth-of-type(3) {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 6px;
    font-style: italic;
    transition: color 0.2s;
}



.event-item-sidebar:hover p,
.event-item-sidebar:hover strong,
.event-item-sidebar:hover span,
.event-item-sidebar:hover a,
.event-item-sidebar:hover i {
    color: #ffffff !important;
}

.event-item-sidebar:hover .event-item-time {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.add-event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modif-event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.add-event-popup-container {
    background-color: white;
    width: 90%;
    display: flex !important;
    flex-direction: column !important;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-height: 75vh !important;
}

.add-event-popup-header {
    color: #333;
    padding: 24px;
    position: relative;
    flex-shrink: 0;
}

.add-event-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: inherit;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #000000;
}

.add-event-close-button:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d0d0d0;
}

.add-event-popup-body {
    padding: 24px;
    padding-bottom: 0;
}

.add-event-popup-body.scroller {
    flex: 1;
    overflow-y: auto;
    /* Active le scroll */
    overflow-x: hidden;
    min-height: 0;
    /* Important pour Firefox */
}

.add-event-form-field {
    margin-bottom: 20px;
}

.add-event-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.add-event-text-input,
.add-event-textarea-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.add-event-text-input:focus,
.add-event-textarea-input:focus {
    outline: none;
    border-color: #197dff;
}

.add-event-textarea-input {
    resize: vertical;
    min-height: 80px;
}

.add-event-datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.add-event-required-asterisk {
    color: #e74c3c;
}

.add-event-popup-footer {
    padding: 20px 24px;
    background: #f8f9fa;
    text-align: center;
}

.add-event-action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 6px;
}

.add-event-cancel-button {
    background: #e0e0e0;
    color: #333;
}

.add-event-cancel-button:hover {
    background: #d0d0d0;
}

.add-event-submit-button {
    background: #197dff;
    color: white;
}

.add-event-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 125, 255, 0.5);
}




@media (max-width: 768px) {

    .popup-flex-wrapper {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        overflow: hidden;
    }

    .popup-left-panel {
        width: 100%;

        height: 26vh !important;
        min-height: 200px;
        max-height: none;
        padding: 15px;
        flex-shrink: 0;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .popup-left-panel h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .add-event-popup-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;

        overflow: hidden;

        box-shadow: none;
        border-radius: 0 0 10px 10px;
        min-height: 0;
    }

    .add-event-popup-body.scroller {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        height: auto;
        max-height: none;
    }

    .add-event-popup-footer {
        flex-shrink: 0;
        background-color: white;
        border-top: 1px solid #eee;
    }

    .add-event-datetime-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .add-event-popup-header {
        padding: 15px;
    }

    .add-event-popup-title {
        font-size: 1.2rem;
    }

    .add-event-close-button {
        top: 10px;
        right: 10px;
    }
}

/*---------------------------inviter un aidant------------------------------------*/

.header-inv-aid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/*_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Coffre-fort _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_*/

.page-title {
    font-size: larger;
    margin-bottom: 10px;
}

.searchbar {
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.4);
    background-color: rgba(171, 171, 171, 0.2);
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-search {
    width: 90%;
    background-color: #f5f5f5;
    color: #242424;
    padding: .15rem .5rem;
    min-height: 40px;
    border-radius: 4px;
    outline: none;
    border: none;
    line-height: 1.15;
    box-shadow: 0px 10px 20px -18px;
    width: 100%;
    flex: 1;
}

.input-search:focus {
    border-bottom: 2px solid #197dff;
    border-radius: 4px 2px;
}

.input-search:hover {
    outline: 1px solid lightgrey;
}

.search-icon {
    border: none;
    background-color: rgba(144, 144, 144, 0.4);
    border-radius: 5px;
    min-height: 40px;
    min-width: 40px;
    margin-left: 1%;
}

.ajouter-doc-coffre {
    all: unset;
    border: 1px solid black;

}

.custum-file-upload {
    height: 100px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: space-around;
    gap: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: 2px dashed black;
    background-color: rgba(53, 191, 255, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0px 48px 35px -48px black;
    flex: 0 0 100px;
    transition: all 0.3s ease;

}

.custum-file-upload .icon {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custum-file-upload .icon svg {
    height: 30px;
    fill: black;
}

.custum-file-upload .text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: smaller;
    text-align: center;
}

.custum-file-upload .text span {
    font-weight: 100;
    color: black;
}

.custum-file-upload input {
    display: none;
}

.custum-file-upload.drag-active {
    border-color: #0056b3 !important;
    background-color: #e7f3ff !important;
    transform: scale(1.05) !important;
}


.wrapper-sb-coffre {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.last-docs-card {
    margin-top: 18px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.18);
    border: 1px solid rgba(25, 125, 255, 0.2);
}

.last-docs-card h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #242424;
}

.last-docs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cf-empty {
    text-align: center;
    margin-top: 10px;
    color: var(--c-muted);
    font-weight: 600;
}

.last-docs-table th,
.last-docs-table td {
    text-align: left;
    padding: 12px 10px;
    vertical-align: middle;
    font-size: 14px;
    color: #242424;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-docs-table thead th {
    font-weight: 700;
    border-bottom: 1px solid rgba(25, 125, 255, 0.2);
}

.last-docs-table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.last-docs-table tbody tr:hover {
    background: rgba(25, 125, 255, 0.1);
}

.last-docs-table td:first-child {
    color: #197dff;
}

.download-button-coffre-fort {
    width: 17%;
}

.btn-modifier-cf {
    all: unset;
    border: solid 1px var(--c-border);
    background-color: var(--c-accent);
    padding: 8px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.delete-button-coffre-fort {
    all: unset;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.coffre-trie {
    color: var(--c-text-2);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.coffre-trie i {
    font-size: 0.75rem;
    opacity: 0.6;
    color: var(--c-muted);
}

.coffre-trie:hover {
    background-color: var(--c-surface-2);
    color: var(--c-text);
}

.coffre-trie:focus {
    outline: 2px solid var(--c-border-accent);
    outline-offset: 2px;
}

.coffre-trie.active {
    background-color: var(--c-accent-soft);
    color: var(--c-accent);
    font-weight: 600;
}

.coffre-trie.active i {
    opacity: 1;
    color: var(--c-accent);
}

/*-----------------------------------BURGER MENU----------------------------------- */

.doc-actions-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--c-border-accent);
    background: var(--c-surface);
    color: var(--c-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.doc-actions-menu[open] .doc-actions-btn {
    background: var(--c-accent-soft-2);
}

.doc-actions-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 90px;

    background: var(--c-surface);
    border: 1px solid var(--c-border-accent);
    border-radius: 12px;
    box-shadow: var(--shadow-pop);
    padding: 8px;
    z-index: 60;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-actions-panel form {
    margin: 0;
}


.doc-action-item {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 80px;
    padding: 10px 12px;
    border-radius: 10px;

    background: var(--c-surface-2);
    color: var(--c-text);
    border: 1px solid transparent;
    text-decoration: none;
}

a.doc-action-item {
    text-decoration: none;
}

.doc-action-item:hover {
    background: var(--c-accent-soft-2);
    border-color: var(--c-border-accent);
}

.actions-menu-col {
    display: none;
}

.last-docs-table th,
.last-docs-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-docs-table th.actions-menu-col,
.last-docs-table td.actions-menu-col {
    overflow: visible;
    position: relative;
}

.doc-actions-panel {
    z-index: 999;
}

.last-docs-table td:nth-child(1) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 768px) {

    .last-docs-card {
        overflow: visible;
    }

    .last-docs-table {
        width: 100%;
        table-layout: fixed;
    }

    .last-docs-table th,
    .last-docs-table td {
        font-size: 11px;
        padding: 8px 6px;
    }

    .last-docs-table th:nth-child(6),
    .last-docs-table td:nth-child(6),
    .last-docs-table th:nth-child(7),
    .last-docs-table td:nth-child(7),
    .last-docs-table th:nth-child(8),
    .last-docs-table td:nth-child(8) {
        display: none;
    }

    .last-docs-table th.actions-menu-col,
    .last-docs-table td.actions-menu-col {
        display: table-cell;
        width: 44px;
        text-align: right;
    }

    .last-docs-table th:nth-child(1),
    .last-docs-table td:nth-child(1) {
        width: calc((100% - 44px) * 0.24);
    }

    .last-docs-table th:nth-child(2),
    .last-docs-table td:nth-child(2) {
        width: calc((100% - 44px) * 0.14);
    }

    .last-docs-table th:nth-child(3),
    .last-docs-table td:nth-child(3) {
        width: calc((100% - 44px) * 0.28);
    }

    .last-docs-table th:nth-child(4),
    .last-docs-table td:nth-child(4),    
    .last-docs-table th:nth-child(5),
    .last-docs-table td:nth-child(5) {
        width: calc((100% - 44px) * 0.17);
    }

    .last-docs-table td:nth-child(3) a {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .doc-actions-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}

/*--------------------------Home/tableau de bord----------------------------------*/
.link-formated {
    background: none;
    border: none;
    color: #197dff;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
    text-align: left;
}

.link-cgu {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    color: #061A40;
}

.page-title {
    border-bottom: 2px solid #0c63d4;
}

.personneAidee {
    padding: 1em;
    box-sizing: border-box;
}

.selectPersonneAidee {
    background-color: white;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.4);
    text-decoration: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1em;
    border: 1.5px solid black;
    border-radius: 8px;
    width: 12em;
    height: 4em;
    color: black;
    transition: 0.5s;
}

.selectPersonneAidee.aideeActif {
    border: 1.5px solid #197dff;
    box-shadow: 5px 5px 2px 1px #197dff;
    transition: 0.5s;
    background-color: #f0f8ff;
}


.selectPersonneAidee:hover {
    border: 1.5px solid #197dff;
    box-shadow: 5px 5px 2px 1px #197dff;
    transition: 0.5s;
}

html[data-theme="dark"] .selectPersonneAidee.aideeActif {
    background-color: var(--c-accent-soft);
    border-color: var(--c-accent);
    box-shadow: 5px 5px 2px 1px var(--c-accent);
}

.listeAidees {
    margin-bottom: 10px;
    flex-direction: row;
    display: flex;
    gap: 1em;
    align-items: center;

}

.listeAidees.scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable;
    white-space: nowrap;
    padding-bottom: 16px;
    box-sizing: border-box;
}

.listeAidees>form,
.listeAidees>a {
    flex: 0 0 auto;
}



#addAidee {
    border: 1.5px grey dotted;
    justify-content: center;
    width: 3em;
    height: 3em;
    color: grey;
    text-align: center;
}

#addAidee:hover {
    border: 2px #197dff dotted;
}

.aideeInfos {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

.nameContainer {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.img {
    display: block;
    width: 3em;
    height: 3em;
    object-fit: cover;
    border-radius: 10px;
}

.nom {
    color: grey;
}

.infoUser {
    padding: 1em;
    color: white;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(25, 125, 255, 1) 0%, rgba(135, 187, 255, 1) 50%);
    box-shadow: 0 4px 15px rgba(25, 125, 255, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.actionUtilisateur {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
    margin: 25px 0;
}

.actionUtilisateurClick {
    background-color: white;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.4);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: black;
    transition: 0.5s;
    width: 100%;
    min-height: 90px;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 8px;
    text-align: center;
}

.actionUtilisateurClick:hover {
    box-shadow: 5px 5px 2px 1px #197dff;
    transition: 0.5s;
}

.actionUtilisateurSpan {
    padding-top: 0.5em;
    text-align: center;
    font-size: 0.95rem;
}

.basHomePage {
    display: flex;
    gap: 15px;
}

.basHomePage>section {
    background-color: var(--c-surface);
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.4);
    border-radius: 8px;
    padding: 1em;
    width: 50%;
}

.basHomePage header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listeEvenements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unEvenement {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.unEvenement:hover {
    background-color: #f8f9fa;
}

.dateUnEvenement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-width: 60px;
    height: 60px;

    background-color: rgba(25, 125, 255, 0.1);
    color: #197dff;
    border-radius: 10px;
    flex-shrink: 0;
    font-weight: bold;
    line-height: 1.1;
}

.dateUnEvenement .jour {
    font-size: 1.4rem;
}

.dateUnEvenement .mois {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.resumeUnEvenement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.resumeUnEvenement strong {
    font-size: 1rem;
    color: #333;
    display: block;
}

.heureEtLieu {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.heureEtLieu i {
    color: #197dff;
}

.suiviTraitements {
    margin: 1em;
}



/* --------------Calendrier--------------- */

.calendar {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2em;
}

.calendar-header {
    width: 100%;
    height: 80px;
    background-color: #197dff;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#cld {
    width: 80vw;
    height: 88vh;
    background-color: #FFFFFF;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(25, 125, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
}


#cldT,
#weekTitle {
    color: white;
    margin: 0;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-header button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    width: 50%;
}


#cldT {
    width: 100%;
    height: 60%;
    color: white;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
}

#avantEtApres {
    display: flex;
    gap: 10px;
    align-items: center;
}

#enteteCld button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: Poppins, sans-serif;
}

#enteteCld button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.cldBtn {
    width: 50%;
    height: 100%;
    border: none;
    background-color: #197dff;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.cldBtn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


#cldBoite {
    width: 100%;
    flex: 1;

    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

#jour {
    width: 100%;
    height: 30px;
    display: flex;
    border-bottom: 1px solid rgba(25, 125, 255, 0.2);
    margin-bottom: 5px;
}

.jour {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #197dff;
    font-weight: bold;
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
    font-size: 14px;


}

.jour:last-child {
    border-right: none;
}


.semaine {
    width: 100%;
    flex: 1;
    display: flex;
    border-bottom: 1px solid rgba(25, 125, 255, 0.2);
}

.semaine:last-child {
    border-bottom: none;
}

.case:last-child {
    border-right: none;
}

.case:hover {
    background-color: rgba(25, 125, 255, 0.1);
    color: #197dff;
}

.case {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    transition: 0.1s;
    color: #333333;
    margin: 2px;
    font-size: 18px;
    font-family: Poppins, sans-serif;
    cursor: pointer;
    border-radius: 4px;
    border-right: 1px solid rgba(25, 125, 255, 0.2);
    gap: 5px;
    padding-bottom: 10px;

}

.calendar-day-today {
    background-color: #007bff1a;
    color: #007bff;
    font-weight: bold;

}

.unEvenementPart {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    margin: 2px auto;
    padding: 4px 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 245, 255, 0.9) 100%);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    border-left: 4px solid #197dff;
    box-shadow: 0 2px 4px rgba(25, 125, 255, 0.15);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.unEvenementPart:hover {
    transform: translateY(-2px) scale(1.02);

    background: #197dff;
    border-left-color: #197dff;
    color: white !important;

    box-shadow: 0 8px 20px rgba(25, 125, 255, 0.4);
    z-index: 5;
}

.autresEvent {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 2px auto;
    padding: 2px 5px;

    background-color: transparent;
    border-radius: 6px;
    border: 1px solid rgba(25, 125, 255, 0.3);

    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
    color: #64748b;

    cursor: pointer;
    transition: all 0.2s;
}

.autresEvent:hover {
    background-color: #197dff;
    border-color: #197dff;
    color: white;
    transform: translateY(-1px);
}

.caseSansEvent {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    width: 100%;
    height: auto;
    margin: 0;
    padding: 5px;
}


.listeEvenementPers {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

/* AGENDA EN MODE SEMAINE */

#weekView {
    width: 80vw;
    height: 94vh;
    background-color: #FFFFFF;
    box-shadow: 5px 5px 2px 1px rgba(144, 144, 144, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(25, 125, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
}

#weekTitle {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-family: Poppins, sans-serif;
}

.currDayWeek {
    background-color: #197dff;
    color: white !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(25, 125, 255, 0.4);
    margin: 0 auto;
}

.week-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.week-header button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: Poppins, sans-serif;
}

.week-header button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.week-grid {
    display: flex;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    background-color: var(--c-surface-2);
}

.time-col {
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    width: 80px;
    min-width: 80px;
    flex-shrink: 0;
    background-color: var(--c-surface);
    border-right: 1px solid rgba(25, 125, 255, 0.2)
}

.time-spacer {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: var(--c-surface);
    height: 80px;
    min-height: 80px;
    border-bottom: 1px solid rgba(25, 125, 255, 0.2);
    box-sizing: border-box;
}

.time-label {
    height: 80px;
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background-color: var(--c-surface);
    color: var(--c-accent);
    font-weight: 700;
    color: var(--c-text);
}

#weekView .week-grid {
    align-items: flex-start;
}

.time-label:first-child {
    border-top: 1px solid rgba(25, 125, 255, 0.2)
}

.days-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-col {
    border-right: 1px solid rgba(25, 125, 255, 0.2);
    display: flex;
    flex-direction: column;
}


.day-col:last-child {
    border-right: none;
}

.day-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #fafafa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--c-surface);
    box-sizing: border-box;
    border-bottom: 1px solid rgba(25, 125, 255, 0.2);
    padding: 10px;
}


.day-name {
    font-size: 12px;
    color: #197dff;
    font-weight: bold;
    text-transform: uppercase;
    font-family: Poppins, sans-serif;
}

.day-num {
    font-size: 20px;
    font-weight: bold;
    color: var(--c-accent-2);
    margin-top: 5px;
    font-family: Poppins, sans-serif;
}

.calendar-day-today .day-num {
    background-color: #197dff;
    color: white !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(25, 125, 255, 0.4);
    margin: 0;
}


.events-area {
    position: relative;
    height: 1920px;
    width: 100%;
}

.week-event {
    position: absolute;
    z-index: 10;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 245, 255, 0.9) 100%);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(25, 125, 255, 0.15);
    border-left: 4px solid #197dff;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 4px 12px rgba(25, 125, 255, 0.08);
    font-family: 'Poppins', sans-serif;
    color: #334155;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}


.week-event:hover {
    transform: translateY(-2px) scale(1.01);
    background: #197dff;
    border-color: #197dff;
    color: white;
    box-shadow: 0 8px 20px rgba(25, 125, 255, 0.4);
    z-index: 20;
}

.week-event .event-time {
    font-size: 11px;
    font-weight: 700;
    color: #197dff;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.week-event .event-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    overflow: hidden;
    transition: color 0.2s;
}

.week-event .event-location {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.week-event:hover .event-time,
.week-event:hover .event-title,
.week-event:hover .event-location {
    color: #ffffff !important;
}

.week-event:hover .event-location i {
    color: #ffffff !important;
}


.hour-slot {
    height: 80px;
    border-bottom: 1px solid rgba(25, 125, 255, 0.3);
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hour-slot:hover {
    transition: background-color 0.2s ease;
    background-color: var(--c-accent-soft);
}

.hidden {
    display: none !important;
}

.scroller {
    overflow-y: auto;
    scrollbar-color: #197dff var(--c-surface);
}

#aidantSelectId {
    padding: 10px 14px;
    background-color: var(--c-surface-3);
    border: var(--c-border-strong) 1px solid;
    color: var(--c-text);
    border-radius: 6px;
}


@media(max-width:1336px) {

    #cld,
    #weekView {
        width: 76vw;
        height: 81vh;
        transition: 0.5s ease;
    }
}

@media(max-width:984px) {

    #cld,
    #weekView {
        width: 66vw;
        height: 77vh;
        transition: 0.5s ease;
    }

    .calendar-header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 10px;
        transition: 0.5s ease;
    }

    .calendar-header button {
        padding: 5px 10px;
        font-size: 0.9rem;
        width: 100%;
    }
}

@media(max-width:768px) {

    #cld,
    #weekView {
        width: 86vw;
        height: 78vh;
        border: none;
        transition: 0.5s ease;
    }

    #weekTitle {
        font-size: medium;
        text-align: center;
    }

    .calendar-header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 10px;
        transition: 0.5s ease;
    }

    .header-center {
        order: -1;
        flex: 1 1 100%;
        margin-bottom: 5px;
    }

    .header-left,
    .header-right {
        flex: 1;
        justify-content: center;
    }

    .week-grid {
        overflow-x: auto;
    }


    #todayBtnMonth,
    #todayBtnWeek {
        font-size: 0.8rem;
    }

    .calendar-header button {
        padding: 5px 10px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/*
Gestion des récurrences
*/

.add-recurrence-event {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    background-color: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.add-recurrence-event .popup-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-muted);
    margin-bottom: 8px;
    display: block;
    width: 100%;
}

.add-recurrence-event-btn,
.add-recurrence-event-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 15px;
    margin-bottom: 5px;
}

.add-recurrence-event-btn label,
.add-recurrence-event-type label {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    margin-right: 8px;
    cursor: pointer;
    user-select: none;
}

.add-recurrence-event input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--c-border-strong);
    border-radius: 50%;
    margin: 0;
    margin-right: 35px;
    cursor: pointer;
    background-color: var(--c-surface);
    display: grid;
    place-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-recurrence-event input[type="radio"]::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s transform cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

.add-recurrence-event input[type="radio"]:hover {
    border-color: var(--c-accent);
    background-color: var(--c-accent-soft-2);
}

.add-recurrence-event input[type="radio"]:checked {
    background-color: var(--c-accent);
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.add-recurrence-event input[type="radio"]:checked::before {
    transform: scale(1);
}

.add-recurrence-event-number {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed var(--c-border);
}

.add-recurrence-event-number input[type="number"] {
    width: 160px;
    padding: 12px 12px;
    border: 2px solid var(--c-border-strong);
    border-radius: 8px;
    background: var(--c-surface);
    color: var(--c-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    text-align: center;
    transition: all 0.2s;
}

.add-recurrence-event-number input[type="number"]:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px var(--c-accent-soft);
    transform: translateY(-2px);
}

.add-recurrence-all {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-direction: column;
}

.add-recurrence-event:has(input[value="oui"]:checked) .add-recurrence-all {
    display: flex;
    animation: fadeInSlide 0.3s forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-red {
    color: red;
}

.icon-green {
    color: green;
}

.icon-lightblue {
    color: lightskyblue;
}

.icon-purple {
    color: #7c3aed;
}

.alert-error {
    background-color: #ffe6e6;
    color: #d63031;
    border: 1px solid #fab1a0;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.alert-error strong {
    display: block;
    margin-bottom: 5px;
}

.alert-error ul {
    margin-top: 5px;
    padding-left: 20px;
    margin-bottom: 0;
}

.alert-error li {
    margin-bottom: 3px;
}

.alert-box {
    background-color: var(--c-danger-soft);
    color: var(--c-danger);
    border: var(--c-danger-border);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

/*--------------------------CGU----------------------------------*/

.body-cgu {
    padding: 0 50px;
}

.main-cgu {
    padding: 30px 50px;
    margin: 20px;
    border-radius: 20px;
    background-color: rgba(25, 125, 255, 0.3);
}

.btn-retour-cgu {
    color: var(--c-accent);
    text-decoration: none;
    padding: 20px;
    font-size: larger;
    font-weight: bold;
}

.main-cgu h1 {
    color: var(--c-accent);
}

.main-cgu h2 {
    color: var(--c-text);
}

/*------------------------Modifier compte aidant -------------------------------*/
.container_forms_modify {
    width: min(820px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.form1_modify {
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}


.input_de_la_pp::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.input_de_la_pp::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 18%, transparent);
    filter: brightness(1.03);
}

.input_de_la_pp::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.photo_et_label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pp-label {
    width: 150px;
    height: 150px;
    border-radius: 9999px;
    overflow: hidden;
    cursor: pointer;
    display: grid;
    place-items: center;
    border: 2px solid var(--border);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pp-label:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 60%, transparent);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 18%, transparent);
}

.pp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.input_de_la_pp {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: color-mix(in srgb, var(--primary) 7%, transparent);
    color: var(--text);
}

.input_de_la_pp:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.form2_modify {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form2_modify label {
    font-size: .9rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--text) 85%, transparent);
    margin-top: 10px;
}

.form2_modify label:first-of-type {
    margin-top: 0;
}

.form2_modify input {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form2_modify input::placeholder {
    color: var(--muted);
}

.form2_modify input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.form2_modify label[for="email"],
.form2_modify #email {
    grid-column: 1 / -1;
}


.form2_modify .bouton_bleu {
    width: 100%;
    margin-top: 14px;
    border-radius: 10px;
}

.form2_modify .bouton_bleu:hover {
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 18%, transparent);
}

@media (max-width: 860px) {
    .container_forms_modify {
        grid-template-columns: 1fr;
    }

    .form2_modify {
        grid-template-columns: 1fr;
    }

    .form2_modify label,
    .form2_modify input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .container_forms_modify {
        gap: 14px;
    }

    .form1_modify,
    .form2_modify {
        padding: 14px;
        border-radius: 12px;
    }

    .pp-label {
        width: 132px;
        height: 132px;
    }
}

/*--------------------------Feuille d'urgence----------------------------------*/


/* --- Header et Navigation --- */



.header-urgence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.retour-home {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.retour-home:hover {
    color: #333;
}

/* Bouton Imprimer */
.btn-print {
    background-color: #d63031;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.btn-print:hover {
    background-color: #b71c1c;
}

.section-urgence {
    background: var(--c-surface);
    border-left: 5px solid #d63031;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-title-u {
    color: #d63031;
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

/* --- Variantes de couleurs (Modificateurs) --- */

.section-urgence.blue {
    background: #f0f8ff;
    border-left-color: #0984e3;
}

.section-urgence.blue .section-title-u {
    color: #0984e3;
}

.section-urgence.green {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #2ecc71;
}

.section-urgence.green .section-title-u {
    color: #27ae60;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    margin-bottom: 10px;
}

.info-item label {
    font-weight: bold;
    color: #555;
    display: block;
    font-size: 0.9em;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1.1em;
    color: #222;
}

.important-txt {
    color: #d63031;
}

.icon-red {
    color: red;
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean li {
    padding: 8px 0;
    border-bottom: 1px solid #e1e1e1;
}

.list-clean li:last-child {
    border-bottom: none;
}

.urgence-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.urgence-table thead {
    background: #f5f5f5;
}

.urgence-table th,
.urgence-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.urgence-table th {
    font-weight: 600;
    color: #444;
}

@media print {

    .menu-nav,
    .btn-print,
    .retour-home,
    header,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-family: Arial, sans-serif;
        font-size: 12pt;
    }

    .container {
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    h1 {
        font-size: 24pt;
        color: black;
        border-bottom: 2px solid black;
        margin-bottom: 20px;
    }

    .section-urgence {
        break-inside: avoid;
        border: 1px solid #ccc;
        border-left-width: 5px;
        background: white;
        box-shadow: none;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .header-urgence {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/*◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘ VERSION MOBILE ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘*/

@media (max-width: 600px) {
    .actionUtilisateur {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .actionUtilisateurClick {
        min-height: 78px;
        padding: 12px 8px;
    }

    .actionUtilisateurSpan {
        font-size: 0.85rem;
    }


    .actionUtilisateurClick i {
        font-size: 1.5em;
    }
}

@media (max-width: 1000px) {
    .actionUtilisateur {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}


@media (max-width: 768px) {
    .body-cgu {
        padding: 0 10px;
    }

    .contact-layout {
        margin: 18px auto;
        padding: 0 6px 28px;
    }

    .pageTitle {
        font-size: 24px;
    }

    .FAQ .q {
        padding: 12px 12px;
    }

    .wrapper {
        padding: 0 12px calc(90px + env(safe-area-inset-bottom)) 12px;
    }
}

@media (max-width: 768px) {

    :root {
        --mobile-nav-bottom-offset: 12px;
        --mobile-nav-height: 86px;
        --mobile-nav-extra: 12px;
    }

    .wrapper {
        padding: 0 12px calc(var(--mobile-nav-height) + var(--mobile-nav-bottom-offset) + var(--mobile-nav-extra) + env(safe-area-inset-bottom)) 12px;
    }

    main {
        padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-bottom-offset) + var(--mobile-nav-extra) + env(safe-area-inset-bottom));
    }

}


@media (max-width: 768px) {
    .custum-file-upload {
        display: none;
    }
}



/*◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘ VERSION SOMBRE ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘*/




/*-------------------------- Texte --------------------------*/
.land_body {
    color: var(--c-text);
}

.hero-section h2 {
    color: var(--c-text);
}

.hero-section p {
    color: var(--c-muted);
}

.feature-card p,
.about-section p,
.subtitle,
.help-text,
.heureEtLieu,
footer,
.popup-label {
    color: var(--c-muted);
}

.popup-title,
.popup-close,
.add-event-field-label,
.resumeUnEvenement strong,
.last-docs-card h2,
.last-docs-table th,
.last-docs-table td,
.form-label-pop,
.form-group label,
.section-title-u,
.info-item label,
.info-item span {
    color: var(--c-text);
}

/*-------------------------- Couleurs globales --------------------------*/
.feature-card,
.about-section,
.popup-container,
.add-event-popup-container,
.add-event-popup-title,
.container,
.last-docs-card,
.selectPersonneAidee,
.actionUtilisateurClick,
.listeProchainEvent,
#cld,
#cldBoite,
.add-event-popup-footer {
    background: var(--c-surface);
    color: var(--c-text);
}

.add-event-popup-footer {
    background: var(--c-surface-2);
}

/*-------------------------- Borders --------------------------*/
.land_header {
    border-bottom-color: var(--c-border-accent);
}

footer {
    border-top-color: var(--c-border-accent);
}

.popup-header {
    border-bottom-color: var(--c-border);
}

.last-docs-card {
    border-color: var(--c-border-accent);
}

.last-docs-table thead th {
    border-bottom-color: var(--c-border-accent);
}

.last-docs-table tbody td {
    border-bottom-color: var(--c-border);
}

/*-------------------------- Inputs --------------------------*/
.form-account input,
.form-input-pop,
.form-textarea-pop,
.add-event-text-input,
.add-event-textarea-input,
.input-search,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    background: var(--c-surface-3);
    color: var(--c-text);
    border-color: var(--c-border-strong);
}

.form-account input:focus,
.form-input-pop:focus,
.form-textarea-pop:focus,
.add-event-text-input:focus,
.add-event-textarea-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-accent);
}

/*-------------------------- Coffre-fort --------------------------*/

.upload-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.upload-loader-content {
    text-align: center;
    color: white;
}

.upload-loader-spinner {
    font-size: 4rem;
    color: var(--c-accent);
    animation: fa-spin 1s linear infinite;
    margin-bottom: 1rem;
}

.searchbar {
    background-color: var(--c-surface-2);
    box-shadow: var(--shadow);
}

.search-icon {
    background-color: var(--c-surface-2);
}

.custum-file-upload {
    border-color: var(--c-import);
    box-shadow: var(--shadow-soft);
}

.custum-file-upload .icon svg {
    fill: var(--c-text);
}

.custum-file-upload .text span {
    color: var(--c-text);
}

.selectPersonneAidee {
    background-color: var(--c-surface);
    color: var(--c-text);
    border-color: var(--c-outline);
    box-shadow: var(--shadow);
}

.actionUtilisateurClick,
.listeProchainEvent {
    box-shadow: var(--shadow);
}

.unEvenement:hover {
    background-color: var(--c-surface-2);
}

.dateUnEvenement {
    background-color: var(--c-accent-soft);
}

.heureEtLieu i {
    color: var(--c-accent);
}

.event-item-sidebar {
    background-color: var(--c-surface);
    box-shadow: var(--shadow-soft);
}

.event-item-time {
    background-color: var(--c-accent-soft-2);
    color: var(--c-text);
}

.event-item-sidebar p.resume-event:nth-of-type(1) {
    color: var(--c-text);
}

.resume-event-locate {
    color: var(--c-accent);
    text-decoration: underline;
}

.event-item-sidebar p.resume-event:nth-of-type(3) {
    color: var(--c-muted);
    border-top-color: var(--c-border);
}

.detection-success {
    display: block;
    margin-top: 0.5rem;
    color: #2ecc71;
    font-size: 0.85em;
    font-style: italic;
}

.documentSelect {
    padding: 10px 14px;
    background-color: var(--c-surface-3);
    border: var(--c-border-strong) 1px solid;
    color: var(--c-text);
    border-radius: 6px;
}

/*-------------------------- Calendrier --------------------------*/
#cld {
    background-color: var(--c-surface);
    box-shadow: var(--shadow);
}

#cldBoite {
    background-color: var(--c-surface);
}

#jour {
    border-bottom-color: var(--c-border-accent);
}

.jour {
    border-right-color: var(--c-border);
}

.semaine {
    border-bottom-color: var(--c-border-accent);
}

.case {
    color: var(--c-text);
    border-right-color: var(--c-border-accent);
}

.case:hover {
    background-color: var(--c-accent-soft);
}

.unEvenementPart {
    background-color: var(--c-surface-2);
    box-shadow: var(--shadow-soft);
}

.alert-error {
    background-color: var(--c-danger-soft);
    color: var(--c-danger);
    border-color: var(--c-danger-border);
}

.section-urgence {
    background: var(--c-danger-soft);
    border-left-color: var(--c-danger);
}

.section-urgence.blue {
    background: var(--c-accent-soft-2);
    border-left-color: var(--c-accent);
}

.section-urgence.green {
    background: var(--c-surface);
    border-color: var(--c-border);
}

.FAQ>p {
    border-top-color: var(--c-border);
}

.feature-card,
.about-section,
.last-docs-card,
.actionUtilisateurClick,
.listeProchainEvent,
#cld {
    box-shadow: var(--shadow-soft);
}

.popup-container {
    box-shadow: var(--shadow-pop);
}

.add-event-popup-container,
.container {
    box-shadow: var(--shadow);
}

/* -------------------------- BOUTTON CHANGEMENT DE THEME -------------------------- */
.ui-switch {
    --switch-bg: var(--c-border-strong, rgb(135, 150, 165));
    --switch-width: 48px;
    --switch-height: 20px;

    --circle-diameter: 32px;
    --circle-bg: var(--c-accent, rgb(0, 56, 146));
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
    display: none;
}

.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.slider .circle {
    top: calc(var(--circle-inset) * -1);
    left: 0;
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    position: absolute;
    background: var(--circle-bg);
    border-radius: inherit;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
    background-repeat: no-repeat;
    background-position: center center;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.slider .circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: inherit;
    transition: all 500ms;
    opacity: 0;
}

.ui-switch input:checked+.slider .circle {
    left: calc(100% - var(--circle-diameter));
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
}

.ui-switch input:active+.slider .circle::before {
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
}

/* -------------------------- page post-it -------------------------- */

#postit-board {
    position: relative;
    width: 100%;
    height: 80vh;
    background: var(--c-surface);
    overflow: auto;
}

.postit {
    position: absolute;
    width: 200px;
    padding: 15px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    cursor: move;
}

.postit-title {
    font-weight: bold;
    width: 100%;
    border: none;
    background: transparent;
    padding-right: 28px;

}

.postit-text {
    width: 100%;
    height: 100px;
    border: none;
    background: transparent;
    resize: none;
}

.btn-new-postit {
    all: unset;
    border: 1px solid var(--c-accent);
    border-radius: 6px;
    padding: 10px;
}

.colorPicker {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--c-accent);
    background: transparent;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}

.colorPicker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.colorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 9999px;
}

.form-container-postit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
}

.btn-suppr-postit {
    all: unset;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: red !important;
    line-height: 1;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
}

.btn-save-postit {
    border: none;
    padding: 6px;
    background-color: #fff;
    color: #000000;
    border-radius: 5px;
}


/* =========================
   FAB mobile (Coffre-fort)
   ========================= */

.doc-fab {
    display: none;
}

@media (max-width: 768px) {


    .doc-fab {
        display: block;
        position: fixed;
        right: 16px;
        bottom: calc(var(--mobile-nav-height, 86px) + var(--mobile-nav-bottom-offset, 12px) + env(safe-area-inset-bottom) + 14px);
        z-index: 960;
    }

    .doc-fab-main {
        width: 58px;
        height: 58px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, .10);
        background: var(--c-accent);
        color: #fff;
        box-shadow: var(--shadow);
        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        transition: transform .15s ease, background .15s ease;
    }

    .doc-fab-main:active {
        transform: scale(.97);
    }

    .doc-fab-main:hover {
        background: var(--c-accent-2);
    }

    .doc-fab-icon-plus,
    .doc-fab-icon-x {
        position: absolute;
        font-size: 20px;
        transition: opacity .15s ease, transform .15s ease;
    }

    .doc-fab-icon-x {
        opacity: 0;
        transform: rotate(-90deg) scale(.8);
    }

    .doc-fab-actions {
        position: absolute;
        right: 0;
        bottom: 72px;

        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-end;

        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .15s ease, transform .15s ease;
    }

    .doc-fab-action {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        border: 1px solid var(--c-border-accent);
        background: var(--c-surface);
        color: var(--c-accent);
        box-shadow: var(--shadow-soft);
        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        position: relative;
        transition: transform .15s ease, background .15s ease;
    }

    .doc-fab-action:hover {
        background: var(--c-accent-soft-2);
        transform: translateY(-1px);
    }

    .doc-fab-badge {
        position: absolute;
        right: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(6px);
        opacity: 0;

        white-space: nowrap;
        padding: 8px 10px;
        border-radius: 999px;

        background: var(--c-surface);
        color: var(--c-text);
        border: 1px solid var(--c-border-accent);
        box-shadow: var(--shadow-soft);

        font-size: 12px;
        font-weight: 800;

        transition: opacity .15s ease, transform .15s ease;
        pointer-events: none;
    }

    .doc-fab.doc-fab--open .doc-fab-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .doc-fab.doc-fab--open .doc-fab-badge {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    .doc-fab.doc-fab--open .doc-fab-icon-plus {
        opacity: 0;
        transform: rotate(90deg) scale(.8);
    }

    .doc-fab.doc-fab--open .doc-fab-icon-x {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    .upload-pulse {
        animation: uploadPulse 700ms ease-out 1;
        border-radius: 16px;
    }

    @keyframes uploadPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(25, 125, 255, .0);
        }

        40% {
            box-shadow: 0 0 0 10px rgba(25, 125, 255, .18);
        }

        100% {
            box-shadow: 0 0 0 18px rgba(25, 125, 255, .0);
        }
    }
}

nav.mobile-bottom-nav {
    display: none !important;
}