
/* ========== Variables globales (charte ISF) ========== */
:root
{
	--brand-1: #026bd2;
	/* Bleu ISF principal */
	--brand-5: #ffffff;
	/*Blan*/
	--brand-2: #026bd2;
	/* Même bleu pour la cohérence */
	--brand-3: #004a94;
	/* Variante foncée (hover/admin) */
	--brand-4: #DC2626;
	/* Rouge pour alertes */
	--bg-grad: linear-gradient(135deg, var(--brand-2) 40%, var(--brand-1) 100%);
	--text: #0f172a;
	--muted: #64748b;
	--card: #ffffff;
	--radius: 14px;
	/*--shadow: 0 6px 24px rgba(0,0,0,.12);
	*/
}

/* Reset */
*
{
	box-sizing: border-box;
	margin:0;
	padding:0;
}

html,body
{
	height:100%;
}

body
{
	font-family: 'Roboto Slab', serif;
	background: var(--bg-grad);
	color: var(--text);
	line-height: 1.6;
}

/* ========== Navbar ========== */
.navbar
{
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 30px;
	background: #ffffff;
	backdrop-filter: blur(10px);
	/* effet verre dépoli */
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
	z-index: 1000;
}

.navbar img
{
	height: 42px;
	transition: transform .3s ease;
}

.navbar img:hover
{
	transform: scale(1.05);
}

.navbar .links
{
	display: flex;
	gap: 20px;
}

.navbar .links a
{
	position: relative;
	padding: 8px 14px;
	border-radius: 6px;
	text-decoration: none;
	font-family: 'Sen', sans-serif;
	font-weight: 600;
	color: var(--brand-2);
	transition: all .3s ease;
}

/* Soulignement animé */
.navbar .links a::after
{
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 0%;
	height: 2px;
	background: var(--brand-2);
	transition: all .3s ease;
	transform: translateX(-50%);
}

.navbar .links a:hover::after
{
	width: 80%;
}

.navbar .links a:hover
{
	color: var(--brand-1);
}

.navbar .links a.active
{
	color: var(--brand-2);
	background: rgba(0,0,0,0.05);
}

.navbar .links a.active::after
{
	width: 100%;
	background: var(--brand-2);
}

/* Menu mobile en slide */
.mobile-menu {
  display: none;             /* caché par défaut */
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  border-radius: 8px 0 0 8px;
  padding: 20px;
  transition: right .3s ease;
  z-index: 2147483647;             /* au-dessus de l’overlay */
}

/* Quand ouvert → toujours visible */
.mobile-menu.open {
  display: block;
  right: 0;
}

/* === Overlay === */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* important : sinon tu vois gris clair partout */
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 2147483646;             /* sous le menu */
}
.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Liens dans le menu */
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-family: 'Sen', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  transition: color .2s;
}
.mobile-menu a:hover {
  color: var(--brand-1);
}

/* Bouton burger */
.menu-toggle {
  display: none;
  font-size: 26px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--brand-2);
  z-index: 3000;
}
@media (max-width: 768px) {
  .navbar { position: relative; }
  .navbar .links { display: none; }
  .menu-toggle { 
    display: block; 
    position: absolute;
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%);
  }
}

/* ========== Container global ========== */
.container
{
	max-width:1800px;
	margin:10px auto 40px;
	padding:0 20px;
}

/* ========== Bannières ========== */
.banner
{
	font-family:'Sen',sans-serif;
	font-size:20px;
	font-weight:600;
	padding:16px 24px;
	border-radius: var(--radius);
	margin:10px auto 10px;
	text-align:center;
	color:#fff;
	box-shadow: var(--shadow);
}

.banner-guest, .banner-dashboard, .banner-admin
{
	background: var(--brand-1);
}

/* ========== Cards ========== */
.card
{
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding:24px 28px;
	margin-bottom:20px;
}

/* ========== Formulaires ========== */
.form label
{
	display:block;
	margin:14px 0 6px;
	font-size:14px;
	font-weight:600;
	font-family:'Sen',sans-serif;
	color:var(--brand-2);
}

.form input, .form select, .form textarea
{
	width:100%;
	padding:12px 14px;
	border:1px solid #d1d5db;
	border-radius:10px;
	font-size:15px;
	font-family:'Roboto Slab', serif;
	margin-bottom:14px;
	transition:border .2s, box-shadow .2s;
}

.form input:focus, .form select:focus, .form textarea:focus
{
	border-color: var(--brand-1);
	outline:none;
	box-shadow:0 0 0 3px rgba(2,107,210,.15);
}

.form textarea
{
	resize: vertical;
	min-height:100px;
}

.form-actions
{
	display:flex;
	gap:12px;
	margin-top:10px;
	flex-wrap:wrap;
}

/* ========== Boutons ========== */
.btn
{
	display:inline-block;
	padding:10px 18px;
	border-radius:8px;
	font-weight:600;
	font-family:'Sen',sans-serif;
	text-decoration:none;
	cursor:pointer;
	transition:background .2s, transform .05s;
	border:none;
}

.btn:active
{
	transform:translateY(1px);
}

.btn-primary
{
	background:var(--brand-2);
	color:#fff;
}

.btn-primary:hover
{
	background:var(--brand-3);
}

.btn-secondary
{
	background:#0f172a;
	color:#fff;
}

.btn-secondary:hover
{
	background:#1e293b;
}

.btn-danger
{
	background:var(--brand-4);
	color:#fff;
}

.btn-danger:hover
{
	background:#991b1b;
}

/* ========== Messages ========== */
.error
{
	background:#fee2e2;
	color:#b91c1c;
	padding:10px 14px;
	border-radius:8px;
	margin:10px 0;
}

.success
{
	background:#dcfce7;
	color:#15803d;
	padding:10px 14px;
	border-radius:8px;
	margin:10px 0;
}

/* ========== Téléphone avec indicatif ========== */
.phone-with-prefix
{
	position: relative;
	width:100%;
	margin-bottom:14px;
}

.phone-with-prefix .prefix
{
	position: absolute;
	left: 5px;
	top: 38%;
	transform: translateY(-50%);
	min-width: 70px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #026bd2;
	text-align: center;
	pointer-events: none;
	font-size:14px;
}

.phone-with-prefix input[type="tel"]
{
	width:100%;
	padding:12px 14px;
	padding-left:95px;
	/* espace pour l’indicatif */
	border:1px solid #d1d5db;
	border-radius: var(--radius);
	font-size:15px;
	font-family: Mulish, Helvetica, Arial, Sans-Serif, serif;
	color:#DC2626;
	background:#fff;
}

@media (max-width:480px)
{
	.phone-with-prefix .prefix
	{
		min-width:64px;
		padding:8px 8px;
	}

	.phone-with-prefix input[type="tel"]
	{
		padding-left:88px;
	}

}

/* ========== Footer ========== */
.footer
{
	background: var(--brand-5);
	/* Blanc ISF */
	color: #000000;
	text-align: center;
	padding: 20px;
	margin-top: 60px;
	font-family: 'Sen', sans-serif;
	font-size: 14px;
	box-shadow: 0 -2px 10px rgba(0,0,0,.08);
	/*border-radius: 15px;
	*/
	margin: 10px;
}

.footer p
{
	margin: 4px 0;
}

.footer a
{
	color: var(--brand-1);
	/* Blanc ISF */
	text-decoration: underline;
	transition: color .2s;
}

.footer a:hover
{
	color: #dbeafe;
	/* bleu clair au hover */
}

/* Modal global */
.modal
{
	display: none;
	/* caché par défaut */
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	overflow: auto;
}

/* Contenu modal */
.modal-content
{
	background: #fff;
	margin: 40px auto;
	padding: 20px;
	border-radius: var(--radius);
	max-width: 800px;
	box-shadow: var(--shadow);
	animation: slideDown .3s ease-out;
}

/* Animation */
@keyframes slideDown
{
	from
	{
		transform: translateY(-50px);
		opacity: 0;
	}

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

}

/* Bouton fermer */
.modal .close
{
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.modal .close:hover
{
	color: var(--brand-main);
}

.modal-body
{
	max-height: 60vh;
	overflow-y: auto;
	margin-top: 20px;
	line-height: 1.6;
}

/*Home*/
/* === Innovations Grid === */
.innovations-grid
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

/* Carte */
.innov-card
{
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

.innov-card:hover
{
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* Image */
.innov-thumb
{
	width: 100%;
	height: 160px;
	background: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.innov-thumb img
{
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	/* garde bien l'image dans son cadre */
	border-bottom: 1px solid #eee;
}

/* Texte */
.innov-body
{
	padding: 15px;
	text-align: center;
}

.innov-body h4
{
	font-size: 16px;
	margin-bottom: 8px;
	color: var(--brand-2);
}

.innov-body p
{
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 12px;
}

/***************************************************************/
/* === Carousel Publicités === */
#carousel
{
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	position: relative;
	margin-bottom: 20px;
}

.slides
{
	display: flex;
	transition: transform 0.5s ease-in-out;
	width: 100%;
}

.slide
{
	min-width: 100%;
	text-align: center;
	padding: 10px;
}

.slide img
{
	max-width: 100%;
	height: 500px;
	max-height: 720px;
	margin: 0 auto 12px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* Responsive carousel */
@media (max-width: 992px)
{
	.slide img
	{
		max-height: 220px;
	}

}

@media (max-width: 576px)
{
	.slide img
	{
		max-height: 160px;
	}

}

/* === Innovations Cards fix === */
.innov-card
{
	display: flex;
	flex-direction: column;
	height: 100%;
}

.innov-thumb
{
	flex: 0 0 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.innov-thumb img
{
	width: 100%;
	height: 100%;
	object-fit: contain;
	/* l’image reste dans le cadre */
}

/* === Banner Responsive === */
.banner img
{
	display: block;
	margin: 0 auto 15px;
}

.banner h1
{
	font-size: 28px;
}

.banner p
{
	font-size: 16px;
	color: #f1f5f9;
}

/* Cacher logo et réduire textes sur mobile */
@media (max-width: 576px)
{
	.banner img
	{
		display: none;
	}

	.banner h1
	{
		font-size: 20px;
	}

	.banner p
	{
		font-size: 14px;
	}

}

.badge
{
	display:inline-block;
	padding:4px 8px;
	border-radius:6px;
	font-size:12px;
	font-weight:600;
	margin-bottom:6px;
}

.badge-info
{
	background:#e0f2fe;
	color:#0369a1;
}

.like-btn
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--brand-2);
	color: blue;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 14px;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.like-btn:hover
{
	background: var(--brand-2);
}

.like-btn span
{
	font-weight: bold;
}

@media (max-width: 576px)
{
	.like-btn
	{
		font-size: 12px;
		padding: 4px 10px;
	}

}

.heart-fly
{
	position: absolute;
	font-size: 20px;
	color: red;
	animation: flyUp 1s ease forwards;
	pointer-events: none;
}

@keyframes flyUp
{
	0%
	{
		transform: translateY(0) scale(1);
		opacity: 1;
	}

	50%
	{
		transform: translateY(-40px) scale(1.3);
		opacity: 0.7;
	}

	100%
	{
		transform: translateY(-80px) scale(0.8);
		opacity: 0;
	}

}

.like-btn
{
	margin-top:6px;
	background:none;
	border:none;
	cursor:pointer;
	font-size:14px;
	color:#555;
	transition: color 0.3s ease, transform 0.2s ease;
}

.like-btn.liked
{
	color:#e0245e;
	/* Rouge TikTok / Instagram */
}

.like-btn
{
	margin-top:6px;
	background:none;
	border:none;
	cursor:pointer;
	font-size:16px;
	color:#555;
	position: relative;
	transition: transform 0.2s ease, color 0.3s ease;
}

.like-btn:hover
{
	transform: scale(1.1);
}

.heart
{
	font-size:18px;
	cursor:pointer;
	transition:0.3s;
	color:gray;
}

.heart.liked
{
	color:red;
}

.pulse-heart
{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	background: rgba(224,36,94,0.3);
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	animation: pulse 0.6s ease-out forwards;
	pointer-events: none;
}

@keyframes pulse
{
	to
	{
		transform: translate(-50%, -50%) scale(2);
		opacity: 0;
	}

}

.mobile-menu {
  z-index: 2147483647 !important; /* au-dessus de tout */
}
.menu-overlay {
  z-index: 2147483646 !important; /* juste en dessous */
}
.navbar {
  z-index: 1 !important; /* menu doit passer devant */
}
