/*
Theme Name: Capdemat Evolution - Devoto
Author: Capdemat - Devoto
Description: Un thème secondaire de demonstration
Version: 4.0.1 2024-06-06
*/

@import "assets/css/header.css";
@import "assets/css/text.css";
@import "assets/css/forms.css";
@import "assets/css/button.css";
@import "assets/css/modal.css";

@import "assets/css/services.css";
@import "assets/css/entite.css";
@import "assets/css/individu.css";
@import "assets/css/discussion.css";
@import "assets/css/documents.css";
@import "assets/css/demandes.css";
@import "assets/css/recherche.css";


:root {
    /* Width */
    --max-desktop-width: 1320px;

    /* Colors */
    --cde-color-setting-1: #5985c4;
    --cde-color-setting-2: #232323;
    --danger-color: rgb(220,53,69);
    --success-color: #7ad18e;
    --primary-color: var(--cde-color-setting-1);
    --primary-color-lighter: color-mix(in srgb, var(--primary-color) 15%, rgb(255, 255, 255) 50%);
    --font-title: Lato;
    --font-body: Lato;
    --font-nav: Lato;
    --text-color: var(--cde-color-setting-2);

    /* border */
    --border-radius-10: 10px;

    /* Margin & gutters */
    --page-header-margin: 2rem;
    --box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.31);
    --box-shadow-light: 0px 0px 8px 0px rgba(0, 0, 0, 0.31);
    --box-shadow-inset: inset 0px 0px 13px 2px rgba(0, 0, 0, 0.31);

}

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

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    font-weight: normal;
    color: var(--text-color);
    font-family: var(--font-body) !important;
}

.alert {
    display: block;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-10);
    color: var(--primary-color);
}

.breadcrumb {
    background: none !important;
}

.d-none {
    display: none;
}

p {
    margin-bottom: 15px;
}

.container.tableau-de-bord > p:first-child {
    margin-top: 50px;
}

li a {
    color: inherit;
}

a:not(.action_button):hover {
    text-decoration: underline !important;
}

li a:hover, a.btn-primary:hover, a[href=\#], #ajouter-entite-bloc a, #entite-creation-options a {
    text-decoration: none !important;
}

a {
    color: var(--primary-color);
}

hr {
    height: 1px;
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}

.container {
    max-width: var(--max-desktop-width);
    margin: 0 auto;
    width: 100%;
}

:not(header) .container {
    padding: 0 2rem;
}

@media screen and (max-width: 1024px) {
    .container {
        max-width: 980px;
    }
}

main > *:not(#home-section) {
    max-width: var(--max-desktop-width);
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1320px) {
    main > *:not(#home-section) {
        padding: 0 1.5rem;
    }
}

.cde-bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.cde-bg-primary h1 {
    color: white;
}

section {
    margin-bottom: 75px;
}

.no-content {
    text-align: center;
}


#home-section {
    justify-content: center;
    padding: 2rem 0;
    column-gap: 75px;
    row-gap: 25px;
    flex-wrap: wrap;
}

#home-section figure {
    height: 250px;
}

#home-section figure img {
    height: 100% !important;
    width: auto;
}

#home-section p, #home-section h1 {
    width: 500px;
}

#home-section p {
    line-height: 1.4rem;
    text-align: justify;
}

#home-section h1 {
    text-align: left !important;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: var(--page-header-margin);
    text-align: left;
    box-shadow: 0px -3px 16px -9px rgba(0, 0, 0, 0.57);
    line-height: 1.7rem;
}

footer a {
    color: white; !important;
}


footer .container {
    max-width: var(--max-desktop-width);

    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 25px;
}

.text-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: #444;
    gap: 25px;
    margin: 2rem 0 !important;
}

.france-connect {
    text-align: center;
}

form#loginform {
    margin: 0 auto;
    max-width: 450px;
}

form#loginform p {
    margin: 0;
}

.fa-user {
    margin-right: 10px;
}

main.tableau-de-bord {
    margin-top: 3rem;
}

nav{
    font-family: var(--font-nav) !important;
}
main:has(form#mot_de_passe_oublie) {
    max-width: 450px;
    margin: 0 auto;
}

main:has(form#creer_compte),
form#creer_individu input,
form#creer_individu select,
.entite.modification input,
.entite.modification select {
    max-width: 800px;
    margin: 0 auto;
}

form#creer_individu {
    margin: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

form .actions {
    justify-content: flex-start;
}

form .actions input {
   margin: 0 !important;
}

.Toastify__toast-theme--colored.Toastify__toast--info {
    background-color: #5985c4 !important;
}

.highlighted {
    background-color: yellow;
}

.jconfirm.jconfirm-white .jconfirm-box, .jconfirm.jconfirm-light .jconfirm-box {
    width: fit-content;
}


@media screen and (max-width: 768px) {

    #home-section {
        padding: 1rem;
    }

    #home-section {
        width: 100% !important;
    }

    div.teleservices.unique > div {
        height: calc(250px / 1.5);
    }
}

@media screen and (max-width: 780px) {
    footer .container {
        flex-direction: column;
        justify-content: stretch;
    }

    footer .container .wp-block-social-links {
        justify-content: center;
    }

    #home-section p, #home-section h1 {
         width: 100% !important;
    }

}

@media screen and (max-device-width: 1100px) {
    footer .container div:last-child {
        flex-grow: 1;
    }

    footer .container .wp-block-social-links {
        justify-content: center;
    }
}

*:has( > span.badge) {
    position: relative;
    display: flex !important;
    gap: 0.6em;
    align-items: center;
}

#menu-tableau-de-bord a {
    position: relative;
}

span.badge {
    position: absolute;
    top: -7px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.25em 0.5em;
    border-radius: 50%;
    aspect-ratio: 1;
    height: 25px;
    width: 25px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 770px) {
    .info {
        display: grid !important;
        grid-template-columns: 3rem 1fr !important;
        padding: 0.5rem 1rem !important;
        box-shadow: none !important;
    }

    .info i {
        font-size: 2rem !important;
        grid-row: 1 / span 2;
    }

    .info span::before {
        content: none !important;
    }
}