/* Support+ — pages rendues par le serveur : accueil, connexion, refus d'acces.
   Couleurs et polices reprises de la charte de la v1 (docs/00_analyse_support_v1.md). */

:root {
    --bleu: #3498db;
    --bleu-fonce: #22406d;
    --bleu-survol: #2383c4;
    --bleu-pale: #ecf6fe;
    --encre: #313a46;
    --encre-douce: #667380;
    --trait: #d9e3e9;
    --fond: #f3f6f8;
    --blanc: #ffffff;
    --vert: #0acf97;
    --rouge: #d64545;
    --titres: "Rubik", "Segoe UI", sans-serif;
    --texte: "Roboto", "Segoe UI", sans-serif;
    --rayon: 8px;
    --ombre: 0 0 24px 0 rgba(0, 0, 0, .06), 0 1px 0 0 rgba(0, 0, 0, .02);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--texte);
    font-size: 16px;
    line-height: 1.6;
    color: var(--encre);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--titres);
    font-weight: 600;
    line-height: 1.2;
    color: var(--encre);
    text-wrap: balance;
}

p {
    margin: 0;
}

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

.largeur {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Logo ---------------------------------------------------------------
   Logo couleur pour fond clair. Proportions du fichier : 390 x 100. */

.logo {
    display: inline-flex;
    border-radius: 4px;
}

.logo__image {
    display: block;
    width: auto;
    height: 36px;
}

/* --- Boutons et liens ---------------------------------------------------- */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--titres);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.bouton:focus-visible,
.lien:focus-visible,
.compte:focus-visible,
.logo:focus-visible {
    outline: 3px solid rgba(52, 152, 219, .45);
    outline-offset: 2px;
}

.bouton--plein {
    background: var(--bleu);
    color: var(--blanc);
}

.bouton--plein:hover {
    background: var(--bleu-survol);
}

.bouton--contour {
    border-color: var(--bleu);
    color: var(--bleu);
    background: transparent;
}

.bouton--contour:hover {
    background: var(--bleu-pale);
}

.bouton--clair {
    background: var(--blanc);
    color: var(--bleu-fonce);
}

.bouton--clair:hover {
    background: var(--bleu-pale);
}

.bouton--grand {
    padding: 13px 30px;
    font-size: 17px;
}

.bouton--large {
    width: 100%;
}

.lien {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.lien:hover {
    text-decoration: underline;
}

.lien--discret {
    color: var(--encre-douce);
}

/* --- En-tete ------------------------------------------------------------- */

.entete {
    border-bottom: 1px solid var(--trait);
    background: var(--blanc);
}

.entete__contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 16px;
}

/* --- Accueil : hero ------------------------------------------------------ */

.hero {
    background: linear-gradient(180deg, var(--bleu-pale) 0%, var(--blanc) 100%);
}

.hero__contenu {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 56px;
    padding-top: 84px;
    padding-bottom: 84px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -.01em;
}

.hero__accroche {
    max-width: 34em;
    margin-top: 20px;
    font-size: 19px;
    color: var(--encre-douce);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.hero__note {
    font-size: 14px;
    color: var(--encre-douce);
}

/* --- Accueil : les ecrans illustres --------------------------------------
   Des ecrans de l'application redessines en HTML, avec des donnees d'exemple. */

.ecran {
    overflow: hidden;
    border: 1px solid var(--trait);
    border-radius: 12px;
    background: var(--blanc);
    box-shadow: var(--ombre);
    font-size: 14px;
    line-height: 1.45;
}

.ecran__barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: var(--bleu);
    font-family: var(--titres);
    font-weight: 500;
    color: var(--blanc);
}

.ecran--client .ecran__barre {
    background: var(--bleu-fonce);
}

.ecran__cherche {
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    font-family: var(--texte);
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .8);
}

.ecran__corps {
    padding: 16px;
}

.ecran__corps--deux {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 18px;
}

.ecran__corps--deux .circuit {
    margin-top: 4px;
}

.ecran__note {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--encre-douce);
}

.ecran__bouton {
    margin-top: 14px;
    padding: 7px 16px;
    font-size: 14px;
    cursor: default;
}

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.filtre {
    padding: 3px 10px;
    border: 1px solid var(--trait);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--encre-douce);
}

.filtre--actif {
    border-color: var(--bleu);
    background: var(--bleu-pale);
    color: var(--bleu-fonce);
}

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

.liste__ligne {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--trait);
}

.liste__ligne:first-child {
    border-top: 0;
}

.liste__titre {
    flex: 1;
    min-width: 0;
}

.liste__titre strong {
    display: block;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liste__titre span {
    font-size: 12.5px;
    color: var(--encre-douce);
}

.liste__echeance {
    flex: none;
    width: 82px;
    font-size: 12.5px;
    color: var(--encre-douce);
    text-align: right;
}

.liste__echeance--retard {
    font-weight: 500;
    color: var(--rouge);
}

.etiquette {
    margin-right: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--fond);
    font-size: 11.5px;
    font-style: normal;
}

.etiquette--rouge {
    background: #fdecec;
    color: var(--rouge);
}

.pastille {
    flex: none;
    padding: 3px 12px;
    border-radius: 999px;
    font-family: var(--titres);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.pastille--encours {
    background: var(--bleu-pale);
    color: var(--bleu-fonce);
}

.pastille--nouveau {
    background: #eef0fb;
    color: #4a55a8;
}

.pastille--attente {
    background: #fff5df;
    color: #8a6100;
}

.pastille--resolu {
    background: #e3f9f2;
    color: #06805d;
}

.ecran__barre .pastille {
    background: var(--blanc);
}

.courriel {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
}

.courriel + .courriel {
    margin-top: 10px;
}

.courriel__de {
    font-size: 12.5px;
    color: var(--encre-douce);
}

.courriel strong {
    font-weight: 500;
}

.courriel__suite {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #06805d;
}

.fil {
    display: grid;
    align-content: start;
    gap: 10px;
}

.bulle {
    padding: 10px 12px;
    border-radius: var(--rayon);
    background: var(--fond);
    font-size: 13.5px;
}

.bulle__qui {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--encre-douce);
}

.bulle--interne {
    background: #fff5df;
}

.bulle--agent {
    background: var(--bleu-pale);
}

.tuiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tuile {
    padding: 12px 14px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
}

.tuile strong {
    display: block;
    font-family: var(--titres);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
}

.tuile span {
    font-size: 12.5px;
    color: var(--encre-douce);
}

.tuile--alerte strong {
    color: var(--rouge);
}

.barres {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 110px;
    margin-top: 16px;
    padding-top: 8px;
    border-bottom: 1px solid var(--trait);
}

.barres span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--bleu);
    opacity: .85;
}

/* --- Accueil : les volets (un texte, un ecran) --------------------------- */

.volet {
    padding: 76px 0;
}

.volet--teinte {
    background: var(--fond);
}

.volet__contenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.volet--inverse .volet__texte {
    order: 2;
}

.volet__surtitre {
    margin-bottom: 10px;
    font-family: var(--titres);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bleu);
}

.volet h2 {
    font-size: clamp(24px, 3vw, 32px);
}

.volet__texte > p:not(.volet__surtitre) {
    max-width: 32em;
    margin-top: 14px;
    font-size: 17px;
    color: var(--encre-douce);
}

.points {
    display: grid;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.points li {
    position: relative;
    padding-left: 26px;
}

.points li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 2px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid var(--vert);
    border-left: 2px solid var(--vert);
    transform: rotate(-45deg);
}

.circuit {
    display: grid;
    gap: 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.circuit__etape {
    position: relative;
    padding: 0 0 16px 30px;
    font-size: 15px;
    color: var(--encre-douce);
}

.circuit__etape:last-child {
    padding-bottom: 0;
}

/* le rond de l'etape */
.circuit__etape::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--trait);
    border-radius: 50%;
    background: var(--blanc);
}

/* le trait vers l'etape suivante */
.circuit__etape::after {
    content: "";
    position: absolute;
    top: 22px;
    bottom: -2px;
    left: 7px;
    width: 2px;
    background: var(--trait);
}

.circuit__etape:last-child::after {
    display: none;
}

.circuit__etape--faite {
    color: var(--encre);
}

.circuit__etape--faite::before {
    border-color: var(--vert);
    background: var(--vert);
}

.circuit__etape--faite::after {
    background: var(--vert);
}

.circuit__etape--courante {
    font-weight: 500;
    color: var(--encre);
}

.circuit__etape--courante::before {
    border-color: var(--bleu);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, .18);
}

/* --- Accueil : atouts ---------------------------------------------------- */

.atouts {
    padding: 72px 0;
}

.atouts h2 {
    max-width: 22em;
    font-size: clamp(24px, 3vw, 32px);
}

.atouts__grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.atout {
    padding: 26px 28px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    background: var(--blanc);
}

.atout h3 {
    font-size: 19px;
    font-weight: 500;
}

.atout p {
    margin-top: 8px;
    color: var(--encre-douce);
}

/* --- Accueil : appel final ---------------------------------------------- */

.appel {
    background: var(--bleu);
}

.appel__contenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.appel h2 {
    font-size: clamp(22px, 3vw, 28px);
    color: var(--blanc);
}

/* --- Pied ---------------------------------------------------------------- */

.pied {
    border-top: 1px solid var(--trait);
    font-size: 14px;
    color: var(--encre-douce);
}

.pied__contenu {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}

/* --- Connexion, refus d'acces ------------------------------------------- */

.page-connexion {
    background: var(--fond);
}

.connexion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    /* La page porte l'en-tete du site (69 px, trait compris) au-dessus de la carte. */
    min-height: calc(100vh - 69px);
    padding: 32px 20px;
}

.connexion__carte {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    border: 1px solid var(--trait);
    border-radius: 12px;
    background: var(--blanc);
    box-shadow: var(--ombre);
    text-align: center;
}

.connexion__carte h1 {
    font-size: 26px;
}

.connexion__texte {
    margin: 8px 0 26px;
    color: var(--encre-douce);
}

.compte {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    color: var(--encre);
    text-align: left;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

.compte:hover {
    border-color: var(--bleu);
    background: var(--bleu-pale);
}

.compte__photo {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bleu-pale);
}

.compte__nom {
    flex: 1;
    min-width: 0;
}

.compte__nom strong {
    display: block;
    font-family: var(--titres);
    font-weight: 500;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compte__fleche {
    font-size: 20px;
    color: var(--encre-douce);
}

/* --- Ecrans etroits ------------------------------------------------------ */

@media (max-width: 860px) {
    .hero__contenu {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .atouts,
    .volet {
        padding: 52px 0;
    }

    .volet__contenu {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .volet--inverse .volet__texte {
        order: 0;
    }

    .atouts__grille {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .largeur {
        padding: 0 16px;
    }

    .ecran__corps--deux {
        grid-template-columns: minmax(0, 1fr);
    }

    .liste__echeance,
    .ecran__cherche {
        display: none;
    }

    .hero__actions .bouton {
        width: 100%;
    }

    .connexion__carte {
        padding: 28px 20px;
    }
}
