/* Habillage « Espace pro » du nouveau site (18/11/2026, Marco : « passer le design du formulaire sur sa version »).
   Source : Guidelines_formulaires_contrats_en_ligne_Gondwana_V1.pdf d'Annabelle (18/11/2026) et capture de la page
   « Pour les pros ». Fond de parcours bleu #3A6685, surfaces de saisie creme #FDF5E7, action principale jaune #FFEB87,
   textes #2D4F66 ; Cal Sans pour titres, etapes et boutons, Lato pour le reste. Champs et boutons 52 px, arrondis
   12 (champs) et 24 (panneaux). Erreur #8B253C, succes #245B4B. Corail #FF6C6C jamais pour du texte (contraste 2,5).
   Charge APRES le <style> du formulaire : il remplace l'habillage sans toucher au HTML ni au JS. Pas de mode sombre :
   le site n'en a pas. L'habillage precedent (site actuel, 15-17/11) reste dans l'historique Git. */
html:has(#gwb-app),#gwb-app{
  color-scheme:light;
  --font:"Lato",system-ui,sans-serif;--titre:"Cal Sans","Lato",system-ui,sans-serif;
  --pro-bleu:#3A6685;--pro-encre:#2D4F66;--pro-creme:#FDF5E7;--pro-jaune:#FFEB87;--pro-jaune-f:#F7DC5C;
  --pro-ciel:#A0CDE6;--pro-rose:#FADFE8;--pro-menthe:#C1F0F1;--pro-corail:#FF6C6C;
  --color-bg:#FDF5E7;--color-surface:#FDF5E7;--color-text:#2D4F66;--color-muted:#2D4F66;
  --color-grid:#E9DEC9;--color-border:#D9CDB6;--color-primary:#3A6685;--color-primary-d:#2D4F66;
  --color-neg:#8B253C;--color-ok:#245B4B;--color-divers:#3A6685;--color-on-accent:#2D4F66;
  --color-field:#8FA3B1;--color-off:#B9AF9C;
  --color-sable:#F6E9CF;--color-sable-10:#FAF0DC;--color-surface-2:#F6EEDD;
}
body{margin:0;background:#3A6685}
#gwb-app{font-family:var(--font);font-weight:400;color:var(--color-text);background:transparent;max-width:900px;padding:8px 20px 24px}
#gwb-app input::placeholder,#gwb-app textarea::placeholder{color:#566672}

/* ---- En-tete du site : barre blanche, onglet « Pour les pros », sous-menu bleu ---- */
.gws-in{max-width:1200px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));display:flex;align-items:center;gap:24px}
.gws-barre{background:#FFFFFF}
.gws-barre .gws-in{min-height:78px;align-items:stretch}
.gws-logo{display:flex;align-items:center}
.gws-logo img{width:190px;height:auto;display:block}
.gws-nav{display:flex;align-items:center;gap:0 40px;margin-left:auto}
.gws-nav span{font:500 15px/1.2 "Lato",system-ui,sans-serif;color:#2D4F66;text-align:center;max-width:150px;cursor:default;user-select:none}
.gws-pros{align-self:flex-end;background:#3A6685;color:#FFFFFF;font:400 15px/1 "Cal Sans","Lato",sans-serif;text-transform:uppercase;padding:22px 22px 26px;border-radius:24px 24px 0 0;margin-left:16px;cursor:default;user-select:none}
.gws-retour{display:none;margin-left:auto;align-self:center;font:400 15px/1.2 "Cal Sans","Lato",sans-serif;color:#2D4F66;text-decoration:underline;padding:12px 0}
.gws-sous{background:#3A6685;border-bottom:1px solid #A0CDE6}
.gws-sous .gws-in{min-height:76px;gap:0 56px}
.gws-sous span{font:400 15px/1.2 "Cal Sans","Lato",sans-serif;color:#C1F0F1;max-width:130px;cursor:default;user-select:none}
.gws-bas{background:#2D4F66;color:#FDF5E7;font:400 14px/1.5 "Lato",system-ui,sans-serif;margin-top:32px}
.gws-bas .gws-in{min-height:56px;flex-wrap:wrap;gap:6px 18px;padding-block:14px}
.gws-bas a{color:#FDF5E7}
@media (max-width:1100px){.gws-nav{gap:0 24px}.gws-sous .gws-in{gap:0 32px}}
@media (max-width:980px){
  .gws-nav,.gws-sous{display:none}
  .gws-pros{display:none}
  .gws-retour{display:inline-block}
  .gws-logo img{width:160px}
  .gws-barre .gws-in{min-height:66px}
  .gws-barre{border-bottom:4px solid #3A6685}
}

/* ---- Accroche sur le fond bleu : titre Cal Sans jaune, comme « Nouveau client ? » ---- */
#gwb-app .gwb-head{grid-template-columns:minmax(0,1fr);text-align:center;margin:40px 0 32px}
#gwb-app .gwb-head>img{display:none}
#gwb-app .gwb-heros{background:none;padding:0}
#gwb-app .gwb-heros .t{font:400 1.125rem/1.3 var(--titre);color:#C1F0F1;letter-spacing:0;text-transform:none}
#gwb-app .gwb-heros h1{font:400 3rem/1.05 var(--titre);color:#FFEB87;letter-spacing:-.01em;text-transform:none;margin:.4rem 0 .5rem}
#gwb-app .gwb-heros .gwb-sub{font:400 1.125rem/1.4 var(--font);color:#FFFFFF;text-transform:none;letter-spacing:0}
#gwb-app .gwb-reassure{color:#FFFFFF;margin-top:.9rem;font-size:.9375rem}
#gwb-app .gwb-reassure span{font-style:normal}
#gwb-app .gwb-reassure span+span::before{content:"·";color:#FFEB87;font-weight:700}
@media (max-width:700px){#gwb-app .gwb-heros h1{font-size:2rem}#gwb-app .gwb-head{margin:24px 0 24px}}

/* ---- Etapes sur le fond bleu ---- */
#gwb-app .gwb-steps{color:#FFFFFF}
#gwb-app .gwb-step{font:400 1rem/1.3 var(--titre);color:#C1F0F1;border-top:2px solid #A0CDE6;text-transform:none;letter-spacing:0}
#gwb-app .gwb-step .n{font-family:var(--titre);color:#FFEB87}
#gwb-app .gwb-step.active{border-top:4px solid #FFEB87;color:#FFFFFF}
#gwb-app .gwb-reste{color:#FFFFFF}

/* ---- Panneaux creme arrondis ---- */
#gwb-app .gwb-card,#gwb-app .gwb-pied{background:#FDF5E7;border:0;border-radius:24px;padding:32px;margin-top:24px}
#gwb-app .gwb-card.gwb-conv{background:#FDF5E7}
@media (max-width:560px){#gwb-app .gwb-card,#gwb-app .gwb-pied{padding:24px 20px;border-radius:20px}}
#gwb-app h1,#gwb-app h2,#gwb-app h3{font-family:var(--titre);font-weight:400;letter-spacing:0;text-transform:none}
#gwb-app h2{color:#2D4F66;font-size:1.75rem;line-height:1.15}
@media (max-width:700px){#gwb-app h2{font-size:1.5rem}}
#gwb-app .gwb-fin h3{color:#2D4F66}
#gwb-app .gwb-intertitre,#gwb-app .gwb-fin .sur,#gwb-app .gwb-recap dt{color:#2D4F66}
#gwb-app .gwb-pied .nom{font-family:var(--titre);text-transform:none;color:#2D4F66;font-size:1.25rem}
#gwb-app .gwb-pied svg{color:#3A6685}
#gwb-app .gwb-suite li .n{font-family:var(--titre);color:#3A6685}
#gwb-app a{color:#2D4F66}

/* ---- Champs : libelle permanent, 52 px, arrondi 12, focus double repere bleu ---- */
#gwb-app label{font-weight:700;font-size:.9375rem;color:#2D4F66}
#gwb-app input,#gwb-app select,#gwb-app textarea{border:1.5px solid var(--color-field);border-radius:12px;padding:9px 14px;background:#FFFFFF;color:#2D4F66;font-size:1rem}
#gwb-app input:not([type=checkbox]):not([type=radio]):not([type=file]),#gwb-app select{min-height:46px} /* 30/11/2026 (Marco) : un peu moins hauts que les 52 px du guide */
#gwb-app input:hover,#gwb-app select:hover,#gwb-app textarea:hover{border-color:#3A6685}
#gwb-app input:focus,#gwb-app select:focus,#gwb-app textarea:focus{border-color:#3A6685}
#gwb-app input:not([type=checkbox]):not([type=radio]):not([type=file]):focus-visible,#gwb-app select:focus-visible,#gwb-app textarea:focus-visible{outline:2px solid #3A6685;outline-offset:2px;border-color:#3A6685;box-shadow:none}
#gwb-app input[type=checkbox],#gwb-app input[type=radio]{border:0;padding:0;accent-color:#3A6685;width:20px;height:20px}
#gwb-app input[type=file]{border:0;padding:6px 0;background:none}
#gwb-app input[readonly]{background:var(--color-surface-2);color:#2D4F66}
#gwb-app [aria-invalid="true"],#gwb-app input[aria-invalid="true"]:focus-visible{border-color:#8B253C;outline-color:#8B253C}

/* ---- Boutons : principal jaune, secondaire contour encre ; Cal Sans, arrondis ---- */
#gwb-app .gwb-btn{min-height:52px;border-radius:12px;border:1.5px solid #2D4F66;background:transparent;color:#2D4F66;font:400 1rem/1.2 var(--titre);text-transform:none;letter-spacing:0;padding:12px 22px}
#gwb-app .gwb-btn:hover{background:#F6E9CF}
#gwb-app .gwb-btn.orange{background:#FFEB87;border-color:#FFEB87;color:#2D4F66}
#gwb-app .gwb-btn.orange:hover{background:#F7DC5C;border-color:#F7DC5C}
#gwb-app .gwb-btn.big{font-size:1.0625rem}
#gwb-app .gwb-btn.link{min-height:0;border:0;padding:4px 0;text-decoration:underline;font-family:var(--font);font-weight:700;color:#2D4F66}
#gwb-app .gwb-btn.link:hover{background:none;color:#3A6685}
#gwb-app .gwb-btn:disabled,#gwb-app .gwb-btn.orange:disabled{background:#E9DEC9;border-color:#B9AF9C;color:#44525C;cursor:not-allowed}
#gwb-app .gwb-btn:focus-visible,#gwb-app .gwb-tab:focus-visible,#gwb-app .gwb-day:focus-visible{outline:2px solid #3A6685;outline-offset:2px}

/* ---- Onglets, calendrier, messages ---- */
#gwb-app .gwb-tab{font:400 1rem/1.2 var(--titre);color:#3A6685}
#gwb-app .gwb-tab:hover{color:#2D4F66}
#gwb-app .gwb-tab.active{color:#2D4F66;border-bottom-color:#3A6685}
#gwb-app .gwb-day.edge,#gwb-app .gwb-day.edge:hover{background:#3A6685!important;color:#FFFFFF}
#gwb-app .gwb-day.inrange:hover{background:#A6E4E6!important}
#gwb-app .gwb-day.inrange{background:#C1F0F1}
#gwb-app .gwb-banner{border-radius:12px}
#gwb-app .gwb-banner.ok,#gwb-app .gwb-banner.gwb-fin{border-top-color:#245B4B}
#gwb-app .gwb-banner.err,#gwb-app .gwb-banner.ko{border-top-color:#8B253C}
#gwb-app .gwb-etapes li.encours .m::before,#gwb-app .gwb-roue{border-top-color:#3A6685}

/* ---- Calage sur la page « Pour les pros » (18/11/2026, Marco ; regle DESIGN_SITE.md) ---- */
.gws-nav span.dd{white-space:nowrap;max-width:none}
.gws-pros{white-space:nowrap}
.gws-nav span.dd::after{content:"";display:inline-block;margin-left:6px;vertical-align:2px;border:4px solid transparent;border-top:5px solid #2D4F66;border-bottom:0}
.gws-sous .gws-in{gap:0 48px}
.gws-sous span.gws-bt{max-width:none;white-space:nowrap;font:400 15px/1 "Cal Sans","Lato",sans-serif;color:#FDF5E7;border:1.5px solid #FDF5E7;border-radius:999px;padding:12px 20px}
.gws-sous span.gws-bt.jaune{margin-left:auto;background:#FFEB87;border-color:#FFEB87;color:#2D4F66}
.gws-sous span.gws-bt + span.gws-bt{margin-left:-36px}
@media (max-width:1180px){.gws-sous span.gws-bt{display:none}}
/* Textes d'aide lisibles (16 px pour la saisie, 14 px au plus petit) ; pas de petit titre au-dessus des titres. */
#gwb-app .gwb-sub{font-size:.9375rem}
#gwb-app .gwb-hint,#gwb-app .gwb-note,#gwb-app .gwb-ridet-note,#gwb-app .gwb-code-src,#gwb-app .gwb-cal-sel,#gwb-app .gwv-msg{font-size:.875rem;line-height:1.45}
#gwb-app .gwb-reste{font-size:.9375rem;font-style:normal;margin:-8px 0 0}
#gwb-app .gwb-opts label,#gwb-app .gwb-del,#gwb-app .gwb-person-h b,#gwb-app .gwb-modalites{font-size:.9375rem}
#gwb-app .gwb-day{font-size:.9375rem;min-height:40px}
#gwb-app .gwb-dow{font-size:.75rem}
#gwb-app .gwb-pied{font-size:.9375rem}
#gwb-app .gwb-fin .sur{display:none}
#gwb-app .gwb-heros h1{text-wrap:balance}
#gwb-app h2,#gwb-app h3{text-wrap:balance}
#gwb-app ::selection{background:#FFEB87;color:#2D4F66}
#gwb-app input,#gwb-app textarea{caret-color:#3A6685}
#gwb-app a{text-underline-offset:3px}

/* Mode integre : dans la fenetre surgissante du site, pas d'en-tete ni de pied en double. */
html.gws-integre .gws-tete,html.gws-integre .gws-bas{display:none}
html.gws-integre #gwb-app{padding-top:16px}
/* 18/11/2026 : passage téléphone. Cibles de 44 px et champs fichier à 16 px (iOS zoome sous 16 px). */
@media (max-width:900px){
  #gwb-app .gwb-day{min-height:44px}
  #gwb-app .gwb-btn.link{min-height:44px;display:inline-flex;align-items:center}
  #gwb-app input[type=file]{font-size:16px;min-height:44px}
  .gws-retour{padding:14px 0}
  .gws-bas a{display:inline-block;padding:12px 0}
}

/* 30/11/2026 (Marco) : étape franchie lisible sur le bleu (le V6 lui donnait l'encre de l'ancien thème) ;
   menu principal masqué sous 1 180 px, il poussait le bouton de langue hors de l'écran à 1 024 px. */
#gwb-app .gwb-step.done{color:#FFFFFF;border-top:2px solid #A0CDE6}
@media (max-width:1180px){.gws-nav{display:none}}

/* 30/11/2026 (Marco, audit des alignements) : cases au ras de la colonne (marge native de 4 px), boutons de fichier
   à la charte, champs d'une même ligne alignés quand un libellé passe sur deux lignes, titres de groupe au corps des libellés,
   « Vérifier mon compte » à la hauteur du champ du code, libellé du parking sur une ligne. */
#gwb-app input[type=checkbox],#gwb-app input[type=radio]{margin-left:0}
#gwb-app input[type=file]::file-selector-button{min-height:44px;margin-right:12px;padding:0 20px;border:1.5px solid #2D4F66;border-radius:12px;background:transparent;color:#2D4F66;font:400 .9375rem/1 var(--titre);cursor:pointer}
#gwb-app input[type=file]::file-selector-button:hover{background:#F6E9CF}
#gwb-app .gwb-sejour .gwb-two>div{display:flex;flex-direction:column;justify-content:flex-end}
#gwb-app .gwb-sejour h4{font-size:.9375rem;margin:1rem 0 .5rem}
#gwb-app .gwb-sejour label:has(>[data-pic=parking]){white-space:nowrap}
/* shortcut: 36.5px = marge haute + hauteur mesurées du libellé (Lato 15 px) ; à revoir si le libellé change de corps */
@media (min-width:641px){#gwb-app #gwb-soc-champs>div:last-child{align-items:flex-start!important;padding-top:36.5px}}
#gwb-app .gwb-sej-h b{font:400 1.125rem/1.2 var(--titre)} /* « Séjour 1 » au-dessus de ses titres de groupe */
/* retour à l'appui (et non au relâché) sur les boutons */
#gwb-app .gwb-btn,#gwb-app input[type=file]::file-selector-button{transition:transform .1s ease-out,background-color .15s}
#gwb-app .gwb-btn:not(:disabled):active,#gwb-app input[type=file]::file-selector-button:active{transform:scale(.97)}
#gwb-app .gwb-sejour .gwb-heures-opts{margin-top:8px}
#gwb-app .gwb-sejour .gwb-heures-opts>div{justify-content:flex-start;gap:8px}
@media (max-width:480px){#gwb-app .gwb-heures-opts .gwb-pic{display:none}} /* colonne trop étroite : le sablier faisait passer « Arrivée anticipée » sur deux lignes */
#gwb-app .gwb-heures-opts>div{min-width:0;align-items:flex-start}
#gwb-app .gwb-heures-opts [data-h$="-choix"]{align-self:stretch;flex-basis:auto!important}
#gwb-app .gwb-heures-opts [data-h$="-choix"]:not([hidden]){flex-wrap:wrap;gap:4px 16px;padding-left:28px}
#gwb-app .gwb-heures-opts [data-h$="-choix"] label{white-space:nowrap}
