/* Cabinet — Test Complet, Poitiers */

:root {
  --bg: #F5F1E6;
  --surface: #FFFFFF;
  --surface-2: #ECE4D2;
  --ink: #262A33;
  --muted: #6D717A;
  --line: #DED2B8;
  --deep: #16283F;
  --deep-2: #0C1826;
  --deep-ink: #F0EDE0;
  --accent: #B8845A;
  --accent-gold: #E3B98A;
  --accent-ink: #FFFFFF;
  --eye-blue: #6E8499;
  --ok: #4C7A5A;
  --shadow: 0 24px 60px -30px rgba(12,24,38, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Fraunces", serif; text-wrap: balance; margin: 0; color: var(--deep-2); }
img { max-width: 100%; }
a { color: var(--deep); }
.wrap { width: min(calc(100% - 40px), 1080px); margin: 0 auto; }

/* Nav */
header.site-header {
  background: var(--deep);
  color: var(--deep-ink);
  padding: 16px 0;
}
header.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; color: var(--deep-ink); text-decoration: none; }
.brand span { color: var(--accent-gold); font-style: italic; }
nav.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main-nav a { color: rgba(240,237,224,0.82); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
nav.main-nav a:hover { color: var(--accent-gold); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--deep-ink); padding: 64px 0 72px; }
.hero .eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin-bottom: 18px; color: var(--deep-ink); }
.hero p.lead { font-size: 1.08rem; color: rgba(240,237,224,0.85); max-width: 640px; margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-portrait-wrap { order: -1; display: flex; justify-content: center; } }
.hero-portrait-wrap { display: flex; justify-content: center; }
.hero-portrait { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent-gold); box-shadow: 0 0 0 3px var(--eye-blue), 0 24px 60px -20px rgba(0,0,0,0.45); }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.trust-chip { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: rgba(240,237,224,0.9); }
.trust-chip b { color: var(--accent-gold); font-family: "Fraunces", serif; font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 0.95rem; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.9); }
.btn-secondary { border-color: rgba(240,237,224,0.4); color: var(--deep-ink); }
.btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* Sections */
section { padding: 56px 0; }
.section-label { font-family: "Fraunces", serif; font-style: italic; color: var(--accent); font-size: 0.95rem; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); max-width: 620px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.card a.card-link { font-size: 0.88rem; font-weight: 600; color: var(--deep); text-decoration: none; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.portrait { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); display: block; }
.portrait-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.portrait-row .portrait-name { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--deep-2); }
.portrait-row .portrait-role { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.band-dark .portrait { border-color: var(--accent-gold); }
.band-dark .portrait-row .portrait-name { color: var(--deep-ink); }
.band-dark .portrait-row .portrait-role { color: rgba(240,237,224,0.75); }

.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: baseline; font-size: 0.95rem; }
.info-list .k { font-family: "Fraunces", serif; font-style: italic; color: var(--muted); min-width: 110px; flex-shrink: 0; }

.band-dark {
  background-color: var(--deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ccircle cx='18' cy='24' r='2.2' fill='%23E3B98A' opacity='0.45'/%3E%3Ccircle cx='76' cy='58' r='1.6' fill='%23F0EDE0' opacity='0.3'/%3E%3Ccircle cx='108' cy='18' r='1.8' fill='%236E8499' opacity='0.4'/%3E%3Ccircle cx='42' cy='92' r='1.7' fill='%23E3B98A' opacity='0.35'/%3E%3Ccircle cx='112' cy='104' r='1.4' fill='%23F0EDE0' opacity='0.25'/%3E%3Ccircle cx='64' cy='16' r='1.3' fill='%236E8499' opacity='0.3'/%3E%3C/svg%3E");
  color: var(--deep-ink);
}
.band-dark h2 { color: var(--deep-ink); }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); margin-top: 28px; }
#carte-cabinet { height: 420px; width: 100%; border-radius: 14px; font-family: "Work Sans", sans-serif; }
.map-card .leaflet-container img { max-width: none !important; }
.map-card .leaflet-popup-content a { color: var(--deep); font-weight: 600; }
.map-caption { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 16px; }

/* Photo gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 28px; }
.photo-grid figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--muted); }

.figure-inline { float: right; margin: 4px 0 16px 24px; width: 180px; }
.figure-inline img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.figure-inline figcaption { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 8px; }
@media (max-width: 700px) { .figure-inline { float: none; width: 100%; max-width: 240px; margin: 16px auto; } }

/* Reviews marquee */
.reviews-band { background: var(--surface-2); overflow: hidden; padding: 52px 0; }
.reviews-track-wrap {
  overflow: hidden;
  margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-track { display: flex; gap: 20px; width: max-content; animation: reviews-scroll 46s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: 300px; flex-shrink: 0; box-shadow: var(--shadow); }
.review-card .source { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.review-card .stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.review-card p { color: var(--ink); font-size: 0.93rem; margin: 0 0 16px; font-style: italic; }
.review-card .who { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; color: var(--muted); }
.review-card .who b { color: var(--deep-2); font-family: "Fraunces", serif; font-style: normal; }
.reviews-source { margin-top: 24px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.reviews-source a { color: var(--deep); font-weight: 600; text-decoration: none; }
@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; flex-wrap: wrap; width: auto; }
  .reviews-track-wrap { -webkit-mask-image: none; mask-image: none; }
}
.reviews-band--compact { padding: 40px 0; }
.reviews-band--compact .reviews-track { animation-duration: 30s; }
.reviews-band--compact .review-card { width: 260px; padding: 18px; }

footer.site-footer { background: var(--deep-2); color: rgba(240,237,224,0.7); padding: 40px 0; font-size: 0.86rem; }
footer.site-footer a { color: rgba(240,237,224,0.85); }
footer.site-footer .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { footer.site-footer .foot-grid { grid-template-columns: 1fr; } nav.main-nav { display: none; } }
footer.site-footer h4 { font-family: "Fraunces", serif; color: var(--deep-ink); font-size: 0.95rem; margin-bottom: 12px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(240,237,224,0.15); font-size: 0.78rem; opacity: 0.7; }

/* Recherche (Pagefind) */
.search-trigger { background: none; border: none; color: var(--deep-ink); font-size: 1.1rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; flex-shrink: 0; }
.search-trigger:hover { background: rgba(240,237,224,0.12); }
.search-modal { position: fixed; inset: 0; background: rgba(12,24,38,0.55); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px; }
.search-modal-inner { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); width: min(100%, 640px); max-height: 78vh; overflow-y: auto; padding: 24px; position: relative; }
.search-modal-close { position: absolute; top: 14px; right: 14px; background: var(--surface-2); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: var(--ink); font-size: 0.95rem; }
.search-modal-close:hover { background: var(--line); }
#search .pagefind-ui { --pagefind-ui-primary: var(--deep); --pagefind-ui-text: var(--ink); --pagefind-ui-background: var(--surface); --pagefind-ui-border: var(--line); --pagefind-ui-font: "Work Sans", system-ui, sans-serif; }
