/* ============================================================
   components.css : header, boutons, cartes, sections
   Mobile-first strict. Classes BEM. Chaque section = bloc Gutenberg natif.
   ============================================================ */

/* ---------- Boutons (wp:buttons / wp:button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .9rem 1.6rem;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius-md); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--brand-accent); color: #062A3A; }
.btn--primary:hover { background: var(--brand-accent-dark); color: #fff; }
.btn--dark { background: var(--brand-primary); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn--outline:hover { background: var(--brand-primary); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: #fff; color: var(--brand-primary); }
.btn-group { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) {
  .btn { width: auto; }
  .btn-group { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Header (wp:template-part header) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.site-header__logo img { width: 150px; height: 100px; object-fit: contain; }
.site-header__phone { display: none; }
.site-nav { display: none; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav__link { font-weight: 500; color: var(--ink); text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { border-bottom-color: var(--brand-accent); color: var(--brand-primary); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 2px solid var(--brand-primary);
  border-radius: var(--radius-sm); padding: .5rem .8rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--brand-primary);
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav__list { list-style: none; margin: 0; padding: .5rem 0; }
.mobile-nav__link { display: block; padding: .9rem var(--container-padding); font-size: 1.1rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) {
  .nav-toggle, .mobile-nav { display: none !important; }
  .site-nav { display: block; }
  .site-header__phone { display: inline-flex; min-height: 48px; padding: .6rem 1.1rem; }
}

/* En-tête page d'atterrissage : logo non cliquable, téléphone toujours visible, bouton Réserver dès 768 px */
.site-header--landing .site-header__inner { min-height: 68px; }
.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.site-header__phone--always { display: inline-flex; min-height: 44px; padding: .5rem .8rem; }
.site-header__phone--always svg { width: 20px; height: 20px; }
.site-header__cta { display: none; }
@media (max-width: 479px) { .site-header__phone--always span { display: none; } .site-header__phone--always { padding: .5rem .7rem; } }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; min-height: 48px; } }

/* Appels à l'action compacts entre les sections */
.cta-inline { display: flex; flex-direction: column; gap: 1rem; margin-top: var(--space-md); padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--brand-accent); border-radius: var(--radius-md); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.cta-inline__text { display: flex; flex-direction: column; gap: .2rem; }
.cta-inline__text strong { font-size: 1.25rem; color: var(--brand-primary); }
.cta-inline__text span { color: var(--ink-muted); }
.cta-inline .btn-group { flex-shrink: 0; }
.cta-inline--dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); border-left-color: var(--brand-accent); box-shadow: none; }
.cta-inline--dark .cta-inline__text strong { color: #fff; }
.cta-inline--dark .cta-inline__text span { color: rgba(255,255,255,.8); }
@media (min-width: 900px) { .cta-inline { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Héro (wp:cover) ---------- */
.hero {
  position: relative; min-height: 78vh; display: grid; align-items: end; color: #fff;
  background: var(--brand-primary); isolation: isolate; overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,16,22,.86) 0%, rgba(8,16,22,.72) 45%, rgba(8,16,22,.35) 100%),
    linear-gradient(180deg, rgba(8,16,22,.15) 0%, rgba(8,16,22,.55) 100%);
}
.hero__content h1, .hero__text, .hero .eyebrow, .breadcrumb { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero__content { padding-block: var(--space-lg) var(--space-md); max-width: 820px; }
.hero__content h1 { color: #fff; }
.hero__content .eyebrow { color: var(--brand-accent-light); }
.hero__text { font-size: 1.15rem; max-width: 680px; color: rgba(255,255,255,.92); }
.hero--compact { min-height: 62vh; }
@media (min-width: 768px) {
  .hero { min-height: 86vh; align-items: center; }
  .hero__content { padding-block: var(--space-xl); }
  .hero__text { font-size: 1.3rem; }
}

/* Fil d'Ariane (wp:navigation ou wp:paragraph) */
.breadcrumb { font-size: .95rem; color: rgba(255,255,255,.85); margin-bottom: var(--space-sm); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .7; }
.breadcrumb a { color: #fff; }

/* ---------- Bandeau de confiance (wp:columns × 4) ---------- */
.stats { background: var(--brand-primary); color: #fff; padding-block: var(--space-md); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-sm); }
.stat { text-align: center; }
.stat__value { display: block; font-family: var(--font-headings); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--brand-accent-light); }
.stat__label { display: block; margin-top: .35rem; font-size: 1rem; color: rgba(255,255,255,.85); }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes (wp:columns + wp:group) ---------- */
.grid { display: grid; gap: var(--space-md); }
.grid > * { min-width: 0; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: var(--space-md) var(--space-sm) var(--space-sm); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__body h3 { margin: 0; }
.card__meta { color: var(--ink-muted); font-size: 1rem; margin: 0; }
.card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.card__list li { display: flex; gap: .55rem; align-items: flex-start; }
.card__list svg { width: 20px; height: 20px; flex: none; color: var(--brand-accent-dark); margin-top: .2rem; }
.card__footer { margin-top: auto; padding-top: var(--space-sm); display: grid; gap: .75rem; }
@media (min-width: 768px) { .card__body { padding: var(--space-md); } }

/* Prix (donnée à confirmer, visible en orange pour le client) */
.price { font-weight: 700; font-size: 1.15rem; color: var(--brand-primary); }
.todo {
  display: inline-block; background: var(--todo-bg); color: var(--todo); border: 1px dashed var(--todo);
  border-radius: var(--radius-sm); padding: .05em .45em; font-weight: 700; font-size: .95em;
}

/* Tableau des logements (wp:table) */
.units { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.units th, .units td { padding: 1rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.units th { background: var(--brand-primary); color: #fff; font-family: var(--font-headings); font-weight: 400; font-size: 1.4rem; }
.units th:first-child, .units td:first-child { color: var(--ink-muted); font-weight: 500; width: 32%; }
.units tr:last-child td { border-bottom: 0; }
.units-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.units-hint { font-size: .9rem; color: var(--ink-muted); margin: 0 0 .5rem; }
@media (min-width: 768px) { .units-hint { display: none; } }
@media (max-width: 767px) { .units th, .units td { padding: .75rem .6rem; font-size: .95rem; } .units th { font-size: 1.2rem; } }

/* ---------- Avantages (wp:columns × 3) ---------- */
.feature { display: grid; gap: .75rem; }
.feature__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand-accent-soft); color: var(--brand-accent-dark);
  display: grid; place-items: center;
}
.feature__icon svg { width: 32px; height: 32px; }
.feature h3 { margin: .25rem 0 0; }
.feature p { color: var(--ink-soft); }

/* ---------- Listes d'inclusions (wp:columns × 2, wp:list) ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--brand-accent-dark); margin-top: .15rem; }
.inclusions h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-sm); }
.inclusions h3 svg { width: 30px; height: 30px; flex: none; color: var(--brand-accent-dark); }

/* ---------- Témoignages (wp:quote) ---------- */
.quote {
  background: #fff; border-left: 6px solid var(--brand-accent); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm); box-shadow: var(--shadow-sm); margin: 0; display: grid; gap: 1rem;
}
.quote p { font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }
.quote footer { font-style: normal; font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.quote footer span { color: var(--ink-muted); font-weight: 400; }
@media (min-width: 768px) { .quote { padding: var(--space-md); } }

/* ---------- Média + texte (wp:media-text) ---------- */
.media-text { display: grid; gap: var(--space-md); align-items: center; }
.media-text__img { border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; box-shadow: var(--shadow-md); }
.media-text__map { border: 0; border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
@media (min-width: 900px) {
  .media-text { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .media-text--reverse > :first-child { order: 2; }
}

/* ---------- Galerie (wp:gallery) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gallery img { min-width: 0; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius-md); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; } }

/* ---------- Formulaire (wp:group + Pratcom Connect Forms) ---------- */
.form-section__grid { display: grid; gap: var(--space-md); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: var(--space-md) var(--space-sm); box-shadow: var(--shadow-md); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-md);
  background: #fff; min-height: 54px; width: 100%; color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand-accent); outline: none; box-shadow: 0 0 0 4px rgba(0,174,239,.18); }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink-soft); }
.form__consent input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; flex: none; }
.form__note { font-size: 1rem; color: var(--ink-muted); text-align: center; }
.form__note a { font-weight: 700; }
.hours { list-style: none; padding: 0; margin: var(--space-sm) 0 0; display: grid; gap: .5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.hours li span:last-child { font-weight: 700; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .form-section__grid { grid-template-columns: 1fr 1.25fr; align-items: start; } .form-card { padding: var(--space-md); } }

/* ---------- FAQ (wp:details) ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 var(--space-sm); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-headings); font-size: 1.8rem; color: var(--brand-accent-dark); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-soft); }

/* ---------- Appel final (wp:cover) ---------- */
.cta-band { position: relative; color: #fff; background: var(--brand-primary); isolation: isolate; overflow: hidden; text-align: center; }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(12,22,28,.84); z-index: -1; }
.cta-band h2, .cta-band .lead { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cta-band h2 { color: #fff; }
.cta-band .btn-group { justify-content: center; }

/* ---------- Pied de page (wp:template-part footer) ---------- */
.site-footer { background: #121416; color: rgba(255,255,255,.82); padding-block: var(--space-lg) var(--space-md); font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: var(--space-md); }
.site-footer h3 { color: #fff; font-size: 1.4rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer__logo { background: #fff; display: inline-block; padding: .5rem .8rem; border-radius: var(--radius-sm); }
.site-footer__logo img { width: 140px; height: 94px; object-fit: contain; }
.site-footer__bottom { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .site-footer__grid--landing { grid-template-columns: 1fr 1.2fr; } }

/* ---------- Barre collante mobile (wp:html, justifiée : aucun bloc natif) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem var(--container-padding); background: rgba(255,255,255,.97); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.sticky-bar .btn { min-height: 52px; padding-inline: .8rem; font-size: 1rem; }
body.has-sticky-bar { padding-bottom: 80px; }
@media (min-width: 1024px) { .sticky-bar { display: none; } body.has-sticky-bar { padding-bottom: 0; } }

/* ---------- Bandeau de notice maquette (retiré à l'intégration) ---------- */
.mockup-notice { background: var(--todo-bg); color: #7a3d08; font-size: .9rem; text-align: center; padding: .5rem var(--container-padding); border-bottom: 1px solid var(--todo); }
