:root{--navy:#17275b;--blue:#263b7c;--gold:#d8ad35;--red:#a6272f;--ink:#182033;--muted:#687086;--bg:#f3f6fb;--card:#fff;--line:#dfe4ee}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.55}.site-header{display:flex;align-items:center;gap:14px;padding:14px max(18px,calc((100% - 1040px)/2));background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.site-header strong,.site-header span{display:block}.site-header span{font-size:.82rem;color:var(--muted)}.brand-mark{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:900;border:4px solid #e7c35c}.container{max-width:1040px;margin:auto;padding:26px 18px 50px}.hero{padding:44px 30px;border-radius:24px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;margin-bottom:22px;box-shadow:0 16px 40px #17275b22}.hero.compact{padding:28px 30px}.hero h1{margin:.15em 0;font-size:clamp(2rem,6vw,3.5rem);line-height:1.05}.hero p{margin:.6rem 0 0;color:#e9edff}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.76rem;font-weight:800;color:#dcb94e}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 10px 30px #17275b0b}.form-card{max-width:900px;margin:auto}.form-card.narrow{max-width:520px}.form-card h2{margin:12px 0 18px;color:var(--navy);border-bottom:1px solid var(--line);padding-bottom:8px}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-weight:650;margin-bottom:16px}input,select,textarea{width:100%;margin-top:7px;padding:12px 13px;border:1px solid #cbd2df;border-radius:10px;background:#fff;font:inherit;color:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #263b7c18}.question{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid #edf0f5;font-weight:650}.question div{display:flex;gap:18px;white-space:nowrap}.question label{margin:0;font-weight:500}.question input,.consent input{width:auto;margin:0 5px 0 0}.consent{background:#f7f8fb;border-radius:12px;padding:14px;font-weight:500;margin-top:20px}.btn{display:inline-block;border:0;border-radius:10px;padding:12px 18px;font-weight:750;text-decoration:none;cursor:pointer;font:inherit}.btn.primary{background:var(--navy);color:#fff}.btn.ghost{background:#fff;color:var(--navy);border:1px solid #cdd4e2}.form-card>.btn.primary{width:100%;margin-top:5px}.form-help,.center{text-align:center}.form-help a{color:var(--blue);font-weight:700}.alert{padding:14px 18px;border-radius:12px;margin:0 auto 18px;max-width:900px}.alert.error{background:#fff0f0;color:#8a1d25;border:1px solid #f2c9cd}.alert.success{background:#eefaf1;color:#226338;border:1px solid #ccebd5}.hidden{display:none!important}.program-hero{text-align:center;background:radial-gradient(circle at top,#5068a5,var(--navy) 68%)}.program-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.program-card{background:#fff;border-radius:18px;padding:24px;border:1px solid var(--line);position:relative;overflow:hidden}.program-card:after{content:"";position:absolute;right:-30px;bottom:-40px;width:130px;height:130px;border-radius:50%;background:#d8ad3517}.program-card .number{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;font-weight:800}.program-card h2{font-size:1rem;text-transform:uppercase;color:var(--navy)}.program-card h3{font-size:1.35rem;margin:.4rem 0}.time{font-weight:850;font-size:1.2rem;color:var(--red)}.quote{text-align:center;margin:20px 0;border-top:4px solid var(--gold)}.quote strong{color:var(--red)}.contacts h2{color:var(--navy)}.site-footer{text-align:center;color:var(--muted);padding:25px;border-top:1px solid var(--line);background:#fff}.admin-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.admin-head h1{margin:.2rem 0}.badge{font-size:.8rem;background:var(--navy);color:#fff;padding:4px 9px;border-radius:999px}.search{display:flex;gap:10px;margin-bottom:18px}.search input{margin:0}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse;min-width:900px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid #edf0f5;vertical-align:top}th{background:#f8f9fc;color:var(--navy);font-size:.8rem;text-transform:uppercase}td small{display:block;color:var(--muted);margin-top:4px}@media(max-width:700px){.site-header{position:static}.site-header strong{font-size:.9rem}.grid.two,.program-grid{grid-template-columns:1fr}.hero{padding:30px 20px;border-radius:18px}.question{display:block}.question div{margin-top:9px}.admin-head{display:block}.admin-head>div:last-child{margin-top:12px}.search{display:block}.search .btn{width:100%;margin-top:8px}.container{padding:18px 12px 40px}.card{padding:18px}}

/* Accès mobile et retour des visiteurs */
.already-member{max-width:900px;margin:0 auto 22px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;border:2px solid var(--gold);background:linear-gradient(135deg,#fffdf5,#fff);box-shadow:0 14px 34px #17275b18}.already-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:1.7rem;font-weight:900}.already-copy h2{margin:2px 0 4px;color:var(--navy);font-size:1.65rem}.already-copy p{margin:0;color:var(--muted)}.already-kicker{display:block;color:#9a7412;font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.already-button{white-space:nowrap}.new-registration-title{max-width:900px;margin:26px auto 12px;text-align:center}.new-registration-title span{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:800}.new-registration-title h2{margin:3px 0 0;color:var(--navy)}
@media(max-width:700px){body{font-size:16px}.site-header{padding:11px 14px;gap:10px}.brand-mark{width:44px;height:44px;flex:0 0 44px}.container{width:100%;padding:14px 10px 32px}.hero.compact{padding:22px 18px;margin-bottom:14px}.hero h1{font-size:1.8rem}.hero p{font-size:.95rem}.already-member{grid-template-columns:48px 1fr;padding:16px;gap:12px;margin-bottom:20px}.already-icon{width:48px;height:48px}.already-copy h2{font-size:1.35rem}.already-copy p{font-size:.92rem}.already-button{grid-column:1/-1;width:100%;text-align:center;padding:14px 16px;font-size:1rem}.new-registration-title{margin:22px auto 10px}.new-registration-title h2{font-size:1.25rem}.form-card{border-radius:14px;padding:16px}.form-card h2{font-size:1.15rem;margin-top:8px}.grid.two{gap:0}label{margin-bottom:14px}input,select,textarea{min-height:48px;font-size:16px;padding:12px}.question{padding:14px 0}.question div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.question label{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #d8deea;border-radius:10px;background:#f8f9fc}.question input{margin-right:7px}.consent{font-size:.92rem}.form-card>.btn.primary{min-height:50px;font-size:1rem}.program-card{padding:18px}.site-footer{padding:20px 12px}}

/* Administration des inscriptions */
.site-footer{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}.admin-footer-link{color:var(--muted);font-size:.78rem;text-decoration:none;border-left:1px solid var(--line);padding-left:14px}.admin-footer-link:hover{color:var(--navy)}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 6px 18px #17275b0a}.stat-card strong{display:block;color:var(--navy);font-size:1.65rem;line-height:1}.stat-card span{display:block;color:var(--muted);font-size:.82rem;margin-top:7px}.admin-result-count{color:var(--muted);font-size:.9rem;margin:-8px 0 14px}
@media(max-width:700px){.admin-actions{display:grid;grid-template-columns:1fr;width:100%}.admin-actions .btn{text-align:center}.admin-stats{grid-template-columns:1fr 1fr}.stat-card{padding:14px}.stat-card strong{font-size:1.4rem}.site-footer{display:block}.admin-footer-link{display:block;border-left:0;padding-left:0;margin-top:8px}.table-wrap{-webkit-overflow-scrolling:touch}}


/* QR Code — administration */
.qr-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 20px 0;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.qr-admin-copy {
    flex: 1;
    min-width: 0;
}

.qr-admin-copy h2 {
    margin: 4px 0 10px;
}

.qr-url {
    overflow-wrap: anywhere;
}

.qr-admin-image {
    flex: 0 0 220px;
    text-align: center;
}

.qr-admin-image img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .qr-admin-card {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-admin-image {
        flex-basis: auto;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .qr-admin-card,
    .qr-admin-card * {
        visibility: visible !important;
    }

    .qr-admin-card {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        border: 0;
        display: block;
        text-align: center;
    }

    .qr-admin-copy p,
    .qr-admin-copy .admin-actions {
        display: none !important;
    }

    .qr-admin-image img {
        width: 320px;
    }
}

.qr-settings-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.qr-settings-form label {
    display: grid;
    gap: 6px;
}

.qr-settings-form label > span {
    font-weight: 700;
}

.qr-settings-form input[type="url"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    box-sizing: border-box;
}

.qr-settings-form small {
    color: #64748b;
}

.qr-feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.qr-feedback.success {
    background: #ecfdf5;
    color: #166534;
}

.qr-feedback.error {
    background: #fef2f2;
    color: #991b1b;
}

#cirQrCanvas {
    display: block;
    width: min(100%, 360px);
    height: auto;
    background: #fff;
    border-radius: 8px;
}

.qr-admin-image .qr-url {
    max-width: 360px;
    overflow-wrap: anywhere;
    text-align: center;
}


/* Formulaire d'inscription — mobile et signature tactile */
.registration-form { overflow: hidden; }
.form-section-heading { display:flex; align-items:center; gap:12px; margin:8px 0 18px; }
.form-section-heading > span { flex:0 0 36px; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:var(--navy); color:#fff; font-weight:850; }
.form-section-heading h2 { margin:0; padding:0; border:0; font-size:1.25rem; }
.form-section-heading p { margin:2px 0 0; color:var(--muted); font-size:.9rem; }
.signature-heading { margin-top:28px; }
.signature-field { margin:0 0 18px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#f8f9fc; }
.signature-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.signature-toolbar strong,.signature-toolbar small { display:block; }
.signature-toolbar small { margin-top:2px; color:var(--muted); font-weight:400; }
.signature-clear { padding:9px 14px; white-space:nowrap; }
.signature-pad-wrap { position:relative; width:100%; height:210px; background:#fff; border:2px dashed #b9c2d2; border-radius:12px; overflow:hidden; }
.signature-pad { display:block; width:100%; height:100%; touch-action:none; cursor:crosshair; position:relative; z-index:2; }
.signature-pad:focus { outline:3px solid #263b7c22; outline-offset:-3px; }
.signature-guide { position:absolute; left:8%; right:8%; bottom:42px; z-index:1; border-bottom:1px solid #d7dce6; color:#a0a8b8; text-align:center; font-size:.8rem; line-height:2; pointer-events:none; }
.signature-error { margin:10px 0 0; color:#991b1b; font-size:.9rem; font-weight:700; }

@media (max-width:700px) {
    .registration-form { padding:14px; border-radius:16px; }
    .form-section-heading { align-items:flex-start; margin:6px 0 14px; }
    .form-section-heading > span { flex-basis:32px; width:32px; height:32px; }
    .form-section-heading h2 { font-size:1.08rem; }
    .form-section-heading p { font-size:.84rem; }
    .registration-form input,.registration-form select,.registration-form textarea { width:100%; border-radius:12px; }
    .registration-form textarea { min-height:100px; resize:vertical; }
    .question > span { display:block; margin-bottom:10px; line-height:1.35; }
    .question div { margin-top:0; }
    .question label { margin-bottom:0; padding:9px 12px; }
    .signature-field { margin-left:-2px; margin-right:-2px; padding:12px; }
    .signature-toolbar { align-items:flex-start; }
    .signature-toolbar small { font-size:.78rem; }
    .signature-clear { min-height:44px; }
    .signature-pad-wrap { height:180px; }
    .consent { display:flex; align-items:flex-start; gap:8px; padding:13px; line-height:1.4; }
    .consent input { flex:0 0 auto; width:20px; height:20px; min-height:0; margin:1px 0 0; }
}

@media (max-width:380px) {
    .signature-toolbar { display:block; }
    .signature-clear { width:100%; margin-top:10px; }
    .signature-pad-wrap { height:165px; }
}

.admin-signature{display:block;width:120px;max-height:54px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:6px;padding:3px}

/* Inscription hors connexion */
.offline-status{margin:0 0 18px;padding:12px 14px;border-radius:12px;font-weight:650;line-height:1.4}.offline-status.info{background:#eef4ff;color:#243b76;border:1px solid #cedafb}.offline-status.offline{background:#fff7df;color:#73580b;border:1px solid #ead58e}.offline-status.sending{background:#eefaf1;color:#226338;border:1px solid #ccebd5}.offline-help{margin:10px 0 0;text-align:center;color:var(--muted);font-size:.82rem}.registration-form button[type="submit"]:disabled{opacity:.65;cursor:wait}
@media(max-width:700px){.offline-status{font-size:.9rem;padding:11px 12px}.offline-help{font-size:.78rem;line-height:1.4}}

/* CIR - Correctif mobile des choix Oui / Non */
.question input[type="radio"] {
    -webkit-appearance: radio;
    appearance: auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    margin: 0 8px 0 0;
    padding: 0;
    flex: 0 0 20px;
    box-shadow: none;
}

@media (max-width: 700px) {
    .question > div {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .question label {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        white-space: normal;
        line-height: 1.2;
    }

    .question input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin: 0;
    }
}

/* Formulaire d'inscription en étapes */
.form-progress{margin:0 0 24px;padding:14px 16px;background:#f7f8fc;border:1px solid var(--line);border-radius:14px}.form-progress-bar{height:7px;background:#e2e6ef;border-radius:999px;overflow:hidden}.form-progress-bar span{display:block;width:33.333%;height:100%;background:var(--navy);border-radius:inherit;transition:width .25s ease}.form-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:9px;font-size:.86rem}.form-progress-meta strong{color:var(--navy)}.form-progress-meta span{color:var(--muted)}.form-step[hidden]{display:none!important}.form-step{animation:cirStepIn .18s ease}.step-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.step-actions-next{justify-content:flex-end}.step-actions .btn{min-width:140px}.final-actions{margin-top:14px}.final-actions .step-prev{margin-right:auto}.registration-form>.form-step .btn#registrationSubmit{width:auto;min-width:220px;margin-top:5px}@keyframes cirStepIn{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:700px){.form-progress{position:sticky;top:67px;z-index:6;margin:-2px -2px 18px;padding:12px 13px;background:#fff}.form-progress-meta{font-size:.8rem}.form-step{min-height:280px}.step-actions{position:sticky;bottom:0;z-index:5;margin:22px -14px -14px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 18px rgba(23,39,91,.06)}.step-actions .btn{flex:1;min-width:0;min-height:48px}.step-actions-next .btn{flex:1}.registration-form>.form-step .btn#registrationSubmit{width:100%;min-width:0;min-height:50px}.final-actions{position:static;margin:12px 0 0;padding:0;border:0;box-shadow:none}.signature-heading{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.form-step{animation:none}.form-progress-bar span{transition:none}}

/* Logo officiel CIR */
.brand-mark{width:72px;height:72px;flex:0 0 72px;border:0;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:center;overflow:hidden}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.admin-contacts-table table{min-width:2500px}
.admin-contacts-table td{max-width:240px}
@media(max-width:700px){.brand-mark{width:58px;height:58px;flex-basis:58px}.site-header>div:last-child{min-width:0}}


/* Téléphone : drapeau + indicatif pays */
.phone-field{display:flex;width:100%;gap:8px;margin-top:7px}.phone-field .phone-country{flex:0 0 132px;width:132px;min-width:132px;padding-left:12px;padding-right:8px}.phone-field input{flex:1;min-width:0;margin-top:0}.phone-field select{margin-top:0}@media(max-width:480px){.phone-field{gap:6px}.phone-field .phone-country{flex-basis:122px;width:122px;min-width:122px;padding-left:9px}.phone-field input{padding-left:12px;padding-right:10px}}

/* Premier écran : orientation inscrit / nouvelle inscription */
.access-choice{max-width:900px;margin:48px auto;display:grid;grid-template-columns:90px 1fr;gap:24px;align-items:center;padding:34px;border:2px solid var(--gold);background:linear-gradient(135deg,#fffdf5,#fff);box-shadow:0 16px 40px #17275b18}.access-choice-icon{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:2.2rem;font-weight:900}.access-choice-copy h1{margin:5px 0 8px;color:var(--navy);font-size:clamp(1.7rem,4vw,2.45rem);line-height:1.15}.access-choice-copy p{margin:0;color:var(--muted);font-size:1.05rem}.access-choice-actions{grid-column:2;display:flex;gap:12px;flex-wrap:wrap;margin-top:2px}.access-choice-actions .btn{min-width:210px;text-align:center;padding:14px 20px}
@media(max-width:700px){.access-choice{margin:18px auto;grid-template-columns:58px 1fr;gap:14px;padding:22px 16px;border-radius:18px}.access-choice-icon{width:58px;height:58px;font-size:1.7rem}.access-choice-copy h1{font-size:1.55rem}.access-choice-copy p{font-size:.94rem}.access-choice-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr;width:100%;margin-top:8px}.access-choice-actions .btn{width:100%;min-width:0;min-height:52px;display:flex;align-items:center;justify-content:center}.new-registration-title{margin-top:8px}}

/* Footer CIR : navigation contextuelle et crédit TIC4ALL */
.site-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.footer-nav{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}.footer-nav a,.footer-copyright a{font-weight:700;text-decoration:none}.footer-nav a:hover,.footer-copyright a:hover{text-decoration:underline}.footer-copyright{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
@media(max-width:700px){.site-footer{flex-direction:column;align-items:center;text-align:center;gap:14px}.footer-nav{justify-content:center;width:100%;gap:8px 14px}.footer-copyright{justify-content:center;font-size:.86rem}}
