/* ==========================================================================
   Accueil
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--isg-surface), var(--isg-white)); padding-block: var(--space-4) var(--space-5); }
.hero__blob--1 { inline-size: clamp(220px, 40vw, 560px); inset-inline-end: -12%; inset-block-start: -18%; opacity: 0.16; }
.hero__blob--2 { inline-size: clamp(90px, 12vw, 170px); inset-inline-start: -50px; inset-block-end: 6%; opacity: 0.3; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 64em) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero__title { font-size: var(--fs-h1); max-width: 18ch; margin-block-end: 0.4em; }
.hero__accent { color: var(--isg-ink); background: linear-gradient(transparent 62%, var(--isg-orange-20) 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { font-size: var(--fs-lg); color: var(--isg-muted); max-width: 52ch; margin-block-end: 1.5rem; }
.hero__pill {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-block-end: 1rem; padding: 0.4rem 0.9rem;
	border-radius: 999px; background: var(--isg-white); border: 1px solid var(--isg-orange-20); color: var(--isg-ink);
	font-weight: 600; font-size: var(--fs-sm); text-decoration: none; box-shadow: var(--shadow);
}
.hero__dot { inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--isg-orange); box-shadow: 0 0 0 4px var(--isg-orange-20); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-block-start: 2rem; color: var(--isg-muted); }
.hero__stats strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; color: var(--isg-blue); line-height: 1.1; }
.hero__media { position: relative; }
.hero__media::before {
	content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
	background: linear-gradient(135deg, var(--isg-orange), var(--isg-blue)); z-index: -1; opacity: 0.9;
}
.hero__img { inline-size: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 42% 58% 48% 52% / 42% 38% 62% 58%; box-shadow: var(--shadow-lg); }
@media (max-width: 63.99em) {
	.hero__media { max-inline-size: 32rem; margin-inline: auto; inline-size: 92%; }
}

/* ---------- Two paths ---------- */
.paths { margin-block-start: calc(-1 * var(--space-4)); position: relative; z-index: 2; }
.paths__grid { display: grid; gap: var(--space-3); }
@media (min-width: 48em) { .paths__grid { grid-template-columns: 1fr 1fr; } }
.path {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	border-radius: var(--radius-lg); text-decoration: none; color: var(--isg-ink); box-shadow: var(--shadow-lg);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.path:hover { transform: translateY(-4px); text-decoration: none; color: var(--isg-ink); }
.path--diplome { background: var(--isg-blue); color: var(--isg-white); }
.path--diplome:hover { color: var(--isg-white); }
.path--qualif { background: var(--isg-white); border: 1px solid var(--isg-border); }
.path__blob { inline-size: 220px; inset-inline-end: -70px; inset-block-start: -80px; opacity: 0.35; }
.path__icon { display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 18px; background: var(--isg-orange); color: var(--isg-ink); }
.path__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin: 0.5rem 0 0; color: inherit; }
.path--qualif .path__title { color: var(--isg-blue); }
.path__sub { font-family: var(--font-head); font-weight: 700; margin: 0; }
.path--diplome .path__sub { color: rgb(255 255 255 / 90%); }
.path--qualif .path__sub { color: var(--isg-orange-text); }
.path__facts { display: grid; gap: 0.55rem; margin: 1rem 0 1.25rem; position: relative; }
.path__facts li { display: flex; gap: 0.6rem; align-items: flex-start; }
.path__facts .icon { margin-block-start: 0.2rem; color: var(--isg-orange); }
.path--qualif .path__facts .icon { color: var(--isg-blue); }
.path__more { margin-block-start: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 700; }
.path:hover .path__more .icon { transform: translateX(4px); }
.path__more .icon { transition: transform 0.2s var(--ease); }
.path--diplome:focus-visible { outline-color: var(--isg-orange); }

/* ---------- Filière tiles ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tile {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
	padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); background: var(--isg-white); border: 1px solid var(--isg-border);
	text-decoration: none; color: var(--isg-ink); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--isg-blue-20); text-decoration: none; color: var(--isg-ink); }
.tile__icon { grid-row: span 2; display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 16px; background: var(--isg-blue-10); color: var(--isg-blue); }
.tile:nth-child(even) .tile__icon, .tiles li:nth-child(even) .tile__icon { background: var(--isg-orange-10); color: var(--isg-orange-text); }
.tile__name { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
.tile__count { font-size: var(--fs-sm); color: var(--isg-muted); }

.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: var(--isg-white); border-radius: var(--radius-lg); border: 1px solid var(--isg-border); counter-increment: step; }
.step::before {
	content: counter(step); position: absolute; inset-block-start: 1rem; inset-inline-end: 1.1rem;
	font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--isg-blue-10);
}
.step__icon { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 14px; background: var(--isg-orange); color: var(--isg-ink); margin-block-end: 1rem; }
.step h3 { font-size: 1.125rem; margin-block-end: 0.35rem; }
.step p { color: var(--isg-muted); margin: 0; font-size: var(--fs-sm); }
