/* ============================================================
   PAGE D'ACCUEIL — feuille dédiée (préfixe hp-), chargée APRÈS style.css,
   uniquement sur « / » (views/pages/accueil.php). N'écrase aucune règle globale.
   Cinq ensembles : hero, données/classements/comparaisons, villages labellisés du
   mois, boutique, signature du projet. Angles droits sur les grands conteneurs ;
   pilule seulement là où le site l'a établie (boutons, champ de recherche, badges).
   Source : docs/maquettes/accueil-v1/ (2026-11-02).
   ============================================================ */

:root {
  --hp-navy: #002654;
  --hp-navy-2: #0f2b46;
  --hp-cyan: #00b4d8;
  --hp-cyan-text: #00768e;
  --hp-cyan-soft: #e0f7fa;
  --hp-ink: #1e293b;
  --hp-muted: #526378;
  --hp-line: rgba(15, 43, 70, 0.12);
  --hp-sand: #f6efe4;
  --hp-sand-2: #efe3d1;
  --hp-terra: #b4532a;
  --hp-terra-dark: #8f3f1f;
  --hp-shadow: 0 1px 2px rgba(0,38,84,.06), 0 6px 16px rgba(0,38,84,.06); /* ombre discrète, conteneurs à angles droits */
  --hp-max: 1200px;
}

.hp { font-family: 'Outfit', system-ui, sans-serif; color: var(--hp-ink); }
.hp * { box-sizing: border-box; }
.hp a { color: inherit; }
.hp a:focus-visible, .hp button:focus-visible, .hp input:focus-visible { outline: 3px solid var(--hp-cyan); outline-offset: 3px; }
.hp .hp-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 20px; }
.hp .hp-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-cyan-text); margin: 0 0 8px; }
.hp h2.hp-h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.015em; color: var(--hp-navy); margin: 0 0 10px; font-weight: 700; }
.hp .hp-lead { font-size: 17px; line-height: 1.6; color: var(--hp-muted); margin: 0 0 24px; max-width: 62ch; }
.hp .hp-link { color: var(--hp-cyan-text); font-weight: 600; text-decoration: none; }
.hp .hp-link:hover { text-decoration: underline; }
.hp .hp-arrow::after { content: ' →'; }
.hp .hp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 0; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.hp .hp-btn--cyan { background: var(--hp-cyan); color: var(--hp-navy); }
.hp .hp-btn--cyan:hover { box-shadow: 0 8px 20px rgba(0,180,216,.35); }
.hp .hp-btn--terra { background: var(--hp-terra); color: #fff; }
.hp .hp-btn--terra:hover { background: var(--hp-terra-dark); }
.hp .hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─────────────── 1. TROUVER ─────────────── */
.hp-hero { position: relative; padding: 52px 0 44px; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(0,180,216,.18), transparent 60%),
  radial-gradient(800px 400px at -10% 110%, rgba(0,38,84,.08), transparent 60%),
  #f7f9fb; overflow: hidden; }
.hp-hero .hp-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hp-hero .hp-wrap > * { min-width: 0; }
.hp-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.02em; color: var(--hp-navy); margin: 0 0 16px; font-weight: 800; }
.hp-hero h1 em { font-style: normal; color: var(--hp-cyan-text); }
.hp-hero .hp-lead { font-size: 18px; margin-bottom: 26px; }
.hp-search { position: relative; max-width: 640px; }
.hp-search__box { display: flex; align-items: center; background: #fff; border: 2px solid var(--hp-line); border-radius: 0; padding: 6px 6px 6px 20px; box-shadow: 0 8px 28px rgba(0,38,84,.08); transition: border-color .2s, box-shadow .2s; }
.hp-search__box:focus-within { border-color: var(--hp-cyan); box-shadow: 0 0 0 4px rgba(0,180,216,.18); }
.hp-search__box svg { flex: 0 0 22px; color: var(--hp-muted); }
.hp-search__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; padding: 10px 12px; color: var(--hp-ink); }
.hp .hp-search__input:focus, .hp .hp-search__input:focus-visible { outline: none; }
.hp-search__input::placeholder { color: #8795a6; }
.hp-search__btn { flex: 0 0 auto; height: 46px; padding: 0 22px; border-radius: 0; background: var(--hp-navy); color: #fff; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; }
.hp-search__btn:hover { background: var(--hp-navy-2); }
.hp-search__btn svg { display: none; }
.hp-search__list { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow); z-index: 20; }
.hp-search__list[hidden] { display: none; }
.hp-search__list li a { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; text-decoration: none; color: var(--hp-ink); }
.hp-search__list li a:hover, .hp-search__list li a.is-active { background: var(--hp-cyan-soft); }
.hp-search__list .hp-sug-meta { color: var(--hp-muted); font-size: 13px; white-space: nowrap; }

/* Carte « commune du jour » = aperçu réel d'une fiche */
.hp-cdj { position: relative; background: #fff; overflow: hidden; display: block; }
.hp-cdj__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; display: block; }
.hp-cdj__badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--hp-navy); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 100px; }
.hp-cdj__body { padding: 18px 20px 20px; }
.hp-cdj__name { font-size: 22px; font-weight: 700; color: var(--hp-navy); margin: 0; }
.hp .hp-cdj__name a { color: inherit; text-decoration: none; }
.hp .hp-cdj__name a:hover { text-decoration: underline; }
.hp-cdj__sub { color: var(--hp-muted); font-size: 14px; margin: 2px 0 14px; }
.hp-cdj__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.hp-cdj__metrics li { min-width: 0; }
.hp-cdj__metrics li { background: #f3f6f9; padding: 10px 12px; }
.hp-cdj__metrics strong { display: block; font-size: 18px; color: var(--hp-navy); font-variant-numeric: tabular-nums; }
.hp-cdj__metrics span { font-size: 12px; color: var(--hp-muted); display: block; overflow-wrap: anywhere; }
.hp-cdj__dist { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; background: var(--hp-cyan-soft); border-left: 3px solid var(--hp-cyan-text); font-size: 14px; color: var(--hp-navy); }
.hp-cdj__dist svg { flex: 0 0 18px; color: var(--hp-cyan-text); }
.hp-cdj__dist strong { font-weight: 700; }
.hp-cdj__dist span { color: var(--hp-muted); }
.hp-cdj .hp-link { font-size: 14px; }

/* ─────────────── 2. DONNÉES, CLASSEMENTS, COMPARAISONS (panneau navy, trois colonnes) ─────────────── */
.hp-explore { padding: 60px 0; background: #fff; }
.hp-explore .hp-lead { margin-bottom: 26px; }
.hp-panel { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--hp-navy); color: #fff; }
.hp-panel__col { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; }
.hp-panel__col + .hp-panel__col { border-left: 1px solid rgba(255,255,255,.14); }
.hp-panel__num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--hp-cyan); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.hp-panel__col h3 { margin: 0 0 8px; font-size: 21px; color: #fff; letter-spacing: -.01em; }
.hp-panel__text { margin: 0 0 22px; color: rgba(255,255,255,.78); line-height: 1.55; font-size: 15px; flex: 1; }
.hp .hp-panel__cta { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 18px; border-radius: 0; background: var(--hp-cyan); color: var(--hp-navy); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .2s; }
.hp .hp-panel__cta::after { content: '→'; transition: transform .2s; }
.hp .hp-panel__cta:hover { background: #33c3e0; }
.hp .hp-panel__cta:hover::after { transform: translateX(3px); }
.hp .hp-panel__cta:focus-visible { outline-color: #fff; }

/* ─────────────── 3. VILLAGES LABELLISÉS (rangée photographique) ─────────────── */
.hp-villages { padding: 60px 0; background: #f7f9fb; }
.hp-villages .hp-lead { margin-bottom: 26px; }
.hp-villages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hp .hp-village { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; text-decoration: none; color: #fff; background: var(--hp-navy-2); }
.hp-village img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hp-village:hover img { transform: scale(1.03); }
.hp-village__label { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 5px 9px; background: rgba(255,255,255,.94); color: var(--hp-navy); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.hp-village figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 14px 14px; background: linear-gradient(180deg, transparent, rgba(0,20,45,.88)); }
.hp-village__name { display: block; font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.hp-village__dept { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.hp-villages__credit { margin: 14px 0 0; font-size: 12.5px; color: var(--hp-muted); line-height: 1.6; }
.hp-villages__credit a { color: var(--hp-muted); text-decoration: underline; text-underline-offset: 2px; }
.hp-villages__credit a:hover { color: var(--hp-navy); }

/* ─────────────── 3. BOUTIQUE ─────────────── */
.hp-shop { padding: 60px 0; background: var(--hp-sand); }
.hp-shop .hp-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; align-items: center; }
.hp-shop .hp-eyebrow { color: var(--hp-terra); }
.hp-shop h2.hp-h2 { color: #3b2a1e; }
.hp-shop .hp-lead { color: #5b4a3c; margin-bottom: 22px; }
.hp-frame-scene { position: relative; margin: 0; padding: 30px 24px 40px; }
.hp-frame { margin: 0 auto; max-width: 280px; background: #fffdf9; padding: 18px; border: 9px solid #2b2420; box-shadow: 0 30px 50px -20px rgba(60,40,20,.45), inset 0 0 0 1px rgba(0,0,0,.25); transform: rotate(-1.2deg); }
.hp-frame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.hp-frame-cap { text-align: center; margin: 16px 0 0; font-size: 13.5px; color: #6b5949; }
.hp-frame-cap strong { color: #3b2a1e; }
.hp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.hp-product { background: #fff; overflow: hidden; border: 1px solid rgba(60,40,20,.1); display: block; }
.hp-product img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4ede3; }
.hp-product__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 14px 12px; align-items: baseline; }
.hp-product__name { font-weight: 700; color: #3b2a1e; font-size: 15px; }
.hp-product__price { font-size: 13px; color: #7a6552; white-space: nowrap; }
.hp-product__place { grid-column: 1 / -1; font-size: 13px; color: #6b5949; line-height: 1.3; }
.hp-product__place small { color: #8a7664; }
.hp-shop-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.hp-shop-note { font-size: 14px; color: #6b5949; }

/* ─────────────── 5. SIGNATURE DU PROJET (fond clair, compacte) ─────────────── */
.hp-sign { padding: 34px 0 38px; background: #f7f9fb; border-top: 1px solid var(--hp-line); }
.hp-sign .hp-wrap { display: grid; grid-template-columns: auto 1fr; gap: 10px 36px; align-items: baseline; }
.hp-sign h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-navy); }
.hp-sign p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hp-muted); max-width: 78ch; }
.hp-sign p strong { color: var(--hp-ink); font-weight: 600; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 1024px) {
  .hp-panel__col { padding: 24px 20px 22px; }
  .hp-villages__grid { gap: 12px; }
}
@media (max-width: 820px) {
  .hp-hero { padding: 36px 0 32px; }
  .hp-hero .hp-wrap, .hp-shop .hp-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hp-sign .hp-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hp-cdj { display: none; } /* une colonne : la commune du jour n'ajoute que du défilement */
  .hp-explore, .hp-villages, .hp-shop { padding: 44px 0; }
  .hp-panel { grid-template-columns: minmax(0, 1fr); }
  .hp-panel__col + .hp-panel__col { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .hp-panel__col { padding: 22px 20px; }
  .hp-panel__num { margin-bottom: 10px; }
  .hp-panel__text { margin-bottom: 16px; }
  .hp-villages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hp-village__name { font-size: 16px; }
  .hp-village__label { font-size: 10px; top: 8px; left: 8px; padding: 4px 7px; }
  .hp-village figcaption { padding: 36px 10px 10px; }
  .hp-frame-scene { padding: 22px 16px 30px; }
  .hp-frame { max-width: 200px; padding: 12px; border-width: 7px; }
  .hp-products { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
}
@media (max-width: 480px) {
  .hp-search__box { padding-left: 14px; }
  .hp-search__btn { padding: 0 14px; }
  .hp-search__btn span { display: none; }
  .hp-search__btn svg { display: block; }
  .hp-product__body { padding: 8px 12px 10px; }
  .hp-product__name { font-size: 14px; }
  .hp .hp-panel__cta { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hp * { transition: none !important; }
}
