/* Feuille de style principale de Daemon-ia.
   Si vous lisez ceci, vous êtes curieux. On aime bien les curieux. */
:root {
	--bg: #121212;
	--bg-2: #1a1a1a;
	--bg-3: #1e1e1e;
	--line: #2d2d2d;
	--accent: #b4f857;
	--accent-hover: #c8ff7a;
	--grey: #bdbdbd;
	--white: #fff;
	--ff-title: "Montserrat", sans-serif;
	--ff-text: "Plus Jakarta Sans", sans-serif;
	--container: 1140px;
	--radius: 8px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--white);
	font-family: var(--ff-text);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--accent); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 920px; }
.accent { color: var(--accent); }
.gradient-text {
	background: linear-gradient(90deg, var(--accent), var(--white));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---------- En-tête ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-logo img { width: 180px; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a { font-size: 16px; font-weight: 500; transition: color .3s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 17px 44px;
	border-radius: 6px;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #121212;
	font-family: var(--ff-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: all .3s ease-in-out;
}
.btn:hover { box-shadow: 0 0 20px 5px rgba(180, 248, 87, .5); transform: translateY(-3px); }
.btn--outline { background: transparent; color: var(--accent); padding: 8px 18px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.btn--outline:hover {
	background: var(--accent);
	color: var(--bg);
	box-shadow: none;
	transform: none;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section-head { text-align: center; max-width: 1000px; margin: 0 auto 70px; }
.section-title {
	color: #fff;
	font-family: var(--ff-text);
	font-size: clamp(32px, 4vw, 50px);
	font-weight: 600;
	line-height: 1.02; /* environ 51px pour 50px de texte : serré, mais lisible */
	letter-spacing: -2px;
	text-align: center;
	margin: 0 0 14.4px;
}
.section-sub, .cta p {
	color: #bdbdbd;
	font-family: var(--ff-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5; /* soit 27px */
	letter-spacing: normal;
	text-align: center;
	margin: 0 0 14.4px;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 130px 0 120px;
}
.hero > .container { position: relative; z-index: 2; }
.hero__title {
	font-family: var(--ff-title);
	font-size: clamp(34px, 5vw, 62px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.5px;
	margin-bottom: 30px;
	overflow: hidden;
	padding-bottom: 15px;
}
/* Grands titres en haut de page : mêmes proportions partout que sur l'accueil */
.hero__title, .page-title {
	color: #f8f8f8;
	font-family: var(--ff-title);
	font-size: clamp(36px, 5vw, 70px);
	font-weight: 800;
	line-height: 1.4; /* 98px pour 70px de texte */
	letter-spacing: -.5px;
	word-spacing: -1px;
}
/* Sous-titre de l'accueil, calé sur celui de l'ancien site */
#titrehero + .hero__sub {
	font-family: var(--ff-text);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.5; /* soit 28.5px */
	letter-spacing: normal;
	text-align: center;
}
@media (max-width: 600px) { #titrehero + .hero__sub { font-size: 17px; } }
.hero__sub { color: var(--grey); font-size: 17px; font-weight: 400; max-width: 760px; margin: 0 auto 50px; }

/* Accueil : le halo lumineux et ses particules */
#glow-bg-container { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
#stageCanvas { width: 100%; height: 100%; filter: blur(60px); }
.flux-particules { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flux-particules i {
	position: absolute;
	width: 1px; height: 1px;
	background: rgba(255, 255, 255, .8);
	border-radius: 50%;
	opacity: 0;
	top: -10px; left: -10px;
	animation: attraction-lente 8s infinite linear;
}
@keyframes attraction-lente {
	0% { top: var(--y); left: var(--x); opacity: 0; }
	15%, 85% { opacity: 1; }
	100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%); }
}

/* Le titre apparaît mot à mot, comme au théâtre */
@media (min-width: 769px) {
	.word-reveal {
		display: inline-block;
		opacity: 0;
		transform: translateY(100%);
		filter: blur(2px);
		animation: majesticEmerge 2s cubic-bezier(.15, 1, .3, 1) forwards;
	}
	@keyframes majesticEmerge {
		0% { opacity: 0; transform: translateY(100%); filter: blur(2px); }
		40% { filter: blur(0); opacity: 1; }
		100% { opacity: 1; transform: translateY(0); filter: blur(0); }
	}
}

/* Les autres pages ont aussi droit à leurs particules */
.particles-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Cartes ---------- */
.card {
	background: var(--bg-2);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .5);
	transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* Une fois la carte apparue, on garde des transitions rapides pour le survol */
.card.reveal.is-visible { transition: opacity .8s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
/* Au survol, la carte monte de 5px, comme sur l'ancien site */
.card:hover,
.card.reveal.is-visible:hover {
	transform: translateY(-5px);
	border-color: rgba(180, 248, 87, .6);
	box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}
/* La photo en haut de carte, collée aux bords */
.card__media {
	display: block; width: calc(100% + 60px); max-width: none;
	margin: -30px -30px 24px; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: 15px 15px 0 0;
}
.card__media--wide { aspect-ratio: 5 / 3; }
.card__title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.card__title svg { width: 20px; height: 20px; flex: none; transition: color .3s ease; }
.card:hover .card__title svg { color: var(--accent); }
/* Icônes PNG coloriées par un masque : elles prennent la couleur du texte et passent au vert au survol */
.img-icon {
	display: inline-block; width: 20px; height: 20px; flex: none;
	background-color: currentColor; transition: background-color .3s ease;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.card:hover .card__title .img-icon { background-color: var(--accent); }
.expertise .card__title {
	color: #fff;
	font-family: var(--ff-title);
	font-size: 24px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: -.4px;
}
.expertise p,
.expertise .check-list li {
	color: #bdbdbd;
	font-family: var(--ff-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: normal;
	text-align: start;
}
.expertise .check-list svg { margin-top: 5px; }
.expertise .btn--outline {
	font-family: var(--ff-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	letter-spacing: .8px;
	text-transform: uppercase;
	text-align: center;
	padding: 11px 20px;
}
.card p { color: var(--grey); font-size: 15px; font-weight: 400; }
.card--center { text-align: center; }
.card--center .card__title { flex-direction: column; justify-content: center; gap: 14px; }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Les cartes d'expertise de l'accueil */
/* Sous-grille : titres, textes, boutons et listes restent alignés d'une carte à l'autre. Les maniaques de l'alignement apprécieront */
.expertise { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 0; align-items: start; }
.expertise .btn--outline { margin: 26px auto; display: flex; width: fit-content; align-self: end; }
.expertise__label { font-size: 15px; font-weight: 400; color: var(--grey); margin-bottom: 12px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--grey); padding: 3px 0; }
.check-list svg { width: 14px; height: 14px; margin-top: 5px; flex: none; color: var(--white); }

/* ---------- Processus ---------- */
.processus-etape {
	position: relative;
	padding: 20px;
	border-left: 2px solid #333;
	border-radius: 15px;
	background: var(--bg);
	transition: all .3s ease;
}
.processus-etape:hover { border-left-color: var(--accent); background: #151a12; }
.numero-etape {
	font-family: var(--ff-text);
	font-size: 48px;
	font-weight: 700;
	color: #3a3a3a;
	line-height: 1;
	margin-bottom: 30px;
	transition: color .3s ease;
}
.processus-etape:hover .numero-etape { color: var(--accent); }
.processus-etape h3 {
	color: #fff;
	font-family: var(--ff-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: normal;
	text-align: start;
	margin: 0 0 30px;
}
.processus-etape p {
	color: #aaa;
	font-family: var(--ff-text);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: normal;
	text-align: start;
	margin: 0 0 14.4px;
}
.processus-etape .etape-note { margin-top: 18px; color: var(--accent); font-size: 14px; font-weight: 500; }

/* ---------- Citation ---------- */
.quote { text-align: center; font-size: clamp(20px, 2.5vw, 28px); font-style: italic; font-weight: 400; margin-top: 60px; }

/* ---------- Onglets ---------- */
.tabs__list { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs__btn {
	background: var(--bg-2);
	border: 1px solid var(--line);
	color: var(--white);
	padding: 12px 26px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	transition: all .3s ease;
}
.tabs__btn[aria-selected="true"], .tabs__btn:hover { border-color: var(--accent); color: var(--accent); }
.tabs__panel { max-width: 820px; margin: 0 auto; text-align: center; color: var(--grey); font-size: 18px; }
.tabs__panel p + p { margin-top: 12px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta p { margin: 44px auto 64px; max-width: 720px; }

/* ---------- FAQ ---------- */
.faq { max-width: 950px; margin: 0 auto; }
.faq__group + .faq__group { margin-top: 60px; }
.faq__group-title {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #b4f857;
	font-family: var(--ff-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: normal;
	text-align: start;
	margin: 0 0 26px;
	padding-left: 0; /* aligné pile sur le bord des encadrés */
}
.faq__group-title span { padding-left: 5px; }
.faq__group-title svg { width: 24px; height: 24px; flex: none; }
.faq details {
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 6px;
	margin-bottom: 12px;
	transition: border-color .3s ease;
}
.faq details[open], .faq details:hover { border-color: rgba(180, 248, 87, .35); }
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 10px 18px;
	color: #fff;
	font-family: var(--ff-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 37px;
	letter-spacing: normal;
	text-align: start;
	display: flex;
	gap: 10px;
	align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; width: 12px; transition: transform .3s ease; }
.faq details[open] summary::before { content: "−"; }
.faq__answer { padding: 0 18px 4px 40px; }
.faq__answer p {
	color: #aaa;
	font-family: var(--ff-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7; /* soit 27.2px */
	letter-spacing: normal;
	text-align: start;
	margin: 0 0 14.4px;
}

/* ---------- À propos ---------- */

/* ---------- Contact ---------- */

/* ---------- Pages légales ---------- */
.legal h1 { margin-bottom: 50px; text-align: center; }
.legal h2 { font-size: 22px; font-weight: 600; color: var(--accent); margin: 40px 0 14px; }
.legal p, .legal li { color: var(--grey); font-size: 16px; font-weight: 400; }
.legal p + p { margin-top: 10px; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg-3); padding: 50px 0 0; margin-top: 120px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; }
.site-footer__col { padding: 0 30px; }
.site-footer__col + .site-footer__col { border-left: 1px solid #3a3a3a; }
.site-footer__brand { text-align: center; }
.site-footer__brand img { width: 260px; margin: 0 auto 20px; }
.site-footer__brand p { color: var(--grey); font-size: 18px; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; text-align: center; }
.site-footer__menu li { padding: 8px 0; }
.site-footer__menu a { color: var(--accent); font-size: 17px; font-weight: 400; transition: color .3s; }
.site-footer__menu a:hover { color: var(--white); }
.site-footer__social { display: flex; align-items: center; justify-content: center; }
.site-footer__social a { color: #8a8a8a; transition: color .3s; }
.site-footer__social a:hover { color: var(--accent); }
.site-footer__social svg { width: 38px; height: 38px; }
.site-footer__bottom { margin-top: 50px; border-top: 1px solid #2a2a2a; padding: 22px 0; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: 14px; color: #8a8a8a; }
.site-footer__bottom a:hover { color: var(--accent); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.word-reveal { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
	.flux-particules { display: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Tablettes et téléphones ---------- */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav {
		position: absolute;
		top: var(--header-h);
		left: 0; right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { display: block; padding: 18px 20px; border-top: 1px solid var(--line); }
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.site-footer__col + .site-footer__col { border-left: 0; border-top: 1px solid #3a3a3a; padding-top: 30px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.section { padding: 70px 0; }
	.hero { padding: 90px 0 80px; }
	.grid--4 { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 45px; }
	.site-logo img { width: 150px; }
}

/* Contact : sur ordinateur, la première phrase du sous-titre tient sur une ligne */
.contact-sub { max-width: none; }
@media (min-width: 900px) { .contact-sub span { white-space: nowrap; } }
@media (max-width: 899px) { .contact-sub br { display: none; } }

/* Contact : les 3 cartes */
.contact-cards { max-width: 1100px; }
.contact-card {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	width: 100%; padding: 44px 30px; background: var(--bg-2); color: #fff;
	font: inherit; text-align: center; cursor: default;
}
button.contact-card, a.contact-card { cursor: pointer; }
.contact-card__icon {
	display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px;
	border-radius: 50%; background: rgba(180, 248, 87, .08); color: var(--grey);
	transition: color .3s ease, background-color .3s ease;
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card:hover .contact-card__icon { color: var(--accent); background: rgba(180, 248, 87, .15); }
.contact-card__label { color: var(--grey); font-size: 14px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.contact-card__value { color: #fff; font-family: var(--ff-title); font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.contact-card__hint { color: var(--accent); font-size: 14px; font-weight: 500; }
.contact-card.is-copied { border-color: var(--accent); }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; max-width: 480px; } .contact-card { padding: 32px 24px; } }

/* ---------- À propos ---------- */
.about-hero { padding-bottom: 80px; }
.about-hero .page-title { margin-bottom: 24px; }
.about { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 80px; align-items: center; max-width: 1100px; }
.about__photo { position: relative; margin: 0; }
.about__photo img {
	display: block; width: 100%; height: auto; border-radius: 20px;
	box-shadow: 0 0 60px rgba(180, 248, 87, .15), 0 20px 40px rgba(0, 0, 0, .5);
}
.about__name { margin: 0 0 18px; color: #fff; font-family: var(--ff-title); font-size: clamp(30px, 3.5vw, 44px); font-weight: 800; letter-spacing: -.5px; }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.about__tags li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50px; color: var(--grey); font-size: 14px; font-weight: 500; }
.about__text p { color: var(--grey); font-size: 18px; font-weight: 400; line-height: 1.7; }
.about__text p + p { margin-top: 16px; }
.about__text strong, .section-sub strong { color: #fff; font-weight: 600; }
.about-quote { padding: 90px 0; border-block: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(90deg, transparent, rgba(180, 248, 87, .05), transparent); }
.about-quote p { margin: 0 auto; max-width: 900px; text-align: center; color: #fff; font-family: var(--ff-title); font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.3; letter-spacing: -.5px; }
.about-links { max-width: 1000px; margin: 0 auto; }
.about-link { display: block; background: var(--bg-2); color: inherit; }
.about-link__more { display: inline-block; margin-top: 18px; color: var(--accent); font-size: 15px; font-weight: 600; transition: transform .3s ease; }
@media (max-width: 900px) {
	.about { grid-template-columns: 1fr; gap: 60px; }
	.about__photo { max-width: 400px; margin: 0 auto; }
	.about__text { text-align: center; }
	.about__tags { justify-content: center; }
	.about-links { grid-template-columns: 1fr; }
}

/* À propos : la grille qui file vers l'horizon. Un petit côté rétro assumé */
.perspective-grid {
	position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
	perspective: 700px; perspective-origin: 50% 35%;
}
.perspective-grid__plane {
	position: absolute; left: -50%; right: -50%; top: 40%; height: 200%;
	transform: rotateX(72deg); transform-origin: 50% 0;
	background-image:
		linear-gradient(rgba(180, 248, 87, .11) 1px, transparent 1px),
		linear-gradient(90deg, rgba(180, 248, 87, .11) 1px, transparent 1px);
	background-size: 50px 50px;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 70%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 70%, transparent 100%);
	animation: grid-scroll 8s linear infinite;
}
/* La grille s'éclaire sous la souris : c'est une copie plus lumineuse, visible seulement autour du curseur */
.perspective-grid__glow {
	position: absolute; inset: 0; perspective: inherit; perspective-origin: inherit;
	opacity: 0; transition: opacity .4s ease;
	-webkit-mask-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%);
	mask-image: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%);
}
.perspective-grid.is-lit .perspective-grid__glow { opacity: 1; }
.perspective-grid__glow .perspective-grid__plane {
	background-image:
		linear-gradient(rgba(180, 248, 87, .7) 1px, transparent 1px),
		linear-gradient(90deg, rgba(180, 248, 87, .7) 1px, transparent 1px);
}
@keyframes grid-scroll { to { background-position: 0 50px; } }
@media (prefers-reduced-motion: reduce) { .perspective-grid__plane { animation: none; } }

/* Sur les pages à fond animé, les sections sont posées sur un panneau opaque pour rester lisibles */
body:has(.particles-bg, .perspective-grid) main > section:not(.hero) { padding: 24px 0; }
body:has(.particles-bg, .perspective-grid) main > section:not(.hero) > .container {
	max-width: calc(var(--container) + 80px);
	padding: 80px 60px;
	background: var(--bg);
	border: 1px solid rgba(255, 255, 255, .05);
	border-radius: 24px;
}
body:has(.particles-bg, .perspective-grid) main > section.about-quote { background: none; border: 0; }
@media (max-width: 767px) {
	body:has(.particles-bg, .perspective-grid) main > section:not(.hero) { padding: 12px 0; }
	body:has(.particles-bg, .perspective-grid) main > section:not(.hero) > .container { padding: 50px 20px; border-radius: 16px; }
}

/* ---------- Petits réglages pour téléphone ---------- */
/* Fonds animés : la hauteur ne bouge pas quand la barre d'adresse du téléphone apparaît ou disparaît. Fini les sauts */
.particles-bg, .perspective-grid { bottom: auto; height: 100vh; height: 100lvh; }

/* Écrans tactiles : pas de carte qui reste "collée" en l'air après un tap */
@media (hover: none) {
	.btn:hover,
	.card:hover,
	.card.reveal.is-visible:hover { transform: none; }
	.btn:hover { box-shadow: none; }
	.card:hover, .card.reveal.is-visible:hover { border-color: rgba(255, 255, 255, .1); box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .5); }
}

/* Petits écrans : on ignore les retours à la ligne forcés des titres, pour ne pas laisser un mot tout seul */
@media (max-width: 600px) {
	.hero__title br, .page-title br, .hero__sub br, .section-title br, .section-sub br { display: none; }
}

/* ---------- Marges sur téléphone ---------- */
.contact-hero { padding-bottom: 90px; }
@media (max-width: 600px) {
	/* Titres de section : en petit, les lettres trop serrées finissaient par se coller */
	.section-title { letter-spacing: -.5px; line-height: 1.15; }
	/* Les panneaux ne collent plus aux bords de l'écran */
	body:has(.particles-bg, .perspective-grid) main > section:not(.hero) > .container { width: calc(100% - 24px); padding: 44px 18px; }
	/* FAQ : 37px d'interligne, c'était trop dès que la question faisait plusieurs lignes */
	.faq summary { line-height: 1.45; padding: 14px 16px; align-items: flex-start; }
	.faq summary::before { line-height: 1.45; }
	.faq__answer { padding: 0 16px 6px 38px; }
	.faq__group-title { margin-bottom: 18px; }
	/* Un peu d'air avant le pied de page et sous le haut de la page Contact */
	.site-footer { margin-top: 60px; }
	.contact-hero { padding-bottom: 40px; }
	.legal h1 { margin-bottom: 30px; }
	.legal h2 { font-size: 20px; margin-top: 32px; }
}
