
/* ========================================
   MAIN CSS STEPH LR
   ======================================== */

:root {
	
/* ===== PALETTE COMMUNE ===== */
	--couleur-header: #13151A;
	--couleur-texte: #E2E4E9D1;
	--largeur-site: 1300px;
	--couleur-recherche:#0e1013;
	--couleur-texte-secondaire: #747475;
	--hauteur-footer: 65px;
	--couleur-footer-2: #17181E;
	--couleur-lien: #5e8bde;
	--couleur-lien-hover: #3f75d9;

/* ===== PALETTE GLOBALE ===== */
	--color-bg-dark			: #05080f;
	--color-bg-main			: #1E2129

	--color-text-main		: #cfd6e1;
	--color-text-strong		: #efefef;

	--color-accent			: #4cc9f0;

/* ===== BODY ===== */	
	--body-bkg					: #1E2129;
	--body-before-bkg			: #1E2129;
	
/* ===== BREADCRUMB ===== */	
	--breadcrumb-bkg			: rgba(255,255,255,0.03);
	--breacrumb-border			: rgba(255,255,255,0.05);
	
/* ===== BARRE ===== */	
	--barre-shadow-bkg			: linear-gradient(90deg, #2f343a, #262b30);
	--barre-shadow-shadow		: rgba(255,255,255,0.05);
	
/* ===== NAVBAR ===== */	
	--navbar-bkg				: var(--color-bg-main);
	--navbar-scroll-bkg 		: rgba(5, 8, 15, 0.95);
	--navbar-scroll-shadow 		: rgba(0,0,0,0.5);
	--navbar-logo-border 		: rgba(255,255,255,0.15);
	--navbar-toggler-border 	: rgba(255,255,255,0.3);
	--navbar-toggler-hover-bkg	: rgba(255,255,255,0.1);
	--navbar-toggler-exp-bkg 	: rgba(76,201,240,0.2);
	--navbar-toggler-exp-color 	: var(--color-accent);
	--navbar-link-color 		: var(--color-text-main);
	--navbar-link-hover-color 	: var(--color-text-strong);
	--navbar-link-anim-bkg		: var(--color-accent);
	--navbar-search-bkg			: #e9e1d5;

/* ===== FOOTER ===== */
	--footer-bkg				: linear-gradient(180deg, #0f1a2b, #05080f);
	--footer-text-col			: var(--color-text-main);
	--footer-title-col			: var(--color-text-strong);
	--footer-link-col			: var(--color-accent);
	--footer-pied-border 		: rgba(255,255,255,0.05);

}
/* ========================================
   BASE
   ======================================== */

	* {box-sizing: border-box;}


/* ========================================
   HEADER PRINCIPAL
   ======================================== */

	.header-principal {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		background: var(--couleur-header);
		color: var(--couleur-texte);
	}

	.header-interieur {
		display: flex;
		align-items: center;
		gap: 16px;
		width: 100%;
		max-width: var(--largeur-site);
		height: 100%;
		margin: 0 auto;
		padding: 0 12px;
	}
	
	
/* Logo / titre */

	.titre-site {
		flex: 1;
		min-width: 0;
		font-size: 20px;
		font-weight: 600;
		padding: 5px 0 0 10px;
	}

	.logo img {
		height: 44px;
		width: 120px;
		margin-top: 2px;
		border-right: 1px solid #4a4848;
		padding-right: 15px;
	}
	
	a.logo {text-decoration: none;}
	
		
	.titre-site span {
		font-size: 27px;
		vertical-align: top;
		line-height: 3.5rem;
		font-family: "Trebuchet MS", Arial, sans-serif;
		margin-left: 15px;
	}
	
	.titre-site > span {
		position: relative;
		display: inline-block;
		width: fit-content;
	}
	
	.titre-site > .secteur-titre {
		margin-left: 0;
	}
	

/* Déclencheur de recherche */

	.recherche-declencheur {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 257px;
		height: 36px;
		padding: 0 12px;
		border: 1px solid transparent;
		border-radius: 0;
		background: var(--couleur-recherche);
		color: var(--couleur-texte-secondaire);
		font: inherit;
		cursor: pointer;
	}

	.recherche-declencheur svg,
	.recherche-formulaire svg {
		width: 21px;
		height: 21px;
		flex-shrink: 0;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.recherche-declencheur:hover {border-color: #444852;}


/* Modale de recherche */

	.modale-recherche {
		position: fixed;
		inset: 0;
		z-index: 2000;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		padding: 72px 16px 24px;
		padding: 5px 16px 24px;
		background: rgb(0 0 0 / 65%);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.modale-recherche.ouverte {
		opacity: 1;
		visibility: visible;
	}

	.recherche-panneau {
		width: 100%;
		max-width: 750px;
		max-height: calc(100vh - 96px);
		overflow: hidden;
		background: #1E2129;
		color: #E5E7EB;
		border: 1px solid #343741;
		box-shadow: 0 12px 40px rgb(0 0 0 / 35%);
	}

	.recherche-formulaire {
		display: flex;
		align-items: center;
		gap: 14px;
		height: 42px;
		padding: 0 12px;
		background: #20232B;
		border-bottom: 1px solid #343741;
	}

	.recherche-formulaire input {
		flex: 1;
		min-width: 0;
		height: 100%;
		padding: 0;
		border: 0;
		outline: none;
		background: transparent;
		color: inherit;
		font: inherit;
	}

	.recherche-formulaire input::placeholder {color: #9298A5;}

	.recherche-fermer {
		padding: 0 2px;
		border: 0;
		background: transparent;
		color: #9298A5;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
	}

	.recherche-fermer:hover {color: #FFFFFF;}

	.recherche-resultats {
		max-height: calc(100vh - 160px);
		overflow-y: auto;
	}

	.recherche-message {
		padding: 10px 48px;
		background: #343741;
		color: #A6ABB5;
		font-size: 14px;
	}

	/*body.recherche-ouverte {overflow: hidden;}*/
	
	
/* ========================================
		RECHERCHE DYNAMIQUE — RÉSULTATS
======================================== */

	.recherche-panneau {
		border-color: #343741;
		box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
	}

	.recherche-resultats {
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		background: #1E2129;
		scrollbar-width: thin;
		scrollbar-color: #4B5260 #1E2129;
	}

	/* Groupes de résultats */

	.recherche-resultats section {
		margin: 0;
		padding: 0;
		border-bottom: 1px solid #343741;
	}

	.recherche-resultats section:last-child {border-bottom: 0;}

	/* Titres des groupes */

	.recherche-resultats h2,
	.recherche-resultats h3 {
		margin: 0;
		padding: 9px 16px;
		background: #171A21;
		border-left: 3px solid var(--couleur-lien);
		color: #A6ABB5;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.07em;
		text-transform: uppercase;
	}

	/* Liens vers les contenus */

	.recherche-resultats a {
		display: block;
		padding: 9px 18px;
		border-left: 3px solid transparent;
		background: transparent;
		color: #E5E7EB;
		font-size: 14px;
		line-height: 1.45;
		text-decoration: none;
		overflow-wrap: anywhere;
		transition:
			background-color 0.15s ease,
			border-color 0.15s ease,
			color 0.15s ease;
	}

	.recherche-resultats a:hover,
	.recherche-resultats a:focus-visible {
		border-left-color: var(--couleur-lien);
		background: #292D38;
		color: #FFFFFF;
		outline: none;
	}

	.recherche-resultats a:focus-visible {
		box-shadow: inset 0 0 0 1px var(--couleur-lien);
	}

	/* Message d'information */

	.recherche-resultats .recherche-message {
		padding: 12px 18px;
		background: #292D38;
		color: #A6ABB5;
		font-size: 14px;
	}

	/* Adaptation mobile */

	@media (max-width: 600px) {
		.modale-recherche {padding: 5px 8px 16px;}

		.recherche-panneau {max-height: calc(100vh - 24px);}

		.recherche-resultats {max-height: calc(100vh - 75px);}

		.recherche-resultats h2,
		.recherche-resultats h3 {padding: 9px 12px;}

		.recherche-resultats a {padding: 10px 14px;}
	}



/* ========================================
   FOOTERS PLEINE LARGEUR
   ======================================== */

	footer.footer {
		z-index: 1000;
		position: relative;
	}
	
	.footer-informations {
		min-height: var(--hauteur-footer);
		background: var(--couleur-footer-2);
		color: var(--couleur-texte);
	}

	.footer-informations-interieur {
		display: grid;
		grid-template-columns: 1fr 2fr 1fr;
		align-items: center;
		gap: 24px;
		width: 100%;
		max-width: var(--largeur-site);
		min-height: 65px;
		margin: 0 auto;
		padding: 10px 12px;
	}

	.footer-copyright {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0 12px;
		font-size: 13px;
		line-height: 1.5;
	}

	.footer-copyright span:last-child {
		flex-basis: 100%;
		color: var(--couleur-texte-secondaire);
	}

	.footer-liens {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 18px;
		font-size: 13px;
	}

	.footer-liens a {
		color: var(--couleur-texte-secondaire);
		transition: color 0.2s ease;
	}

	.footer-liens a:hover {
		color: var(--couleur-lien-hover);
	}

	.footer-reseaux {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	.footer-reseaux a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		color: var(--couleur-texte);
		transition: color 0.2s ease;
	}
	
	.footer-reseaux a:hover {
		color: var(--couleur-lien-hover);
	}

	.footer-reseaux svg {
		display: block;
		width: 32px;
		height: 32px;
	}

	.footer-interieur {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		max-width: var(--largeur-site);
		min-height: var(--hauteur-footer);
		margin: 0 auto;
		padding: 0 20px;
	}


/* ################### */
/* ###   GENERAL   ### */
/* ################### */

	html {
		scroll-behavior: smooth;
		scrollbar-width: thin;
	    scrollbar-color: #676767 #222;
	}
		
	body::before {
		content: "";
		position: fixed;
		inset: 0;
		background: var(--body-before-bkg);
		pointer-events: none;
		background: rgba(0,0,0,0.50);
	}
	
	body {
		background: var(--body-bkg);
		color: var(--color-text-strong);
		margin: 0;
		font-family: inter;
		background: linear-gradient(to bottom, rgba(5,10,15,0.85) 0%, rgba(5,10,15,0.85) 100%);
	}
	
	.site-header {padding-top: 100px;}


/* ################### */
/* ###   CONTENU   ### */
/* ################### */
	
	
/*====== CONTAINER  ======*/
	.section{margin-bottom: 40px;}
	
	.section:first-child {margin-top: 80px;}


/* ===== BREADCRUMB ===== */	

	.section.barre {
		margin-bottom: 0;
		padding: 0 100px;
	}
	
	.breadcrumb {
		font-size: 12px;
		margin: 3px 0;
		color: #aaa;
	}

	.breadcrumb a {
		color: #4fc3f7;
		text-decoration: none;
	}

	.breadcrumb a:hover {text-decoration: underline;}

	.breadcrumb span {color: #efefef;}
	
	
/* ===== BARRE de TITRE ===== */
	
	.page-title {
	    background: var(--barre-shadow-bkg);
		color: var(--color-text-strong);
		text-align: center;
		padding: 15px 0;
		font-size: 28px;
		font-weight: 600;
	}

	.main-content {
		background: #1E2129;
		padding: 40px 0;
	}

	.content-box {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 15px;
	}
	
	
/* ################## */
/* #####  LOGIN  #### */
/* ################## */


	.auth-container {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 80px 20px;
	}

	.auth-card {
		width: 100%;
		max-width: 420px;
		padding: 30px;
		border-radius: 15px;

		background: rgba(255,255,255,0.05);
		backdrop-filter: blur(10px);

		box-shadow: 0 0 30px rgba(0,0,0,0.5);
	}


/* 🔥 FORCE colonne propre */
	.auth-card form {
		display: flex;
		flex-direction: column !important;
	}


/* TITRE */
	.auth-card h2 {
		text-align: center;
		margin-bottom: 20px;
	}


/* LABEL */
	.auth-card label {
		display: block;
		margin-top: 15px;
		font-size: 14px;
		opacity: 0.8;
	}


/* INPUT */
	.auth-card input {
		display: block !important;
		width: 100%;
		padding: 10px;
		margin-top: 5px;

		border-radius: 8px;
		border: 1px solid rgba(255,255,255,0.1);

		background: rgba(255,255,255,0.08);
		color: #fff;
	}

	.auth-card input,
	.auth-card label,
	.input-error {width: 100%;}

	.auth-card input:focus {
		outline: none;
		border-color: #38bdf8;
	}


/* BOUTON */
	.auth-card button {
		margin-top: 25px;
		padding: 12px;
		border-radius: 8px;
		border: none;
		background: linear-gradient(90deg, #38bdf8, #818cf8);
		color: #000;
		font-weight: bold;
		cursor: pointer;
	}

	.auth-card button:hover {opacity: 0.9;}


/* ERREURS */
	.input-error {
		display: block;
		color: #f87171;
		font-size: 12px;
		margin-top: 5px;
		margin-bottom: 5px;
	}

	.error-global {
		display: block;
		background: rgba(248,113,113,0.1);
		color: #f87171;
		padding: 10px;
		border-radius: 8px;
		margin-bottom: 15px;
		text-align: center;
	}
	
	.alert {
		width: 600px;
		margin: 0 auto 50px auto;
		border: none;
		border-radius: 10px;
		padding: 14px 18px;
		font-size: 14px;
		backdrop-filter: blur(6px);
		box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	}
	
	.alert:hover {
		transform: translateY(-1px);
		transition: 0.2s ease;
	}
		
	.alert-success {
		background: rgba(0, 200, 150, 0.12);
		color: #00d4a3;
		border-left: 4px solid #00d4a3;
	}

	.alert-warning {
		background: rgba(255, 180, 0, 0.12);
		color: #ffb400;
		border-left: 4px solid #ffb400;
	}

	.alert-danger {
		background: rgba(255, 70, 70, 0.12);
		color: #ff4d4d;
		border-left: 4px solid #ff4d4d;
	}

	
/* BLOQUE / BANNI */
	.auth-card.bloque {
		width: 100%;
		max-width: 780px;
		padding: 40px;
		border-radius: 15px;
		background: rgba(255, 255, 255, 0.04);
	}
	
	.auth-card.bloque h2 {
		color: #f64248;
		font-size: 3rem;
		margin-bottom: 40px;
	}
	
	.auth-card.bloque p {font-weight: 200;}
	
	.auth-card.bloque #countdown {display: inline;}
	
	.auth-card.bloque .decompte {
		text-align: center;
		margin-top: 50px;
	}
	
	.auth-card.bloque a {
		text-decoration: none;
		font-weight: 600;
		color: #7387dd;
	}
	
	.auth-card.bloque a:hover {
	    opacity: 0.8;
		color: #3550c3;
	}
	
	.auth-card.bloque .qwant-logo img {
		width: 48px;
		float: right;
		margin-top: 25px;
		margin-right: 45px;
	}


/* MODAL GLOBAL */
	.modal-steph .modal-content {
		background: rgba(20, 25, 35, 0.75);
		border: 1px solid rgba(255,255,255,0.08);
		border-radius: 16px;
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		color: #e5e7eb;
	}

	.modal-steph a {
		text-decoration: none;
		position: relative;
		transition: 0.25s;
		color: #cbd5e1;
		background: rgba(255,255,255,0.06);
		padding: 2px 6px;
		border-radius: 6px;
		transition: 0.25s;
		font-size: 0.95em;
	}
	
	.modal-steph a::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: -2px;
		width: 0%;
		height: 1px;
		background: linear-gradient(90deg, #60a5fa, #22d3ee);
		transition: 0.3s;
	}

	.modal-steph a:hover {
		background: rgba(96,165,250,0.15);
		color: #efefef;
	}

	.modal-steph a:hover::after {width: 100%;}

	.modal-steph .steph-intro {
		display: flex;
		gap: 20px;
		align-items: center;
		margin-bottom: 30px;
	}

	.modal-steph .steph-intro img {
		width: 90px;
		height: 90px;
		border-radius: 50%;
	}

	.modal-steph .timeline {
		position: relative;
		margin: 30px 0;
		padding-left: 40px;
	}

	.modal-steph .timeline::before {
		content: "";
		position: absolute;
		left: 10px;
		top: 0;
		bottom: 0;
		width: 2px;
		background: rgba(255,255,255,0.1);
	}

	.modal-steph .timeline-item {
		position: relative;
		margin-bottom: 22px;
		padding-left: 12px;
	}

	.modal-steph .timeline-dot {
		position: absolute;
		left: -8px;
		top: 2px;
		width: 12px;
		height: 12px;
		background: #4cc9f0;
		border-radius: 50%;
	}

	.modal-steph .timeline-content h4 {
		font-size: 14px;
		color: #fff;
		margin-bottom: 4px;
		text-align: left;
	}

	.modal-steph .timeline-content p {
		font-size: 13px;
		color: #cbd5e1;
		text-align: left;
	}

	.modal-steph .steph-cards {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 15px;
		margin: 30px 0;
	}

	.modal-steph .steph-card {
		background: rgba(255,255,255,0.05);
		padding: 15px;
		border-radius: 12px;
		transition: 0.3s;
	}

	.modal-steph .steph-card:hover {
		transform: translateY(-3px);
		background: rgba(255,255,255,0.08);
	}

	.modal-steph .steph-card h4 {
		margin-bottom: 8px;
		font-size: 14px;
	}

	.modal-steph .steph-content p {
		margin-bottom: 12px;
		font-size: 14px;
		color: #cbd5e1;
		text-align: left;
	}

	.modal-steph .btn-close-modal {
		background: rgba(255,255,255,0.08);
		border: 1px solid rgba(255,255,255,0.1);
		padding: 6px 14px;
		border-radius: 8px;
		color: #fff;
	}

	.modal-steph .fade-in {
		opacity: 0;
		transform: translateY(10px);
		animation: fadeIn 0.6s ease forwards;
	}

	.modal-steph .fade-in:nth-child(2) { animation-delay: 0.1s; }
	
	.modal-steph .fade-in:nth-child(3) { animation-delay: 0.2s; }
	
	.modal-steph .fade-in:nth-child(4) { animation-delay: 0.3s; }

	@keyframes fadeIn {
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}


/* RESPONSIVE */

	@media (max-width: 768px) {
		.modal-steph .steph-cards {grid-template-columns: 1fr;}
		
		.modal-steph .steph-intro {
			flex-direction: column;
			align-items: left;
			text-align: left;
		}

		.modal-steph .steph-intro img {
			width: 90px;
			height: 90px;
		}
	}


/*====== RESPONSIVE  ======*/

	@media (max-width: 992px) {
		
	/* ################## */
	/* ###   FOOTER   ### */
	/* ################## */

		.footer-top {text-align: center;}

		.footer-text {margin: auto;}

	}

	@media (max-width: 576px) {
	
	/* ################## */
	/* ###   FOOTER   ### */
	/* ################## */
	
		/* PASSAGE en COLONNES */
		.site-footer .row {
			flex-direction: column;
			text-align: center;
		}

		/* COLONNES PLEINE LARGEUR */
		.site-footer .col-md-4 {width: 100%;}

		/* ESPACEMENT BLOCS */
		.footer-nav {margin-top: 20px;}
		
		.footer-text{text-align: justify;}
		
		.footer-avatar {margin-left: 50px;

		/* LIENS VISIBLES */
		.footer-nav a {
			display: flex;
			align-items: center;
			justify-content: center;
			min-height: 40px;
			padding: 6px 0;
			/* font-size: 16px; A voir en live... */
		}

		/* PIED du FOOTER */
		.footer-bottom {
			flex-direction: column;
			gap: 10px;
			text-align: center;
		}
		
	}
	
