/* ============================================
   AVERTISSEMENT SMARTSCREEN DE WINDOWS
   ============================================
   Bloc qui prévient le visiteur de ce que Windows va afficher au premier
   lancement de l'installeur, et comment passer outre.

   Pourquoi ce bloc existe : l'installeur n'est pas signé numériquement (un
   certificat coûte plusieurs centaines d'euros par an pour un logiciel
   gratuit), donc SmartScreen affiche « Windows a protégé votre ordinateur ».
   Un avertissement attendu ne fait pas peur ; un avertissement surprise fait
   fermer la fenêtre.

   Teinte ambre et non rouge : c'est une information sur le système, pas une
   alerte de danger. Le rouge dirait au visiteur qu'il a raison de s'inquiéter.
   ============================================ */

.avertissement-windows {
    /* L'en-tête du site est collant : sans cette marge, arriver par l'ancre
       #avertissement-windows place le titre du bloc DERRIÈRE lui. */
    scroll-margin-top: 90px;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md);
    max-width: 960px;
    background: rgba(255, 176, 32, 0.06);
    border: 1px solid rgba(255, 176, 32, 0.35);
    border-left: 4px solid #ffb020;
    border-radius: var(--radius-sm, 8px);
}

.aw-entete {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.aw-entete h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #ffc658;
}

.aw-icone {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    stroke: #ffb020;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aw-intro {
    margin: 0 0 var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Capture et marche à suivre côte à côte sur grand écran, empilées sinon. */
.aw-corps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-start;
}

/* Bornée : le dialogue de Windows est surtout un grand aplat bleu vide, il
   écraserait la marche à suivre s'il occupait la moitié du bloc. */
.aw-capture {
    flex: 1 1 280px;
    max-width: 380px;
    margin: 0;
}

.aw-capture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.aw-capture figcaption {
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.aw-etapes {
    flex: 1 1 320px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aw-etapes li {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pastille numérotée : la marche à suivre doit se lire d'un coup d'œil,
   quelqu'un qui bute sur le dialogue ne va pas lire un paragraphe. */
.aw-num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 176, 32, 0.18);
    border: 1px solid rgba(255, 176, 32, 0.5);
    color: #ffc658;
    font-weight: 700;
    font-size: 0.95rem;
}

.aw-etapes strong {
    color: var(--text-primary);
}

.aw-pourquoi {
    margin: var(--spacing-md) 0 0;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Ligne discrète sous les boutons de téléchargement (accueil) ----
   Elle ne doit PAS alarmer : la page d'accueil est la première impression.
   Elle annonce simplement qu'une explication existe. */
.note-smartscreen {
    margin: var(--spacing-xs) 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.note-smartscreen a {
    color: #ffc658;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.note-smartscreen a:hover,
.note-smartscreen a:focus {
    color: #ffd98a;
}

@media (max-width: 600px) {
    .avertissement-windows {
        padding: var(--spacing-sm);
    }

    .aw-entete h2 {
        font-size: 1.15rem;
    }
}
