/* Charte Yas : style de la page de desabonnement (meme style que souscription.php) */

 /* Yas Brand Guidelines 2.0 : Sunshine Yellow #FFD100 (dominant), Midnight Blue #00377D, Sky Blue #5F99D2 ;
    police Figtree, titres en Bold / ExtraBold Italic, texte courant droit et jamais sous 14 px */
 :root {
  --bleu: #00377d; --bleu-fonce: #002a5f; --bleu-ciel: #5f99d2; --bleu-pale: #c7dbef; --bleu-clair: #eaf1f9;
  --jaune: #ffd100; --jaune-fonce: #e6bc00; --jaune-pale: #fffdda;
  --fond: #f5f8fc; --carte: #ffffff; --texte: #212529; --texte-doux: #69727d; --trait: #d3e0ee;
  --rouge: #b3261e; --rouge-fond: #fbe9e7; --vert: #1e6b3a; --vert-fond: #e3f3e8;
 }
 * { box-sizing: border-box; }
 html, body { min-height: 100%; }
 body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--jaune); color: var(--texte); font: 16px/1.45 Figtree, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

 /* en-tete : barre bleue fine, puis bande jaune avec le logo, comme sur yas.tg */
 .barre { background: var(--bleu); color: #fff; font-size: 14px; }
 .barre div { max-width: 640px; margin: 0 auto; padding: 8px 16px; display: flex; justify-content: space-between; gap: 12px; }
 .barre b { font-weight: 600; } header { background: var(--jaune); padding-bottom: 44px; }
 .bandeau { max-width: 640px; margin: 0 auto; padding: 14px 16px 0; display: flex; align-items: center; gap: 14px; }
 /* logo officiel, avec sa forme propre : rien autour, pas de coins arrondis, espace libre garanti par la marge */
 .bandeau img { height: 64px; width: auto; display: block; margin: 2px 6px 2px 0; }
 .bandeau h1 { margin: 0; font-size: 24px; font-weight: 800; font-style: italic; color: var(--bleu); line-height: 1.15; }
 .bandeau h1 span { display: block; font-size: 16px; font-weight: 700; font-style: italic; color: var(--bleu); }
 main { flex: 1; width: 100%; max-width: 640px; margin: -34px auto 0; padding: 0 16px 32px; }

 .etapes { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
 .etapes li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texte-doux); }
 .etapes b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu-ciel); color: #fff; font-size: 14px; font-weight: 700; }
 .etapes .faite b { background: var(--bleu); color: #fff; }
 .etapes .active { color: var(--bleu); font-weight: 700; }
 .etapes .active b { background: var(--jaune); color: var(--bleu); }
 @media (max-width: 420px) { .etapes li span { display: none; } .etapes li.active span { display: inline; } }

 .carte { background: var(--carte); border: 0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(0, 55, 125, .18); }
 .carte h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; font-style: italic; color: var(--bleu); }
 .carte p { margin: 0 0 10px; font-size: 14px; color: var(--texte-doux); }
 label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 14px; }
 input[type=tel], input[type=text], select { width: 100%; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--texte); }
 input:focus, select:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
 .numero { display: flex; gap: 8px; align-items: center; max-width: 260px; }
 .numero span { padding: 8px 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--bleu-clair); color: var(--bleu); font-size: 15px; font-weight: 600; white-space: nowrap; }
 input.code { font-size: 24px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; max-width: 250px; }
 form { margin: 0; }

 button { font: inherit; cursor: pointer; }
 .principal { width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 14px; background: var(--jaune); color: var(--bleu); font-weight: 700; font-size: 17px; }
 .principal:hover, .principal:focus-visible { background: var(--jaune-fonce); outline: 3px solid var(--bleu-pale); }
 .lien { margin-top: 10px; width: 100%; padding: 8px; border: 0; background: none; color: var(--bleu); text-decoration: underline; }
 .message { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
 .m-erreur { background: var(--rouge-fond); color: var(--rouge); }
 .m-ok { background: var(--vert-fond); color: var(--vert); }
 .tarif { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--jaune-pale); border: 1px solid var(--jaune); color: var(--bleu); font-size: 14px; }
 .detection { margin-top: 8px; font-size: 14px; color: var(--vert); font-weight: 600; }

 /* trois blocs : service (suite de menus deroulants), formule, numero */
 .bloc { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--trait); }
 .bloc h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 700; font-style: italic; color: var(--bleu); }
 .bloc h3 > b { font-style: normal; }
 .bloc h3 > b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: #fff; font-size: 14px; }
 .bloc h3 label { display: inline; margin: 0; font: inherit; }
 .menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 12px; }
 .menu label { margin: 0 0 3px; font-size: 14px; color: var(--bleu); font-weight: 600; }
 .menu label small { font-weight: 500; color: var(--texte-doux); margin-left: 4px; }
 .menu select { cursor: pointer; }
 .menu select.choisi { border-color: var(--bleu); background: var(--bleu-clair); box-shadow: inset 5px 0 0 var(--jaune); font-weight: 600; color: var(--bleu); }
 noscript select { margin-top: 6px; }
 .choix { margin-top: 10px; font-size: 14px; color: var(--texte-doux); }
 .choix strong { color: var(--bleu); }

 /* choix de la formule : abonnement automatique ou consultation seule */
 .formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 12px; }
 .formule { position: relative; display: block; margin: 0; font-weight: 400; }
 .formule input { position: absolute; opacity: 0; inset: 0; }
 .formule span { display: block; height: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1.35; color: var(--texte-doux); }
 .formule span::before { content: ""; position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; border: 2px solid var(--bleu-pale); border-radius: 50%; background: #fff; }
 .formule span b { display: block; font-size: 15px; color: var(--texte); }
 .formule input:focus-visible + span { outline: 3px solid var(--bleu-pale); border-color: var(--bleu); }
 .formule input:checked + span { border-color: var(--bleu); background: var(--bleu-clair); }
 .formule input:checked + span::before { border-color: var(--bleu); background: var(--jaune); box-shadow: inset 0 0 0 2px #fff; }
 .formule input:checked + span b { color: var(--bleu); }

 /* lien vers l'autre page (souscription / desabonnement) */
 .autre { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--bleu); }
 .autre a { color: var(--bleu); font-weight: 700; }
 /* page de desabonnement : liste des abonnements a cocher, resultat */
 .abonnements { grid-template-columns: 1fr; margin-bottom: 4px; }
 .abonnements .formule span::before { border-radius: 4px; }
 .resultat { margin: 0 0 10px; padding-left: 20px; color: var(--texte); font-weight: 600; }
 /* numero deja confirme dans la visite (pharmacies, revisions) */
 .deja { margin: 12px 0 0; font-size: 15px; color: var(--texte); }
 .lien-court { border: 0; background: none; padding: 0; color: var(--bleu); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
 footer { background: var(--bleu); color: #dbe6f3; padding: 22px 16px 26px; font-size: 14px; text-align: center; }
 /* "Powered by" + logo GNT (fond transparent), comme sur Moov Kiosque, logo reduit de 10 % */
 footer .gnt { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 8px; font-size: 13px; }
 footer .gnt img { height: 13.5px; width: auto; }
 footer strong { display: block; color: var(--jaune); font-size: 17px; margin-bottom: 4px; }
/* arriere-plan Yas (image) */
 body { position: relative; background: #ffd100; }
 body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(img/fond_yas.jpg?v=5) center / contain no-repeat,
   linear-gradient(180deg, #00377d 0 6.9%, #ffd100 6.9% 18%, #f0f0f0 18% 37.1%, #ffd100 37.1% 71.9%, #00377d 71.9%); }
 @media (max-aspect-ratio: 1901/899) { body::before { background: #00377d url(img/fond_yas.jpg?v=5) center / contain no-repeat; } }
 header { background: rgba(255, 209, 0, .92); }
/* fin arriere-plan Yas */
/* logo Yas anime */
 .logo-yas { position: relative; display: block; flex: none; margin: 2px 6px 2px 0; transform-origin: 50% 80%;
  animation: yas-entree .9s cubic-bezier(.2, 1.5, .4, 1) both, yas-balance 5s ease-in-out 1s infinite; }
 .bandeau .logo-yas img { margin: 0; filter: drop-shadow(0 5px 5px rgba(0, 42, 95, .38)); }
 .logo-yas::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(img/logo-yas.svg) center / contain no-repeat; mask: url(img/logo-yas.svg) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; animation: yas-reflet 5s ease-in-out 1.2s infinite; }
 .logo-yas:hover { animation: yas-rebond .7s ease-out; }
 @keyframes yas-entree { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
 @keyframes yas-balance { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-4deg) scale(1.04); } }
 @keyframes yas-reflet { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
 @keyframes yas-rebond { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-6deg); } 70% { transform: scale(.97) rotate(3deg); } 100% { transform: scale(1); } }
 @media (prefers-reduced-motion: reduce) { .logo-yas { animation-duration: .9s, 7s; } .logo-yas::after { animation-duration: 7s; } }
/* fin logo Yas anime */
/* design Yas v2 */
 .barre { background: linear-gradient(90deg, #002a5f, #00377d); }
 .carte { border-radius: 20px; box-shadow: 0 12px 30px rgba(0, 42, 95, .18); }
 .carte h2 { letter-spacing: -.3px; }
 .yas-menu a { background: rgba(255, 255, 255, .88); box-shadow: 0 3px 10px rgba(0, 42, 95, .12); transition: transform .12s, background-color .12s; }
 .yas-menu a:hover { transform: translateY(-2px); background: #fff; }
 .yas-menu a[aria-current="page"] { background: linear-gradient(135deg, #00377d, #002a5f); box-shadow: 0 4px 12px rgba(0, 42, 95, .3); }
 .principal { border-radius: 999px; font-weight: 800; box-shadow: 0 4px 0 #d9b000, 0 10px 18px rgba(0, 42, 95, .2); transition: transform .12s, box-shadow .12s; }
 .principal:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9b000, 0 4px 10px rgba(0, 42, 95, .2); }
 input[type=tel], input[type=text], select { padding: 11px 14px; border-width: 2px; border-radius: 14px; }
 .numero span { padding: 11px 14px; border-width: 2px; border-radius: 14px; }
 input:focus, select:focus { border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(255, 209, 0, .55); }
 .formule span { border-width: 2px; border-radius: 14px; transition: border-color .12s, background-color .12s; }
 .rubriques button, .services button, .jeux button { border-color: transparent; box-shadow: 0 4px 14px rgba(0, 42, 95, .10); transition: transform .15s, box-shadow .15s, background-color .15s; }
 .rubriques button:hover, .services button:hover, .rubriques button:focus-visible, .services button:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 42, 95, .16); }
 .rubriques button.vedette { background: radial-gradient(circle at 15% 20%, rgba(255, 209, 0, .3), transparent 40%), linear-gradient(135deg, #00377d, #002a5f); }
 .rubriques .ico, .services .mini, .jeux .ico { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 42, 95, .15); }
 .tarif, .encart { border-radius: 14px; }
 .etapes4 li { border-radius: 999px; }
 footer { background: linear-gradient(135deg, #00377d, #001b3d); }
/* fin design Yas v2 */
