/* =============================================================
   Page locale — feuille de styles autonome.

   Ecrite en CSS classique et non en Tailwind : la page etait servie par
   cdn.tailwindcss.com, que Tailwind deconseille en production (compilation
   dans le navigateur a chaque visite, version non figee). Neuf sections ne
   justifient pas ce cout.

   Les couleurs et typographies de l'etablissement arrivent par variables,
   posees en ligne sur <html> par le gabarit.
   ============================================================= */

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

:root {
    --lp-primary: #6366f1;
    --lp-on-primary: #fff;
    --lp-surface: #fff;
    --lp-primary-dark: #4f46e5;
    --lp-ink: #1e293b;
    --lp-muted: #64748b;
    --lp-border: #e2e8f0;
    --lp-bg-alt: #f8fafc;
    --lp-radius: 14px;
    --lp-max: 1120px;
}

/* Theme sombre : seuls les jetons changent, aucun composant n'est redefini.
   Ajouter une section demain ne demandera donc aucune regle sombre dediee. */
html[data-lp-theme="dark"] {
    --lp-ink: #f1f5f9;
    --lp-muted: #94a3b8;
    --lp-border: #334155;
    --lp-bg-alt: #0f172a;
    --lp-surface: #1e293b;
}
html[data-lp-theme="dark"] body.lp { background: #0b1220; }

* { box-sizing: border-box; }
body.lp {
    margin: 0;
    font-family: var(--lp-font-body, system-ui, sans-serif);
    color: var(--lp-ink);
    background: #fff;
    line-height: 1.6;
}
.lp h1, .lp h2, .lp h3 { font-family: var(--lp-font-heading, inherit); line-height: 1.25; margin: 0; }
.lp img { max-width: 100%; display: block; }
/* Volontairement limite aux liens de contenu : `.lp a` a une specificite de
   (0,1,1), superieure a `.lp-btn--primary` (0,1,0). Applique a tous les liens,
   il ecrasait la couleur des boutons, qui heritaient alors --lp-ink : texte
   fonce en theme clair, clair en sombre, quelle que soit la couleur du bouton. */
.lp a:not(.lp-btn) { color: inherit; }

.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 1.25rem; }
.lp-section { padding: 4rem 0; }
.lp-section--alt { background: var(--lp-bg-alt); }
.lp-section__title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.lp-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.lp-section__head .lp-section__title { margin-bottom: 0; text-align: left; }
/* Sans action a droite, le titre reste centre comme les autres sections :
   l'alignement a gauche n'a de sens que s'il equilibre un bouton. */
.lp-section__head .lp-section__title:only-child { text-align: center; width: 100%; }
.lp-section__lead { text-align: center; color: var(--lp-muted); margin: 0 auto 2.5rem; max-width: 620px; }

/* ---- Couverture + logo a cheval ---- */
/* Le degrade est pose en background-color et non en background-image : l'image
   de couverture arrive en style en ligne sur background-image et l'ecraserait
   sinon. Un etablissement sans couverture, ou dont l'image est introuvable,
   garde ainsi la couleur de sa marque au lieu d'un aplat gris. */
.lp-cover { position: relative; height: 340px; background-color: var(--lp-primary); background-size: cover; background-position: center; overflow: hidden; }
/* Sans photo, un aplat fait vide. Deux halos et une trame fine donnent de la
   matiere, en restant dans la couleur de la marque. */
.lp-cover::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 90% at 12% 8%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(50% 80% at 88% 92%, rgba(0,0,0,0.22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 12px); }
.lp-cover.has-image::before { display: none; }
.lp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)); }
/* ---- Menu de navigation ----
   Panneau glissant depuis la droite plutot qu'un bandeau fixe : la page n'a pas
   d'en-tete permanent, le bouton vit dans la couverture. */
.lp-menu { position: fixed; inset: 0; z-index: 1100; background: rgba(8,12,22,0.45); opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0.22s; }
.lp-menu.is-open { opacity: 1; visibility: visible; }
.lp-menu__inner { position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 84vw); padding: 4.5rem 1.5rem 2rem; background: var(--lp-surface); box-shadow: -8px 0 32px rgba(0,0,0,0.18); transform: translateX(100%); transition: transform 0.28s cubic-bezier(.22,.61,.36,1); display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.lp-menu.is-open .lp-menu__inner { transform: none; }
.lp-menu__inner a { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 0.9rem; border-radius: 10px; color: var(--lp-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.15s, color 0.15s; }
.lp-menu__inner a .material-icons { font-size: 20px; color: var(--lp-primary); flex: 0 0 auto; }
.lp-menu__inner a:hover { background: color-mix(in srgb, var(--lp-primary) 10%, transparent); color: var(--lp-primary); }
.lp-menu__close { position: absolute; top: 1rem; right: 1.25rem; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 10px; background: var(--lp-bg-alt); color: var(--lp-ink); cursor: pointer; }
.lp-menu__close:hover { color: var(--lp-primary); }

/* La pastille est blanche dans les deux themes : l'icone est donc figee en
   fonce. Avec var(--lp-ink) elle devenait claire en theme sombre, donc
   invisible sur son propre fond. */
.lp-cover__menu { position: absolute; top: 1rem; right: 1.25rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; border-radius: 10px; background: rgba(255,255,255,0.92); color: #1e293b; cursor: pointer; }
.lp-cover__menu:hover { background: #fff; }

/* Le logo chevauche la couverture et le contenu. Sous 640px le chevauchement
   ecrase le nom : on le repasse dans le flux. */
.lp-identity { position: relative; }
.lp-logo { width: 132px; height: 132px; margin-top: -66px; border-radius: 18px; border: 4px solid #fff; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.12); object-fit: cover; position: relative; z-index: 2; }
.lp-logo--text { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; color: var(--lp-primary); text-align: center; padding: 0.5rem; }

.lp-identity__name { font-size: 2rem; font-weight: 800; }
.lp-identity__meta { color: var(--lp-muted); font-size: 0.95rem; margin-top: 0.25rem; }
/* Pas de largeur maximale : la colonne de gauche la borne deja, face au bloc
   note. La couper a 640px la rendait plus etroite que le nom juste au-dessus. */
.lp-identity__desc { margin-top: 0.9rem; color: var(--lp-muted); }

/* Nom a gauche, note a droite : la note releve de l'identite, pas de l'action. */
.lp-identity__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-top: 1rem; }
.lp-identity__names { min-width: 0; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.lp-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: all 0.15s ease; }
.lp-btn:hover { border-color: var(--lp-primary); color: var(--lp-primary); }
/* La couleur du texte est calculee cote serveur selon le contraste WCAG reel :
   un fond jaune vif recoit du noir, un indigo du blanc. */
.lp-btn--primary { background: var(--lp-primary); border-color: var(--lp-primary); color: var(--lp-on-primary, #fff); box-shadow: 0 4px 14px color-mix(in srgb, var(--lp-primary) 30%, transparent); }
.lp-btn--primary:hover { filter: brightness(1.07); color: var(--lp-on-primary, #fff); }

.lp-rating { flex: 0 0 auto; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1rem 1.25rem; text-align: center; background: var(--lp-surface); box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.lp-rating__logo { display: block; margin: 0 auto 0.45rem; }
.lp-rating__stars { color: #fbbf24; font-size: 1.05rem; letter-spacing: 2px; }
.lp-rating__score { font-size: 1.5rem; font-weight: 800; margin-top: 0.2rem; }
.lp-rating__count { font-size: 0.8rem; color: var(--lp-muted); }

/* ---- Grilles communes ---- */
/* Grille dont le nombre de colonnes est pilote par --lp-cols. */
.lp-flexgrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(var(--lp-cols, 3), minmax(0, 1fr)); }
/* Le bouton « + » vit A COTE de la grille, pas dedans : place a l'interieur, il
   consommait une colonne du flux et les cartes debordaient dans la colonne
   etroite des que leur nombre depassait celui des colonnes. */
.lp-addrow { display: flex; align-items: stretch; gap: 1.25rem; }
.lp-addrow > .lp-flexgrid { flex: 1 1 auto; min-width: 0; }

.lp-grid { display: grid; gap: 1.25rem; }
.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Carte : surface, ombre douce et reaction au survol. Le fond suit le jeton,
   donc le theme sombre est pris en charge sans regle supplementaire. */
.lp-card { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-surface); padding: 1.4rem; box-shadow: 0 1px 2px rgba(15,23,42,0.04); transition: box-shadow 0.18s ease, transform 0.18s ease; }
.lp-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,0.08); transform: translateY(-2px); }
.lp-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.lp-card__text { color: var(--lp-muted); font-size: 0.9rem; }

/* ---- Reassurance ---- */
/* Picto a gauche, texte a droite : plus compact et plus lisible qu'une
   colonne centree, surtout quand il y a quatre arguments. */
.lp-reassure { display: flex; align-items: flex-start; gap: 1rem; position: relative; }
.lp-reassure__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: none; background: color-mix(in srgb, var(--lp-primary) 14%, transparent); color: var(--lp-primary); cursor: default; padding: 0; }
.lp-reassure__icon:not(:disabled) { cursor: pointer; }
.lp-reassure__icon .material-icons { font-size: 24px; }
.lp-reassure__body { min-width: 0; }

/* ---- Avis ---- */
.lp-review__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.lp-review__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--lp-bg-alt); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--lp-primary); flex: 0 0 auto; }
.lp-review__name { font-weight: 700; font-size: 0.92rem; }
.lp-review__date { font-size: 0.76rem; color: var(--lp-muted); }
.lp-review__stars { color: #fbbf24; letter-spacing: 1px; font-size: 0.9rem; }
.lp-review__text { color: var(--lp-muted); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---- Carrousel des actualites ---- */
.lp-carousel { position: relative; }
.lp-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(33.333% - 0.84rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.5rem; scrollbar-width: none; }
.lp-carousel__track::-webkit-scrollbar { display: none; }
.lp-carousel__track > * { scroll-snap-align: start; }
/* Trois de front, comme les actualites. */
.lp-carousel__track--3 { grid-auto-columns: calc(33.333% - 0.84rem); }
.lp-carousel__nav { position: absolute; top: 40%; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); z-index: 2; }
.lp-carousel__nav--prev { left: -18px; }
.lp-carousel__nav--next { right: -18px; }

/* Carte typographique : le titre sert de visuel. Degrade derive de la couleur
   de la page, avec une forme claire en haut a gauche pour casser l'aplat. */
.lp-post__visual { aspect-ratio: 16 / 10; border-radius: var(--lp-radius) var(--lp-radius) 0 0; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; background: linear-gradient(160deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 55%, #000)); }
.lp-post__visual::before { content: ""; position: absolute; top: -30%; left: -18%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.10); }
.lp-post__visual span { position: relative; font-family: var(--lp-font-heading, inherit); font-weight: 800; font-size: 1.25rem; line-height: 1.35; color: #fff; text-wrap: balance; }
.lp-post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lp-post__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.lp-post__more { margin-top: auto; padding-top: 0.9rem; }

/* Cartes d'articles : image (ou carte typographique), date, titre, extrait. */
.lp-post__media { display: block; text-decoration: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lp-bg-alt); }
.lp-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.lp-post:hover .lp-post__media img { transform: scale(1.03); }
.lp-post__media .lp-post__visual { height: 100%; aspect-ratio: auto; border-radius: 0; }
.lp-post__date { display: block; font-size: 0.76rem; color: var(--lp-muted); margin-bottom: 0.35rem; }
.lp-post .lp-card__title a { text-decoration: none; }
.lp-post .lp-card__title a:hover { color: var(--lp-primary); }

/* Articles plus anciens : liste repliable sous le carrousel. */
.lp-older { margin-top: 2rem; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-surface); }
.lp-older summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.lp-older summary::-webkit-details-marker { display: none; }
.lp-older summary .material-icons { color: var(--lp-primary); transition: transform 0.2s ease; }
.lp-older[open] summary .material-icons { transform: rotate(180deg); }
.lp-older__list { list-style: none; margin: 0; padding: 0 1.25rem 0.75rem; }
.lp-older__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--lp-border); font-size: 0.92rem; }
.lp-older__list a { text-decoration: none; }
.lp-older__list a:hover { color: var(--lp-primary); }
.lp-older__list time { flex: 0 0 auto; font-size: 0.78rem; color: var(--lp-muted); }

/* =============================================================
   Page d'article ({slug}.leadmia.site/{article}/).
   Colonne de lecture etroite (~70 caracteres), memes jetons que la page.
   ============================================================= */
.lpa-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--lp-surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lp-border); }
.lpa-top .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.lpa-brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--lp-font-heading, inherit); font-weight: 800; text-decoration: none; min-width: 0; }
.lpa-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.lpa-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpa-col { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.lpa-head { padding: 2.5rem 0 1.5rem; }
.lpa-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--lp-muted); margin-bottom: 1rem; }
.lpa-crumbs a { text-decoration: none; }
.lpa-crumbs a:hover { color: var(--lp-primary); }
.lpa-crumbs .material-icons { font-size: 16px; }
.lpa-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-wrap: balance; }
.lpa-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 1rem; font-size: 0.85rem; color: var(--lp-muted); }
.lpa-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.lpa-meta .material-icons { font-size: 17px; }
.lpa-image { margin: 0 0 2rem; border-radius: var(--lp-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--lp-bg-alt); }
.lpa-image img { width: 100%; height: 100%; object-fit: cover; }
.lpa-prose { font-size: 1.06rem; line-height: 1.75; }
.lpa-prose > * + * { margin-top: 1.1rem; }
.lpa-prose p { margin-bottom: 0; }
.lpa-prose h2 { font-size: 1.45rem; font-weight: 800; margin-top: 2.4rem; }
.lpa-prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.8rem; }
.lpa-prose ul, .lpa-prose ol { padding-left: 1.4rem; margin-bottom: 0; }
.lpa-prose li + li { margin-top: 0.4rem; }
.lpa-prose li::marker { color: var(--lp-primary); font-weight: 700; }
.lpa-prose a { color: var(--lp-primary) !important; }
.lpa-prose strong { font-weight: 700; }
.lpa-section { margin-top: 3rem; }
.lpa-section__title { font-size: 1.45rem; font-weight: 800; margin-bottom: 1.25rem; }
.lpa-cta { margin-top: 3rem; padding: 2rem; border-radius: var(--lp-radius); color: var(--lp-on-primary, #fff); background: linear-gradient(150deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 60%, #000)); }
.lpa-cta h2 { font-size: 1.35rem; font-weight: 800; }
.lpa-cta p { margin: 0.5rem 0 0; opacity: 0.9; }
.lpa-cta .lp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.lpa-cta .lp-btn { background: var(--lp-surface); color: var(--lp-ink); border-color: transparent; }
.lpa-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.lpa-back { margin: 3rem 0 4rem; text-align: center; }
@media (max-width: 900px) { .lpa-related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .lpa-related { grid-template-columns: 1fr; }
    .lpa-cta { padding: 1.5rem; }
    .lpa-cta .lp-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- Galerie justifiee ----
   Les images sont dimensionnees en JavaScript : chaque rangee est remplie
   jusqu'a la largeur exacte du conteneur, puis mise a l'echelle a une hauteur
   commune. Les proportions d'origine sont donc preservees, sans recadrage et
   sans espace perdu, ce qu'aucune grille CSS ne sait faire seule.

   Fond legerement grise avec une trame d'appareils photo : la section n'a ni
   titre ni marge, il lui faut autre chose pour se detacher. */
.lp-gallery-section { padding: 0; background: var(--lp-bg-alt); position: relative; }
.lp-gallery-section::before { content: ""; position: absolute; inset: 0; opacity: 0.022; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath fill='%23000' d='M36 20l4.6 9.4 10.4 1.5-7.5 7.3 1.8 10.3L36 43.6l-9.3 4.9 1.8-10.3-7.5-7.3 10.4-1.5z'/%3E%3C/svg%3E"); }
.lp-gallery { display: flex; flex-wrap: wrap; gap: 2px; position: relative; }
.lp-gallery__item { display: block; padding: 0; margin: 0; border: none; border-radius: 0; background: var(--lp-bg-alt); overflow: hidden; cursor: zoom-in; line-height: 0; }
.lp-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, opacity 0.2s; }
.lp-gallery__item:hover img { transform: scale(1.04); opacity: 0.9; }
/* Avant la mise en page JS, on evite un empilement pleine largeur disgracieux. */
.lp-gallery:not(.is-laid) .lp-gallery__item { width: 200px; height: 150px; }

/* ---- Visionneuse ---- */
.lp-lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(8,12,22,0.92); display: none; align-items: center; justify-content: center; }
.lp-lightbox.is-open { display: flex; }
.lp-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lp-lightbox__btn { position: absolute; width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.lp-lightbox__btn:hover { background: rgba(255,255,255,0.26); }
.lp-lightbox__close { top: 20px; right: 20px; }
.lp-lightbox__prev { left: 20px; }
.lp-lightbox__next { right: 20px; }
.lp-lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.75); font-size: 0.82rem; }

/* ---- FAQ ---- */
.lp-faq__item { border: 1px solid var(--lp-border); border-radius: 10px; margin-bottom: 0.6rem; background: var(--lp-surface); }
.lp-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1rem 1.25rem; border: none; background: none; font: inherit; font-weight: 600; color: var(--lp-ink); text-align: left; cursor: pointer; }
.lp-faq__q .material-icons { color: var(--lp-primary); transition: transform 0.2s ease; flex: 0 0 auto; }
.lp-faq__item.is-open .lp-faq__q .material-icons { transform: rotate(45deg); }
.lp-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.lp-faq__a > div { padding: 0 1.25rem 1.1rem; color: var(--lp-muted); font-size: 0.92rem; }
.lp-faq__item.is-open .lp-faq__a { max-height: 480px; }

/* ---- Contact ---- */
/* Chaque coordonnee dans sa pastille : la liste plate manquait de structure
   face au formulaire encadre d'en face. */
.lp-contact__line { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; margin-bottom: 0.5rem; border-radius: 10px; background: var(--lp-bg-alt); font-size: 0.9rem; }
/* Dans le bloc coordonnees, centre et sans encadre, le pictogramme passe
   au-dessus du texte : cote a cote, il decalait chaque ligne differemment
   selon la longueur du contenu et cassait l'axe central. */
.lp-details .lp-contact__line { flex-direction: column; gap: 0.4rem; text-align: center; padding: 0.9rem 0.85rem; }
.lp-contact__line .material-icons { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--lp-primary) 14%, transparent); color: var(--lp-primary); font-size: 18px; flex: 0 0 auto; }
.lp-contact__line a { text-decoration: none; font-weight: 600; }
.lp-field { margin-bottom: 0.9rem; }
.lp-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.lp-field input, .lp-field textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--lp-border); border-radius: 10px; font: inherit; background: var(--lp-surface); color: var(--lp-ink); }
.lp-field input:focus, .lp-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--lp-primary) 45%, transparent); outline-offset: 1px; border-color: var(--lp-primary); }
.lp-field textarea { resize: vertical; min-height: 120px; }

/* ---- Coordonnees, sans encadre ----
   Face au formulaire, deux cartes cote a cote se concurrencaient alors que
   l'action attendue est le formulaire. Les coordonnees sont donc posees a nu,
   centrees et alignees verticalement sur lui. */
.lp-details { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1rem 0; }
.lp-details .lp-contact__line { justify-content: center; width: 100%; max-width: 300px; }
.lp-details .lp-actions { justify-content: center; }

/* ---- Modale (mentions legales) ---- */
.lp-modal { position: fixed; inset: 0; z-index: 1150; background: rgba(8,12,22,0.55); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lp-modal.is-open { display: flex; }
.lp-modal__box { background: var(--lp-surface); color: var(--lp-ink); border-radius: 14px; width: 100%; max-width: 640px; max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
.lp-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--lp-border); }
.lp-modal__head h2 { font-size: 1.15rem; font-weight: 800; }
.lp-modal__close { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 10px; background: var(--lp-bg-alt); color: var(--lp-ink); cursor: pointer; }
.lp-modal__close:hover { color: var(--lp-primary); }
.lp-modal__body { padding: 1.25rem 1.5rem 1.75rem; overflow-y: auto; font-size: 0.88rem; color: var(--lp-muted); }
.lp-modal__body section + section { margin-top: 1.4rem; }
.lp-modal__body h3 { font-size: 0.98rem; font-weight: 700; color: var(--lp-ink); margin-bottom: 0.4rem; }
.lp-modal__body a { color: var(--lp-primary); }

/* ---- Pied de page ---- */
.lp-footer { border-top: 1px solid var(--lp-border); padding: 2rem 0; text-align: center; font-size: 0.85rem; color: var(--lp-muted); }
.lp-footer a { color: var(--lp-muted); }

/* ---- Adaptatif ---- */
@media (max-width: 900px) {
    /* Au-dela de 2 colonnes les cartes deviennent illisibles sur tablette. */
    .lp-flexgrid { grid-template-columns: repeat(min(var(--lp-cols, 3), 2), minmax(0, 1fr)); }
    .lp-carousel__track, .lp-carousel__track--3 { grid-auto-columns: calc(50% - 0.63rem); }
}
@media (max-width: 640px) {
    .lp-cover { height: 220px; }
    .lp-logo { width: 96px; height: 96px; margin-top: -48px; }
    .lp-identity__name { font-size: 1.5rem; }
    .lp-section { padding: 2.75rem 0; }
    .lp-grid--2 { grid-template-columns: 1fr; }
    .lp-details { padding: 0 0 1.5rem; }
    .lp-flexgrid { grid-template-columns: 1fr; }
    .lp-addrow { flex-direction: column; }
    .lp-identity__top { flex-direction: column; gap: 1rem; }
    .lp-carousel__track, .lp-carousel__track--3 { grid-auto-columns: 88%; }
    .lp-lightbox__btn { width: 40px; height: 40px; }
    .lp-section__head { flex-direction: column; align-items: flex-start; }
    .lp-carousel__nav { display: none; }
    .lp-actions .lp-btn { flex: 1 1 auto; justify-content: center; }
}

/* =============================================================
   Mise en mouvement.

   Deux principes : les animations ne se declenchent qu'a l'entree dans le
   champ de vision, et tout est desactive si l'utilisateur a demande a reduire
   les animations. Une page vitrine ne doit jamais rendre quelqu'un malade.
   ============================================================= */

@media (prefers-reduced-motion: no-preference) {
    .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s cubic-bezier(.22,.61,.36,1), transform 0.55s cubic-bezier(.22,.61,.36,1); }
    .lp-reveal.is-in { opacity: 1; transform: none; }
    /* Decalage en cascade dans une meme grille : les cartes arrivent l'une
       apres l'autre plutot qu'en bloc. */
    .lp-reveal[style*="--lp-d"] { transition-delay: var(--lp-d); }

    /* Parallaxe de la couverture : le fond defile moins vite que la page.
       Pilote par une variable posee en JS, pour ne bouger qu'au defilement. */
    .lp-cover { background-position: center calc(50% + var(--lp-par, 0px)); }
    .lp-cover::before { transform: translateY(calc(var(--lp-par, 0px) * 0.4)); }
}

/* Trame discrete sur les sections alternees : donne de la matiere sans bruit. */
.lp-section--alt { position: relative; overflow: hidden; }
.lp-section--alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(42% 55% at 92% 4%, color-mix(in srgb, var(--lp-primary) 8%, transparent), transparent 70%),
    radial-gradient(38% 50% at 4% 96%, color-mix(in srgb, var(--lp-primary) 6%, transparent), transparent 70%); }
.lp-section--alt > * { position: relative; }

/* Reactions au survol, courtes et discretes. */
.lp-reassure__icon { transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s; }
.lp-card:hover .lp-reassure__icon { transform: scale(1.08) rotate(-4deg); }
.lp-btn { position: relative; }
.lp-btn:active { transform: translateY(1px); }
.lp-logo { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.lp-logo:hover { transform: translateY(-3px); }
.lp-faq__item { transition: border-color 0.2s, box-shadow 0.2s; }
.lp-faq__item.is-open { border-color: color-mix(in srgb, var(--lp-primary) 45%, transparent); box-shadow: 0 4px 16px color-mix(in srgb, var(--lp-primary) 10%, transparent); }
