/* Charte reprise de l'assistant ADIL74 (adil74-assistant.css) — même
   palette pour une vraie cohérence entre les deux, en l'absence de charte
   graphique officielle du site principal. */

:root {
  --lp-primary: #2E7D6B;
  --lp-primary-dark: #205A4D;
  --lp-accent: #F0A34E;
  --lp-accent-dark: #C97D2E;
  --lp-ink: #1F2D2A;
  --lp-paper: #ffffff;
  --lp-bg-soft: #F6F8F3;
  --lp-line: #E1E8E0;
  --lp-muted: #5A6862;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }

.lp-serif { font-family: Georgia, "Times New Roman", serif; }

/* En-tête */
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-paper);
}
.lp-logo { display: flex; align-items: center; flex-shrink: 0; }
@media (max-width: 820px) { .lp-header { flex-direction: column; gap: 12px; padding: 14px 16px; } .lp-nav { justify-content: center; } .lp-logo-img { height: 76px; } }
/* Logo Louer Positif+ (SVG vectoriel, net à toutes les tailles) */
.lp-logo-img { height: 96px; width: auto; max-width: 100%; display: block; }
.lp-logo-img-contact { height: 110px; margin: 0 auto 18px; }
.lp-nav { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--lp-ink); flex-wrap: wrap; }
.lp-nav a { padding: 9px 15px; border-radius: 999px; border-bottom: 3px solid transparent; transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.lp-nav a:hover { color: var(--lp-primary-dark); background: #EAF3EF; transform: translateY(-1px); }
.lp-nav .active { color: var(--lp-primary-dark); background: transparent; box-shadow: none; border-bottom: 3px solid var(--lp-accent); border-radius: 999px 999px 0 0; }
.lp-nav .active:hover { color: var(--lp-primary-dark); background: #EAF3EF; transform: translateY(-1px); }
.lp-nav .lp-admin-link { font-style: italic; font-weight: 600; color: var(--lp-muted); border: 1px solid var(--lp-line); border-radius: 999px; padding: 8px 16px; margin-left: 8px; }
.lp-nav .lp-admin-link:hover { background: var(--lp-bg-soft); transform: none; }

.lp-container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* Boutons */
.lp-btn {
  display: inline-block;
  background: var(--lp-accent);
  color: #4a2d0c;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lp-btn:hover { background: var(--lp-accent-dark); transform: translateY(-1px); }
.lp-btn-outline {
  display: inline-block;
  background: #fff;
  color: var(--lp-primary);
  border: 1.5px solid var(--lp-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lp-btn-outline:hover { background: var(--lp-primary); color: #fff; }

/* Cartes du menu "Votre logement a du potentiel" */
.lp-card {
  display: block;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 4px 16px rgba(31, 45, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lp-card:hover { box-shadow: 0 10px 28px rgba(31, 45, 42, 0.14); transform: translateY(-3px); }
.lp-card .lp-card-icon { width: 46px; height: 46px; margin-bottom: 14px; }
.lp-card .lp-card-title { font-weight: 800; font-size: 16.5px; color: var(--lp-primary-dark); margin: 0 0 8px; }
.lp-card .lp-card-desc { font-size: 13.5px; color: var(--lp-muted); line-height: 1.55; margin: 0; }

.lp-kicker {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-accent-dark);
  margin: 0 0 14px;
}

.lp-field, textarea.lp-field, select.lp-field {
  border: 1.5px solid var(--lp-line);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--lp-ink);
  background: #fff;
  width: 100%;
}
.lp-field:focus, textarea.lp-field:focus, select.lp-field:focus { border-color: var(--lp-primary); outline: none; }
.lp-label { font-size: 13px; color: var(--lp-muted); display: block; margin-bottom: 5px; font-weight: 600; }

/* Variante renforcée des champs, pour les formulaires publics (plus
   visible que la version discrète utilisée en administration) */
.lp-field-public {
  border: 2px solid var(--lp-line) !important;
  background: #F8FBF9 !important;
  font-weight: 500;
}
.lp-field-public:focus { border-color: var(--lp-accent) !important; background: #fff !important; }
.lp-label-public { font-size: 13.5px; color: var(--lp-primary-dark); font-weight: 800; display: block; margin-bottom: 6px; }

.lp-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.lp-tag-national { background: #e3efe9; color: var(--lp-primary-dark); }
.lp-tag-local { background: #fdf0dd; color: var(--lp-accent-dark); }

.lp-footer {
  background: var(--lp-ink);
  color: #cdd8d2;
  padding: 36px 32px;
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}
.lp-footer a { color: #cdd8d2; text-decoration: underline; }
.lp-footer-contact {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px;
  font-size: 14px; font-weight: 700; color: #fff;
}
.lp-footer-contact a { color: #fff; text-decoration: none; }
.lp-footer-contact a:hover { text-decoration: underline; }
.lp-footer-bottom {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 11.5px; color: #9fb0a8;
}

/* Encadrés "types d'intermédiation" */
.lp-type-card {
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1.5px solid transparent;
}
.lp-type-card:hover { transform: translateY(-5px); }
.lp-type-card-mandat { background: linear-gradient(160deg, #EAF3EF, #ffffff 60%); border-color: var(--lp-primary); }
.lp-type-card-mandat:hover { box-shadow: 0 16px 36px rgba(46,125,107,0.20); }
.lp-type-card-souslocation { background: linear-gradient(160deg, #FDF0DD, #ffffff 60%); border-color: var(--lp-accent); }
.lp-type-card-souslocation:hover { box-shadow: 0 16px 36px rgba(201,125,46,0.20); }
.lp-type-card-bail { background: linear-gradient(160deg, #EAEEF1, #ffffff 60%); border-color: #4A6572; }
.lp-type-card-bail:hover { box-shadow: 0 16px 36px rgba(74,101,114,0.22); }
.lp-tag-bail { background: #E3E9ED; color: #34505E; }

/* Cartes aides financières / rénovation */
.lp-aide-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--lp-aide-accent, var(--lp-primary)) 20%, white), #ffffff 68%);
  border: 1.5px solid var(--lp-aide-accent, var(--lp-primary));
  border-radius: 12px;
  padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-aide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31,45,42,0.12);
}
.lp-aide-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--lp-bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

/* Les 3 encadrés de la page Contexte */
.lp-contexte-bloc {
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 22px;
  border: 1.5px solid transparent;
}
.lp-contexte-bloc-vert { background: #EAF3EF; border-color: var(--lp-primary); }
.lp-contexte-bloc-ambre { background: #FDF0DD; border-color: var(--lp-accent); }
.lp-contexte-bloc-ardoise { background: #EAEEF1; border-color: #4A6572; }
.lp-contexte-bloc p:last-child { margin-bottom: 0 !important; }

/* Chiffres clés façon post-it */
.lp-postit {
  width: 175px;
  padding: 20px 18px 22px;
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(31,45,42,0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-postit:hover { transform: rotate(0deg) scale(1.04) !important; box-shadow: 0 10px 22px rgba(31,45,42,0.20); }
.lp-postit-0 { background: #FDF0DD; transform: rotate(-3deg); }
.lp-postit-1 { background: #EAF3EF; transform: rotate(2.5deg); }
.lp-postit-2 { background: #F6ECEA; transform: rotate(-1.5deg); }
.lp-postit-img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; display: block; border: 2px solid rgba(255,255,255,0.7); }
.lp-postit-valeur { font-size: 25px; font-weight: 800; color: var(--lp-primary-dark); margin: 0 0 4px; font-family: Georgia, serif; }
.lp-postit-libelle { font-size: 12.5px; color: var(--lp-ink); line-height: 1.4; margin: 0; }

/* Grille des blocs "Votre logement a du potentiel" : en flexbox plutôt
   qu'en grid, pour que la dernière ligne (2 blocs sur 5, par exemple) se
   centre naturellement au lieu de rester collée à gauche. */
.lp-potentiel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
  gap: 18px;
}
.lp-potentiel-grid > a {
  flex: 0 1 220px;
}
.lp-potentiel-grid .lp-card { padding: 20px 18px; }

/* Cartes opérateurs IML : effet de survol + agrandissement du logo */
.lp-op-card {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  position: relative;
  z-index: 1;
}
.lp-op-card-tint-0 { background: #F4F9F7; }
.lp-op-card-tint-1 { background: #FEF7EE; }
.lp-op-card-tint-2 { background: #F3F7FA; }
.lp-op-card-tint-3 { background: #FBF3F4; }
.lp-op-card-tint-4 { background: #F6F5FA; }
.lp-op-card-tint-5 { background: #F5F8F1; }
.lp-op-card:hover {
  box-shadow: 0 14px 32px rgba(46, 125, 107, 0.18);
  transform: translateY(-4px);
  border-color: var(--lp-primary);
}
.lp-op-logo {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: transform 0.25s ease;
}
.lp-op-card:hover .lp-op-logo { transform: scale(1.18); }
.lp-op-logo-box {
  height: 64px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.lp-text-clamp-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}
.lp-text-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}
.lp-text-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

/* Motif de fond par défaut pour la page Intermédiation locative, en
   l'absence d'image fournie — clés et toits, très discret. */
.lp-bg-pattern {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><g fill="none" stroke="%232E7D6B" stroke-width="1.4" opacity="0.10"><path d="M20 55 L45 35 L70 55 L70 80 L20 80 Z"/><circle cx="105" cy="95" r="9"/><path d="M111 101 L128 118 M120 110 L128 102"/></g></svg>');
  background-repeat: repeat;
}

/* ============================================================
   Grands titres compacts (accueil) — police Poppins très épaisse,
   plus droite et plus dense que le serif utilisé ailleurs sur le site.
   ============================================================ */
.lp-heading-bold {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.08;
}
.lp-heading-accent { color: var(--lp-accent-dark); }

/* Réponse "Louez · Positif", en grand, avec un fort effet d'entrée */
.lp-brand-answer-wrap { position: relative; display: inline-block; margin: 6px 0 10px; }
.lp-brand-answer-wrap::before {
  content: '';
  position: absolute; left: -18px; right: -18px; top: -10px; bottom: -10px;
  background: radial-gradient(ellipse at center, rgba(240,163,78,0.22), rgba(240,163,78,0) 70%);
  border-radius: 999px;
  z-index: 0;
}
.lp-brand-answer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 46px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: lp-pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}
.lp-brand-answer .lp-brand-mot1 { color: var(--lp-primary-dark); }
.lp-brand-answer .lp-brand-sep { color: var(--lp-accent); font-weight: 700; }
.lp-brand-answer .lp-brand-mot2 { color: var(--lp-accent-dark); }
.lp-brand-answer .lp-brand-mot3 { color: var(--lp-primary-dark); font-size: 0.6em; font-weight: 800; letter-spacing: 1px; }
@media (max-width: 560px) {
  .lp-brand-answer { font-size: 34px; }
}

/* Animations d'entrée */
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-pop-in {
  0%   { opacity: 0; transform: scale(0.6) rotate(-6deg); }
  65%  { opacity: 1; transform: scale(1.08) rotate(1.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.lp-anim-1 { animation: lp-fade-up 0.6s ease-out both; }
.lp-anim-2 { animation: lp-fade-up 0.6s ease-out 0.15s both; }
.lp-anim-3 { animation: lp-fade-up 0.6s ease-out 0.3s both; }
.lp-anim-4 { animation: lp-fade-up 0.6s ease-out 0.45s both; }

.lp-underline-accent {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--lp-accent);
  text-decoration-thickness: 5px;
  text-underline-offset: 5px;
  border-radius: 3px;
}

/* Encadré "Profitez d'un accompagnement..." — plus affirmé */
.lp-accompagnement-box {
  background: linear-gradient(135deg, #ffffff, #FEF7EE 55%, #FDEFD9);
  border: 2px solid var(--lp-accent);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 12px 28px rgba(240,163,78,0.18);
}
.lp-accompagnement-box p {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 17px;
}

/* Bouton héros — plus grand, plus vivant */
.lp-btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
  color: #4a2d0c;
  font-weight: 800;
  font-size: 17px;
  padding: 17px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(201,125,46,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease, color 0.25s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lp-btn-hero:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(46,125,107,0.32);
  background: rgba(46,125,107,0.82);
  color: #fff;
}

.lp-chef-mission {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--lp-primary-dark);
  margin-top: 16px;
}

/* Illustration animée : clé qui tourne dans la serrure */
.lp-cle-shaft { transform-origin: 140px 150px; animation: lp-cle-tourne 4.6s ease-in-out 1.1s both; }
@keyframes lp-cle-tourne {
  0%   { transform: translateX(-85px) rotate(0deg) scaleX(1); opacity: 0; }
  30%  { transform: translateX(0) rotate(0deg) scaleX(1); opacity: 1; }
  42%  { transform: translateX(0) rotate(0deg) scaleX(1); opacity: 1; }
  50%  { transform: translateX(0) rotate(0deg) scaleX(0.05); opacity: 1; }
  62%  { transform: translateX(0) rotate(-90deg) scaleX(0.05); opacity: 1; }
  74%  { transform: translateX(0) rotate(0deg) scaleX(0.05); opacity: 1; }
  88%  { transform: translateX(0) rotate(0deg) scaleX(1); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg) scaleX(1); opacity: 1; }
}
.lp-cle-eclat { opacity: 0; animation: lp-eclat-pulse 1.2s ease-out 5.0s both; transform-origin: 140px 150px; }
@keyframes lp-eclat-pulse {
  0%   { opacity: 0; transform: scale(0.3); }
  40%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-anim-1, .lp-anim-2, .lp-anim-3, .lp-anim-4, .lp-brand-answer, .lp-cle-shaft, .lp-cle-eclat { animation: none; }
}

/* Dégradés alternés vert/ambre sur les 5 blocs "potentiel", assortis à
   la couleur de leur icône (qui alterne déjà dans le même ordre). */
.lp-potentiel-grid > a.lp-card:nth-child(odd) {
  background: linear-gradient(160deg, #EAF3EF, #ffffff 65%);
}
.lp-potentiel-grid > a.lp-card:nth-child(even) {
  background: linear-gradient(160deg, #FDF0DD, #ffffff 65%);
}

/* Séparateur décoratif entre grandes sections */
.lp-section-divider {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 20px;
}
.lp-section-divider-line {
  height: 3px; width: 60px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--lp-accent));
}
.lp-section-divider-line:last-child {
  background: linear-gradient(90deg, var(--lp-accent), transparent);
}

/* Petite flèche ondulée invitant à découvrir la suite */
.lp-fleche-onde {
  display: block; margin: 0 auto 4px;
  animation: lp-fleche-rebond 1.8s ease-in-out infinite;
}
@keyframes lp-fleche-rebond {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-fleche-onde { animation: none; }
}

/* Séparateur vertical entre les deux colonnes "Pas encore sûr / Contact",
   uniquement visible quand elles sont côte à côte (grand écran). */
@media (min-width: 820px) {
  .lp-separateur-vertical { display: block !important; }
}
