/*
 * Page publique de commande ADSL (/commande-adsl/commander).
 * Feuille de style de la maquette GlobalNet (docs/superpowers/specs/2026-10-20-commande-adsl-commander-mockup.html),
 * de :root au bloc V15 inclus, sans les règles de la page d'accueil (bandeau, entête, cartes de choix, boutique,
 * offres) ; suivie des règles propres à la page réelle.
 */
:root{--orange:#ff6b08;--orange2:#f48a0b;--dark:#17202f;--ink:#17202c;--text:#465264;--muted:#6c7887;--line:#e2e5eb;--wash:#f5f7f9;--shadow:0 12px 38px rgba(22,30,40,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 100% 75% at 50% 40%,#fff 0%,#f6f9fd 100%);color:var(--ink);font-family:Arial,'Segoe UI',sans-serif;line-height:1.45;font-size:14px;min-height:100vh}
button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{text-decoration:none}
main{max-width:1180px;margin:0 auto;padding:72px 24px 64px}.page-heading{text-align:center;margin-bottom:42px}.page-heading h1{font-size:clamp(27px,3.4vw,39px);line-height:1.16;letter-spacing:-1px;margin:0 0 12px;color:#0a0d14}.page-heading p{font-size:clamp(14px,1.8vw,18px);color:#657080;margin:0}
.info{background:#f0f7ff;border:1px solid #cddfff;color:#2867b0;display:flex;gap:13px;align-items:center;margin-top:22px;padding:18px 23px;border-radius:10px;font-size:14px;line-height:1.5}.info svg{width:24px;height:24px;stroke:#2787ee;stroke-width:1.9;fill:none;flex:none}
/* Souscription */
main.formmain{max-width:850px;padding-top:35px}.return{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#526070;margin:0 0 17px}.return:hover{color:#e87500}.return svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}.order-card{border-radius:19px;background:#fff;border:1px solid #e5e6e9;padding:30px 33px 29px;box-shadow:0 14px 35px rgba(21,35,55,.07)}.order-title{font-size:clamp(23px,3vw,29px);font-weight:680;line-height:1.2;margin:0 0 8px;color:#59606b;letter-spacing:-.5px}.order-title span{color:#fd6b17}.subtitle{font-size:12px;color:#7d8593;margin:0 0 29px}.section-title{font-size:14px;font-weight:750;margin:0 0 14px}.block{margin-bottom:17px}.lbl,.field label{display:block;font-weight:700;font-size:12px;margin-bottom:8px}.required{color:#fb6918}.choices{display:grid;gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}.choices.speed{grid-template-columns:repeat(var(--count,3),minmax(0,1fr))}.choices.period{grid-template-columns:repeat(var(--period-count,2),minmax(0,1fr))}.option{position:relative;min-width:0;min-height:40px;border:1px solid #e5e1df;background:#fbfaf9;border-radius:9px;white-space:nowrap;font-size:12px;font-weight:750;padding:9px 6px;color:#151922}.option.selected{background:#ff6d1e;border-color:#ff6d1e;color:white;box-shadow:0 3px 7px rgba(250,96,10,.17)}.option.with-badge{padding-top:15px}.option-badge{position:absolute;top:-8px;right:8px;background:#24a148;color:#fff;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:800;line-height:1.2;box-shadow:0 4px 10px rgba(36,161,72,.22)}main[dir='rtl'] .option-badge{right:auto;left:8px}.option:focus-visible,.btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #ffac64;outline-offset:3px}.option:hover:not(.selected){border-color:#ff6d1e}.hide{display:none!important}.price{display:flex;align-items:center;justify-content:space-between;min-height:53px;padding:13px 13px;border:1px solid #ffbf9d;border-radius:9px;background:#fff1e7;gap:12px}.price .caption{color:#222;font-size:12px;font-weight:650}.price-output{font-size:18px;color:#fa6414;font-weight:750;text-align:right}.price-output small{font-size:11px;font-weight:500;color:#4f5760}.price.pending{background:#faf9f8;border:1px dashed #ddd7d0}.price.pending .price-output{font-size:13px;color:#6c7887}.note{font-size:11px;color:#75818f;line-height:1.55;margin:9px 0 0}.divider{height:1px;background:#e8eaed;margin:24px 0 20px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 11px}.field{min-width:0}.field.full{grid-column:1/-1}.field input,.field select{width:100%;height:42px;border:1px solid #e7e2df;border-radius:9px;padding:0 12px;outline:none;background:#fbfaf9;font-size:12px;color:#273241}.field input:focus,.field select:focus{border-color:#f68a0c;background:#fff}.field input::placeholder{color:#a3a3a9}.locate{border:1px solid #e6e1df;background:#fff;padding:0 13px;white-space:nowrap;border-radius:24px;font-size:11px;font-weight:700;color:#344458}.locate svg{width:14px;height:14px;vertical-align:middle;stroke:#ff6d1e;fill:none;stroke-width:2}.micro{font-size:11px;color:#84909b;margin:6px 0 0}.micro a{color:#c55b1a;text-decoration:underline}.client-row{display:flex;flex-wrap:wrap;gap:14px}.client-row label{font-size:12px;color:#536070;display:inline-flex;align-items:center;gap:7px}.check{font-size:11px;display:flex;align-items:flex-start;gap:9px;color:#576372;margin:11px 0}.check input{flex:none;margin:2px 0}input[type=radio],input[type=checkbox]{accent-color:#fa6e1a}.submit{border:0;border-radius:25px;background:#ff6b1b;color:white;width:100%;min-height:45px;padding:12px 17px;font-size:13px;font-weight:750;box-shadow:0 6px 14px #e96b1840;margin-top:17px}.submit:hover{background:#eb590c}.safe{text-align:center;color:#8793a0;font-size:10px;margin:11px 0 0}.feedback{display:none;background:#f0f7ff;border:1px solid #cce1fa;border-radius:9px;font-size:12px;color:#235f9f;padding:12px 15px;margin-top:14px}.feedback.error{background:#fff1eb;border-color:#ffc7a9;color:#ab410a}
@media(max-width:650px){main{padding:39px 14px}.page-heading{margin-bottom:26px}.info{padding:12px 14px;font-size:12px;align-items:flex-start}.info svg{width:21px;height:21px}main.formmain{padding:19px 10px 35px}.return{margin:0 5px 12px}.order-card{padding:22px 17px}.subtitle{margin-bottom:23px}.fields{gap:12px 9px}.option{font-size:11px}}
@media(max-width:370px){.order-card{padding:18px 12px}.choices{gap:5px}.option{font-size:10.5px;padding:7px 1px}.option.with-badge{padding-top:13px}.option-badge{font-size:8px;padding:2px 6px;top:-7px;right:5px}.price-output{font-size:15px}.fields{grid-template-columns:1fr}.field.full{grid-column:auto}}

/* Single-file app: two distinct screens, no page reload */
html:focus-within{scroll-behavior:smooth}
.form-language-row{display:flex;justify-content:flex-end;margin-bottom:10px}
.language-toggle{display:inline-flex;align-items:center;gap:3px;margin-left:auto;border:1px solid #e6e8eb;background:#f6f6f6;border-radius:8px;padding:4px;white-space:nowrap;flex:none}
.language-button{border:0;background:transparent;color:#647080;padding:6px 10px;border-radius:6px;min-width:34px;font-size:12px;font-weight:800;cursor:pointer}
.language-button.active{background:#ff6b12;color:#fff;box-shadow:0 2px 5px #fe6e1a26}
.order-title > span:first-child{color:#59606b}
.info > span > *{margin-inline-end:5px}
#mobile,#email,#identity,#clientCode{direction:ltr;text-align:left}
#commander[dir=rtl]{font-family:Tahoma,Arial,'Segoe UI',sans-serif}
#commander[dir=rtl] .order-title{letter-spacing:0}
#commander[dir=rtl] .btn svg, #commander[dir=rtl] .return svg, #commander[dir=rtl] .under-actions svg{transform:rotate(180deg)}
#commander[dir=rtl] .price-output{text-align:left}

input.ltr-text{direction:ltr;text-align:left}
#view-placeholder{display:none}
.screen-announcement{position:absolute;left:-9999px;top:-9999px}
@media(max-width:650px){.language-toggle{margin-left:0}.language-button{padding:7px 8px}}

/* V10 : ventilation TTC de la commande et choix de paiement */
#commander .pricing-details{margin-top:15px;display:grid;gap:12px}
#commander .pricing-details.hide{display:none}
.pricing-heading{font-weight:800;font-size:13px;color:#263343;margin:2px 0 1px}
.promo-information{background:#fff9ed;border:1px solid #f7dec0;border-radius:9px;padding:11px 13px;font-size:12px;color:#79501c;line-height:1.5}
.promo-information:empty{display:none}
.billing-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.billing-option{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:52px;white-space:normal}
.billing-option small{font-size:10px;font-weight:500;opacity:.88}
.cost-card{border:1px solid #e9e4dc;background:#fbfaf9;border-radius:12px;padding:12px 14px}
.cost-row{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px;padding:7px 0;color:#4e5b68}
.cost-row strong{font-size:13px;color:#273241;white-space:nowrap}
.cost-row .free{color:#218351}
.cost-row.total{border-top:1px solid #e3e0da;margin-top:7px;padding-top:12px;color:#24303c;font-weight:800}
.cost-row.total strong{color:#f0640c;font-size:20px}
.cost-note{color:#6e7b88;font-size:11px;line-height:1.5;margin:6px 0 0}
.cost-note.avance{color:#ab410a;font-size:12px;font-weight:700;margin-top:8px}
.delivery-section{margin:18px 0 23px;padding:16px 17px;border:1px solid #e7e9ed;background:#fcfcfd;border-radius:12px}
.delivery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:9px 0 13px}
.delivery-options label{display:flex;align-items:center;gap:8px;padding:11px;border:1px solid #e3e6eb;border-radius:8px;background:white;font-size:12px;cursor:pointer;min-height:48px}
.delivery-options label:has(input:checked){border-color:#fb7919;background:#fff4eb}
.delivery-options input{flex:none}
/* Street Shop : trois modes (domicile, agence, revendeur), contrat signé à joindre */
.delivery-options.trois{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.contract-row{margin:0 0 20px}
.field input[type=file]{height:auto;padding:9px 12px}
.field label .optional{font-weight:500;color:#84909b}
#deliveryAddressRow{margin-bottom:6px}
.delivery-subpanel{padding-top:4px}
.delivery-subpanel .field{margin-bottom:6px}
#agency{width:100%;height:42px;border:1px solid #e7e2df;border-radius:9px;padding:0 12px;background:white;font-size:12px;color:#273241}
.delivery-subpanel input{width:100%;height:42px;border:1px solid #e7e2df;border-radius:9px;padding:0 12px;background:white;font-size:12px;color:#273241}
#commander[dir=rtl] .cost-row strong{text-align:left}
@media(max-width:650px){.billing-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-option{min-height:49px}.delivery-section{padding:13px}.delivery-options label{font-size:11px;padding:9px}.cost-row.total strong{font-size:18px}}

/* V11: Review tariff at the end and tasteful gift indicator */
#commander .tariff-review-divider{margin:24px 0 20px}
#commander .pricing-details{margin:0 0 20px;gap:15px}
#commander .pricing-heading{font-size:16px;color:#192335}
#commander .promo-information{display:flex;align-items:center;gap:14px;padding:15px 17px;background:linear-gradient(110deg,#e9fbf0,#f6fff9);color:#146b3b;border:1px solid #a6e7bd;border-radius:12px;line-height:1.5}
#commander .promo-gift-icon{flex:none;color:#119a51;width:30px;height:30px}
#commander .promo-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
#commander .promo-copy strong{font-size:11px;letter-spacing:.045em;color:#127545}
#commander .promo-copy span{font-size:12px;font-weight:650;color:#235e40}
#commander .promo-information.gift{box-shadow:0 0 0 0 rgba(23,160,92,0);animation:gift-soft-highlight 1.6s ease-in-out 3}
@keyframes gift-soft-highlight{0%,100%{box-shadow:0 0 0 0 rgba(23,160,92,0)}50%{box-shadow:0 0 0 5px rgba(23,160,92,.12)}}
@media(prefers-reduced-motion:reduce){#commander .promo-information.gift{animation:none}}
@media(max-width:650px){#commander .pricing-heading{font-size:15px}#commander .promo-information{padding:12px 13px;gap:10px}#commander .promo-copy span{font-size:11px}#commander .cost-row.total strong{font-size:18px}}

/* V13: immediate, bilingual promo visibility under the offer price */
#commander #techChoices .tech-promo{padding-top:13px}
#commander #techChoices .tech-promo .option-badge{top:-8px;right:9px;background:#20a354}
#commander[dir="rtl"] #techChoices .tech-promo .option-badge{right:auto;left:9px}
#commander #offerFlow>.promo-information{margin:12px 0 6px;align-items:flex-start}
#commander .promo-copy strong{font-size:12px;letter-spacing:0;color:#126e3d}
#commander .promo-benefits{display:flex;flex-direction:column;gap:3px}
#commander .promo-benefits span{font-size:12px;font-weight:700;color:#145d37}
#commander .promo-information.gift{animation:gift-soft-highlight 1.4s ease-in-out 2}
@media(max-width:420px){#commander #techChoices .tech-promo{padding-top:15px}#commander #techChoices .tech-promo .option-badge{font-size:8px}#commander .promo-benefits span{font-size:11px}}

/* V15: stamp duty and GBox prepayment explanation */
.gbox-prepay-notice{margin:14px 0 0;padding:12px 14px;background:#fff6ec;border:1px solid #ffcfab;border-radius:10px;display:flex;gap:11px;align-items:flex-start;color:#6e431c}
.gbox-prepay-notice svg{flex:none;width:21px;height:21px;stroke:#f17414;fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;margin-top:2px}
.gbox-prepay-notice strong{display:block;font-size:12px;color:#7d3c0d;margin-bottom:4px}
.gbox-prepay-notice span{font-size:11px;line-height:1.55;display:block}
.gbox-pay-instruction{border:1px solid #f8debd;border-radius:9px;background:#fffbf5;padding:11px 13px;color:#734918;font-size:12px;line-height:1.6}
.gbox-pay-instruction strong{color:#c15b09}
.cost-row.recurring{margin-top:8px;padding-top:12px;border-top:1px dashed #d8dedf}
.cost-row.recurring strong{color:#136647}
#commander[dir=rtl] .gbox-prepay-notice{text-align:right}
#commander .cost-row strong{font-variant-numeric:tabular-nums}
@media(max-width:650px){.gbox-prepay-notice{padding:11px}.cost-row.recurring{align-items:flex-start}.cost-row.recurring strong{white-space:nowrap}}

/* Ajouts de la maquette : options offertes, choix code client / CIN, bouton désactivé */
.extras{display:grid;gap:7px}.extras label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e5e1df;border-radius:9px;background:#fbfaf9;font-size:12px;cursor:pointer}.extras label:has(input:checked){border-color:#fb7919;background:#fff4eb}.extras .x-price{margin-inline-start:auto;font-weight:750;color:#fa6414;white-space:nowrap}
.subchoices{display:flex;gap:14px;margin:4px 0 8px}.subchoices label{font-size:12px;display:inline-flex;gap:6px;align-items:center}
.submit:disabled{background:#f3b48c;box-shadow:none;cursor:not-allowed}

/* Page réelle : erreurs serveur, carte OpenLayers, champ mobile intl-tel-input */
.err{color:#c0392b;font-size:11px;margin:5px 0 0}
#map{height:260px;border-radius:9px;overflow:hidden;border:1px solid #e7e2df}
#commander .map-coords{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin-top:8px}
#commander .map-coords p{margin:0;font-size:12px;color:#344458;min-width:0;overflow-wrap:anywhere}
#commander .map-coords .locate{height:36px;flex:none}
.field .iti{display:block;width:100%}
#valid-msg,#error-msg{display:block;font-size:11px;margin:5px 0 0}#valid-msg{color:#218351}#error-msg{color:#c0392b}
#gsmClient,#emailClient,#identifiant,#codeClientExistant,#cinClientExistant,#codePostal{direction:ltr;text-align:left}
.recaptcha-row{display:flex;justify-content:center;margin-top:14px}
.field .subchoices input{width:auto;height:auto}
/* Note d'offre (descriptif du produit) : encadré vert mis en avant sous l'encadré prix, style de .promo-information */
#commander .offer-note{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding:13px 15px;background:linear-gradient(110deg,#e9fbf0,#f6fff9);border:1px solid #a6e7bd;border-radius:12px;color:#146b3b;font-size:14px;font-weight:700;line-height:1.45;box-shadow:0 0 0 0 rgba(23,160,92,0);animation:gift-soft-highlight 1.4s ease-in-out 2}
#commander .offer-note-icon{flex:none;width:28px;height:28px;color:#119a51}
#commander .offer-note span{min-width:0;overflow-wrap:anywhere;white-space:pre-line}
@media(prefers-reduced-motion:reduce){#commander .offer-note{animation:none}}
@media(max-width:650px){#commander .offer-note{padding:12px 13px;gap:9px}#commander .offer-note-icon{width:26px;height:26px}}
/* Montants « 89,900 DT » : en arabe, l'ordre bidi les afficherait « DT 89,900 » */
#commander[dir=rtl] .price-output,#commander[dir=rtl] .cost-row strong,#commander[dir=rtl] .x-price,#commander[dir=rtl] .billing-option small{direction:ltr;unicode-bidi:isolate}
