/* ============================================================
   INTEC — styles additionnels multi-pages
   Base : assets/main.css (one-page existant) + ce fichier.
   Palette : #3391FF (primaire) · #1C1C21 (encre) · #FFF9F0
             #EBEBEB · #DEAA6D (accent chaud hérité)
   ============================================================ */

:root {
	--itec-blue: #3391FF;
	--itec-blue-dark: #1f6fd4;
	--itec-ink: #1C1C21;
	--itec-ink-soft: #4a4a52;
	--itec-cream: #FFF9F0;
	--itec-gray: #EBEBEB;
	--itec-gray-mid: #CFCFCF;
	--itec-warm: #DEAA6D;
	--itec-white: #FFFFFF;
	--itec-font-display: 'Manrope', 'Segoe UI', sans-serif;
	--itec-font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
	--itec-radius: 10px;
	--itec-shadow: 0 14px 34px rgba(28, 28, 33, 0.10);
	--itec-header-h: 76px;
	--itec-maxw: 1200px;
}

/* Neutraliser le fond dégradé de l'ancien template et poser une base propre */
body::before {
	background-image: none !important;
}

html {
	font-size: 16px;
}

body {
	font-family: var(--itec-font-body);
	background: var(--itec-white);
	color: var(--itec-ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--itec-font-display);
	font-weight: 800;
	line-height: 1.2;
	color: var(--itec-ink);
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.55rem; }

p { margin-bottom: 1rem; }

a { color: var(--itec-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--itec-blue); }

img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(51, 145, 255, 0.25); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--itec-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	padding: 0.95rem 1.6rem;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
	cursor: pointer;
}

.btn-primary {
	background: var(--itec-blue);
	color: var(--itec-white);
}
.btn-primary:hover { background: var(--itec-blue-dark); color: var(--itec-white); transform: translateY(-2px); }

.btn-outline {
	border-color: var(--itec-blue);
	color: var(--itec-blue-dark);
	background: transparent;
}
.btn-outline:hover { background: var(--itec-blue); color: var(--itec-white); }

.btn-light {
	background: var(--itec-white);
	color: var(--itec-ink);
}
.btn-light:hover { background: var(--itec-cream); color: var(--itec-ink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--itec-white);
	border-bottom: 1px solid rgba(28, 28, 33, 0.08);
	transition: box-shadow 0.25s;
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(28, 28, 33, 0.08); }

.header-inner {
	max-width: var(--itec-maxw);
	margin: 0 auto;
	padding: 0 1.25rem;
	height: var(--itec-header-h);
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	margin-right: auto;
}

.logo-mark {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 11px;
	background: var(--itec-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.logo-mark span {
	width: 7px;
	height: 26px;
	border-radius: 4px;
	background: var(--itec-white);
	position: relative;
}

.logo-mark span::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -16px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--itec-white);
	transform: translateX(-50%);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-text strong {
	font-family: var(--itec-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--itec-ink);
}

.logo-text em {
	font-style: normal;
	font-size: 0.78rem;
	color: var(--itec-ink-soft);
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
}

.nav-list a {
	font-family: var(--itec-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--itec-ink);
	text-decoration: none;
	padding: 0.55rem 0.8rem;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
}

.nav-list a:hover { color: var(--itec-blue-dark); background: rgba(51, 145, 255, 0.08); }
.nav-list a[aria-current="page"] { color: var(--itec-blue-dark); }

.has-submenu { position: relative; }

.submenu-toggle {
	display: none;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.nav-toggle span {
	width: 24px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--itec-ink);
	transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: min(78vh, 720px);
	display: flex;
	align-items: center;
	color: var(--itec-white);
	overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(16, 30, 52, 0.78) 0%, rgba(16, 30, 52, 0.35) 55%, rgba(16, 30, 52, 0.08) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: calc(var(--itec-maxw) - 2.5rem);
	margin: 0 auto;
	padding: 4.5rem 1.25rem;
	width: 100%;
}

.hero-title {
	max-width: 620px;
	color: var(--itec-white);
	margin-bottom: 1.25rem;
}

.hero-title em {
	display: block;
	font-style: normal;
	font-weight: 600;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 0.6rem;
}

.hero-text {
	max-width: 520px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.1rem;
	margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--itec-font-display);
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #bcd8ff;
	margin-bottom: 1rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.25rem; }
.section-alt { background: var(--itec-gray); }
.section-cream { background: var(--itec-cream); }
.section-dark { background: var(--itec-ink); color: rgba(255, 255, 255, 0.85); }
.section-dark h2, .section-dark h3 { color: var(--itec-white); }

.section-inner { max-width: var(--itec-maxw); margin: 0 auto; }
.section-narrow { max-width: 780px; margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
	font-family: var(--itec-font-display);
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--itec-blue-dark);
	margin-bottom: 0.6rem;
}

/* ---------- Grille de cartes ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.6rem;
	align-items: stretch;
}

.card {
	background: var(--itec-white);
	border-radius: var(--itec-radius);
	overflow: hidden;
	border: 1px solid rgba(28, 28, 33, 0.07);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s, box-shadow 0.25s;
	text-decoration: none;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--itec-shadow); }

.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--itec-gray); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 1.4rem 1.45rem 1.6rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }

.card-title { font-size: 1.12rem; font-weight: 800; margin: 0; }
.card-text { color: var(--itec-ink-soft); font-size: 0.98rem; margin: 0; }
.card-link { margin-top: auto; padding-top: 0.9rem; font-weight: 700; }

/* ---------- Bandes/statistiques ---------- */
.proof-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	text-align: center;
}

.proof-item strong {
	display: block;
	font-family: var(--itec-font-display);
	font-size: 2.1rem;
	font-weight: 800;
	color: var(--itec-blue-dark);
}

.proof-item span {
	color: var(--itec-ink-soft);
	font-size: 0.95rem;
}

/* ---------- Deux colonnes ---------- */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.split-media { border-radius: var(--itec-radius); overflow: hidden; }
.split-media img { width: 100%; }

/* ---------- Étapes ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.6rem;
	counter-reset: step;
}

.step { position: relative; padding-top: 2.6rem; }
.step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--itec-blue);
	color: var(--itec-white);
	font-family: var(--itec-font-display);
	font-weight: 800;
}

/* ---------- Liste de points ---------- */
.checklist { list-style: none; margin-bottom: 1.4rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 11px;
	height: 6px;
	border-left: 2.5px solid var(--itec-blue);
	border-bottom: 2.5px solid var(--itec-blue);
	transform: rotate(-45deg);
}

/* ---------- CTA final ---------- */
.cta-band {
	background: linear-gradient(115deg, var(--itec-blue) 0%, var(--itec-blue-dark) 100%);
	color: var(--itec-white);
	text-align: center;
	padding: 4rem 1.25rem;
}

.cta-band h2 { color: var(--itec-white); }
.cta-band p { opacity: 0.92; max-width: 560px; margin: 0 auto 1.6rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--itec-ink); color: rgba(255, 255, 255, 0.78); }

.footer-inner {
	max-width: var(--itec-maxw);
	margin: 0 auto;
	padding: 3.5rem 1.25rem 2rem;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 2.5rem;
}

.footer-logo { display: flex; flex-direction: column; margin-bottom: 0.8rem; }
.footer-logo strong { font-family: var(--itec-font-display); font-size: 1.2rem; letter-spacing: 0.08em; color: var(--itec-white); }
.footer-logo em { font-style: normal; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

.footer-title {
	font-family: var(--itec-font-display);
	font-weight: 700;
	color: var(--itec-white);
	font-size: 0.95rem;
	margin-bottom: 1rem;
	letter-spacing: 0.04em;
}

.footer-links, .footer-contact { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-links a:hover { color: var(--itec-white); }

.footer-contact li { margin-bottom: 0.7rem; }
.footer-label {
	display: block;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.15rem;
}
.footer-contact a { color: rgba(255, 255, 255, 0.9); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner { padding: 1.2rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.footer-legal { display: flex; gap: 1.4rem; list-style: none; }
.footer-legal a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-legal a:hover { color: var(--itec-white); }

/* ---------- Formulaires ---------- */
.form-wrap { background: var(--itec-white); border-radius: var(--itec-radius); border: 1px solid rgba(28, 28, 33, 0.08); padding: 2rem; box-shadow: var(--itec-shadow); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label { font-weight: 600; font-size: 0.93rem; }

.form-field input,
.form-field select,
.form-field textarea {
	font: inherit;
	font-size: 1rem;
	padding: 0.75rem 0.9rem;
	border: 1.5px solid #d8d8dc;
	border-radius: 8px;
	background: var(--itec-white);
	color: var(--itec-ink);
	transition: border-color 0.2s, box-shadow 0.2s;
	width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--itec-blue);
	box-shadow: 0 0 0 3px rgba(51, 145, 255, 0.18);
}

.form-note {
	margin-top: 1.1rem;
	padding: 0.9rem 1rem;
	border-radius: 8px;
	background: #e9f4ff;
	border: 1px solid #b9dcff;
	color: #12365f;
	font-weight: 600;
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--itec-gray-mid); }
.accordion-item { border-bottom: 1px solid var(--itec-gray-mid); }

.accordion-item > button {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 1.05rem 0.25rem;
	font-family: var(--itec-font-display);
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--itec-ink);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.accordion-item > button::after {
	content: '+';
	font-size: 1.4rem;
	color: var(--itec-blue-dark);
	transition: transform 0.2s;
}

.accordion-item > button[aria-expanded="true"]::after { transform: rotate(45deg); }

.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel.is-open { grid-template-rows: 1fr; }
.accordion-panel p { padding: 0 0.25rem 1.1rem; }

/* ---------- Révélation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero en cascade */
.hero .hero-kicker, .hero .hero-title, .hero .hero-text, .hero .hero-actions { opacity: 0; transform: translateY(16px); animation: heroIn 0.7s ease forwards; }
.hero .hero-kicker { animation-delay: 0.05s; }
.hero .hero-title { animation-delay: 0.18s; }
.hero .hero-text { animation-delay: 0.32s; }
.hero .hero-actions { animation-delay: 0.46s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
	font-size: 0.88rem;
	color: var(--itec-ink-soft);
	background: var(--itec-cream);
	padding: 0.8rem 1.25rem;
	border-bottom: 1px solid rgba(28, 28, 33, 0.06);
}
.breadcrumbs-inner { max-width: var(--itec-maxw); margin: 0 auto; }
.breadcrumbs a { text-decoration: none; color: var(--itec-blue-dark); }
.breadcrumbs span { margin: 0 0.45em; opacity: 0.55; }

/* ---------- Page légale ---------- */
.legal h2 { margin-top: 2.2rem; }
.legal h3 { margin-top: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.nav-toggle { display: flex; }

	.site-nav {
		position: fixed;
		top: var(--itec-header-h);
		left: 0;
		right: 0;
		background: var(--itec-white);
		border-bottom: 1px solid rgba(28, 28, 33, 0.1);
		box-shadow: 0 18px 30px rgba(28, 28, 33, 0.12);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}

	.site-nav.is-open { max-height: calc(100svh - var(--itec-header-h)); overflow-y: auto; }

	.nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.8rem 1.25rem 1.4rem; }
	.nav-list a { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid rgba(28, 28, 33, 0.06); border-radius: 0; }

	.has-submenu { display: flex; flex-wrap: wrap; align-items: center; }
	.has-submenu > a { flex: 1; }
	.submenu-toggle {
		display: flex;
		width: 46px;
		height: 46px;
		align-items: center;
		justify-content: center;
		background: none;
		border: 0;
		cursor: pointer;
	}
	.submenu-toggle span { width: 9px; height: 9px; border-right: 2px solid var(--itec-ink); border-bottom: 2px solid var(--itec-ink); transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; }
	.has-submenu.is-open .submenu-toggle span { transform: rotate(-135deg) translateY(-2px); }

	.submenu {
		flex-basis: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		padding-left: 1rem;
	}
	.has-submenu.is-open .submenu { max-height: 320px; }
	.submenu a { border-bottom: 0 !important; font-size: 0.98rem !important; }

	.header-inner { height: auto; min-height: var(--itec-header-h); flex-wrap: wrap; padding-top: 0.55rem; padding-bottom: 0.55rem; }
	.btn-cta { margin-left: auto; }

	.split { grid-template-columns: 1fr; gap: 2rem; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
	.hero-content { padding: 3.2rem 1.25rem; }
	.section { padding: 3.2rem 1.1rem; }
	.form-wrap { padding: 1.4rem; }
	.btn-cta { padding: 0.8rem 1.1rem; font-size: 0.88rem; }
	.logo-text em { display: none; }
}

/* Accessibilité : focus visible */
:focus-visible {
	outline: 3px solid var(--itec-blue);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
