/* Concours vitrines de Noël 2026 — styles du formulaire, calés sur le thème verdun-en-fete. */
.cv-form{margin:1.6rem 0 0;position:relative}
.cv-form__card{background:var(--card,#fff);border:1px solid var(--line,#d5deee);border-radius:.3rem 1.4rem .3rem 1.4rem;padding:1.4rem 1.4rem 1.7rem}
.cv-form h2,.legalpage .cv-form h2{font:800 1.3rem/1.3 var(--sans,Nunito,system-ui,sans-serif);color:var(--navy,#17305f);margin:0 0 1rem}
.cv-form h3,.legalpage .cv-form h3{font:800 1.05rem/1.3 var(--sans,Nunito,system-ui,sans-serif);color:var(--navy,#17305f);margin:1.5rem 0 .35rem}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cv-form h2,:root:not([data-theme="light"]) .cv-form h3,:root:not([data-theme="light"]) .legalpage .cv-form h2,:root:not([data-theme="light"]) .legalpage .cv-form h3{color:var(--gold,#f0b650)}}
:root[data-theme="dark"] .cv-form h2,:root[data-theme="dark"] .cv-form h3,:root[data-theme="dark"] .legalpage .cv-form h2,:root[data-theme="dark"] .legalpage .cv-form h3{color:var(--gold,#f0b650)}
.cv-form__row{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.2rem;margin:0 0 1rem}
@media (max-width:640px){.cv-form__row{grid-template-columns:1fr}}
.cv-form__field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.cv-form__field--full{grid-column:1/-1}
.cv-form__field label{font-weight:700}
.cv-form .req{color:var(--red,#d9382f);font-weight:800}
.cv-form input[type="text"],
.cv-form input[type="email"],
.cv-form input[type="tel"]{font:400 1rem/1.4 var(--sans,Nunito,system-ui,sans-serif);color:var(--ink,#14264a);background:var(--bg,#f6f8fc);border:2px solid var(--line,#d5deee);border-radius:.7rem;padding:.55rem .85rem;width:100%;max-width:100%}
.cv-form input[type="file"]{font:400 .95rem/1.4 var(--sans,Nunito,system-ui,sans-serif);color:var(--ink,#14264a);background:var(--bg,#f6f8fc);border:2px dashed var(--line,#d5deee);border-radius:.7rem;padding:.7rem .85rem;width:100%}
.cv-form input:focus-visible{outline:3px solid var(--gold,#f0b650);outline-offset:2px;border-color:var(--navy,#17305f)}
.cv-form__civilite{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;align-items:center;margin:0 0 1.1rem}
.cv-form__civilite > span{font-weight:700}
.cv-form__civilite label{font-weight:700;display:inline-flex;align-items:center;gap:.4rem;cursor:pointer}
.cv-hint{color:var(--muted,#5a6a88);margin:0 0 1rem;font-size:.95rem}
.cv-rgpd{margin:1.3rem 0 1.2rem;padding:1rem 1.1rem;background:var(--band,#e6edf8);border-radius:.8rem;color:var(--muted,#5a6a88);font-size:.92rem;line-height:1.55}
.cv-rgpd p{margin:0 0 .7rem}
.cv-rgpd a{color:var(--accent,#d9382f);font-weight:800}
.cv-rgpd label{font-weight:700;color:var(--ink,#14264a);display:flex;gap:.65rem;align-items:flex-start;cursor:pointer}
.cv-rgpd input[type="checkbox"]{margin-top:.25rem;flex:none;width:1.1rem;height:1.1rem}
.cv-form .btn{margin-top:.3rem}
.cv-form .btn[disabled]{opacity:.65;cursor:wait;transform:none}
.cv-alert{border-radius:.8rem;padding:1rem 1.15rem;margin:0 0 1.2rem}
.cv-alert ul{margin:.45rem 0 0;padding-left:1.2rem}
.cv-alert--ok{background:#e7f6ec;color:#14532d;border:1px solid #8fce9e}
.cv-alert--err{background:#fdecea;color:#7a1d18;border:1px solid #f0b0ab}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cv-alert--ok{background:#143524;color:#ccebd4;border-color:#2d6a45}:root:not([data-theme="light"]) .cv-alert--err{background:#3a1816;color:#f5c4c0;border-color:#8a3a34}}
:root[data-theme="dark"] .cv-alert--ok{background:#143524;color:#ccebd4;border-color:#2d6a45}
:root[data-theme="dark"] .cv-alert--err{background:#3a1816;color:#f5c4c0;border-color:#8a3a34}
.cv-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cv-success{background:var(--card,#fff);border:1px solid var(--line,#d5deee);border-radius:.3rem 1.4rem .3rem 1.4rem;padding:1.5rem 1.4rem}
.cv-success h2{font:800 1.3rem/1.3 var(--sans,Nunito,system-ui,sans-serif);margin:0 0 .6rem;color:var(--navy,#17305f)}

/* Fenêtre d’inscription / messages de statut */
.cv-window{background:var(--card,#fff);border:1px solid var(--line,#d5deee);border-radius:.3rem 1.4rem .3rem 1.4rem;padding:1.5rem 1.4rem;margin:1.6rem 0 0}
.cv-window p{margin:0;font:400 1.08rem/1.55 var(--sans,Nunito,system-ui,sans-serif);color:var(--ink,#14264a)}
.cv-admin-banner{display:inline-block;margin:0 0 1rem;background:var(--gold,#f0b650);color:var(--navy,#17305f);font:800 .9rem/1.3 var(--sans,Nunito,system-ui,sans-serif);padding:.4rem 1rem;border-radius:2rem}

/* 1.2.4 — messages sous les champs photo (réduction automatique des photos de téléphone) */
.cv-file-msg{margin:.35rem 0 0;font-size:.92rem;line-height:1.4;min-height:0}
.cv-file-msg:empty{display:none}
.cv-file-msg--ok{color:#1d6b3a}
.cv-file-msg--info{color:#5a6b8c}
.cv-file-msg--err{color:#a31d1d;font-weight:700}
.cv-form button[type="submit"][disabled]{opacity:.65;cursor:progress}
