.portail, .portail-seul { --fond: #f4f5f7; --carte: #fff; --texte: #1d2129; --doux: #5b6372; --ligne: #dfe3ea; --vert: #418b16; --vert-f: #2f6a0e; --vert-clair: #eef6e8; --erreur: #b42318; --essai: #7a2e0e; --sombre: #24282e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.portail-seul { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond); color: var(--texte); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.portail-seul .tete { background: #fff; border-bottom: 3px solid var(--vert); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portail-seul .logo { display: block; height: 32px; width: auto; }
.portail-seul .sous { color: var(--doux); font-size: 14px; text-align: right; }
main.portail { width: 100%; max-width: 720px; margin: 0 auto; padding: 12px 12px 24px; flex: 1 0 auto; }
.portail .tel { white-space: nowrap; }
.portail .carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 18px 16px; margin: 10px 0; }
.portail h1 { font-size: 22px; margin: 0 0 12px; color: var(--texte); }
.portail h1::after { content: ""; display: block; width: 44px; height: 3px; background: var(--vert); border-radius: 2px; margin-top: 8px; }
.portail h2 { font-size: 16px; margin: 20px 0 8px; color: var(--doux); text-transform: uppercase; letter-spacing: .4px; }
.portail p { margin: 8px 0; }
.portail .centre { text-align: center; color: var(--doux); }
.portail .note { color: var(--doux); font-size: 14px; }
.portail .essai { background: #fff1e6; color: var(--essai); border: 1px solid #f5c39e; border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.portail h1.titre-offre { font-size: 26px; text-align: center; margin-bottom: 16px; }
.portail h1.titre-offre::after { margin: 8px auto 0; }
.portail dl.p-offre { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: baseline; }
.portail dl.p-offre dt { color: var(--doux); }
.portail dl.p-offre dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.portail .montant { font-size: 24px; line-height: 1.2; color: var(--vert); }
.portail .conditions { white-space: pre-line; font-size: 14px; color: #333a46; background: #f8f9fb; border: 1px solid var(--ligne); border-radius: 8px; padding: 10px 12px; }
.portail .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.portail .actions.petite { margin-top: 8px; }
.portail button { font: inherit; border-radius: 10px; padding: 13px 16px; border: 1px solid transparent; cursor: pointer; }
.portail button.principal { background: var(--vert); color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(74,132,36,.25); }
.portail button.principal:hover, .portail button.principal:active { background: var(--vert-f); }
.portail button.principal:disabled { opacity: .6; }
.portail button.secondaire { background: #fff; color: var(--vert-f); border-color: var(--vert); font-weight: 600; }
.portail .encart { margin-top: 14px; border-top: 1px solid var(--ligne); padding-top: 12px; }
.portail .encart.refus { border-top: 0; margin-top: 18px; padding: 14px; background: #f8f9fb; border: 1px solid var(--ligne); border-radius: 10px; }
.portail .encart.refus p { margin-top: 0; font-weight: 600; }
.portail label { display: block; font-size: 14px; color: var(--doux); margin: 10px 0 0; }
.portail input, .portail select { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; color: var(--texte); background: #fff; border: 1px solid #c8ced8; border-radius: 8px; padding: 10px 11px; }
/* Même hauteur pour toutes les cases (Safari dessine les champs date plus hauts). */
.portail input:not([type=checkbox]):not([type=radio]):not([type=file]), .portail select { height: 46px; line-height: 24px; }
.portail input[type=date] { -webkit-appearance: none; appearance: none; text-align: left; }
.portail input[type=date]::-webkit-date-and-time-value { text-align: left; }
.portail input:focus, .portail select:focus { outline: 2px solid #b9dba3; border-color: var(--vert); }
.portail .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.portail label.coche { display: flex; gap: 10px; align-items: flex-start; color: var(--texte); font-size: 15px; margin-top: 12px; }
.portail label.coche input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.portail label.fichier input { padding: 8px; }
.portail .p-apercu { display: block; max-width: 100%; max-height: 420px; margin: 10px auto 0; border-radius: 8px; border: 1px solid var(--ligne); }
.portail .tourner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--doux); }
.portail .tourner button { padding: 8px 14px; font-size: 14px; }
.portail .signature { display: block; width: 100%; height: 170px; border: 1.5px dashed #9aa3b2; border-radius: 10px; background: #fff; touch-action: none; }
.portail .erreur { color: var(--erreur); background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.portail-seul .pied { background: var(--sombre); color: #c9ced8; font-size: 13px; line-height: 1.5; margin-top: 24px; padding: 20px 16px 28px; }
.portail-seul .pied-in { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.portail-seul .pied b { color: inherit; }
.portail-seul .legal { background: #2e3236; border-top: 1px solid #3a3f45; color: #a9aeb5; text-align: center; font-size: 13px; padding: 14px 16px 18px; line-height: 1.6; }
.portail-seul .legal nav { margin-top: 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.portail-seul .legal a { color: #f1f3f5; text-decoration: none; }
.portail-seul .legal a:hover { text-decoration: underline; }
.portail-seul .legal span { color: #6f757c; font-weight: 700; }
.portail .p-choix { position: relative; display: block; }
.portail .p-choix select { -webkit-appearance: none; appearance: none; padding-right: 34px; }
.portail .p-choix::after { content: "\25BE"; position: absolute; right: 12px; top: 50%; transform: translateY(-38%); color: var(--vert); pointer-events: none; font-size: 16px; }
.portail .paiements { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
@media (min-width: 560px) { .portail .paiements { grid-template-columns: repeat(3, 1fr); } }
.portail .paiement { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 11px 12px; border: 1.5px solid var(--ligne); border-radius: 10px; color: var(--texte); cursor: pointer; background: #fff; }
.portail .paiement input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--vert); }
.portail .paiement b { display: block; font-size: 15px; }
.portail .paiement small { display: block; color: var(--doux); font-size: 12.5px; }
.portail .paiement:has(input:checked) { border-color: var(--vert); background: var(--vert-clair); }
.portail .encadre { background: var(--vert-clair); border: 1px solid #cfe5c0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.portail label.coche input { accent-color: var(--vert); }
@media (max-width: 380px) { .portail .deux { grid-template-columns: 1fr; } }
