/* ============================================================
   theme-formulaires.css — Pages formulaire (compte.php, AvisPost.php)
   À charger APRÈS styleheader.css et theme-base.css.
   Les noms de classes d'origine sont conservés.
   Règle de lisibilité : champs clairs, texte bleu marine.
   ============================================================ */

/* ===== ZONE PRINCIPALE ===== */
section, .page-wrapper {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 34px 16px 60px;
}

/* ===== CARTE = PANNEAU DE CONSOLE ===== */
.form-container {
    position: relative; width: 100%; max-width: 540px; text-align: center;
    padding: 0 0 28px; overflow: hidden; border-radius: 18px;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, rgba(22,32,78,.95), rgba(9,14,38,.97));
    border: 1px solid rgba(34,211,238,.35);
    box-shadow: 0 0 40px rgba(34,211,238,.12), 0 24px 60px rgba(0,0,0,.55);
    animation: fmIn .45s ease both;
}
@keyframes fmIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.form-container > *:not(.form-bar) { margin-left: 30px; margin-right: 30px; }

/* Barre de console en haut de la carte */
.form-bar {
    display: flex; align-items: center; gap: 10px; text-align: left;
    padding: 11px 18px; margin-bottom: 26px;
    background: linear-gradient(90deg, rgba(34,211,238,.16), rgba(34,211,238,.03));
    border-bottom: 1px solid rgba(34,211,238,.25);
    font-family: var(--hud); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--neon);
}
.form-bar .dots { display: inline-flex; gap: 5px; }
.form-bar .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.form-bar .dots i:nth-child(1) { background: var(--hot); }
.form-bar .dots i:nth-child(2) { background: var(--gold); }
.form-bar .dots i:nth-child(3) { background: var(--ok); }

/* Pastille d'icône = petite planète en orbite dorée */
.icon-circle {
    position: relative; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #3b8bf0 0%, #1E40AF 55%, #0b1a4a 100%);
    box-shadow: 0 0 30px rgba(34,211,238,.35);
}
.icon-circle::before {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 2px dashed rgba(245,200,66,.6); animation: fmOrb 24s linear infinite;
}
@keyframes fmOrb { to { transform: rotate(360deg); } }
.icon-circle i { font-size: 34px; color: #fff; }
.form-container > .icon-circle.icon-circle { margin: 8px auto 18px; }   /* centrée malgré la marge des enfants */

.form-container h1 {
    margin: 0 0 6px; font-family: var(--hud); font-weight: 900; color: #fff;
    font-size: clamp(1.3rem, 5vw, 1.7rem); letter-spacing: .02em;
}
.subtitle-text, .subtitle { margin: 0 0 24px; color: var(--muted); font-size: 16px; font-weight: 700; }

/* ===== MESSAGES ===== */
.success-message, .error-message, .message, .existing-notice {
    display: flex; align-items: center; gap: 10px; text-align: left;
    margin: 0 0 20px; padding: 12px 14px; border-radius: 12px;
    font-size: 15px; font-weight: 800;
}
.success-message, .message.success { background: rgba(62,240,138,.1);  color: #b9ffd4; border: 1px solid rgba(62,240,138,.5); }
.success-message i, .message.success i { color: var(--ok); }
.error-message, .message.error     { background: rgba(255,77,109,.1);  color: #ffc2cd; border: 1px solid rgba(255,77,109,.55); }
.error-message i, .message.error i { color: var(--hot); }
.existing-notice                   { background: rgba(245,200,66,.08); color: #ffe7a3; border: 1px solid rgba(245,200,66,.5); }
.existing-notice i                 { color: var(--gold); }

/* ===== CHAMPS ===== */
.input-group { position: relative; text-align: left; margin-bottom: 18px; }
.input-group label {
    display: block; margin-bottom: 7px;
    font-family: var(--hud); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.input-group label i { color: var(--neon); margin-right: 6px; }
.input-group > i { position: absolute; left: 16px; top: 42px; color: #6b7aa8; font-size: 15px; pointer-events: none; z-index: 1; }
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    background: #fff; color: #0F2350; border: 2px solid #c9d8f5;
    font-family: var(--read); font-size: 16px; font-weight: 700;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input-group > i + input { padding-left: 44px; }
.input-group input::placeholder,
.input-group textarea::placeholder { color: #8c9bc0; font-weight: 600; }
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(34,211,238,.25), 0 0 20px rgba(34,211,238,.3); }
.input-group textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.input-group select {
    cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F2350' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.info-text { margin: 7px 2px 0; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ===== BOUTON PRINCIPAL : or + bleu marine ===== */
.btn-update, .btn-submit {
    width: 100%; margin-top: 6px; cursor: pointer; border: 0; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 24px; color: #0B1A4A;
    font-family: var(--hud); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
    background: linear-gradient(180deg, #ffd85a, #f5a623);
    box-shadow: 0 5px 0 #a86a0a, 0 0 24px rgba(245,200,66,.3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-update i, .btn-submit i { color: #1E40AF; }
.btn-update:hover, .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #a86a0a, 0 0 34px rgba(245,200,66,.5); }
.btn-update:active, .btn-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #a86a0a; }

/* ===== SÉPARATEUR ===== */
.divider { height: 1px; border: 0; margin: 28px 30px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.4), transparent); }

/* ===== ZONE DANGEREUSE ===== */
.danger-zone { text-align: left; padding: 18px; border-radius: 14px; background: rgba(255,77,109,.07); border: 1px dashed rgba(255,77,109,.6); }
.danger-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--hud); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--hot); }
.danger-text { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: #ffc2cd; line-height: 1.5; }
.delete-button {
    width: 100%; cursor: pointer; border-radius: 12px; padding: 12px 22px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: transparent; color: var(--hot); border: 1.5px solid var(--hot);
    font-family: var(--read); font-size: 15px; font-weight: 900;
    transition: background .2s ease, color .2s ease;
}
.delete-button:hover { background: var(--hot); color: #fff; }

/* ===== LIEN BAS ===== */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--neon); font-weight: 800; font-size: 15px; text-decoration: none; }
.back-link:hover { color: var(--gold); }

.legal-links { text-align: center; font-size: .9rem; margin: 0 12px 34px; color: var(--muted); }
.legal-links a { color: var(--muted); text-decoration: underline; }
.legal-links a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    section, .page-wrapper { padding: 22px 12px 44px; }
    .form-container > *:not(.form-bar) { margin-left: 18px; margin-right: 18px; }
    .divider { margin: 24px 18px; }
    .icon-circle { width: 72px; height: 72px; }
    .icon-circle i { font-size: 28px; }
    .btn-update, .btn-submit { font-size: 11.5px; letter-spacing: .06em; padding: 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { .icon-circle::before, .form-container { animation: none !important; } }
