/* =============================================
   INSTALL.CSS — Déploiement SCOLEXPERT
   Placé dans : install/css/install.css
   ============================================= */

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #333333;
    color: #e0e6ed;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}

.inst-wrap {
    width: 100%;
    max-width: 560px;
}

.inst-logo {
    text-align: center;
    margin-bottom: 32px;
}
.inst-logo img {
    height: 120px;
    object-fit: contain;
}

.inst-card {
    background: #444444;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

h1 {
    font-size: 1.5rem;
    color: #7ec8e3;
    margin-bottom: 16px;
    text-align: center;
}

h2.inst-section {
    font-size: 1rem;
    color: #7ec8e3;
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2d3f55;
}

.inst-intro {
    color: #a0b0c0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.inst-hint {
    color: #8090a0;
    font-size: 0.88em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.inst-hint-sm {
    color: #607080;
    font-size: 0.78em;
    margin-top: 4px;
}

.inst-erreur {
    background: rgba(220, 50, 50, 0.15);
    border: 1px solid rgba(220, 50, 50, 0.4);
    border-radius: 6px;
    color: #ff7070;
    padding: 10px 14px;
    font-size: 0.88em;
    margin-bottom: 12px;
}

.inst-field {
    margin-bottom: 16px;
}
.inst-field label {
    display: block;
    font-size: 0.85em;
    color: #8090a0;
    margin-bottom: 6px;
}
.inst-field input[type=text],
.inst-field input[type=email],
.inst-field input[type=tel],
.inst-field input[type=password],
.inst-field select,
.inst-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: #333333;
    border: 1px solid #2d3f55;
    border-radius: 6px;
    color: #e0e6ed;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
}
.inst-field input:focus,
.inst-field select:focus,
.inst-field textarea:focus {
    outline: none;
    border-color: #7ec8e3;
}
.inst-field textarea {
    resize: vertical;
    min-height: 80px;
}
.inst-field code {
    background: #333333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #7ec8e3;
}

.inst-pwd-wrap {
    display: flex;
    gap: 8px;
}
.inst-pwd-wrap input { flex: 1; }
.inst-pwd-toggle {
    background: #2d3f55;
    border: none;
    border-radius: 6px;
    color: #e0e6ed;
    padding: 0 12px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}
.inst-pwd-toggle:hover { background: #3d5070; }

.inst-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, background 0.2s;
}
.inst-btn-primary  { background: #7ec8e3; color: #0f1923; }
.inst-btn-secondary{ background: #2d3f55; color: #e0e6ed; }
.inst-btn-ghost    { background: transparent; color: #7ec8e3; border: 1px solid #7ec8e3; }
.inst-btn-deploy   { background: #4caf50; color: #fff; font-size: 1em; padding: 13px 28px; }
.inst-btn:hover { opacity: 0.85; }

.inst-actions { margin-top: 24px; text-align: center; }
.inst-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.inst-recap {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-bottom: 8px;
}
.inst-recap td {
    padding: 7px 10px;
    border-bottom: 1px solid #2d3f55;
    vertical-align: top;
}
.inst-recap td:first-child {
    color: #8090a0;
    width: 40%;
    white-space: nowrap;
}
.inst-muted { color: #607080; font-size: 0.85em; }

.inst-liste {
    margin: 8px 0 16px 1.4em;
    color: #a0b0c0;
    line-height: 1.8;
    font-size: 0.95em;
}

.inst-uai-rappel {
    display: inline-block;
    background: #333333;
    border: 1px solid #7ec8e3;
    border-radius: 4px;
    padding: 6px 12px;
    color: #7ec8e3;
    font-family: monospace;
    font-size: 1em;
    letter-spacing: 0.05em;
}

/* ── Tablette (≤ 768px) ── */
@media (max-width: 768px) {
    body { padding: 24px 12px; }
    .inst-wrap { max-width: 100%; }
    .inst-card { padding: 24px; }
    .inst-logo img { height: 90px; }
    h1 { font-size: 1.3rem; }
}

/* ── Smartphone (≤ 480px) ── */
@media (max-width: 480px) {
    body { padding: 16px 8px; }
    .inst-card { padding: 16px; border-radius: 8px; }
    .inst-logo { margin-bottom: 20px; }
    .inst-logo img { height: 70px; }
    h1 { font-size: 1.15rem; }
    .inst-actions-row { flex-direction: column; gap: 8px; }
    .inst-btn { width: 100%; text-align: center; }
    .inst-recap td:first-child { width: 45%; font-size: 0.82em; }
    .inst-field input,
    .inst-field select,
    .inst-field textarea { font-size: 1rem; } /* évite le zoom iOS */
}

/* ── Liens dans le tableau récapitulatif ── */
.inst-recap a         { color: #7ec8e3; text-decoration: none; }
.inst-recap a:hover   { text-decoration: underline; }
.inst-recap a:visited { color: #a0d8e8; }

/* ── Inputs inline dans le tableau récapitulatif ── */
.inst-input-inline {
    width: 100%;
    padding: 6px 10px;
    background: #333333;
    border: 1px solid #7ec8e3;
    border-radius: 4px;
    color: #e0e6ed;
    font-size: 0.9em;
    font-family: inherit;
}
.inst-input-inline:focus {
    outline: none;
    border-color: #a0d8e8;
}
