/* CETEMOH · Public pages – inline styles extracted to static file */

/* ── Hero title sizing (home.php) ── */
#hero h1 {
  white-space: nowrap;
  font-size: clamp(0.55rem, 2.9vw, 2rem);
  max-width: 100%; margin: 0 auto 18px; text-align: center;
}
#hero h1 #typed-line { white-space: nowrap; }

/* ── Pre-inscription form (pre-inscription.php) ── */
.form-section { margin-bottom: 2px; }
.form-section__toggle {
    width: 100%; display: flex; align-items: center; gap: 10px;
    background: var(--bg-sunken, #f1f5f9); border: none;
    padding: 10px 14px; cursor: pointer; font-weight: 600;
    font-size: .9rem; color: var(--primary, #1e3a5f); text-align: left;
    border-radius: var(--radius, 6px); transition: background .15s;
}
.form-section__toggle:hover { background: var(--border-light, #e2e8f0); }
.form-section__toggle .arrow {
    margin-left: auto; transition: transform .2s;
    font-size: .9rem; color: var(--text-muted);
}
.form-section__toggle.open .arrow { transform: rotate(180deg); }
.form-section__body {
    max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
    padding: 0 14px;
}
.form-section__body.open {
    max-height: 1000px; padding: 14px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width:768px) { .grid-2 { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-weight: 500; font-size: .82rem; margin-bottom: 3px; color: var(--text-primary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; font-size: .9rem; padding: 9px 12px;
    border: 1px solid var(--border, #e5ddd4);
    border-radius: var(--radius-md, 12px);
    background: var(--bg-sunken, #f2ede4);
    color: var(--text-body);
    box-shadow: inset 0 1px 3px rgba(15,42,63,.06), 0 1px 0 rgba(255,255,255,.55);
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.form-group input:hover:not(:disabled), .form-group textarea:hover:not(:disabled), .form-group select:hover:not(:disabled) {
    border-color: var(--stone-pale, #d6d0c8);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-light, #1e4a6e);
    background: var(--accent-soft, #fdf3e0);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.form-group textarea { min-height: 60px; resize: vertical; }
.required { color: var(--danger, #dc2626); }
.help-text { color: var(--text-muted, #64748b); font-size: .8rem; line-height: 1.4; }
.radio-group { display: flex; gap: 10px; padding: 4px 0; flex-wrap: wrap; }
.radio-label, .checkbox-label {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border: 1.5px solid var(--border, #cbd5e1);
    border-radius: 999px;
    background: var(--bg-card, #fff);
    font-weight: 500; font-size: .86rem; line-height: 1.4;
    color: var(--text-primary, #1f2937);
    cursor: pointer; user-select: none;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.radio-label input, .checkbox-label input {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0;
}
.radio-label:hover, .checkbox-label:hover { border-color: var(--primary, #1e3a5f); }
.radio-label:has(input:checked), .checkbox-label:has(input:checked) {
    border-color: var(--primary, #1e3a5f);
    background: var(--primary, #1e3a5f);
    color: var(--text-on-dark, #fff);
}
.radio-label:has(input:focus-visible), .checkbox-label:has(input:focus-visible) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #1e3a5f) 25%, transparent);
}
.radio-label:has(input:disabled), .checkbox-label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-label--block { width: 100%; justify-content: flex-start; border-radius: var(--radius, 6px); align-items: flex-start; }
.checkbox-label--block:has(input:checked) a { color: #fff; }
