/* Plan du site — couleurs de la charte ISODECO uniquement (variables --io-* du thème) */
.ipl {
	--ipl-violet: var(--io-violet, #372979);
	--ipl-nuit: var(--io-nuit, #2c2160);
	--ipl-bleu: var(--io-bleu, #4068ae);
	--ipl-vert: var(--io-vert, #6dc34e);
	--ipl-vert-2: #37967a;
	--ipl-grad: var(--io-grad, linear-gradient(90deg, #37967a 0%, #6dc34e 100%));
	--ipl-lavande: var(--io-lavande, #f3f2f9);
	--ipl-texte: var(--io-texte, rgba(55, 41, 121, .75));
	--ipl-line: #e6e3f3;
	--ipl-ombre: var(--io-ombre, rgba(55, 41, 121, .23) 3px 3px 11px 0);
	--ipl-ease: cubic-bezier(.2, .75, .2, 1);
	font-family: "Outfit", system-ui, sans-serif;
	color: var(--ipl-texte);
}
/* Le gabarit « page simple » limite la largeur : cette page occupe toute la largeur */
.io-simple:has(.ipl) { padding: 0; }
.io-simple:has(.ipl) > .entry-content { max-width: none; }
.ipl *, .ipl *::before, .ipl *::after { box-sizing: border-box; }
.ipl h1, .ipl h2, .ipl h3 { font-family: "Outfit", sans-serif; color: var(--ipl-nuit); margin: 0; letter-spacing: -.01em; }
.ipl svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ipl :focus-visible { outline: 3px solid var(--ipl-vert); outline-offset: 3px; }
.ipl [hidden] { display: none !important; }
.ipl .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ipl-kicker { margin: 0 0 .6rem !important; font: 700 .9rem/1.2 "Outfit", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ipl-vert-2); }
.ipl ul { list-style: none; margin: 0 !important; padding: 0 !important; }

/* ---------- En-tête ---------- */
.ipl-hero { position: relative; overflow: hidden; background: var(--ipl-lavande); padding: clamp(2.2rem, 4.5vw, 3.8rem) clamp(1rem, 4vw, 3rem) clamp(4.8rem, 7vw, 6rem); text-align: center; }
.ipl-hero::before, .ipl-hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 60px; }
.ipl-hero::before { width: 420px; height: 420px; left: -170px; bottom: -240px; background: var(--ipl-grad); opacity: .15; transform: rotate(32deg); }
.ipl-hero::after { width: 380px; height: 380px; right: -150px; top: -230px; background: linear-gradient(135deg, var(--ipl-violet), var(--ipl-bleu)); opacity: .1; transform: rotate(28deg); }
.ipl-hero__in { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.ipl-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; font-weight: 800; text-wrap: balance; }
.ipl-hero h1 span { color: var(--ipl-vert); }
.ipl-lead { margin: .9rem 0 0 !important; font-size: clamp(1.02rem, 1.3vw, 1.14rem); line-height: 1.6; color: var(--ipl-texte); }
.ipl-search { position: relative; max-width: 560px; margin: 1.5rem auto 0; }
.ipl-search svg { position: absolute; left: 1.1rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--ipl-violet); pointer-events: none; }
.ipl-search input { width: 100%; min-height: 56px; padding: .8rem 1.2rem .8rem 3.1rem; border: 1.5px solid transparent; border-radius: 999px; background: #fff; color: var(--ipl-nuit); font: 500 1rem "Outfit", sans-serif; box-shadow: var(--ipl-ombre); transition: border-color .2s, box-shadow .2s; }
.ipl-search input:focus { outline: none; border-color: var(--ipl-violet); box-shadow: var(--ipl-ombre), 0 0 0 4px rgba(55, 41, 121, .12); }
.ipl-count { min-height: 1.4em; margin: .6rem 0 0 !important; font-size: .9rem; font-weight: 600; color: var(--ipl-violet); }

/* ---------- Cartes ---------- */
.ipl-body { padding: 0 clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); background: #fff; }
.ipl-grid { position: relative; z-index: 2; max-width: 1240px; margin: -3rem auto 0; columns: 3 300px; column-gap: 1.1rem; }
.ipl-card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 1.1rem; padding: 1.3rem 1.3rem 1.1rem; border-radius: 22px; background: #fff; box-shadow: var(--ipl-ombre), 0 30px 60px -50px rgba(44, 33, 96, .55); animation: ipl-in .8s var(--ipl-ease) both; }
.ipl h2 { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem !important; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.ipl h2 > span:nth-child(2) { flex: 1; min-width: 0; }
.ipl h2 small, .ipl h3 small { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: var(--ipl-lavande); color: var(--ipl-violet); font-size: .8rem; font-weight: 700; }
.ipl-card__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(109, 195, 78, .14); color: var(--ipl-vert-2); }
.ipl-card--essentiel { background: linear-gradient(140deg, var(--ipl-violet) 0%, var(--ipl-nuit) 100%); }
.ipl-card--essentiel h2 { color: #fff; }
.ipl-card--essentiel .ipl-card__ico { background: rgba(255, 255, 255, .12); color: var(--ipl-vert); }
.ipl-card--essentiel h2 small { background: rgba(255, 255, 255, .14); color: #fff; }
.ipl-card--essentiel a { color: #fff !important; }
.ipl-card--essentiel a::before { background: var(--ipl-vert) !important; }
.ipl-card--essentiel a:hover { background: rgba(255, 255, 255, .1) !important; }
.ipl-card li + li, .ipl-col li + li { border-top: 1px solid var(--ipl-line); }
.ipl-card--essentiel li + li { border-top-color: rgba(255, 255, 255, .12); }
.ipl-card a, .ipl-col a { position: relative; display: block; padding: .55rem .6rem .55rem 1.3rem; border-radius: 10px; color: var(--ipl-violet); font-weight: 500; font-size: .95rem; line-height: 1.35; text-decoration: none; transition: background-color .2s, color .2s, padding-left .25s var(--ipl-ease); }
.ipl-card a::before, .ipl-col a::before { content: ""; position: absolute; left: .45rem; top: 1.02rem; width: 6px; height: 6px; border-radius: 50%; background: var(--ipl-line); transition: background-color .2s; }
.ipl-card a:hover, .ipl-col a:hover { background: var(--ipl-lavande); color: var(--ipl-nuit); padding-left: 1.55rem; }
.ipl-card a:hover::before, .ipl-col a:hover::before { background: var(--ipl-vert-2); }

/* Réalisations et articles (pleine largeur) */
.ipl-wide { max-width: 1240px; margin: 1.1rem auto 0; padding: clamp(1.3rem, 3vw, 2rem); border-radius: 24px; background: var(--ipl-lavande); }
.ipl-wide__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1rem; }
.ipl-wide__head h2 { margin: 0 !important; font-size: 1.35rem; }
.ipl-wide__head h2 small { background: #fff; }
.ipl-wide__all { display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .6rem 1.2rem; border-radius: 999px; background: var(--ipl-grad); color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: var(--ipl-ombre); transition: transform .25s var(--ipl-ease), filter .25s; }
.ipl-wide__all:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ipl-cols { columns: 3 260px; column-gap: 1rem; }
.ipl-col { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 1rem; padding: 1rem 1rem .8rem; border-radius: 18px; background: #fff; }
.ipl-col h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .4rem !important; padding: 0 .3rem; font-size: 1rem; font-weight: 800; }
.ipl-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.ipl-articles li { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.1rem; border-radius: 16px; background: #fff; transition: transform .25s var(--ipl-ease), box-shadow .25s; }
.ipl-articles li:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(44, 33, 96, .6); }
.ipl-articles a { color: var(--ipl-nuit); font-weight: 700; line-height: 1.35; text-decoration: none; }
.ipl-articles a:hover { color: var(--ipl-bleu); text-decoration: underline; }
.ipl-articles time { font-size: .85rem; color: var(--ipl-texte); }
.ipl-empty { max-width: 1240px; margin: 1.5rem auto 0 !important; padding: 2rem 1rem; border-radius: 20px; background: var(--ipl-lavande); color: var(--ipl-nuit); text-align: center; font-weight: 600; }

/* Entrée */
.ipl-hero__in > * { animation: ipl-in .8s var(--ipl-ease) both; }
.ipl-hero__in > :nth-child(2) { animation-delay: .06s; } .ipl-hero__in > :nth-child(3) { animation-delay: .12s; } .ipl-hero__in > :nth-child(4) { animation-delay: .18s; }
.ipl-card:nth-child(2) { animation-delay: .05s; } .ipl-card:nth-child(3) { animation-delay: .1s; } .ipl-card:nth-child(4) { animation-delay: .15s; } .ipl-card:nth-child(n+5) { animation-delay: .2s; }
@keyframes ipl-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 640px) {
	.ipl-hero { text-align: left; }
	.ipl-search { margin-left: 0; }
	.ipl-articles { grid-template-columns: 1fr; }
	.ipl-wide__all { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ipl *, .ipl *::before, .ipl *::after { transition: none !important; animation: none !important; }
}
