/* ==========================================================================
   Page d'accueil / connexion Hippiquedia
   Palette : #081516 #152928 (fonds) - #0A8765 #005049 (vert) - #DCB065 #FFF5AA (or) - #C5E7E4 (menthe) - #FFFFFF
   Police  : Roboto Flex (variable : graisse, largeur, inclinaison) - licence OFL, fichier ../fonts/RobotoFlex-latin.woff2
   ========================================================================== */
@font-face {
	font-family: "Roboto Flex";
	src: url("../fonts/RobotoFlex-latin.woff2") format("woff2");
	font-weight: 100 1000;
	font-stretch: 25% 151%;
	font-display: swap;
}

:root {
	--noir: #081516;
	--fonce: #152928;
	--vert: #0A8765;
	--vert-f: #005049;
	--or: #DCB065;
	--or-c: #FFF5AA;
	--menthe: #C5E7E4;
	--blanc: #FFFFFF;
	--police: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rayon: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.accueil {
	margin: 0; min-height: 100vh; color: var(--blanc);
	font-family: var(--police); font-size: 16px; line-height: 1.5;
	background: var(--noir);
	-webkit-font-smoothing: antialiased;
}
body.accueil a { color: var(--or); text-decoration: none; }
body.accueil a:hover { color: var(--or-c); text-decoration: underline; }

/* ---- fond : dégradés verts fixes ---- */
.fond {
	position: fixed; inset: 0; z-index: -1;
	background:
		radial-gradient(1100px 620px at 85% 8%, rgba(10, 135, 101, .42), transparent 62%),
		radial-gradient(900px 600px at 5% 95%, rgba(0, 80, 73, .55), transparent 60%),
		linear-gradient(180deg, var(--fonce) 0%, var(--noir) 100%);
}

/* ---- barre du haut ---- */
.barre { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.barre.barre-fixe { background: rgba(8, 21, 22, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(197, 231, 228, .12), 0 10px 30px rgba(0, 0, 0, .35); }
.barre-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.barre-logo img { display: block; height: 56px; width: auto; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.barre-liens { display: flex; align-items: center; gap: 26px; }
body.accueil .barre-lien { color: var(--menthe); font-weight: 500; font-variation-settings: "wght" 520; }
body.accueil .barre-lien:hover { color: var(--blanc); text-decoration: none; }

/* ---- boutons ---- */
.btn-or-petit, .btn-inscription {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer;
	color: var(--fonce) !important; text-decoration: none !important;
	background: linear-gradient(180deg, var(--or-c) 0%, var(--or) 100%);
	border: 0; border-bottom: 4px solid #B08838; border-radius: 16px;
	box-shadow: 0 10px 26px rgba(220, 176, 101, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
	transition: transform .12s, filter .12s, box-shadow .12s;
}
.btn-or-petit { padding: 9px 20px; font-size: 15px; font-variation-settings: "wght" 800; }
.btn-inscription { padding: 16px 30px; font-size: 18px; font-variation-settings: "wght" 650, "wdth" 112; text-transform: uppercase; letter-spacing: .02em; }
.btn-inscription strong { font-variation-settings: "wght" 950, "wdth" 125, "slnt" -10; }
.btn-or-petit:hover, .btn-inscription:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(220, 176, 101, .38), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-or-petit:active, .btn-inscription:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-fleche { width: 26px; height: 26px; border-radius: 50%; background: var(--fonce); position: relative; flex: 0 0 26px; }
.btn-fleche:after { content: ""; position: absolute; left: 8px; top: 8px; width: 7px; height: 7px; border-top: 3px solid var(--or-c); border-right: 3px solid var(--or-c); transform: rotate(45deg); }

.btn-verre {
	display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 16px; font-size: 16px; color: var(--menthe) !important;
	font-variation-settings: "wght" 600; text-decoration: none !important;
	background: rgba(197, 231, 228, .08); border: 1.5px solid rgba(197, 231, 228, .3); transition: background .15s, border-color .15s, transform .12s;
}
.btn-verre:hover { background: rgba(197, 231, 228, .16); border-color: rgba(197, 231, 228, .6); transform: translateY(-2px); color: var(--blanc) !important; }

.btn-connexion {
	width: 100%; margin-top: 6px; padding: 14px 18px; cursor: pointer; color: var(--blanc);
	font-family: var(--police); font-size: 17px; font-variation-settings: "wght" 800;
	background: linear-gradient(180deg, #0C9C76 0%, var(--vert) 100%);
	border: 0; border-bottom: 4px solid var(--vert-f); border-radius: 14px;
	box-shadow: 0 8px 22px rgba(10, 135, 101, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .12s, filter .12s;
}
.btn-connexion:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-connexion:active { transform: translateY(2px); border-bottom-width: 2px; }

/* ---- hero ---- */
.hero { padding: 6px 24px 70px; }
.hero-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.hero-sur, .bloc-sur {
	margin: 0 0 8px; color: var(--or); font-size: 14px; text-transform: uppercase; letter-spacing: .16em; font-variation-settings: "wght" 700, "wdth" 112;
}
.hero h1 {
	margin: 0 0 18px; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.04; text-transform: uppercase;
	font-variation-settings: "wght" 900, "wdth" 125, "slnt" -10; letter-spacing: -.005em; color: var(--blanc);
	text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero-or {
	display: block; margin-top: 4px;
	background: linear-gradient(180deg, var(--or-c) 0%, var(--or) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 14px rgba(220, 176, 101, .3));
}
.hero-sous { margin: 18px 0 18px; max-width: 700px; font-size: 19px; color: var(--menthe); font-variation-settings: "wght" 450; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- vidéo d'accueil (hippiquedia.mp4), juste au-dessus du bouton d'inscription ---- */
.video-carte { max-width: 700px; }
.video-cadre {
	position: relative; overflow: hidden; border-radius: 24px; background: var(--noir);
	aspect-ratio: var(--ratio, 16 / 9);
	max-height: 50vh; min-height: 240px;
	border: 1.5px solid rgba(197, 231, 228, .28);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 6px rgba(197, 231, 228, .05), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.video-cadre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s; }
.video-cadre.video-ok video { opacity: 1; }
.video-vide {
	position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
	background:
		radial-gradient(520px 300px at 70% 20%, rgba(10, 135, 101, .55), transparent 65%),
		radial-gradient(420px 260px at 20% 90%, rgba(0, 80, 73, .7), transparent 65%),
		linear-gradient(135deg, var(--fonce), var(--noir));
	animation: derive 9s ease-in-out infinite alternate; background-size: 140% 140%, 140% 140%, 100% 100%;
}
.video-vide img { width: min(280px, 55%); height: auto; border-radius: 14px; opacity: .92; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.video-cadre.sans-video .video-vide { display: flex; }
@keyframes derive { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 100% 60%, 0% 20%, 0 0; } }
.video-commandes { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.video-commandes.hidden { display: none; }
.video-btn {
	width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
	background: rgba(8, 21, 22, .62); border: 1.5px solid rgba(197, 231, 228, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	transition: background .15s, transform .12s, border-color .15s;
}
.video-btn:hover, .video-btn:focus-visible { background: var(--vert); border-color: var(--menthe); transform: scale(1.08); outline: none; }
.ico { display: block; width: 18px; height: 18px; background: var(--blanc); }
.ico-pause { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='4' width='5' height='16' rx='1.5'/><rect x='14' y='4' width='5' height='16' rx='1.5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='4' width='5' height='16' rx='1.5'/><rect x='14' y='4' width='5' height='16' rx='1.5'/></svg>") center / contain no-repeat; }
.ico-lecture { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4.5v15a1 1 0 0 0 1.5.86l12-7.5a1 1 0 0 0 0-1.72l-12-7.5A1 1 0 0 0 7 4.5z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4.5v15a1 1 0 0 0 1.5.86l12-7.5a1 1 0 0 0 0-1.72l-12-7.5A1 1 0 0 0 7 4.5z'/></svg>") center / contain no-repeat; }
.ico-muet { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9.5v5h4l5 4v-13l-5 4H3z'/><path d='M16 9l5 6m0-6l-5 6' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9.5v5h4l5 4v-13l-5 4H3z'/><path d='M16 9l5 6m0-6l-5 6' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/></svg>") center / contain no-repeat; }
.ico-son { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9.5v5h4l5 4v-13l-5 4H3z'/><path d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9.5v5h4l5 4v-13l-5 4H3z'/><path d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/></svg>") center / contain no-repeat; }

/* ---- carte de connexion (verre sombre) ---- */
.carte-connexion {
	position: sticky; top: 96px; padding: 30px 28px 24px; border-radius: 26px;
	background: linear-gradient(160deg, rgba(21, 41, 40, .82), rgba(8, 21, 22, .88));
	border: 1.5px solid rgba(197, 231, 228, .22);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.carte-connexion h2 { margin: 0 0 20px; font-size: 26px; text-transform: uppercase; font-variation-settings: "wght" 900, "wdth" 120, "slnt" -10; color: var(--blanc); }
.champ { margin-bottom: 16px; }
.champ label { display: block; margin: 0 0 6px 2px; color: var(--menthe); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-variation-settings: "wght" 650; }
.carte-connexion input[type=text], .carte-connexion input[type=password] {
	width: 100%; height: 50px; padding: 0 16px; color: var(--blanc); font-family: var(--police); font-size: 16px; border-radius: 14px;
	background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(197, 231, 228, .28); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.carte-connexion input::placeholder { color: rgba(197, 231, 228, .5); }
.carte-connexion input[type=text]:focus, .carte-connexion input[type=password]:focus { border-color: var(--or); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(220, 176, 101, .22); }
/* le navigateur colore les champs préremplis en bleu : on garde notre style */
.carte-connexion input:-webkit-autofill, .carte-connexion input:-webkit-autofill:hover, .carte-connexion input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--blanc); caret-color: var(--blanc); -webkit-box-shadow: 0 0 0 1000px #17302e inset; transition: background-color 9999s ease-out;
}
.ligne-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 12px; font-size: 14px; }
.coche { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; color: var(--menthe); font-weight: 400; }
.coche input { position: absolute; opacity: 0; width: 0; height: 0; }
.coche-case { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(197, 231, 228, .5); background: rgba(255, 255, 255, .05); position: relative; transition: background .15s, border-color .15s; }
.coche input:checked + .coche-case { background: var(--vert); border-color: var(--vert); }
.coche input:checked + .coche-case:after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--blanc); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.coche input:focus-visible + .coche-case { box-shadow: 0 0 0 4px rgba(220, 176, 101, .35); }
.lien-oubli { font-size: 14px; }
.carte-pied { margin: 18px 0 0; text-align: center; font-size: 14px; color: rgba(197, 231, 228, .75); }

/* ---- blocs ---- */
.bloc { padding: 84px 24px; }
.bloc-in { max-width: 1240px; margin: 0 auto; text-align: center; }
.bloc-roles { background: linear-gradient(180deg, rgba(8, 21, 22, 0) 0%, rgba(8, 21, 22, .82) 14%, rgba(8, 21, 22, .92) 100%); }
.bloc-titre { margin: 0 0 40px; font-size: clamp(26px, 3.2vw, 42px); text-transform: uppercase; font-variation-settings: "wght" 900, "wdth" 122, "slnt" -10; color: var(--blanc); }

.roles-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; }
body.accueil .role-carte {
	display: block; overflow: hidden; border-radius: var(--rayon); background: var(--blanc); color: var(--fonce); text-decoration: none !important;
	border: 2px solid transparent; box-shadow: 0 14px 36px rgba(0, 0, 0, .4); transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.accueil .role-carte:hover, body.accueil .role-carte:focus-visible { transform: translateY(-8px); border-color: var(--or); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 4px rgba(220, 176, 101, .25); outline: none; }
.role-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--menthe); }
.role-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.role-carte:hover .role-img img { transform: scale(1.05); }
.role-corps { display: block; padding: 18px 20px 22px; }
.role-corps strong { display: block; margin-bottom: 6px; font-size: 19px; color: var(--vert-f); font-variation-settings: "wght" 850, "wdth" 108; }
.role-corps span { display: block; font-size: 15px; line-height: 1.45; color: #3b5452; }

.bloc-etapes { background: rgba(8, 21, 22, .92); border-top: 1px solid rgba(197, 231, 228, .1); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; }
.etapes li {
	position: relative; padding: 70px 26px 28px; border-radius: var(--rayon);
	background: linear-gradient(160deg, rgba(21, 41, 40, .9), rgba(8, 21, 22, .9)); border: 1.5px solid rgba(197, 231, 228, .18);
}
.etapes strong { display: block; margin-bottom: 6px; font-size: 20px; color: var(--blanc); font-variation-settings: "wght" 800, "wdth" 108; }
.etapes li span:last-child { display: block; color: var(--menthe); }
.etape-num {
	position: absolute; left: 26px; top: 20px; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--fonce);
	background: linear-gradient(180deg, var(--or-c), var(--or)); border-bottom: 3px solid #B08838; font-variation-settings: "wght" 900, "wdth" 125, "slnt" -10;
}
.etapes-cta { margin: 44px 0 0; }

/* ---- pied de page ---- */
body.accueil .footer {
	margin: 0; padding: 22px 24px; text-align: center; font-size: 14px; color: rgba(197, 231, 228, .75);
	background: var(--noir); border-top: 1px solid rgba(197, 231, 228, .12);
}
body.accueil .footer a { color: var(--menthe); }
body.accueil .footer a:hover { color: var(--blanc); }
.footer_Sosomods { display: inline-block; }
.footerFixed { position: static; }

/* ---- avertissement cookies ---- */
#avertissement-cookies { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1100; width: min(720px, calc(100vw - 24px)); }
#avertissement-cookies.hidden { display: none; }
#avertissement-cookies-in {
	position: relative; padding: 14px 52px 14px 20px; border-radius: 18px; font-size: 14px; color: var(--menthe);
	background: rgba(8, 21, 22, .92); border: 1.5px solid rgba(197, 231, 228, .28); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.avertissement-close { position: absolute; right: 12px; top: 8px; }
.avertissement-close .close { color: var(--blanc); opacity: .8; text-shadow: none; font-size: 26px; }
.avertissement-close .close:hover { opacity: 1; }

/* ---- fenêtres modales (inscription, mot de passe oublié, contact, messages) ---- */
.modal-Hippiquedia .modal-content {
	border: 0; border-radius: 24px; overflow: hidden; color: var(--fonce); font-family: var(--police);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal-Hippiquedia .modal-header {
	padding: 20px 26px; border: 0; background: linear-gradient(135deg, var(--menthe) 0%, #EAF6F5 60%, var(--blanc) 100%);
}
.modal-Hippiquedia .modal-title { color: var(--fonce); font-size: 22px; font-variation-settings: "wght" 850, "wdth" 112; }
.modal-Hippiquedia .close { color: var(--fonce); opacity: .55; text-shadow: none; font-size: 28px; }
.modal-Hippiquedia .close:hover { opacity: 1; }
.modal-Hippiquedia .modal-body { padding: 24px 26px 10px; color: #28403e; }
.modal-Hippiquedia .control-label { color: var(--fonce); font-variation-settings: "wght" 700; }
.modal-Hippiquedia .form-control {
	height: 42px; border-radius: 12px; border: 1.5px solid rgba(10, 135, 101, .28); box-shadow: none; font-family: var(--police); color: var(--fonce);
}
.modal-Hippiquedia textarea.form-control { height: auto; }
.modal-Hippiquedia .form-control:focus { border-color: var(--vert); box-shadow: 0 0 0 4px rgba(10, 135, 101, .18); }
.modal-Hippiquedia .checkbox label { font-weight: 400; }
body.accueil .modal-Hippiquedia a { color: var(--vert); }
body.accueil .modal-Hippiquedia a:hover { color: var(--vert-f); }
.modal-Hippiquedia .alert { border-radius: 12px; }
.modal-Hippiquedia .modal-footer { padding: 16px 26px 22px; border: 0; background: linear-gradient(0deg, rgba(197, 231, 228, .35), rgba(255, 255, 255, 0)); }
.modal-Hippiquedia .btn { border-radius: 12px; padding: 9px 22px; font-family: var(--police); font-variation-settings: "wght" 700; }
.modal-Hippiquedia .btn-default { background: var(--blanc); color: var(--fonce); border: 1.5px solid rgba(21, 41, 40, .2); }
.modal-Hippiquedia .btn-default:hover { background: #F2F8F7; }
.modal-Hippiquedia .btn-Hippiquedia {
	color: var(--blanc); border: 0; border-bottom: 3px solid var(--vert-f); background: linear-gradient(180deg, #0C9C76, var(--vert));
}
.modal-Hippiquedia .btn-Hippiquedia:hover { filter: brightness(1.1); color: var(--blanc); }
.modal-backdrop.in { opacity: .72; background: var(--noir); }

/* ---- défilement doux, mouvement réduit ---- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.video-vide { animation: none; }
	* { transition-duration: .01ms !important; }
}

/* ---- tablettes et mobiles ---- */
@media (max-width: 1100px) {
	.hero-in { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
}
@media (max-width: 991px) {
	.hero { padding: 12px 18px 56px; }
	.hero-in { grid-template-columns: minmax(0, 1fr); }
	.carte-connexion { position: static; max-width: 520px; margin: 0 auto; width: 100%; }
	.video-carte { max-width: none; }
	.roles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.etapes { grid-template-columns: minmax(0, 1fr); }
	.bloc { padding: 60px 18px; }
}
@media (max-width: 575px) {
	.barre-in { padding: 10px 14px; }
	.barre-logo img { height: 44px; }
	.hero-sous { font-size: 17px; }
	.btn-inscription { width: 100%; padding: 15px 18px; font-size: 16px; }
	.btn-verre { width: 100%; }
	.roles-grille { grid-template-columns: minmax(0, 1fr); }
	.video-cadre { border-radius: 18px; }
}
