/*
 * kyre.luxury — site public.
 * Luxe silencieux : beaucoup d'espace, une typographie soignée, des animations à peine perceptibles.
 * Aucun attribut style="" dans les pages : la CSP l'interdit. Tout passe par des classes.
 */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
    --ink: #14171C;
    --paper: #F6F3EC;
    --brass: #9C7C4E;
    --brass-light: #C9AD7E;
    --brass-dark: #7A5F37;
    --slate: #3A3F47;
    --stone: #D8D2C4;
    --surface: #FBF9F4;
    --sunk: #EFEBE1;
    --muted: #5B606A;
    --danger: #8A3B32;
    --danger-bg: #F4E6E2;
    --success: #4D6647;
    --success-bg: #E8EDE3;

    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6.5rem;
    --max: 72rem;
    --narrow: 44rem;
    --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--brass);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 var(--s2); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 var(--s2); }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 0.25em; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
address { font-style: normal; margin-bottom: var(--s2); }
.h-serif { font-family: var(--serif); }
.text-small { font-size: 0.875rem; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: var(--s1); background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2); z-index: 20; }
.skip-link:focus { left: var(--s1); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--narrow)); }

.eyebrow { margin: 0 0 var(--s2); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-dark); font-weight: 500; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--slate); max-width: 38rem; }

/* --- En-tête -------------------------------------------------------------- */

.site-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s2); }
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand__logo { height: 1.9rem; width: 2.3rem; color: var(--brass); flex-shrink: 0; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.02em; }
.brand__tag { display: none; font-family: var(--serif); font-style: italic; font-size: 0.8rem; color: var(--brass-light); margin-top: 3px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--slate); color: var(--paper); font: inherit; font-size: 0.875rem; padding: 0.45rem 0.9rem; border-radius: 2px; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { border-color: var(--brass); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s3); }
.site-nav a { color: var(--stone); text-decoration: none; font-size: 0.9375rem; padding: 0.4rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--brass); }
.site-nav .btn { border-bottom: 1px solid var(--brass); padding: 0.55rem 1.1rem; }

/* Avec JavaScript, le menu se replie sur mobile ; sans JavaScript, il reste déplié. */
@media (max-width: 56rem) {
    .site-header__bar { flex-wrap: wrap; }
    .js .nav-toggle { display: inline-flex; }
    .site-nav { width: 100%; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding-block: var(--s1) var(--s2); }
    .site-nav li { width: 100%; border-top: 1px solid var(--slate); }
    .site-nav a { display: block; padding: 0.8rem 0; }
    .site-nav .btn { display: inline-block; margin: 0.6rem 0; }
    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: block; }
}
@media (min-width: 70rem) { .brand__tag { display: block; } }

/* --- Boutons -------------------------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.6rem; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font: inherit; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { background: var(--slate); border-color: var(--slate); color: var(--paper); }
/* Laiton un peu plus profond que celui du logo : le texte blanc reste lisible (contraste 4,9 : 1). */
.btn--brass { background: #8A6B3F; border-color: #8A6B3F; color: #fff; }
.btn--brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgb(246 243 236 / 0.1); color: inherit; border-color: var(--brass); }
.site-nav .btn--ghost { color: var(--paper); border-color: var(--brass); }
.page-head .btn--ghost, .section:not(.section--dark) .btn--ghost { color: var(--ink); }
.page-head .btn--ghost:hover, .section:not(.section--dark) .btn--ghost:hover { background: var(--sunk); }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* --- Héro : photo plein écran ---------------------------------------------- */

.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(26rem, 68svh, 44rem); background: var(--ink); color: var(--paper); overflow: hidden; }
.hero--tall { min-height: clamp(32rem, 88svh, 56rem); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 50%; }
/* Voile : le texte reste lisible quelle que soit la photo, sans l'assombrir plus que nécessaire. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 23 28 / 0.35) 0%, rgb(20 23 28 / 0.15) 35%, rgb(20 23 28 / 0.78) 100%); }
.hero__content { padding-block: var(--s6) var(--s5); }
.hero .eyebrow { color: var(--brass-light); }
.hero h1 { max-width: 16ch; margin-bottom: var(--s3); text-shadow: 0 2px 24px rgb(0 0 0 / 0.45); animation: rise 0.9s ease-out both; }
.hero .lead { color: #E7E2D6; max-width: 40rem; animation: rise 0.9s 0.15s ease-out both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); animation: rise 0.9s 0.3s ease-out both; }

/* Cadrage : le sujet de chaque photo reste visible, y compris en format portrait (téléphone). */
.hero--hero-accueil .hero__media img { object-position: 52% 40%; }
.hero--hero-vendre .hero__media img { object-position: 50% 30%; }
.hero--hero-acheter .hero__media img { object-position: 78% 25%; }
.hero--hero-services .hero__media img { object-position: 50% 45%; }
.hero--hero-honoraires .hero__media img { object-position: 55% 50%; }
.hero--hero-faq .hero__media img { object-position: 45% 55%; }
.hero--hero-contact .hero__media img { object-position: 60% 50%; }
@media (min-width: 56rem) {
    .hero--hero-acheter .hero__media img { object-position: 70% 28%; }
}
@media (min-width: 48rem) { .grid--2 > :only-child { grid-column: 1 / -1; max-width: var(--narrow); } }

/* --- Sections ------------------------------------------------------------- */

.section { padding-block: var(--s5); }
.section--sunk { background: var(--sunk); }
@media (min-width: 56rem) { .section { padding-block: var(--s6); } }
.page-head { padding-block: var(--s5) var(--s4); border-bottom: 1px solid var(--stone); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .alert { margin-top: var(--s3); }

.grid { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 48rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 56rem) { .grid--contact { grid-template-columns: 1.4fr 0.8fr; gap: var(--s5); } }

.card { background: var(--surface); border: 1px solid var(--stone); padding: var(--s4) var(--s3); }
.card h3 { margin-bottom: var(--s1); }
.card p:last-child { margin-bottom: 0; }
.card--plan { text-align: center; padding-block: var(--s4); }
.card--featured { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.plan__rate { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--brass-dark); margin: var(--s1) 0 var(--s2); }

.steps { list-style: none; counter-reset: step; margin: var(--s3) 0; padding: 0; display: grid; gap: var(--s3); }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.15rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; font-family: var(--serif); font-size: 1.1rem; color: var(--brass-dark); }
.steps--wide { max-width: 52rem; }

.levels { margin: var(--s3) 0 0; }
.levels dt { font-family: var(--serif); font-size: 1.2rem; margin-top: var(--s2); }
.levels dd { margin: 0; color: var(--slate); }
.notes { margin: var(--s4) 0 0; padding-left: 1.2rem; color: var(--slate); display: grid; gap: var(--s1); }
.checks { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: var(--s2); }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 1rem; height: 1px; background: var(--brass); }

.faq details { border-top: 1px solid var(--stone); padding: var(--s2) 0; }
.faq details:last-child { border-bottom: 1px solid var(--stone); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--s1) 0 0; color: var(--slate); max-width: 38rem; }

.cta-band { background: var(--ink); color: var(--paper); text-align: center; padding-block: var(--s5); }
.cta-band p { color: var(--stone); }
.cta-band .btn--ghost { color: var(--paper); }
.cta-band .btn--ghost:hover { background: rgb(246 243 236 / 0.1); }

.prose h2 { font-size: 1.6rem; margin-top: var(--s4); }
.prose ul { padding-left: 1.2rem; }

/* --- Photos et compositions ----------------------------------------------- */

picture img { width: 100%; height: auto; }
.todo { background: #F1E2B8; color: var(--ink); padding: 0 0.25em; border-radius: 2px; font-size: 0.9em; }

.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--brass-light); }
.section--dark .lead, .section--dark p { color: #D9D4C8; }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark a:not(.btn) { color: var(--brass-light); }
.section--dark .levels dd { color: #D9D4C8; }
.section--dark .checks li::before { background: var(--brass-light); }

.btn--light { background: transparent; color: var(--paper); border-color: rgb(246 243 236 / 0.7); }
.btn--light:hover { background: rgb(246 243 236 / 0.12); color: var(--paper); border-color: var(--paper); }

.timeline { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.timeline li { border-top: 1px solid rgb(201 173 126 / 0.5); padding-top: var(--s3); }
.timeline__n { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brass-light); margin-bottom: var(--s2); }

.duo { display: grid; gap: var(--s6); }
.duo__item { display: grid; gap: var(--s3); align-items: center; }
@media (min-width: 56rem) {
    .duo__item { grid-template-columns: 1fr 1fr; gap: var(--s5); }
    .duo__item--reverse .duo__photo { order: 2; }
}
.duo__photo img, .split__photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.duo__text h2 { margin-bottom: var(--s2); }
.duo__text p:last-child { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.split { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 56rem) {
    .split { grid-template-columns: 1.1fr 0.9fr; gap: var(--s5); }
    .split--reverse { grid-template-columns: 0.9fr 1.1fr; }
}
.split__photo img { aspect-ratio: 4 / 5; }
.split--reverse .split__photo img { aspect-ratio: 4 / 4.4; }

.panel { border: 1px solid rgb(201 173 126 / 0.45); padding: var(--s4) var(--s3); background: rgb(246 243 236 / 0.04); }
.panel h3 { margin-bottom: var(--s2); }
.panel--light { background: var(--surface); border-color: var(--stone); color: var(--ink); }
.panel--light p { color: var(--slate); }
.plan__rate--small { font-size: 2.4rem; }
.plan__rate small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.plan__list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); text-align: left; }
.plan__list li { position: relative; padding-left: 1.5rem; color: var(--slate); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.8rem; height: 1px; background: var(--brass); }
.plan__list .plan__note { color: var(--muted); font-size: 0.9rem; }
.steps--dark li::before { border-color: var(--brass-light); color: var(--brass-light); }
.faq__group { margin-top: var(--s5); font-size: 1.5rem; }
.faq__group:first-of-type { margin-top: 0; }

/* --- Formulaire ----------------------------------------------------------- */

.form { display: grid; gap: var(--s3); }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--slate); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #BFB7A6; border-radius: 2px; padding: 0.75rem 0.9rem; min-height: 3rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; font-size: 0.875rem; color: var(--danger); }
.hint { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; font-weight: 400; color: var(--slate); }
.check input { margin-top: 0.3em; width: 1.05rem; height: 1.05rem; accent-color: var(--ink); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: var(--s2) var(--s3); border: 1px solid var(--stone); border-left-width: 3px; background: var(--surface); margin-bottom: var(--s3); }
.alert--success { border-color: var(--success); background: var(--success-bg); }
.alert--error { border-color: var(--danger); background: var(--danger-bg); }
.alert--info { border-color: var(--brass); background: #EDE6D8; }
.contact-card { background: var(--surface); border: 1px solid var(--stone); padding: var(--s3); align-self: start; }

/* --- Pied de page --------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--stone); padding-block: var(--s5) var(--s4); font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer a { color: var(--stone); text-decoration-color: var(--brass); }
.site-footer a:hover { color: var(--paper); }
.site-footer__brand { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin-bottom: 0.2rem; }
.site-footer__tag { font-family: var(--serif); font-style: italic; color: var(--brass-light); }
.site-footer__small { font-size: 0.8125rem; color: #A5A9B1; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

/* --- Mouvement discret ---------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease-out, transform 0.9s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero h1, .hero .lead, .hero__actions { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
}

/* --- Propositions de l'audit : comparatif, formules, calculateur, contact permanent ------------ */

.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s3); } }
.card--plain { background: transparent; border: 0; border-top: 1px solid var(--brass); padding: var(--s3) 0 0; }
.card--plain h3 { font-size: 1.3rem; }
.timeline--4 { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .timeline--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .timeline--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }

.compare { border: 1px solid var(--stone); background: var(--surface); }
.compare__head, .compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.compare__head span { padding: var(--s2) var(--s3); font-family: var(--serif); font-size: 1.2rem; border-bottom: 1px solid var(--stone); }
.compare__head span:last-child { background: var(--ink); color: var(--paper); }
.compare__row span { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--stone); }
.compare__row:last-child span { border-bottom: 0; }
.compare__classic { color: var(--muted); }
.compare__kyre { font-weight: 500; background: #EDE6D8; }
.compare__note { margin-top: var(--s2); }

.matrix { border: 1px solid var(--stone); background: var(--surface); margin-top: var(--s2); }
.matrix__row { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); align-items: center; }
.matrix__row > span { padding: var(--s2); border-bottom: 1px solid var(--stone); }
.matrix__row:last-child > span { border-bottom: 0; }
.matrix__row--head > span { font-family: var(--serif); font-size: 1.1rem; background: var(--ink); color: var(--paper); border-bottom: 0; text-align: center; }
.matrix__row--head > span:first-child { text-align: left; }
.matrix__cell { text-align: center; }
.matrix__yes { color: var(--brass-dark); font-size: 0.9rem; }
.matrix__no { color: #A5A9B1; }
.matrix__text { font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 40rem) {
    .matrix__row { grid-template-columns: 1.4fr repeat(3, 1fr); }
    .matrix__row > span { padding: 0.6rem 0.4rem; font-size: 0.8125rem; }
    .matrix__row--head > span { font-size: 0.8125rem; }
    .matrix__text { font-size: 0.7rem; }
}

.calc { margin-top: var(--s4); padding: var(--s3); border: 1px solid var(--stone); background: var(--surface); max-width: 36rem; }
.calc label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--slate); margin-bottom: 0.4rem; }
.calc input { max-width: 16rem; }
.calc__result { margin: var(--s2) 0; display: grid; gap: 0.4rem; }
.calc__result div { display: flex; justify-content: space-between; gap: var(--s2); border-bottom: 1px solid var(--stone); padding-bottom: 0.3rem; }
.calc__result dt { color: var(--slate); }
.calc__result dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; }

/* Barre de contact permanente (téléphone) : le rendez-vous reste à un geste */
.contact-bar { display: none; }
@media (max-width: 56rem) {
    .contact-bar { position: fixed; inset: auto 0 0 0; z-index: 9; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); padding: 0.6rem 1rem; background: var(--ink); border-top: 1px solid var(--slate); }
    .contact-bar .btn { min-height: 2.75rem; }
    body { padding-bottom: 4rem; }
}
.compare__head span, .compare__row span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 40rem) { .compare__head span, .compare__row span { padding: var(--s2); font-size: 0.9375rem; } }
