/* ==========================================================================
   HOME DIGITAL — Layout Site institutionnel (Ensemble A)
   ========================================================================== */

:root {
    --hd-teal: #028090;
    --hd-seafoam: #00A896;
    --hd-mint: #02C39A;
    --hd-dark: #013A40;
    --hd-light: #F6FAF9;
    --hd-text: #16302E;
    --hd-text-muted: #5C7A76;

    --hd-police-titres: Cambria, Georgia, "Times New Roman", serif;
    --hd-police-corps: Calibri, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--hd-police-corps);
    color: var(--hd-text);
    background-color: var(--hd-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--hd-police-titres);
    color: var(--hd-text);
    margin: 0 0 0.6em;
    line-height: 1.25;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--hd-teal);
    text-decoration: none;
}

a:hover {
    color: var(--hd-seafoam);
}

img {
    max-width: 100%;
}

/* ---- En-tête ---- */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e3ece9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--hd-police-titres);
    font-size: 1.15rem;
    color: var(--hd-text);
}

.site-logo:hover {
    color: var(--hd-text);
}

.site-logo__image {
    height: 2.4rem;
    width: auto;
    display: block;
}

.site-footer__logo {
    height: 2.2rem;
    width: auto;
    display: block;
    margin-bottom: 0.8rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--hd-text-muted);
    white-space: nowrap;
}

.site-nav a.actif,
.site-nav a:hover {
    color: var(--hd-teal);
}

.site-nav__cta {
    background-color: var(--hd-teal);
    color: #ffffff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: bold;
}

.site-nav__cta:hover {
    background-color: var(--hd-seafoam);
}

.site-nav__bascule {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.site-nav__bascule span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--hd-text);
}

/* ---- Composants communs ---- */

.bouton {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-family: var(--hd-police-corps);
    font-weight: bold;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.bouton--accent {
    background-color: var(--hd-mint);
    color: #ffffff;
}

.bouton--accent:hover {
    background-color: var(--hd-seafoam);
    color: #ffffff;
}

.bouton--fantome {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: inherit;
}

.bouton--fantome:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.bouton--grand {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.bouton--pleine-largeur {
    display: block;
    width: 100%;
}

.alerte {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alerte--succes {
    background-color: rgba(2, 195, 154, 0.12);
    border: 1px solid var(--hd-mint);
    color: #045c47;
}

.alerte--erreur {
    background-color: rgba(200, 60, 60, 0.08);
    border: 1px solid #c85f5f;
    color: #7a2b2b;
}

.alerte--erreur ul {
    margin: 0.4em 0 0;
    padding-left: 1.2em;
}

.formulaire__champ {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.formulaire__champ label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--hd-text-muted);
}

.formulaire__champ input,
.formulaire__champ textarea {
    font-family: var(--hd-police-corps);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d3e2de;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--hd-text);
}

.formulaire__champ input:focus,
.formulaire__champ textarea:focus {
    outline: none;
    border-color: var(--hd-teal);
}

.formulaire__champ--case label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

/* ---- Sections génériques ---- */

.page-entete {
    background-color: var(--hd-dark);
    color: #ffffff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.page-entete__inner {
    max-width: 760px;
    margin: 0 auto;
}

.page-entete__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--hd-mint);
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.page-entete h1 {
    color: #ffffff;
    font-size: 2.2rem;
}

.page-entete p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-final {
    background-color: var(--hd-teal);
    color: #ffffff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.cta-final__inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-final h2 {
    color: #ffffff;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.6rem;
}

.lien-modules {
    display: inline-block;
    margin-top: 1.2rem;
    font-weight: bold;
    color: var(--hd-teal);
}

/* ---- Pied de page ---- */

.site-footer {
    background-color: var(--hd-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 1.5rem 1.5rem;
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.site-footer__legal {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.7;
}

.site-footer__bloc p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.site-footer__bloc h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.site-footer__bloc a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.site-footer__bloc a:hover {
    color: var(--hd-mint);
}

.site-footer__bas {
    max-width: 1180px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
    .site-nav__bascule {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid #e3ece9;
        gap: 1rem;
    }

    .site-nav--ouvert {
        display: flex;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 861px) and (max-width: 1080px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}
