/* Presentation propre au portail TutoElectroWeb. */
:root {
    --fond: #f4f6f8;
    --carte: #fff;
    --texte: #1a1a1a;
    --doux: #5b6672;
    --bord: #dde3e9;
    --radius: 10px;
    --primary: #334155;
    --primary-dark: var(--texte);
    --header-h: 0px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fond: #14181d; --carte: #1c222a; --texte: #e8eef5;
        --doux: #9aa7b4; --bord: #2c343d;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 2.5rem 1.25rem 4rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--fond); color: var(--texte); line-height: 1.6;
}
.contenu { max-width: 62rem; margin: 0 auto; }
h1 { font-size: 1.9rem; margin: 0 0 .35rem; }
/* Deux paragraphes se suivent : l'ecart final est porte par la grille, pas
 * par le dernier chapo, sinon les deux se decollent l'un de l'autre. */
.chapo { color: var(--doux); margin: 0 0 1rem; max-width: 46rem; }
.grille {
    margin-top: 2.25rem;
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.site {
    background: var(--carte); border: 1px solid var(--bord);
    border-left: 4px solid var(--couleur, var(--doux));
    border-radius: var(--radius); padding: 1.1rem 1.25rem;
    display: flex; flex-direction: column; gap: .6rem;
}

/* EN MAINTENANCE : la carte reste LISIBLE, elle n'est pas cachee.
 *
 * Griser sans filigrane laisse croire a un site casse ; retirer la carte
 * laisse croire qu'il n'existe plus. On dit donc exactement ce qui se passe,
 * et on retire ce qui ne marche pas : le lien. Le filigrane est en biais et
 * derriere le texte : il se voit d'un coup d'oeil sans rendre la carte
 * illisible, ce qu'un bandeau plein ferait. */
.site.maintenance { position: relative; overflow: hidden; opacity: .62; }
.site.maintenance::after {
    content: "En maintenance";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(-12deg);
    /* PLUS PETIT QU'IL N'Y PARAIT NECESSAIRE, et c'est mesure : a 1,35rem le
       filigrane depassait la carte la plus etroite de la grille (17rem) et se
       faisait couper en plein mot par l'`overflow: hidden` : « N MAINTENANCE ».
       Un filigrane tronque se lit comme un defaut d'affichage. */
    font-size: 1rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; text-align: center; padding: 0 .75rem;
    color: var(--couleur, var(--doux)); opacity: .16;
    pointer-events: none;   /* le filigrane ne capte aucun clic */
}
.site.maintenance h2 { color: var(--doux); }
.site .raison {
    font-size: .8rem; color: var(--doux); font-style: italic;
    margin: 0;
}
.site h2 { font-size: 1.15rem; margin: 0; }

/* Le mot de la fin, sous les cartes. Il respire davantage que le chapo : on y
   arrive apres avoir vu ce qui est propose, c'est le moment ou l'on decide
   d'entrer ou non. */
.apres { margin-top: 2.75rem; max-width: 46rem; }
.apres h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.apres p { margin: 0 0 .8rem; color: var(--doux); }
.apres .signature { color: var(--texte); font-weight: 600; margin-top: 1.1rem; }
.site p { margin: 0; color: var(--doux); font-size: .93rem; }
.liens { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.liens a, .liens span {
    font-size: .86rem; text-decoration: none;
    padding: .35rem .7rem; border-radius: 6px; border: 1px solid var(--bord);
    color: var(--texte); background: transparent;
}
.liens a:hover { border-color: var(--couleur); color: var(--couleur); }
.liens a.principal {
    background: var(--couleur); border-color: var(--couleur); color: #fff;
}
.liens a.principal:hover { filter: brightness(1.1); color: #fff; }
.liens span { color: var(--doux); opacity: .65; }
.commande {
    margin-top: .2rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem; color: var(--doux);
    background: rgba(127, 127, 127, .09); padding: .4rem .55rem;
    border-radius: 6px; overflow-x: auto; white-space: nowrap;
}
footer {
    margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--bord);
    color: var(--doux); font-size: .86rem;
}
footer code { font-size: .85em; }

/* Adaptations du portail a la remise a zero de la charte commune. */
.chapo { border: 0; padding: 0; font-size: 1rem; }
footer p { margin: 1em 0; }
code { padding: 0; border-radius: 0; background: transparent; color: inherit; }
.site-administration { --couleur: #0f3728; }
