
:root {
    --vert: #00533e;
    --vert-fonce: #004632;
    --vert-clair: #347e30;
    --orange: #ff8200;
    --texte: #075449;
    --gris: #647e8e;
    --fond: #fafbf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--fond);
    color: var(--texte);
}

/* BANNIÈRE */
.banniere {
    height: 142px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5.2%;
    isolation: isolate;
    background: var(--vert);
}

.photo-portail {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("assets/dist/img/porteil_uas2.PNG");
    background-position: center 58%;
    background-size: cover;
    background-repeat: no-repeat;
}

.voile-couleur {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0, 65, 46, .98) 0%,
        rgba(0, 75, 51, .90) 33%,
        rgba(0, 75, 51, .20) 49%,
        rgba(255, 139, 20, .35) 74%,
        rgba(255, 119, 0, .98) 100%
    );
}

.identite {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    border: 3px solid #f58216;
}

.texte-identite {
    color: white;
    text-shadow: 0 1px 3px #0005;
}

.texte-identite h1 {
    margin: 0;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 700;
}

.texte-identite h2 {
    margin: 3px 0 8px;
    font-size: 18px;
}

.texte-identite p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
}

.slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
    color: white;
    font-family: Georgia, serif;
    font-size: clamp(15px, 1.6vw, 22px);
    font-style: italic;
    text-align: center;
}

.trait-slogan {
    width: 65px;
    height: 3px;
    margin-top: 5px;
    border-radius: 50%;
    background: white;
    transform: rotate(-7deg);
}

/* NAVIGATION */
.navigation {
    min-height: 54px;
    padding: 0 3.5%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    background: white;
    box-shadow: 0 3px 12px #00000008;
}

.liens-navigation {
    display: flex;
    align-items: stretch;
    gap: 25px;
}

.liens-navigation a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    color: #526676;
    text-decoration: none;
    font-size: 13px;
}

.liens-navigation a.actif {
    color: var(--vert);
    font-weight: 700;
    border-bottom: 4px solid var(--orange);
}

.liens-navigation a.actif i {
    color: var(--vert-clair);
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #536779;
    font-size: 12px;
}

/* CONTENU PRINCIPAL */
.conteneur {
    width: 94%;
    max-width: 1600px;
    margin: 22px auto;
}

/* RECHERCHE */
.zone-recherche {
    min-height: 155px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 30px;
    border: 1px solid #f5d0a1;
    border-radius: 13px;
    background:
        radial-gradient(
            ellipse at left bottom,
            #dcebd6 0,
            transparent 23%
        ),
        radial-gradient(
            ellipse at right top,
            #ffe4c8 0,
            transparent 27%
        ),
        linear-gradient(110deg, #fff6eb, #fff);
    box-shadow: 0 3px 10px #0000000a;
}

.presentation-recherche {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.icone-recherche {
    position: relative;
    flex: 0 0 135px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.icone-recherche > .fa-file-alt {
    font-size: 70px;
}

.icone-recherche .loupe {
    position: absolute;
    right: 0;
    bottom: 2px;
    padding: 4px;
    color: var(--vert);
    background: #fff8ed;
    border-radius: 50%;
    font-size: 33px;
}

.description-recherche {
    min-width: 0;
}

.description-recherche h2 {
    margin: 0 0 8px;
    color: var(--vert);
    font-size: clamp(23px, 2.2vw, 32px);
}

.description-recherche h2 span {
    color: var(--orange);
}

.description-recherche p {
    max-width: 430px;
    margin: 0;
    color: var(--gris);
    font-size: 13px;
    line-height: 1.7;
}

.form-recherche {
    display: flex;
    align-items: stretch;
    gap: 15px;
    flex: 1.15;
    min-width: 0;
}

.champ {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7eaee;
    border-radius: 10px;
    background: white;
}

.champ > i {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #647789;
    background: #f7f8f8;
    border-right: 1px solid #e8ecee;
}

.champ input {
    width: 100%;
    min-width: 0;
    padding: 16px 13px;
    border: 0;
    outline: 0;
    color: var(--texte);
    font-size: 13px;
}

.champ:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #ff820018;
}

.form-recherche button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border: 0;
    border-radius: 9px;
    background: var(--orange);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.form-recherche button:hover {
    background: #e97100;
}

/* CARTE DES DÉTAILS */
.carte-details {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #e4eee6;
    border-radius: 14px;
    background: white;
    box-shadow: 0 4px 15px #143f2c12;
}

.entete-details {
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 24px;
    color: white;
    background: linear-gradient(100deg, #00543e, #43832f);
}

.entete-details h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 17px;
}

.entete-details h2 i {
    font-size: 25px;
}

.statut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 30px;
    background: #17b86a;
    color: white;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.corps-details {
    padding: 18px 22px;
}

.grille-informations {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.colonne {
    min-width: 0;
}

.colonne + .colonne {
    padding-left: 20px;
    border-left: 1px solid #e9efec;
}

.information {
    min-height: 67px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 0;
}

.icone-info {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: #fff4e6;
    color: var(--orange);
    font-size: 18px;
}

.information > div:last-child {
    min-width: 0;
}

.information label {
    display: block;
    margin-bottom: 6px;
    color: var(--gris);
    font-size: 12px;
}

.information p {
    margin: 0;
    color: var(--texte);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.note-officielle {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #eaf4ed;
    color: #176653;
    font-size: 11px;
    line-height: 1.6;
}

.note-officielle i {
    margin-top: 2px;
}

/* PIED DE PAGE */
.pied-page {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 85px;
    padding: 15px 3.5%;
    overflow: hidden;
    color: white;
    background: linear-gradient(100deg, #004c38, #00533d);
}

.pied-identite {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pied-identite img {
    width: 52px;
    height: 52px;
    padding: 2px;
    border-radius: 50%;
    background: white;
    object-fit: contain;
}

.pied-identite div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}

.pied-identite span {
    color: #d4e4db;
}

.devise-pied {
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.liens-pied {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 11px;
}

.liens-pied a {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .zone-recherche {
        flex-direction: column;
        align-items: stretch;
    }

    .form-recherche {
        width: 100%;
    }

    .date-navigation {
        display: none;
    }
}

@media (max-width: 700px) {
    .banniere {
        height: 115px;
        padding: 10px 14px;
    }

    .photo-portail {
        background-position: center;
    }

    .logo {
        width: 62px;
        height: 62px;
    }

    .identite {
        gap: 10px;
    }

    .texte-identite h1 {
        font-size: 17px;
    }

    .texte-identite h2 {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .texte-identite p {
        font-size: 10px;
    }

    .slogan {
        display: none;
    }

    .navigation {
        padding: 0 10px;
    }

    .liens-navigation {
        gap: 5px;
    }

    .liens-navigation a {
        padding: 0 8px;
        font-size: 11px;
    }

    .conteneur {
        width: 95%;
        margin: 14px auto;
    }

    .zone-recherche {
        padding: 18px;
        gap: 18px;
    }

    .presentation-recherche {
        gap: 12px;
    }

    .icone-recherche {
        flex-basis: 55px;
        height: 65px;
    }

    .icone-recherche > .fa-file-alt {
        font-size: 43px;
    }

    .icone-recherche .loupe {
        font-size: 21px;
    }

    .description-recherche h2 {
        font-size: 22px;
    }

    .description-recherche p {
        font-size: 12px;
    }

    .form-recherche {
        flex-direction: column;
    }

    .form-recherche button {
        min-height: 47px;
    }

    .entete-details {
        padding: 13px;
    }

    .entete-details h2 {
        font-size: 14px;
    }

    .corps-details {
        padding: 14px;
    }

    .grille-informations {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .colonne + .colonne {
        padding-left: 0;
        border-left: 0;
    }

    .information {
        border-bottom: 1px solid #edf1ee;
    }

    .pied-page {
        flex-direction: column;
        align-items: flex-start;
    }

    .devise-pied {
        margin: 0;
    }
}
html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.conteneur {
    flex: 1;
}

.pied-page {
    margin-top: auto;
    width: 100%;
}

.pied-page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    background-color: #174B3A;
    color: #ffffff;
    font-size: 13px;
}

.devise {
    font-style: italic;
}

.copyright {
    text-align: right;
}

@media (max-width: 600px) {
    .pied-page {
        flex-direction: column;
        text-align: center;
    }
}
