/* GSE unifié 2026-2027 : texte intégral sur petits écrans.
   Respecte la mise en page des reçus A4 et du bulletin imprimé. */
@media screen {
  html{scroll-behavior:smooth;overflow-x:clip}
  body{min-width:0;max-width:100%;overflow-x:clip}
  body :is(.shell,.main,.content,.panel,.card,.gse-r-card,.fr-card,
    .cc-panel,.rs-card,.ex-card,.gse-admin-module-card,.gse-tile,
    .gse-notice,.gse-view-only,.parent-login-card,.parent-login-shell,
    .parent-login-splash,.login-card,.gse-connect-banner){min-width:0;max-width:100%}
  body :is(h1,h2,h3,h4,p,small,label,summary,blockquote,.nav-item,.top-sub,
    .top-eyebrow,.gse-card-title,.cc-row,.gse-nav-title,.gse-pillars){
    overflow-wrap:anywhere;word-break:normal;white-space:normal;
  }
  body :is(button,.btn,input,select,textarea){max-width:100%;min-width:0}
  body :is(textarea,input[type=text],input[type=email],input[type=password],
    input[type=tel],input[type=number],select){width:min(100%,100%);box-sizing:border-box}
  body :is(.gse-r-scroll,.rs-scroll,.ex-grid,.table-wrap,.responsive-table,
    .gse-statement-paper,.gse-statement-payments-wrap){overflow-x:auto;max-width:100%;
      -webkit-overflow-scrolling:touch;scrollbar-width:thin}
  body :is(.gse-r-table,.rs-table,.ex-table,.gse-table,.gse-statement-table) td,
  body :is(.gse-r-table,.rs-table,.ex-table,.gse-table,.gse-statement-table) th{
    overflow-wrap:anywhere;white-space:normal;vertical-align:top;
  }
  body :is(.gse-r-head,.top,.top-brand,.brand,.login-brand,
     .gse-connect-banner,.page-heading,.cc-actions,.card-actions){
    min-width:0;flex-wrap:wrap}
  body :is(.gse-r-head>div,.top-brand>div,.login-brand>div){min-width:0;flex:1}
}
@media screen and (max-width:760px) {
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-size:16px;line-height:1.55}
  body :is(.panel,.cc-panel,.rs-card,.ex-card,.gse-r-body,.fr-card article){
    padding:clamp(12px,3.5vw,20px)}
  body :is(.content,.main){width:100%;max-width:100%;min-width:0}
  body :is(h1){font-size:clamp(1.3rem,5vw,1.8rem);line-height:1.3}
  body :is(h2){font-size:clamp(1.1rem,4vw,1.4rem);line-height:1.35}
  body :is(.side .nav-item,.gse-admin-nav-links .nav-item){font-size:15px!important;
    min-height:44px;line-height:1.45;white-space:normal!important}
  body :is(input,textarea,select,button,.btn){font-size:16px;line-height:1.35}
  body :is(button,.btn){min-height:44px;white-space:normal;height:auto}
  body .gse-language-picker{right:8px;bottom:8px;max-width:calc(100vw - 16px)}
  body .gse-language-picker a{min-height:44px;min-width:48px;font-size:16px!important}
  body .gse-admin-module-grid,
  body .parent-grid,
  body .gse-connect-grid,
  body .gse-form-grid{grid-template-columns:minmax(0,1fr)!important}
  body .gse-r-head{gap:12px;padding:16px}
  body .gse-r-head img{width:54px;height:54px}
  body .gse-r-head h1{font-size:20px;line-height:1.3}
  body .gse-r-grade{padding:12px}
  body .gse-r-mark{font-size:clamp(20px,6vw,27px)}
  body .rs-table{min-width:0}
  body .rs-table :is(td,th){font-size:13px}
  body .login-wrap,.login-card{width:100%;max-width:100%}
  body .login-card{padding:clamp(14px,4vw,24px)}
  body .parent-feature-list{grid-template-columns:minmax(0,1fr)}
  body .top-user{margin-left:auto;min-width:0}
  body .top .top-eyebrow{overflow-wrap:anywhere;font-size:clamp(10px,2.8vw,14px)}
}
@media print{
  /* Toute la feuille de calcul officielle reste inchangée. */
  .gse-language-picker{display:none!important}
}
/* Empêcher la coupure lettre par lettre du nom ADMINISTRATION. */
@media screen {
 .login-brand{display:flex;align-items:center;gap:clamp(10px,2vw,20px)}
 .login-brand .brand-mark{flex:0 0 clamp(105px,31%,190px);max-width:40%}
 .login-brand>div:last-child{flex:1;min-width:0}
 .login-brand h1{font-size:clamp(16px,3.5vw,25px)!important;letter-spacing:0!important;
    overflow-wrap:normal!important;word-break:normal!important;hyphens:none}
 .login-brand .login-accent{display:inline-block;font-size:clamp(14px,3.1vw,23px)!important;
    overflow-wrap:normal!important;word-break:normal!important}
}
@media screen and (max-width:490px) {
 .login-brand .brand-mark{flex-basis:92px;max-width:30%}
 .login-brand h1{font-size:clamp(14px,4.3vw,19px)!important}
 .login-brand .login-accent{font-size:clamp(13px,4vw,18px)!important}
}
