/* Lacoloc.fr : maquettes de refonte (octobre 2026)
   Charte : archétype studio, 15 avril 2025. Schibsted Grotesk, violet #2B2051, dégradé granuleux. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
	--violet: #2B2051;
	--violet-2: #362a63;
	--violet-3: #43367a;
	--violet-clair: #746297;
	--mauve: #BD7B9A;
	--mauve-logo: #856898;
	--peche: #D69C93;
	--jaune: #FED187;
	--jaune-2: #ffe2b0;
	--creme: #FBF7F1;
	--lavande: #F2EEF7;
	--blanc: #fff;
	--encre: #2B2051;
	--encre-douce: rgba(43, 32, 81, .72);
	--encre-pale: rgba(43, 32, 81, .14);
	--trait: rgba(43, 32, 81, .12);
	--rayon: 28px;
	--rayon-s: 16px;
	--ombre: 0 30px 60px -30px rgba(43, 32, 81, .35), 0 10px 24px -12px rgba(43, 32, 81, .18);
	--ombre-forte: 0 50px 90px -40px rgba(20, 12, 50, .6);
	--max: 1320px;
	--gouttiere: clamp(20px, 4vw, 48px);
	--entete: 84px;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
	color: var(--encre); background: var(--creme); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { width: min(var(--max), 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.sombre { background: var(--violet); color: #fff; }
.sombre .surtitre { color: var(--jaune); }

/* Grain : texture de la charte, posée sur les fonds dégradés */
.grain { position: relative; isolation: isolate; }
.grain::after {
	content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; mix-blend-mode: soft-light;
	pointer-events: none; z-index: 1; border-radius: inherit;
}

/* Typographie d'affiche : capitales très grasses, comme les gabarits réseaux */
.affiche { font-weight: 900; text-transform: uppercase; letter-spacing: -.018em; word-spacing: .08em; line-height: .98; } /* lettres et mots qui respirent, lignes qui ne se touchent plus */
.titre-xl { font-size: clamp(48px, 8.4vw, 132px); }
.titre-l { font-size: clamp(40px, 5.6vw, 84px); }
.titre-m { font-size: clamp(30px, 3.6vw, 52px); }
h2.affiche, h1.affiche { margin-bottom: 30px; }
.surtitre {
	display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--violet-clair); margin-bottom: 22px;
}
.surtitre::before {
	content: ""; width: 22px; height: 16px; flex: none;
	background: url("../img/symbole.svg") center / contain no-repeat;
}
.sombre .surtitre::before { background-image: url("../img/symbole-blanc.svg"); }
.chapo { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--encre-douce); max-width: 60ch; }
.sombre .chapo { color: rgba(255, 255, 255, .78); }
/* Surlignage : bande arrondie peinte en fond, derrière le texte. D'un seul tenant ; quand il est bien plus long que la ligne,
   le script le libère (surligne--libre) et la bande suit alors chaque ligne. */
@property --trace { syntax: '<number>'; inherits: true; initial-value: 1; }
.surligne {
	--c: var(--jaune); --t: var(--trace, 1);
	white-space: nowrap; padding-inline: .06em; margin-inline: -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
	background:
		radial-gradient(closest-side, var(--c) 96%, transparent) 0 calc(100% - .04em) / calc(.3em * min(1, var(--t) * 20)) .3em no-repeat,
		linear-gradient(var(--c), var(--c)) .15em calc(100% - .04em) / calc((100% - .3em) * var(--t)) .3em no-repeat,
		radial-gradient(closest-side, var(--c) 96%, transparent) calc(var(--t) * 100%) calc(100% - .04em) / calc(.3em * min(1, var(--t) * 20)) .3em no-repeat;
	transition: --trace 1.1s .35s var(--ease);
}
.sombre .surligne { --c: rgba(189, 123, 154, .9); }
.surligne--libre { white-space: normal; }
.degrade-texte {
	background: linear-gradient(100deg, var(--jaune) 0%, var(--peche) 45%, var(--mauve) 75%, #a993d6 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Boutons */
.btn {
	--fond: var(--violet); --texte: #fff;
	display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; border: 0;
	background: var(--fond); color: var(--texte); font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(43, 32, 81, .55); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--jaune { --fond: var(--jaune); --texte: var(--violet); }
.btn--jaune:hover { box-shadow: 0 16px 34px -14px rgba(254, 209, 135, .75); }
.btn--blanc { --fond: #fff; --texte: var(--violet); }
.btn--contour { --fond: transparent; --texte: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--contour:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 16px 30px -18px rgba(0, 0, 0, .4); }
.btn--petit { padding: 12px 18px; font-size: 15px; }
.rond {
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--violet); color: #fff;
	transition: transform .4s var(--ease), background .25s;
}
.rond svg { width: 20px; height: 20px; }

.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Pastilles */
.pastille {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
	letter-spacing: .02em; background: var(--jaune); color: var(--violet); line-height: 1;
}
.pastille--dispo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #27a768; box-shadow: 0 0 0 0 rgba(39, 167, 104, .6); animation: pouls 2s infinite; }
.pastille--verre { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.pastille--complet { background: var(--lavande); color: var(--violet-clair); }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(39, 167, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 167, 104, 0); } }

/* ============ En-tête ============ */
.entete {
	position: fixed; inset: 0 0 auto; z-index: 50; height: var(--entete); color: #fff;
	transition: background .4s, box-shadow .4s, height .4s var(--ease), color .3s;
}
.entete__barre { height: 100%; display: flex; align-items: center; gap: 28px; }
.entete.est-defile, .entete--plein { background: rgba(43, 32, 81, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.entete.est-defile { height: 70px; }
.entete__logo img { height: 46px; width: auto; transition: height .4s var(--ease); }
.entete.est-defile .entete__logo img { height: 40px; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a {
	position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15.5px;
	color: rgba(255, 255, 255, .86); transition: background .25s, color .25s;
}
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.a-sous::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.entete__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.entete__actions .btn { padding: 13px 20px; font-size: 15px; }
.compteur { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--violet); color: var(--jaune); font-size: 13px; font-weight: 800; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ============ Cartes d'annonce (gabarit réseaux : carte blanche, pastille jaune) ============ */
.carte {
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--rayon); padding: 10px;
	text-decoration: none; color: var(--encre); box-shadow: 0 1px 0 var(--trait), 0 24px 50px -36px rgba(43, 32, 81, .45);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.carte:hover { transform: translateY(-8px); box-shadow: 0 1px 0 var(--trait), var(--ombre); }
.carte__photo { position: relative; aspect-ratio: 4 / 3.1; border-radius: 20px; overflow: hidden; background: var(--lavande); }
.carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.carte:hover .carte__photo img { transform: scale(1.07); }
.carte__photo .pastille { position: absolute; top: 14px; left: 14px; }
.carte__theme { position: absolute; bottom: 14px; left: 14px; background: rgba(43, 32, 81, .78) !important; box-shadow: none !important; }
.carte__corps { padding: 18px 12px 10px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.carte__titre { font-weight: 900; text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; word-spacing: .06em; line-height: 1.04; }
.carte__infos { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--encre-douce); }
.carte__infos span { display: inline-flex; align-items: center; gap: 6px; }
.carte__infos .ico { width: 18px; height: 18px; }
.carte__pied { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--encre-pale); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carte__prix { font-size: 13px; color: var(--encre-douce); line-height: 1.25; }
.carte__prix strong { display: block; font-size: 22px; color: var(--encre); font-weight: 900; letter-spacing: -.02em; }
.carte .rond { width: 46px; height: 46px; }
.carte:hover .rond { background: var(--jaune); color: var(--violet); transform: rotate(-45deg); }

/* Carrousel horizontal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: 10px var(--gouttiere) 40px; margin-inline: calc(-1 * var(--gouttiere)); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.est-tire { cursor: grabbing; scroll-snap-type: none; }
.rail.est-tire a { pointer-events: none; }
.fleches { display: flex; gap: 10px; }
.fleches .rond { background: #fff; color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--trait); }
.fleches .rond:hover { background: var(--violet); color: #fff; }
.fleches .rond:disabled { opacity: .35; pointer-events: none; }

/* Filtres en puces */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
	border: 0; padding: 11px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px; color: var(--encre);
	box-shadow: inset 0 0 0 1.5px var(--trait); transition: background .25s, color .25s, box-shadow .25s;
}
.puce:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.puce[aria-pressed="true"] { background: var(--violet); color: #fff; box-shadow: none; }
.puce small { opacity: .6; font-weight: 600; margin-left: 4px; }

/* Bandeau défilant */
.bandeau { background: var(--jaune); color: var(--violet); overflow: hidden; padding-block: 22px; position: relative; z-index: 3; }
.bandeau--incline { transform: rotate(-2deg); margin-block: -28px; width: 104%; margin-left: -2%; box-shadow: 0 20px 40px -20px rgba(43, 32, 81, .4); }
.bandeau__piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.bandeau__piste span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.01em; white-space: nowrap; }
.bandeau__piste img { width: 36px; height: auto; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Accordéon FAQ */
.faq details { border-bottom: 1.5px solid var(--trait); }
.faq summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 26px 0; font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--trait); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--violet); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--jaune); box-shadow: none; transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__reponse { padding: 0 64px 28px 0; color: var(--encre-douce); }
.faq__reponse ul { margin: .4em 0 1em; padding-left: 1.2em; }

/* Pied de page */
.pied { background: var(--violet); color: rgba(255, 255, 255, .78); padding: 90px 0 36px; position: relative; overflow: hidden; }
.pied__haut { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; }
.pied__logo { width: 190px; margin-bottom: 22px; }
.pied h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-weight: 800; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pied a { text-decoration: none; transition: color .2s; }
.pied a:hover { color: var(--jaune); }
.reseaux { display: flex; gap: 10px; margin-top: 22px; }
.reseaux a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.reseaux a:hover { background: var(--jaune); color: var(--violet); }
.reseaux svg { width: 19px; height: 19px; }
.pied__bas { margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.pied__bas span:first-child { margin-right: auto; }
.pied__geant { position: absolute; right: -60px; bottom: -120px; width: 520px; opacity: .05; pointer-events: none; }

/* Apparition au défilement (le voile n'existe que si le script a démarré) */
.js [data-apparait] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delai, 0s); }
.js [data-apparait].est-visible { opacity: 1; transform: none; }
.js .surligne { --trace: 0; }
.js .est-visible .surligne, .js .surligne.est-visible { --trace: 1; }

/* Barre mobile collante */
.barre-mobile { display: none; }
.seul-mobile { display: none; }

@media (max-width: 1180px) {
	.nav { display: none; }
	.burger { display: grid; }
	.pied__haut { grid-template-columns: 1fr 1fr 1fr; }
	.pied__marque { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	:root { --entete: 72px; --rayon: 22px; }
	.entete__logo img { height: 38px; }
	.entete__actions .btn--contour { display: none; }
	.entete__actions .btn { padding: 11px 15px; font-size: 14px; }
	.masque-mobile { display: none; }
	.seul-mobile { display: inline; }
	.pied__haut { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
	.faq__reponse { padding-right: 0; }
	.rail { grid-auto-columns: 84%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
