/* ==========================================================================
   RTS — socle visuel commun à toutes les pages
   Chargé APRÈS le <style> de chaque page : il harmonise uniquement les parties
   communes (bandeau logo + Accueil, titre de page, pied de page, focus,
   animations). Les styles propres à chaque page restent dans la page.
   ========================================================================== */
:root{--marine:#021132;--roi:#0141AC;--rouge:#DE0715;--jaune:#FBD608;--blanc:#FFFFFF;--creme:#FCF9F4;
 --rts-rayon:16px;--rts-ombre:0 10px 24px -8px rgba(2,17,50,.45),0 2px 6px rgba(2,17,50,.18)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-tap-highlight-color:rgba(251,214,8,.28)}

/* ---- focus clavier visible partout ---- */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--jaune);outline-offset:2px;box-shadow:0 0 0 6px rgba(2,17,50,.55)}

/* ---- bouton « ← Accueil » : la même pastille en relief sur toutes les pages ---- */
header a.home,.hero a.home,.bar a.home,.mmenu a.mhome{
 display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 15px;border-radius:12px;
 font-size:14px;font-weight:800;letter-spacing:.2px;line-height:1;color:var(--blanc);text-decoration:none;white-space:nowrap;
 background:linear-gradient(180deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.08) 50%,rgba(255,255,255,0) 51%,rgba(255,255,255,.06) 100%),rgba(2,17,50,.5);
 border:1px solid rgba(255,255,255,.38);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 10px -2px rgba(0,0,0,.35);
 -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
 transition:transform .15s ease,background-color .15s ease,border-color .15s ease}
.mmenu a.mhome{background-color:rgba(2,17,50,.88)}
header a.home:hover,.hero a.home:hover,.bar a.home:hover,.mmenu a.mhome:hover{transform:translateY(-1px);border-color:rgba(251,214,8,.8)}
header a.home:active,.hero a.home:active,.bar a.home:active,.mmenu a.mhome:active{transform:translateY(1px)}
/* bandeau jaune (transport adapté) : pastille marine */
header.jaune a.home{background-color:var(--marine);border-color:var(--marine);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 4px 10px -2px rgba(2,17,50,.45)}
header.jaune a.home:hover{border-color:var(--marine)}

/* ---- bandeau de page (pages intérieures) : logo + Accueil sur une ligne, titre dessous ---- */
body>header{position:relative;padding:14px 16px 20px;border-bottom:3px solid var(--rouge);box-shadow:0 8px 20px -6px rgba(2,17,50,.5)}
body>header:not(.jaune){background:radial-gradient(130% 160% at 0% 0%,rgba(1,65,172,.6) 0%,rgba(1,65,172,0) 58%),var(--marine);color:var(--blanc)}
body>header.jaune{border-bottom-color:var(--marine)}
body>header .top{flex-wrap:wrap;row-gap:10px;column-gap:12px}
body>header .logo{display:flex;align-items:center;flex:none}
body>header .logo img{height:48px;width:auto;display:block;filter:drop-shadow(0 3px 6px rgba(0,0,0,.4))}
body>header h1{flex-basis:100%;display:flex;align-items:center;gap:10px;margin:2px 0 0;font-size:clamp(22px,5.6vw,30px);font-weight:900;line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
body>header h1 .ic{flex:none;width:1em;height:1em;color:var(--jaune)}
body>header.jaune h1 .ic{color:var(--marine)}
body>header>p{margin-top:8px;font-size:15px;line-height:1.5;text-wrap:pretty}
body>header:not(.jaune)>p{color:rgba(255,255,255,.88)}
body>header.jaune>p{color:rgba(2,17,50,.82);font-weight:600}
@media(min-width:900px){body>header{padding:18px 24px 24px}body>header .logo img{height:56px}body>header>p{font-size:16px}}

/* ---- pied de page commun ---- */
body>footer{position:relative;margin-top:36px;padding:26px 16px calc(26px + env(safe-area-inset-bottom,0px));text-align:center;color:var(--blanc);
 background:radial-gradient(120% 120% at 50% 0%,rgba(1,65,172,.35) 0%,rgba(1,65,172,0) 60%),var(--marine);border-top:3px solid var(--rouge)}
body>footer::before{content:"";display:block;width:52px;height:52px;margin:0 auto 14px;background:url(../images/logo-rts.png) center/contain no-repeat;filter:drop-shadow(0 3px 6px rgba(0,0,0,.45))}
body>footer .co{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:640px;margin:0 auto;font-size:14px;font-weight:700}
body>footer .co a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;color:var(--blanc);text-decoration:none;
 background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
 transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
body>footer .co a:hover{color:var(--jaune);border-color:rgba(251,214,8,.6);transform:translateY(-1px)}
body>footer .co .ic{flex:none;color:var(--jaune)}
body>footer .co a[href^="tel:"],body>footer .co a[href^="mailto:"]{flex:1 1 100%;max-width:340px}
@media(min-width:720px){body>footer .co a[href^="tel:"],body>footer .co a[href^="mailto:"]{flex:0 1 auto}}
body>footer .lg{max-width:640px;margin:16px auto 0;font-size:13px;line-height:1.55;color:rgba(255,255,255,.62)}

/* ---- cases à cocher et boutons radio : plus grands, aux couleurs RTS ---- */
input[type=checkbox],input[type=radio]{accent-color:var(--roi);width:20px;height:20px;min-height:0;flex:none}

/* ---- mouvement réduit : aucune animation ni transition ---- */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* 21/11 : tous les boutons cliquables = drapeau de La Reunion, forme pilule, liseré blanc, effet bombé */
a.btn,.fiche .btn[data-exc],a.resa:not(.porte){color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 8px rgba(2,17,50,.65)!important;border-radius:999px!important;border:3px solid #fff!important;background:linear-gradient(180deg,rgba(255,255,255,.45) 0%,rgba(255,255,255,.12) 46%,rgba(255,255,255,0) 50%,rgba(0,0,0,.22) 100%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%2084%22%20preserveAspectRatio%3D%22none%22%3E%3Crect%20width%3D%22300%22%20height%3D%2284%22%20fill%3D%22%231B5FB8%22/%3E%3Cg%20fill%3D%22%23FBD608%22%3E%3Cpolygon%20points%3D%22150%2C52%200%2C0%200%2C14%22/%3E%3Cpolygon%20points%3D%22150%2C52%2040%2C0%2070%2C0%22/%3E%3Cpolygon%20points%3D%22150%2C52%20135%2C0%20165%2C0%22/%3E%3Cpolygon%20points%3D%22150%2C52%20230%2C0%20260%2C0%22/%3E%3Cpolygon%20points%3D%22150%2C52%20300%2C0%20300%2C14%22/%3E%3C/g%3E%3Cpolygon%20points%3D%2285%2C84%20215%2C84%20150%2C50%22%20fill%3D%22%23DE0715%22/%3E%3C/svg%3E") center/100% 100% no-repeat!important;box-shadow:0 0 0 1px rgba(2,17,50,.18),inset 0 2px 0 rgba(255,255,255,.55),inset 0 -5px 0 rgba(0,0,0,.28),0 12px 22px -10px rgba(0,0,0,.7)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
