/* =============================================================================
   PORTAIL DE L'ESPACE ÉLÈVE (reservation/index.php) — univers « Souffle » (10/11/2026)
   =============================================================================
   Connexion, inscription, infos et tarifs. Remplace le style écrit dans la page (530 lignes).
   Valeurs : jy-tokens.css ; boutons, pastilles et lotus : /css/jy-composants.css.
   Les noms de classes sont ceux d'avant : la page et ses scripts n'ont pas changé de logique.
   Parti pris de la planche : une colonne, pas de carte autour, de l'air, le lotus en filigrane.
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--jy-fond, #F8F5EE);
    color: var(--jy-encre, #232F27);
    font: 400 16px/1.6 var(--jy-police-texte, 'Inter', system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; align-items: center;
    padding: 0 20px 24px;
}
a { color: var(--jy-vert-lecture, #3A5A45); }
:focus-visible { outline: 3px solid var(--jy-vert-action, #3D714F); outline-offset: 3px; border-radius: 6px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* La colonne */
.card { position: relative; width: 100%; max-width: 440px; }

/* Haut de page : retour au site, langue */
.portail-haut { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.retour-site { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--jy-vert-lecture, #3A5A45); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.retour-site i { font-size: 17px; }
.portail-langue { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--jy-gris-chaud, #55655A); }
.portail-langue b { color: var(--jy-encre, #232F27); font-weight: 600; }
.portail-langue a { display: inline-grid; place-items: center; min-width: 32px; min-height: 44px; color: var(--jy-gris-chaud, #55655A); font-weight: 500; }

/* Logo et nom, sur le lotus en filigrane */
.brand { position: relative; text-align: center; padding: 18px 0 10px; }
.brand .lotus-filigrane { position: absolute; left: 50%; top: -10px; width: 112%; max-width: calc(100vw - 8px); height: auto; transform: translateX(-50%); z-index: 0; color: #ECE6D7; stroke-width: .45; }
.brand-halo { position: relative; z-index: 1; width: 96px; height: 80px; margin: 0 auto; }
/* Plus de rond pêche derrière le logo (11/11/2026) : le nouveau lotus porte déjà son point pêche. */
.brand img { position: relative; display: block; width: 72px; height: auto; margin: 16px auto 0; }
.brand-name { position: relative; z-index: 1; margin-top: 6px; font: 400 19px/1.2 var(--jy-police-titre, 'Fraunces', Georgia, serif); color: var(--jy-encre, #232F27); }

/* Onglets : une pilule claire, l'onglet actif en sauge */
.tabs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 18px 0 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--jy-filet, #E2DCCD); }
.tab { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; border-radius: 999px; color: var(--jy-gris-chaud, #55655A); font-size: 14px; font-weight: 500; text-decoration: none; text-align: center; line-height: 1.2; transition: background-color .3s ease, color .3s ease; }
.tab:hover { color: var(--jy-encre, #232F27); }
.tab.active { background: var(--jy-vert-fond, #E3EDE7); color: var(--jy-vert-fond-encre, #30503B); font-weight: 600; }

.tab-body { position: relative; z-index: 1; padding-top: 22px; }
.tab-body h1 { margin: 0; font: 400 34px/1.12 var(--jy-police-titre, 'Fraunces', Georgia, serif); letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
.subtitle { margin: 8px 0 22px; text-align: center; color: var(--jy-gris-chaud, #55655A); font-size: 15px; }

/* Formulaires */
form { margin: 0; }
label { display: block; margin: 16px 0 7px; font-size: 13.5px; font-weight: 500; color: #2F3B33; }
input[type=email], input[type=password], input[type=text], input[type=tel], input[type=date] {
    display: block; width: 100%; height: 50px; padding: 0 16px;
    border: 1px solid #D5D0C2; border-radius: 14px; background: var(--jy-fond-carte, #FDFCF8);
    color: var(--jy-encre, #232F27); font: 400 16px/1.2 var(--jy-police-texte, Inter, sans-serif);
    transition: border-color .3s ease, box-shadow .3s ease;
}
input:focus { outline: none; border-color: var(--jy-vert-action, #3D714F); box-shadow: 0 0 0 3px rgba(61,113,79,.15); }
input[type=date] { -webkit-appearance: none; appearance: none; line-height: 48px; text-align: left; }
/* iPhone (15/11/2026) : Safari centrait la date et la collait en haut du champ. */
input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; line-height: 48px; }
input[type=date]::-webkit-datetime-edit { padding: 0; line-height: 48px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row label { margin-top: 0; }
.hint { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--jy-gris-chaud, #55655A); }
.forgot { text-align: right; margin-top: 8px; }
.forgot a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13.5px; }
.remember-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.remember-row label { margin: 0; font-weight: 400; font-size: 14px; color: #3B4A40; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--jy-vert-action, #3D714F); }

/* Le bouton principal de chaque formulaire */
form > button, .tab-body form button[type=submit], .tab-body form button:not([type]) {
    display: block; width: 100%; min-height: 52px; margin-top: 22px; border: 0; border-radius: 999px;
    background: var(--jy-vert-action, #3D714F); color: #fff; cursor: pointer;
    font: 600 16px/1.2 var(--jy-police-texte, Inter, sans-serif);
    transition: background-color .3s ease;
}
form > button:hover { background: #346343; }

/* Champ mot de passe avec « Afficher » */
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 56px; }
.oeil-mdp { position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--jy-vert-lecture, #3A5A45); font-size: 20px; cursor: pointer; display: grid; place-items: center; }

/* Messages */
.error { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--jy-danger-fond, #F6E9E4); color: var(--jy-danger, #A8452F); font-size: 14.5px; }
.success-banner { margin: 0 0 22px; padding: 20px; border-radius: var(--jy-rayon-bloc, 24px); background: var(--jy-vert-fond, #E3EDE7); color: var(--jy-vert-fond-encre, #30503B); text-align: center; }
.success-banner .icon { font-size: 30px; line-height: 1; }
.success-banner h2 { margin: 8px 0 4px; font: 400 22px/1.2 var(--jy-police-titre, Georgia, serif); color: var(--jy-encre, #232F27); }
.success-banner p { margin: 0; font-size: 14.5px; }
.cta-link { margin-top: 18px; text-align: center; font-size: 14.5px; color: #3B4A40; }
.cta-link a { font-weight: 600; }

/* Bloc « Première fois ? » (connexion) */
.premiere-fois { margin-top: 26px; padding: 22px 20px; border-radius: var(--jy-rayon-bloc, 24px); background: var(--jy-accent-fond, #FAEBDC); text-align: center; }
.premiere-fois h2 { margin: 0; font: 400 22px/1.2 var(--jy-police-titre, Georgia, serif); color: var(--jy-encre, #232F27); }
.premiere-fois p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: #6B3D1A; }
.premiere-fois a { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; border-radius: 999px; background: #fff; color: var(--jy-vert-profond, #2F4A3A); font-weight: 600; font-size: 15px; text-decoration: none; }

/* Inscription */
.trust { margin: 0 auto 14px; }
.benefits { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #3B4A40; }
.benefits li { display: flex; gap: 8px; align-items: center; }
.benefits i { color: var(--jy-vert-action, #3D714F); font-size: 17px; }
.rgpd { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.rgpd-label { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 400; font-size: 14px; line-height: 1.5; color: #3B4A40; }
.rgpd-label input { margin-top: 2px; }
.apres-inscription { margin-top: 10px; text-align: center; font-size: 13px; color: var(--jy-gris-chaud, #55655A); }
.eleves { margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--jy-vert-fond, #E3EDE7); color: var(--jy-vert-fond-encre, #30503B); font-size: 14px; text-align: center; }

/* Infos et tarifs */
.loc-select { position: relative; margin: 18px 0 14px; }
.loc-select-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 1px solid #D5D0C2; border-radius: 18px; background: var(--jy-fond-carte, #FDFCF8); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.loc-select-trigger:hover { border-color: #B9CBBE; }
.loc-select-trigger i { color: var(--jy-vert-lecture, #3A5A45); }
.loc-select-labels { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-select-hint { font-size: 11.5px; color: var(--jy-gris-chaud, #55655A); }
.loc-select-current { font-size: 15px; font-weight: 600; }
.loc-dropdown-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px rgba(35,47,39,.12); }
.loc-dropdown-menu.show { display: block; }
.loc-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--jy-filet, #E2DCCD); color: inherit; text-decoration: none; }
.loc-option:last-child { border-bottom: none; }
.loc-option:hover { background: var(--jy-fond, #F8F5EE); }
.loc-option.active { background: var(--jy-vert-fond, #E3EDE7); }
.loc-option-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-option-nom { font-size: 15px; font-weight: 600; color: var(--jy-encre, #232F27); }
.loc-option-secteur { font-size: 13px; color: var(--jy-gris-chaud, #55655A); }
.loc-option-coche { font-size: 20px; color: var(--jy-vert-action, #3D714F); flex-shrink: 0; }

/* Les blocs d'infos : pas de cadre, des filets */
.info-card { padding: 18px 0; border-top: 1px solid var(--jy-filet, #E2DCCD); }
.info-card:last-of-type { border-bottom: 1px solid var(--jy-filet, #E2DCCD); }
.info-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #2F3B33; }
.info-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jy-gris-chaud, #55655A); }
.info-title i { font-size: 15px; color: var(--jy-vert-lecture, #3A5A45); }
.info-card a { color: var(--jy-vert-lecture, #3A5A45); font-weight: 500; text-decoration: none; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--jy-filet, #E2DCCD); font-size: 15px; }
.info-title + .price { border-top: 0; padding-top: 2px; }
.price > span:last-child { white-space: nowrap; font: 400 21px/1 var(--jy-police-titre, Georgia, serif); }
.validite { display: block; font-size: 12.5px; color: var(--jy-gris-chaud, #55655A); }
.info-ancv { text-align: center; }
.info-ancv img { display: inline-block; width: 100%; max-width: 150px; height: auto; }
.info-ancv p { margin-top: 8px; font-size: 13px; color: var(--jy-gris-chaud, #55655A); }
.info-externe { margin-top: 14px; }
.info-externe a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--jy-vert-action, #3D714F); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.aucun-lieu { text-align: center; color: var(--jy-gris-chaud, #55655A); }

@media (min-width: 720px) {
    body { padding-top: 12px; }
    .tab-body h1 { font-size: 40px; }
}

/* Mot de passe oublié et nouveau mot de passe (forgot.php, reset.php) */
.brand-petit { padding: 6px 0 0; }
.brand-petit .lotus-filigrane { top: -70px; width: 96%; }
.msg, .success { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--jy-vert-fond, #E3EDE7); color: var(--jy-vert-fond-encre, #30503B); font-size: 14.5px; line-height: 1.5; }
.msg i { font-size: 20px; flex: none; }
.btn-lien { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 22px; border-radius: 999px; background: var(--jy-vert-action, #3D714F); color: #fff; font-weight: 600; text-decoration: none; }
.btn-lien:hover { background: #346343; color: #fff; }
