@charset "utf-8";
/* SITE DE BUREAU, APPARENCE MODERNE — avant-première des testeurs (include/apparence_bureau.php).
   Habille les pages existantes PAR-DESSUS css/style.css et les autres feuilles : mêmes couleurs, polices et décors,
   mais largeur adaptée à l'écran, textes plus lisibles, boutons et champs homogènes (comme le site mobile moderne).
   Toutes les règles sont préfixées par html.sbb (classe posée par l'include) pour l'emporter sans !important. */

:root {
	/* Largeur de la page : 1060 px comme avant, plus large seulement si chaque bande latérale garde 280 px pour le logo (max. 1320 px) */
	--sbb-page: clamp(1060px, calc(100vw - 560px), 1320px);
	--sbb-contenu: calc(var(--sbb-page) - 100px);
	--fond: #0f0000; --page: #1e0505; --entete: #361010; --carte: #2a0b0b; --bord: #4a1c1c; --trait: #3a1414;
	--texte: #FACEAE; --texte2: #c8a389; --texte3: #a88a78;
	--rayon: 10px;
}

/* ---------- Largeurs (avant : 1060 / 960 px fixes) ---------- */
html.sbb #header, html.sbb #footer { width: var(--sbb-page); }
html.sbb #sous_header, html.sbb #sous_footer, html.sbb #contents, html.sbb #main h2 span, html.sbb #main p,
html.sbb #articles, html.sbb .cd-form, html.sbb .cumul-container-semaine, html.sbb .cumul-container-exo { width: var(--sbb-contenu); }
html.sbb #bandegauche { margin-right: calc(var(--sbb-page) / 2); }
html.sbb #bandedroite { margin-left: calc(var(--sbb-page) / 2); }
html.sbb #contents h1, html.sbb #contents h3.soustitre { width: auto; } /* restent en inline-block : un bloc ferait sortir leur marge haute et créerait une bande sous l en-tête */
html.sbb #main h2 { background-size: var(--sbb-page) 100%; } /* bandeau de la citation à la largeur de la page */
/* Calendrier en grille seulement : en fenêtre étroite ou basse, custom_1.css le passe en liste à hauteur libre
   (une hauteur fixe ici faisait déborder la liste sur la suite de la page) */
@media screen and (min-width: 881px) and (min-height: 451px) {
	html.sbb .custom-calendar-full { width: var(--sbb-page); }
	html.sbb .fc-calendar-container { height: 760px; }
}

/* ---------- Texte ---------- */
html.sbb #contents h1 { font-size: 34px; line-height: 1.15; }
html.sbb :focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }
html.sbb ::selection { background: #681F1F; color: var(--texte); }

/* ---------- Navigation : un peu plus grande, page en cours soulignée ---------- */
html.sbb #navigation li { font-size: 17pt; }
html.sbb #navigation a { padding: 29px 15px; transition: color .15s; }
html.sbb #navigation li.active a { box-shadow: inset 0 -3px 0 var(--texte2); }

/* Bouton Connexion / Déconnexion de l'en-tête */
html.sbb #login_haut input.bouton {
	border: 1px solid #5a2a2a; border-radius: 22px; background: rgba(0, 0, 0, .3);
	padding: 0 18px; height: 42px; color: var(--texte); cursor: pointer; transition: background-color .15s, border-color .15s;
}
html.sbb #login_haut input.bouton:hover { background: #490C0C; border-color: var(--texte2); }

/* ---------- Calendrier du programme ---------- */
html.sbb .fc-calendar { border-radius: 14px; background: rgba(255, 255, 255, .045); box-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
html.sbb .fc-calendar .fc-head { border-radius: 14px 14px 0 0; font-size: 15px; }
html.sbb .fc-calendar .fc-row > div { transition: background-color .12s; }
html.sbb .fc-calendar .fc-row > div:hover { background: rgba(255, 255, 255, .04); }
html.sbb .fc-calendar .fc-row > div > span.fc-date { font-size: 26px; }
html.sbb .fc-calendar .fc-row > div.fc-today { background: rgba(250, 206, 174, .07); box-shadow: inset 0 0 0 2px var(--texte2); }
/* Étiquettes des séances : plus lisibles (11 px en capitales avant) */
html.sbb .fc-calendar .fc-row > div > div a,
html.sbb .fc-calendar .fc-row > div > div span {
	/* Police système (Segoe UI sous Windows, San Francisco sur Mac), la plus nette en petite taille, 12 px semi-gras :
	   le plus long libellé (« Endurance critique », 112 px) tient sur une ligne même dans la case la plus étroite
	   (120 px utiles avec une page de 1060 px) */
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
	padding: 4px 6px; border-radius: 6px; margin-bottom: 3px; background: rgba(255, 255, 255, .1);
	white-space: nowrap; line-height: 1.25;
}
html.sbb .fc-calendar .fc-row > div > div a:hover { background: rgba(255, 255, 255, .22); }
/* Séance non réalisée (rouge) / réalisée (vert) : mêmes couleurs, plus lumineuses sur le fond sombre */
html.sbb .fc-calendar font[color="#CC0000"], html.sbb .fc-calendar font[color="red"] { color: #ff7a6b; }
html.sbb .fc-calendar font[color="green"] { color: #8fd07a; }
html.sbb .custom-header nav span { border-radius: 8px; cursor: pointer; }

/* ---------- Boutons ---------- */
html.sbb #contents input[type="submit"], html.sbb #contents input[type="button"], html.sbb #contents button:not(.gr-puce):not(.retrait_fichier),
html.sbb .cd-form input[type="submit"], html.sbb a.more, html.sbb #contents a.bouton {
	min-height: 46px; padding: 8px 22px; min-width: max-content; /* le texte plus grand ne déborde pas des largeurs fixées dans les pages */
	border: 1px solid #6a2a2a; border-radius: var(--rayon);
	background: linear-gradient(#4e1818, #2c0a0a); background-position: 0 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(250, 206, 174, .12);
	color: var(--texte); font-family: 'engebrechtreregular', Georgia, serif; font-size: 20px; letter-spacing: .08em; font-variant: small-caps;
	cursor: pointer; transition: border-color .15s, background-color .15s;
}
html.sbb #contents input[type="submit"]:hover, html.sbb #contents input[type="button"]:hover, html.sbb #contents button:not(.gr-puce):not(.retrait_fichier):hover,
html.sbb .cd-form input[type="submit"]:hover, html.sbb a.more:hover, html.sbb #contents a.bouton:hover {
	border-color: var(--texte2); background: linear-gradient(#5e2020, #360e0e);
}
html.sbb a.more { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; line-height: 1.2; }
/* Liens et étiquettes en forme de bouton (« Mes fichiers d'activité », guide Intervals.icu) : même style que les boutons ci-dessus */
html.sbb #contents a.bouton_garmin, html.sbb #contents .bouton_depot, html.sbb #contents a.bouton_guide {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 22px; margin-top: 0;
	border: 1px solid #6a2a2a; border-radius: var(--rayon);
	background: linear-gradient(#4e1818, #2c0a0a);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(250, 206, 174, .12);
	color: var(--texte); font: 20px 'engebrechtreregular', Georgia, serif; letter-spacing: .08em; font-variant: small-caps; font-weight: normal;
	text-decoration: none; cursor: pointer; transition: border-color .15s;
}
html.sbb #contents a.bouton_garmin:hover, html.sbb #contents a.bouton_guide:hover, html.sbb #contents #zone_depot:hover .bouton_depot {
	border-color: var(--texte2); background: linear-gradient(#5e2020, #360e0e); color: var(--texte);
}
html.sbb #contents #zone_depot .bouton_depot { margin-top: 10px; }
html.sbb #contents input.bouton_garmin { font-weight: normal; } /* La page les met en gras (ancienne apparence) */

/* ---------- Champs ---------- */
html.sbb #contents input[type="text"]:not(.lbl), html.sbb #contents input[type="password"], html.sbb #contents input[type="email"],
html.sbb #contents input[type="tel"], html.sbb #contents input[type="number"], html.sbb #contents select, html.sbb #contents textarea {
	border-radius: var(--rayon); border: 1px solid #5a2a2a; font-size: 17px; transition: border-color .15s, box-shadow .15s;
}
html.sbb #contents input:focus, html.sbb #contents select:focus, html.sbb #contents textarea:focus {
	outline: none; border-color: var(--texte); box-shadow: 0 0 0 3px rgba(250, 206, 174, .2);
}


/* ---------- Moins d animations si demandé ---------- */
@media (prefers-reduced-motion: reduce) {
	html.sbb *, html.sbb *::before, html.sbb *::after { transition: none !important; }
}

/* ---------- Notes en étoiles (sensations, motivation, dureté) : plus grandes ---------- */
/* Taille selon la place : 10 étoiles × 3 notes doivent tenir dans la largeur du contenu (largeur de la page - 100 px,
   page = largeur de l écran - 560 px) ; taille d origine tant que la page reste à 1060 px */
html.sbb ul.notes-echelle { display: flex; flex-wrap: nowrap; }
@media (min-width: 1710px) { html.sbb ul.notes-echelle { zoom: 1.12; } }
@media (min-width: 1830px) { html.sbb ul.notes-echelle { zoom: 1.25; } }
html.sbb .cd-form input.lbl[type="text"] { font-size: 16px; color: var(--texte2); }

/* ---------- Bouton « Sélectionnez… » du dépôt manuel d'un fichier compteur ---------- */
html.sbb.js .input-file-trigger {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 22px; margin-top: 0; /* (ancienne marge de 50 px, sans effet tant que le bouton était du simple texte) */
	border: 1px solid #6a2a2a; border-radius: var(--rayon);
	background: linear-gradient(#4e1818, #2c0a0a);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(250, 206, 174, .12);
	color: var(--texte); font: 20px 'engebrechtreregular', Georgia, serif; letter-spacing: .08em; font-variant: small-caps; font-weight: normal;
	transition: border-color .15s;
}
html.sbb.js .input-file:hover + .input-file-trigger, html.sbb.js .input-file-trigger:hover,
html.sbb.js .input-file:focus + .input-file-trigger, html.sbb.js .input-file-trigger:focus {
	border-color: var(--texte2); background: linear-gradient(#5e2020, #360e0e); color: var(--texte);
}
html.sbb.js .input-file:focus-visible + .input-file-trigger { outline: 2px solid var(--texte); outline-offset: 2px; }
html.sbb.js .input-file-container { margin-top: 8px; width: auto; } /* écart régulier avec le bouton ou le texte au-dessus ; largeur selon le texte */
html.sbb.js .input-file-trigger { white-space: nowrap; }

/* ---------- Accueil, prestations, inscription : bouton du bandeau centré sous le texte ---------- */
html.sbb #box_accueil div div a.more { display: flex; width: fit-content; min-width: 264px; margin: 18px auto; }

/* ---------- Visiteurs (pages publiques au nouveau design, 21.11.2026) : formulaires de connexion ---------- */
/* Fenêtre « Login » de l'en-tête (include/popup_connect.php) : champs et bouton plus grands */
html.sbb .popup_block { border-radius: var(--rayon); border-color: var(--fond); }
html.sbb #connexion td[width] { width: 240px; }
html.sbb #pop_login input:not(.bouton) {
	box-sizing: border-box; width: 230px; height: 42px; padding: 0 12px; margin-bottom: 10px;
	border: 1px solid #5a2a2a; border-radius: var(--rayon); background: var(--entete); color: var(--texte); font-size: 16px;
}
html.sbb #pop_login input:not(.bouton):focus { outline: none; border-color: var(--texte); box-shadow: 0 0 0 3px rgba(250, 206, 174, .2); }
html.sbb #pop_login input.bouton {
	box-sizing: border-box; width: 230px; height: 44px; border-radius: var(--rayon); border: 1px solid #6a2a2a;
	background: linear-gradient(#4e1818, #2c0a0a); color: var(--texte); font-size: 19px; cursor: pointer;
}
html.sbb #pop_login input.bouton:hover { border-color: var(--texte2); background: linear-gradient(#5e2020, #360e0e); }
/* Guide Zwift : cadre « Commencez par vous connecter » (les règles du guide ne visent que l'ancienne apparence) */
html.sbb #guide #guide_connexion input[type=text], html.sbb #guide #guide_connexion input[type=password] {
	box-sizing: border-box; width: 220px; height: 44px; padding: 0 12px; font: inherit; font-size: 16px;
	background: var(--fond); color: var(--texte); border: 1px solid #5a2a2a; border-radius: var(--rayon);
}
html.sbb #guide #guide_connexion input:focus { outline: none; border-color: var(--texte); box-shadow: 0 0 0 3px rgba(250, 206, 174, .2); }
html.sbb #guide #guide_connexion button {
	height: 44px; padding: 0 22px; border-radius: var(--rayon); border: 1px solid #6a2a2a; cursor: pointer;
	background: linear-gradient(#4e1818, #2c0a0a); color: var(--texte); font: 19px 'engebrechtreregular', Georgia, serif;
	letter-spacing: .08em; font-variant: small-caps;
}
html.sbb #guide #guide_connexion button:hover { border-color: var(--texte2); background: linear-gradient(#5e2020, #360e0e); }
/* Inscription, prestations… : bouton « more » du contenu (la règle #contents a.more de style.css, plus forte, remettait
   l'ancienne image de fond penchée) */
html.sbb #contents a.more {
	display: flex; width: fit-content; min-width: 264px; height: auto; line-height: 1.2; margin: 18px auto;
	background: linear-gradient(#4e1818, #2c0a0a); background-position: 0 0;
}
html.sbb #contents a.more:hover { background: linear-gradient(#5e2020, #360e0e); }
/* Blog : « Lire plus » en bouton */
html.sbb #blogs ul li a.plus {
	display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 20px; margin-top: 6px;
	border: 1px solid #6a2a2a; border-radius: var(--rayon); background: linear-gradient(#4e1818, #2c0a0a);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(250, 206, 174, .12);
	color: var(--texte); font: 18px 'engebrechtreregular', Georgia, serif; letter-spacing: .08em; font-variant: small-caps;
}
html.sbb #blogs ul li a.plus:hover { border-color: var(--texte2); background: linear-gradient(#5e2020, #360e0e); color: var(--texte); }
/* Boutons inactifs (ex. « Utiliser ce fichier » tant qu'aucun fichier reçu n'est choisi) : grisés, sans effet au survol */
html.sbb #contents input[type="submit"]:disabled, html.sbb #contents input[type="button"]:disabled, html.sbb #contents button:disabled,
html.sbb .cd-form input[type="submit"]:disabled, html.sbb .cd-form input[type="submit"]:disabled:hover,
html.sbb #contents input[type="submit"]:disabled:hover, html.sbb #contents button:disabled:hover {
	opacity: .4; cursor: not-allowed; border-color: #6a2a2a; background: linear-gradient(#4e1818, #2c0a0a);
}
