/* ==========================================================================
   LMF Rénovation — style.css (design d’origine restauré)
   Polices : assets/fonts/fonts.css · Icônes : vendor/boxicons (copies locales)
   ========================================================================== */

:root {
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #131b27;
  --muted: #5d6a7c;
  --line: #d6dbe1;
  --blue: #165aa6;
  --blue-light: #e1ecf8;
  --dark: #03316c;
  --yellow: #f6bf10; /* jaune du logo : petites touches uniquement (filets, survols, numéros) */
  --display: "Playfair Display", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --heading: "Manrope", Arial, sans-serif;
  /* alias utilisés par l'espace admin */
  --serif: var(--display);
  --sans: var(--heading);
  --deep: var(--dark);
  --width: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: #cfe2f6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.hero :focus-visible, .method :focus-visible, .footer :focus-visible { outline-color: #aed2f2; }

h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.14; letter-spacing: -1.5px; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 6.5vw, 6.4rem); letter-spacing: -4px; }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.4rem); letter-spacing: -2.4px; }
h3 { font-size: 1.45rem; letter-spacing: -.8px; }
h1 em, h2 em { color: #aed2f2; font-family: var(--display); font-weight: 500; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 2000; padding: 12px 16px; background: var(--dark); color: #fff; font-size: .78rem; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

.page-width { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.section-wrap { padding: 120px max(6.5vw, 28px); }
.muted { color: var(--muted); }
.small { font-size: .7rem; }
.eyebrow { display: block; margin-bottom: 20px; color: var(--blue); font-size: .69rem; font-weight: 700; letter-spacing: 2.1px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid #b5beca; font-size: .82rem; font-weight: 700; transition: color .2s, border-color .2s; }
.text-link i { font-size: 1.1rem; transition: transform .2s; }
.text-link:hover { color: var(--blue); border-color: var(--yellow); }
.text-link:hover i { transform: translateX(4px); }

.button { display: inline-flex; min-height: 53px; align-items: center; justify-content: center; gap: 15px; padding: 13px 22px; border: 1px solid transparent; font-size: .8rem; font-weight: 700; line-height: 1.3; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button i { font-size: 1.15rem; }
.button-dark { background: var(--dark); color: #fff; }
.button-dark:hover { background: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--blue-light); }
.button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Navigation ---------- */
.header { position: sticky; z-index: 1000; top: 0; background: rgba(243, 245, 248, .96); border-bottom: 1px solid var(--line); }
.nav-shell { width: min(1500px, 100%); min-height: 98px; margin: auto; padding: 0 6.5%; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.brand { display: flex; align-items: center; min-width: 170px; }
.logo { display: block; width: 240px; max-height: 78px; object-fit: contain; object-position: left center; }
.navigation ul { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 36px); list-style: none; }
.navigation a { color: #3d495a; font-size: .77rem; font-weight: 600; transition: color .2s; }
.navigation a:hover { color: var(--blue); }
.nav-button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--dark); color: #fff; font-size: .74rem; font-weight: 700; white-space: nowrap; transition: background .2s; }
.nav-button:hover { background: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-button i { font-size: 1.1rem; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(770px, calc(100vh - 98px)); min-height: min(770px, calc(100svh - 98px)); display: flex; align-items: center; overflow: hidden; color: #fff; background: #1a2431; }
.hero-photo { position: absolute; inset: 0; background: #1a2431; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 16, 22, .84) 0%, rgba(12, 16, 22, .67) 40%, rgba(12, 16, 22, .13) 100%); }
.hero-inner { position: relative; z-index: 1; width: min(1500px, 100%); margin: auto; padding: 105px 9% 125px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #dfe4ea; font-size: .68rem; font-weight: 700; letter-spacing: 2.4px; }
.hero-kicker span { width: 27px; height: 1px; background: var(--yellow); }
.hero h1 { max-width: 850px; }
.hero-copy { max-width: 530px; margin-top: 25px; color: #dee2e6; font-size: .97rem; line-height: 1.9; }
.hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 35px; }
.hero-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: .78rem; font-weight: 600; }
.hero-link i { color: #c4dcf3; font-size: 1.1rem; }
.hero-bottom { position: absolute; right: 6.5%; bottom: 0; left: 6.5%; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .3); color: #e0e4ea; font-size: .63rem; font-weight: 600; letter-spacing: 1.5px; }
.hero-bottom i { margin-left: 12px; font-size: 1rem; }

/* ---------- Introduction ---------- */
.intro { background: var(--paper); }
.intro-label { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.small-index { color: #8793a4; font-size: .65rem; letter-spacing: 1.3px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9%; align-items: start; }
.intro-grid h2 { max-width: 630px; }
.intro-grid h2 em, .section-heading h2 em, .reviews h2 em, .final-contact h2 em, .appointment-intro h2 em { color: var(--blue); }
.intro-text { padding-top: 6px; }
.intro-text p { margin-bottom: 18px; color: var(--muted); font-size: .91rem; }
.intro-text .text-link { margin-top: 12px; }
.intro-rule { height: 1px; margin-top: 60px; background: var(--line); }
.intro-details { display: flex; flex-wrap: wrap; gap: 18px 42px; padding-top: 25px; }
.intro-details span { display: inline-flex; align-items: center; gap: 8px; color: #465366; font-size: .77rem; }
.intro-details i { color: var(--blue); font-size: 1.1rem; }

/* ---------- Prestations ---------- */
.services { background: #e8ecf1; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 48px; }
.section-heading > p { max-width: 350px; padding-bottom: 7px; color: var(--muted); font-size: .87rem; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.service-card { min-width: 0; }
.service-image { position: relative; display: block; height: 290px; overflow: hidden; background-color: #cfd4db; background-position: center; background-size: cover; }
.service-large .service-image { height: 410px; }
.service-wide { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 28px; }
.service-wide .service-image { height: 290px; }
/* Photos des prestations : balises <img> configurables dans l’administration (Images du site), même cadrage qu’à l’origine. */
.service-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-image::after { position: absolute; inset: 0; border: 1px solid rgba(0, 0, 0, .04); content: ""; pointer-events: none; }
.service-content { padding-top: 23px; }
.service-number { display: block; margin-bottom: 13px; color: var(--blue); font-size: .65rem; font-weight: 700; letter-spacing: 1.6px; }
.service-content h3 { margin-bottom: 13px; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.service-content p { max-width: 450px; margin-bottom: 20px; color: var(--muted); font-size: .84rem; line-height: 1.85; }
.service-content .text-link { font-size: .77rem; }
.service-wide .service-content { padding-top: 0; }

/* ---------- Approche ---------- */
.method { display: grid; grid-template-columns: 1fr 1fr; min-height: 700px; background: var(--dark); color: #fff; }
.method-image { position: relative; min-height: 600px; overflow: hidden; background: #212f43; }
.method-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-content { align-self: center; max-width: 680px; padding: 90px clamp(35px, 7vw, 115px); }
.method-content h2 { margin-bottom: 25px; }
.method-content > p { margin-bottom: 35px; color: #b6bdc7; font-size: .87rem; line-height: 1.9; }
.method-content .eyebrow { color: #aed2f2; }
.method-content h2 em { color: #aed2f2; }
.method-step { display: grid; grid-template-columns: 35px 1fr; gap: 13px; padding: 19px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.method-step > span { padding-top: 3px; color: var(--yellow); font-size: .72rem; font-weight: 700; }
.method-step h3 { margin-bottom: 5px; font-size: 1rem; letter-spacing: -.3px; }
.method-step p { color: #b6bdc7; font-size: .78rem; }
.method-content .button { margin-top: 27px; }

/* ---------- Avis ---------- */
.reviews { background: var(--paper); }
.reviews-inner { display: grid; grid-template-columns: 1fr .7fr; align-items: center; gap: 70px; }
.reviews-text p { margin-bottom: 25px; color: var(--muted); font-size: .9rem; }
.reviews-text .button { width: fit-content; }

/* ---------- Rendez-vous ---------- */
.appointment { padding: 115px max(6.5vw, 28px); background: #e7eaee; }
.appointment-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 8vw, 120px); width: min(1250px, 100%); margin: auto; align-items: start; }
.appointment-intro { position: sticky; top: 125px; }
.appointment-intro h2 { margin-bottom: 25px; }
.appointment-intro > p { color: var(--muted); font-size: .91rem; }
.appointment-contact { display: grid; gap: 14px; margin-top: 30px; }
.contact-line { display: flex; align-items: center; gap: 14px; }
.contact-line > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #cbd0d7; color: var(--blue); font-size: 1.15rem; transition: background .2s, border-color .2s; }
.contact-line:hover > i { background: #fff; border-color: var(--blue); }
.contact-line small { display: block; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: 1.4px; line-height: 1.4; }
.contact-line strong { display: block; font: 600 .86rem/1.4 var(--heading); overflow-wrap: anywhere; }
.appointment-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #cbd0d7; }
.appointment-note i { flex-shrink: 0; color: var(--blue); font-size: 1.35rem; }
.appointment-note p { color: #536278; font-size: .79rem; }

.appointment-form { padding: clamp(24px, 4vw, 48px); background: var(--paper); }
.form-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-heading > span { font-size: .68rem; font-weight: 700; letter-spacing: 1.6px; }
.form-heading p { color: var(--muted); font-size: .72rem; }
.form-notice { margin-top: 22px; padding: 14px 16px; background: #fff; border-left: 2px solid var(--blue); color: #3d495a; font-size: .78rem; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; padding-top: 25px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .76rem; font-weight: 600; }
.optional { color: #8794a5; font-weight: 400; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 47px; padding: 12px 13px; border: 1px solid #d0d5db; border-radius: 0; outline: none; background-color: #fff; color: var(--ink); font-family: var(--body); font-size: .82rem; transition: border-color .2s, box-shadow .2s; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23131b27' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field select:disabled { opacity: .55; cursor: not-allowed; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22, 90, 166, .14); }
.field input:user-invalid, .field select:user-invalid { border-color: #cf8b8b; }
.field input::placeholder, .field textarea::placeholder { color: #8794a5; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .72rem; line-height: 1.7; cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--dark); }
.privacy-note { display: flex; align-items: flex-start; gap: 9px; margin: 23px 0; color: var(--muted); font-size: .7rem; line-height: 1.7; }
.privacy-note i { flex-shrink: 0; color: var(--blue); font-size: 1.05rem; }
.submit-button { width: 100%; border: 0; }
.form-status { margin-top: 14px; color: var(--blue); font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status.error, .is-error { color: #a32626; }
.is-success { color: #2e7650; }

/* ---------- Contact final ---------- */
.final-contact { text-align: center; }
.final-contact h2 { margin-bottom: 30px; }
.final-contact .button { margin: 0 auto; }
.google-link { display: block; width: fit-content; margin: 23px auto 0; color: var(--muted); font-size: .76rem; }
.google-link:hover { color: var(--blue); }

/* ---------- Pied de page ---------- */
.footer { padding: 50px max(6.5vw, 28px) 0; background: #03316c; color: #fff; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 35px; width: min(1500px, 100%); margin: auto; padding-bottom: 35px; }
.footer-logo { width: 225px; max-height: 75px; object-fit: contain; object-position: left center; }
.footer-about { max-width: 360px; }
.footer-about p { color: #bdc4ce; font-size: .78rem; }
.footer-contact { display: grid; gap: 4px; margin-top: 12px; font-size: .74rem; }
.footer-contact a { color: #dee2e8; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--yellow); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: #dee2e8; font-size: .72rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; width: min(1500px, 100%); margin: auto; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); color: #b2bac6; font-size: .7rem; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Administration (admin.php) — mêmes classes qu'avant, palette mise à jour
   ========================================================================== */
.brand-mark { width: 42px; height: 42px; border: 1px solid var(--ink); display: grid; place-items: center; font: 700 24px var(--serif); letter-spacing: -3px; }
.brand-mark span { color: var(--blue); }
.brand-name { font: 800 15px var(--sans); letter-spacing: -.5px; line-height: 1.1; }
.brand-name small { display: block; font: 500 10px var(--body); letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.admin-body { min-height: 100vh; background: #eceff3; }
.admin-body h1, .admin-body h2, .admin-body h3 { letter-spacing: -.3px; text-wrap: auto; }
.auth-wrap { width: min(520px, calc(100% - 36px)); margin: 0 auto; padding: 55px 0; }
.auth-card { margin-top: 55px; background: #fff; padding: 40px; }
.auth-card h1, .admin-heading h1 { font: 500 42px/1.15 var(--serif); letter-spacing: -1px; margin: 0 0 16px; }
.auth-card > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; }
.auth-form { margin-top: 28px; }
.auth-form label, .slot-form label { display: block; font-size: 11px; font-weight: 700; color: #384251; margin-bottom: 17px; }
.auth-form input, .slot-form input, .slot-form select { display: block; width: 100%; margin-top: 8px; border: 1px solid #dadfe5; background-color: #fbfbf8; padding: 13px 12px; min-height: 46px; color: var(--ink); border-radius: 0; font-size: 12px; font-weight: 400; outline: none; transition: border-color .2s; }
.slot-form select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23131b27' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.auth-form input:focus, .slot-form input:focus, .slot-form select:focus { border-color: var(--blue); }
.auth-form .button { width: 100%; margin-top: 8px; }
.back-link { display: inline-block; margin-top: 24px; font-size: 11px; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.auth-card code { font-size: 11px; word-break: break-word; }
.alert { margin-top: 16px; padding: 12px; background: #fff1ef; color: #9e3d32; font-size: 12px; }

.admin-top { height: 82px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - var(--width)) / 2)); border-bottom: 1px solid var(--line); }
.admin-top-right { display: flex; align-items: center; gap: 25px; }
.admin-live { font-size: 11px; color: #58687f; }
.admin-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4d986a; margin-right: 7px; }
.logout-link { font-size: 11px; font-weight: 700; }
.admin-main { padding-top: 65px; padding-bottom: 65px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-heading h1 { font-size: 53px; }
.admin-heading h1 em { color: var(--blue); font-weight: 500; }
.admin-heading .muted { font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 25px; background: #fff; border: 1px solid var(--line); }
.admin-stats > div { padding: 22px 25px; border-right: 1px solid var(--line); }
.admin-stats > div:last-child { border: 0; }
.admin-stats span { display: block; font: 700 9px var(--sans); letter-spacing: 1.3px; color: var(--muted); }
.admin-stats strong { display: block; font: 500 34px var(--serif); margin-top: 8px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.admin-panel { background: #fff; padding: 30px; border: 1px solid var(--line); min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.panel-heading h2 { font: 500 25px var(--serif); margin: 0; }
.panel-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 19px; }
.slot-form > .button { width: 100%; margin-top: 4px; }
.slot-form label.check-line, .check-line { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row > label { min-width: 0; }
.check-line input { width: auto; min-height: 0; margin-top: 4px; accent-color: var(--dark); }
.panel-divider { height: 1px; background: var(--line); margin: 30px 0; }
.slot-list, .booking-list { display: grid; gap: 10px; }
.slot-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 29px 29px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e7eaef; }
.slot-date { height: 44px; background: #edf0f4; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.slot-date strong { font: 600 18px var(--serif); }
.slot-date span { font: 700 8px var(--sans); letter-spacing: 1px; color: var(--muted); margin-top: 4px; }
.slot-details strong, .slot-details small { display: block; }
.slot-details strong { font: 700 12px var(--sans); }
.slot-details small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.status-pill { display: inline-block; padding: 5px 8px; font: 700 9px var(--sans); white-space: nowrap; }
.is-open:not(.navigation) { background: #e9f3e9; color: #39744b; }
.is-closed { background: #eee; color: #687383; }
.is-pending { background: #f7efdd; color: #8b6b28; }
.mini-action { height: 28px; width: 28px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; line-height: 1; color: #4e5c70; }
.mini-action.danger { color: #9c5148; }
.mini-action:hover, .small-button:hover { background: #edf0f4; }
.panel-description { font-size: 12px; line-height: 1.7; margin: -8px 0 20px; }
.booking-card { border: 1px solid #dfe4ea; padding: 17px; }
.booking-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.booking-date { font-size: 10px; color: var(--muted); }
.booking-card h3 { font: 600 18px var(--serif); margin: 13px 0 2px; }
.booking-service { font-size: 11px; color: var(--blue); font-weight: 700; margin: 0 0 12px; }
.booking-details { display: grid; gap: 4px; font-size: 11px; color: #5d6a7c; }
.booking-details a { width: fit-content; }
.booking-details a:hover { text-decoration: underline; }
.booking-message { font-size: 11px; line-height: 1.7; padding-top: 10px; border-top: 1px solid #e7eaef; overflow-wrap: anywhere; }
.booking-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.small-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 10px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; vertical-align: middle; }
.danger-text { color: #a0473c; }
.empty-state { background: #f4f6f8; padding: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.admin-footnote { font-size: 11px; color: var(--muted); margin-top: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1500px) {
  .section-wrap { padding-right: max(6.5vw, calc((100vw - 1300px) / 2)); padding-left: max(6.5vw, calc((100vw - 1300px) / 2)); }
}

@media (max-width: 1100px) {
  .nav-shell { gap: 20px; padding-inline: 4%; }
  .logo { width: 195px; max-height: 66px; }
  .navigation ul { gap: 17px; }
  .navigation a { font-size: .72rem; }
  .nav-button { padding: 11px; font-size: .69rem; }
  .section-wrap { padding: 90px 5%; }
  .method-content { padding: 65px 45px; }
  .appointment { padding-inline: 5%; }
  .appointment-inner { gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: 1fr; }
  .booking-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .nav-shell { min-height: 75px; padding-inline: 25px; }
  .menu-toggle { display: flex; margin-left: auto; margin-right: -10px; }
  .nav-button { display: none; }
  .navigation { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 12px 25px 24px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 15px 25px rgba(16, 28, 44, .08); }
  .navigation.is-open, .navigation.open { display: block; }
  .navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .navigation li { border-bottom: 1px solid var(--line); }
  .navigation li:last-child { border-bottom: 0; }
  .navigation a { display: block; padding: 13px 0; font-size: .85rem; }
  .hero { min-height: 660px; }
  .hero-inner { padding: 100px 7% 120px; }
  .hero h1 { font-size: clamp(3.1rem, 8vw, 5rem); letter-spacing: -2.8px; }
  .intro-grid, .reviews-inner { grid-template-columns: 1fr; gap: 28px; }
  .intro-grid h2 { max-width: 650px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-heading > p { max-width: 500px; }
  .service-image { height: 250px; }
  .service-large .service-image { height: 320px; }
  .service-wide { grid-template-columns: 1fr; gap: 0; }
  .service-wide .service-image { height: 280px; }
  .service-wide .service-content { padding-top: 23px; }
  .method { grid-template-columns: 1fr; }
  .method-image { min-height: 430px; }
  .method-content { max-width: none; padding: 75px 7%; }
  .appointment-inner { grid-template-columns: 1fr; gap: 35px; }
  .appointment-intro { position: static; }
  .appointment { padding-block: 80px; }
  /* 16px minimum : évite le zoom automatique d'iOS dans les champs */
  .field input, .field select, .field textarea, .auth-form input, .slot-form input, .slot-form select { font-size: 16px; }

  .page-width { width: calc(100% - 38px); }
  .auth-card { padding: 28px 22px; margin-top: 35px; }
  .auth-card h1 { font-size: 36px; }
  .admin-top { height: auto; min-height: 74px; padding: 14px 18px; gap: 12px; }
  .admin-top-right { gap: 12px; }
  .admin-live { display: none; }
  .admin-main { padding-top: 42px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading h1 { font-size: 43px; }
  .admin-stats > div { padding: 15px 12px; }
  .admin-stats span { font-size: 8px; letter-spacing: .5px; }
  .admin-stats strong { font-size: 27px; }
  .admin-panel { padding: 20px 15px; }
  .booking-list { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 39px minmax(0, 1fr) auto 27px 27px; gap: 6px; }
  .slot-details small { font-size: 9px; }
  .status-pill { font-size: 8px; padding: 5px 6px; }
  .slot-date { height: 39px; }
  .panel-heading h2 { font-size: 22px; }
  .admin-grid { gap: 15px; }
}

@media (max-width: 540px) {
  body { font-size: 14px; }
  .section-wrap { padding: 72px 22px; }
  h2 { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: -1.5px; }
  .logo { width: 180px; max-height: 60px; }
  .hero { min-height: 650px; }
  .hero-photo img { object-position: 55% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(12, 16, 22, .82), rgba(12, 16, 22, .43)); }
  .hero-inner { padding: 90px 23px 125px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4rem); letter-spacing: -2.3px; }
  .hero-copy { font-size: .87rem; }
  .hero-buttons { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-bottom { right: 23px; left: 23px; font-size: .55rem; letter-spacing: .8px; }
  .hero-bottom span:last-child { text-align: right; }
  .intro-label { align-items: flex-start; flex-direction: column; gap: 0; }
  .intro-rule { margin-top: 35px; }
  .intro-details { flex-direction: column; gap: 13px; }
  .service-grid { grid-template-columns: 1fr; gap: 35px; }
  .service-image, .service-large .service-image, .service-wide .service-image { height: 260px; }
  .method-image { min-height: 330px; }
  .method-content { padding: 65px 23px; }
  .reviews-inner { gap: 25px; }
  .appointment { padding: 65px 17px; }
  .appointment-form { padding: 24px 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field-full { grid-column: auto; }
  .form-heading { align-items: flex-start; flex-direction: column; }
  .footer { padding: 38px 22px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { grid-column: auto; flex-direction: column; gap: 10px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 390px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .slot-row { grid-template-columns: 39px minmax(0, 1fr) 27px 27px; }
  .slot-row .status-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
/* ==========================================================================
   Avis clients (index.php)
   ========================================================================== */
.stars { display: inline-block; color: #f6bf10; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.stars-off { color: #cdd2d9; }
.stars-precise { position: relative; color: #cdd2d9; }
.stars-precise .stars-on { position: absolute; top: 0; left: 0; overflow: hidden; color: #f6bf10; }

.client-reviews { background: var(--white); border-top: 1px solid var(--line); }
.review-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; grid-template-areas: "summary list" "form list"; gap: 28px clamp(32px, 5vw, 72px); width: min(1250px, 100%); margin: 56px auto 0; align-items: start; }
.review-summary { grid-area: summary; padding: 32px; background: var(--paper); border: 1px solid var(--line); }
.review-list { grid-area: list; min-width: 0; }
.review-form { grid-area: form; border: 1px solid var(--line); }
.review-score { display: flex; align-items: center; gap: 20px; }
.review-score > strong { font: 500 clamp(3rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -2px; }
.review-score .stars { display: block; margin-bottom: 6px; font-size: 1.35rem; }
.review-count { display: block; color: var(--muted); font-size: .78rem; }
.review-bars { display: grid; gap: 9px; margin-top: 26px; }
.review-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 12px; color: var(--muted); font-size: .72rem; }
.review-bar-track { height: 6px; background: #dde2e8; overflow: hidden; }
.review-bar-track i { display: block; height: 100%; background: #f6bf10; }
.review-bar b { color: var(--ink); font-weight: 600; text-align: right; }
.review-cards { display: grid; gap: 18px; }
.review-card { padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); }
.review-card-head { display: flex; align-items: center; gap: 14px; }
.review-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: var(--dark); color: #fff; font: 700 .9rem var(--heading); }
.review-author { min-width: 0; flex: 1; }
.review-author strong { display: block; font: 700 .86rem/1.3 var(--heading); overflow-wrap: anywhere; }
.review-author time { display: block; color: var(--muted); font-size: .68rem; }
.review-card .stars { flex: none; font-size: 1rem; }
.review-text { margin-top: 16px; color: #344051; font-size: .86rem; line-height: 1.8; overflow-wrap: anywhere; }
.review-reply { margin-top: 18px; padding: 14px 16px; background: #fff; border-left: 2px solid var(--blue); }
.review-reply > span { display: block; margin-bottom: 4px; color: var(--blue); font-size: .64rem; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.review-reply p { color: #3d495a; font-size: .8rem; line-height: 1.7; overflow-wrap: anywhere; }
.review-more { margin-top: 18px; }
.review-more > summary { display: inline-block; margin-bottom: 18px; border-bottom: 1px solid #b5beca; color: var(--ink); font-size: .82rem; font-weight: 700; cursor: pointer; list-style: none; }
.review-more > summary::-webkit-details-marker { display: none; }
.review-more > summary:hover { color: var(--blue); border-color: var(--blue); }
.review-more[open] > summary { display: none; }
.review-empty { padding: 26px; background: var(--paper); border: 1px dashed #c7ccd3; color: var(--muted); font-size: .85rem; }
.review-flash-ok { border-left-color: #2e7650; color: #2e7650; }
.review-flash-err { border-left-color: #a32626; color: #a32626; }
.review-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.review-rating { grid-column: 1 / -1; min-inline-size: 0; border: 0; }
.review-rating legend { padding: 0; margin-bottom: 7px; font-size: .76rem; font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { padding: 2px; color: #c8ced7; font-size: 2rem; line-height: 1; cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover { transform: scale(1.1); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f6bf10; }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ==========================================================================
   Site public : métiers (électricité, carrelage, terrasses, paysagisme)
   Visuels en CSS (aucune photo inventée). Pour utiliser une vraie photo, ajoutez-la en PREMIER
   calque de fond, par exemple : background-image: url("photos/electricite.jpg"), <réglage existant>;
   ========================================================================== */
.trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; margin-bottom: 90px; }
.trade-card { min-width: 0; }
.trade-visual { position: relative; display: grid; place-items: center; height: 290px; overflow: hidden; color: #fff; background-position: center; background-size: cover; }
.trade-visual i { font-size: 5rem; opacity: .92; transition: transform .35s ease; }
.trade-visual:hover i { transform: scale(1.08); }
.trade-visual::after { position: absolute; inset: 0; border: 1px solid rgba(0, 0, 0, .04); content: ""; pointer-events: none; }
.trade-tag { position: absolute; left: 18px; bottom: 16px; color: rgba(255, 255, 255, .78); font: 700 .62rem var(--heading); letter-spacing: 2px; }
.trade-elec { background: radial-gradient(circle at 72% 24%, rgba(255, 214, 102, .38), transparent 46%), linear-gradient(135deg, #03316c 0%, #1d2b3d 100%); }
.trade-elec i { color: #ffd666; }
.trade-carrelage { background-color: #273649; background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(135deg, #1c4f8a, #03316c); background-size: 58px 58px, 58px 58px, auto; }
.trade-terrasse { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 52px), linear-gradient(135deg, #9a7650, #5e4630); }
.trade-paysage { background: radial-gradient(circle at 24% 82%, rgba(147, 207, 165, .22), transparent 52%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .1), transparent 40%), linear-gradient(135deg, #2f445f, #172333); }
.trade-list { display: grid; gap: 7px; margin: 0 0 20px; padding: 0; color: var(--muted); font-size: .8rem; list-style: none; }
.trade-list li { position: relative; padding-left: 22px; }
.trade-list li .bx { position: absolute; top: .05em; left: 0; color: var(--blue); font-size: 1.25em; }
.section-subheading { margin-bottom: 40px; }
.subheading-title { margin-top: 6px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

@media (max-width: 800px) {
  .trade-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
  .trade-visual { height: 230px; }
}

@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "summary" "list" "form"; gap: 28px; margin-top: 40px; }
}
@media (max-width: 540px) {
  .review-summary { padding: 24px 20px; }
  .review-card { padding: 22px 18px; }
  .review-card-head { flex-wrap: wrap; }
  .star-input label { font-size: 2.3rem; }
}

/* ==========================================================================
   Administration v2 : navigation, tableaux, formulaires, cartes, graphiques
   (les règles ci-dessous corrigent aussi les défauts responsive de l'ancienne version)
   ========================================================================== */
.admin-body { overflow-x: hidden; }
.admin-top { height: auto; min-height: 74px; flex-wrap: wrap; gap: 12px; padding-block: 12px; padding-inline: max(18px, calc((100% - var(--width)) / 2)); }
.admin-main { padding-top: 40px; padding-bottom: 72px; }
.admin-heading { flex-wrap: wrap; }
.admin-heading > div { flex: 1 1 320px; min-width: 0; }
.admin-heading h1 { font-size: clamp(32px, 5vw, 53px); overflow-wrap: anywhere; }

.admin-nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: #fff; }
.admin-nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.admin-nav-inner::-webkit-scrollbar { display: none; }
.admin-nav-link { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 48px; padding: 0 14px; border-bottom: 2px solid transparent; color: #4e5c70; font: 700 12px var(--sans); white-space: nowrap; }
.admin-nav-link:hover { background: #f4f6f8; color: var(--ink); }
.admin-nav-link.is-current { border-bottom-color: var(--blue); color: var(--ink); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 700 10px var(--sans); }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1px; margin: 28px 0 24px; border: 1px solid var(--line); background: var(--line); }
.admin-stats > div { min-width: 0; padding: 20px 22px; border: 0; background: #fff; }
.admin-stats strong { overflow-wrap: anywhere; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.admin-stats strong.pos { color: #39744b; }
.admin-stats strong.neg { color: #a0473c; }
.admin-stats .delta { display: block; margin-top: 6px; color: var(--muted); font: 600 10px/1.5 var(--sans); overflow-wrap: anywhere; }
.admin-stats .delta.up { color: #39744b; }
.admin-stats .delta.down { color: #a0473c; }
.admin-stats.kpi-grid { margin: 0 0 24px; }
.review-kpis .stars { margin-top: 6px; font-size: 15px; }
.admin-panel { margin-top: 22px; }
.admin-grid .admin-panel { margin-top: 0; }
.panel-heading { flex-wrap: wrap; gap: 12px 16px; }
.panel-heading h2 { overflow-wrap: anywhere; font-size: clamp(21px, 2.4vw, 25px); }
.stats-meta { margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.muted { color: var(--muted); }
.back-link { margin: 0 0 14px; font-size: 12px; font-weight: 700; }
.group-title { margin: 26px 0 12px; color: var(--blue); font: 700 11px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; }
.alert-success { background: #e9f3e9; color: #39744b; }
.alert a { text-decoration: underline; }

.period-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.panel-heading .period-tabs { margin-bottom: 0; }
.period-link { padding: 9px 12px; border: 1px solid var(--line); background: #fff; font: 700 10px var(--sans); }
.period-link:hover { background: #edf0f4; }
.period-link.is-current { border-color: var(--dark); background: var(--dark); color: #fff; }

.pill-ok { background: #e6f2ea; color: #2e7650; }
.pill-info { background: #e1ecf8; color: #0f467f; }
.pill-warn { background: #fbf1dc; color: #8a6414; }
.pill-bad { background: #fde8e5; color: #a0372c; }
.pill-mute { background: #e7eaef; color: #4e5c70; }
.mail-state { margin: 10px 0 0; color: #8a6414; font-size: 11px; font-weight: 700; }
.mail-state.is-ok { color: #2e7650; }
.mail-state.is-bad { color: #a0372c; }
.mail-state small { display: block; margin-top: 3px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }

/* Tableaux : défilement horizontal en tablette, cartes empilées en mobile */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 0 14px 10px 0; color: var(--muted); font: 700 9px var(--sans); letter-spacing: 1.2px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 14px 12px 0; border-top: 1px solid #e7eaef; vertical-align: middle; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table td.pos { color: #39744b; }
.data-table td.neg { color: #a0473c; }
.data-table small { color: var(--muted); }
.row-link { border-bottom: 1px solid #b5beca; color: var(--ink); font-weight: 700; }
.row-link:hover { border-color: var(--blue); color: var(--blue); }
.kv-table th { width: 32%; padding: 11px 14px 11px 0; border-top: 1px solid #e7eaef; color: #384251; font: 700 12px var(--sans); letter-spacing: 0; text-transform: none; white-space: normal; vertical-align: top; }
.kv-table td { overflow-wrap: anywhere; }
.kv-table tr:first-child th, .kv-table tr:first-child td { border-top: 0; }

/* Formulaires */
.fa { display: grid; gap: 6px; min-width: 0; color: #384251; font-size: 11px; font-weight: 700; }
.fa input, .fa select, .fa textarea { width: 100%; min-width: 0; min-height: 46px; padding: 12px; border: 1px solid #dadfe5; border-radius: 0; outline: none; background-color: #fbfbf8; color: var(--ink); font: 400 13px var(--sans); }
.fa textarea { min-height: 92px; line-height: 1.6; resize: vertical; }
.fa input:focus, .fa select:focus, .fa textarea:focus { border-color: var(--blue); }
.fa input[readonly] { background-color: #edf0f4; color: var(--muted); }
.fa select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2303316c' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; -webkit-appearance: none; appearance: none; }
.form-admin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; }
.fa-full { grid-column: 1 / -1; }
.form-inline { margin-top: 12px; }
.row-edit { margin-top: 14px; }
.row-edit > summary, .confirm-delete > summary { list-style: none; cursor: pointer; }
.row-edit > summary::-webkit-details-marker, .confirm-delete > summary::-webkit-details-marker { display: none; }
.inline-form { display: inline; }
.confirm-delete[open] > summary { display: none; }
.confirm-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #a0473c; font-size: 11px; }
.danger-text { color: #9c5148; }

/* Cartes (clients, professionnels, devis, factures) */
.entity-list { display: grid; gap: 14px; }
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.entity-card { min-width: 0; padding: 18px; border: 1px solid #dfe4ea; background: #fff; overflow-wrap: anywhere; }
.entity-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.entity-head strong { font: 700 14px var(--sans); }
.entity-card .muted { font-size: 11px; line-height: 1.8; }
.entity-card .muted a { text-decoration: underline; }
.entity-amounts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 6px 0 10px; color: #4e5c70; font-size: 12px; }
.entity-amounts strong { color: var(--ink); font: 600 20px var(--serif); }
.payment-list { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.payment-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; background: #f4f6f8; font-size: 11px; }

/* Statistiques : camembert, histogramme, tableaux */
.chart-card { min-width: 0; margin-bottom: 22px; padding: 20px; border: 1px solid #dfe4ea; }
.chart-card h3 { margin-bottom: 4px; font: 700 12px var(--sans); }
.chart-svg { display: block; width: 100%; height: auto; }
.chart-grid { stroke: #dfe4ea; stroke-width: 1; }
.chart-label { fill: #6d7c91; font: 600 10px var(--sans); }
.chart-empty { fill: #8794a5; font: 600 12px var(--sans); }
.chart-bar { fill: var(--blue); }
.chart-bar:hover { fill: var(--dark); }
.pie-layout { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: center; gap: 24px 36px; margin-top: 14px; }
.pie-figure { width: 100%; max-width: 280px; margin-inline: auto; }
.pie-svg { display: block; width: 100%; height: auto; }
.pie-slice { stroke: #fff; stroke-width: 3; transition: opacity .15s; }
.pie-svg:hover .pie-slice:not(:hover) { opacity: .55; }
.pie-f-a { fill: var(--blue); }
.pie-f-b { fill: var(--dark); }
.pie-f-c { fill: #f6bf10; }
.pie-f-d { fill: #b7bcc3; }
.pie-ring { fill: none; }
.pie-s-a { stroke: var(--blue); }
.pie-s-b { stroke: var(--dark); }
.pie-s-c { stroke: #f6bf10; }
.pie-s-d { stroke: #b7bcc3; }
.pie-empty { fill: none; stroke: #e7eaef; }
.pie-center-value { fill: var(--ink); font: 500 40px var(--serif); }
.pie-center-label { fill: var(--muted); font: 700 11px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; }
.pie-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pie-legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; padding: 11px 12px; background: #f4f6f8; font-size: 12px; }
.pie-dot { width: 12px; height: 12px; border-radius: 3px; }
.pie-dot-a { background: var(--blue); }
.pie-dot-b { background: var(--dark); }
.pie-dot-c { background: #f6bf10; }
.pie-dot-d { background: #b7bcc3; }
.pie-legend strong { font: 700 13px var(--sans); }
.pie-legend em { min-width: 54px; color: var(--muted); font-style: normal; text-align: right; }
.stats-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.stats-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12px; }
.stats-table th { padding: 0 0 8px; color: var(--muted); font: 700 9px var(--sans); letter-spacing: 1.2px; text-align: left; text-transform: uppercase; }
.stats-table td { padding: 10px 0; border-top: 1px solid #e7eaef; vertical-align: middle; overflow-wrap: anywhere; }
.stats-table th:last-child, .stats-table td:last-child { padding-left: 14px; text-align: right; white-space: nowrap; }
progress.meter { display: block; width: 100%; height: 6px; margin-top: 7px; border: 0; background: #e7eaef; -webkit-appearance: none; appearance: none; }
progress.meter::-webkit-progress-bar { background: #e7eaef; }
progress.meter::-webkit-progress-value { background: var(--blue); }
progress.meter::-moz-progress-bar { background: var(--blue); }

/* Avis (modération) */
.review-admin-list { display: grid; gap: 14px; margin-top: 20px; }
.review-admin-card { min-width: 0; padding: 20px; border: 1px solid #dfe4ea; }
.review-admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.review-admin-top .stars { font-size: 16px; }
.review-admin-card h3 { margin: 12px 0 2px; font: 600 17px var(--serif); overflow-wrap: anywhere; }
.review-admin-meta { color: var(--muted); font-size: 10px; }
.review-admin-comment { margin-top: 12px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.review-admin-reply { margin-top: 14px; padding: 12px 14px; border-left: 2px solid var(--blue); background: #f3f5f8; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.review-admin-reply strong { display: block; margin-bottom: 4px; color: var(--blue); font: 700 9px var(--sans); letter-spacing: 1.2px; }
.reply-form { display: grid; gap: 8px; margin-top: 14px; }
.reply-form label { color: #384251; font-size: 11px; font-weight: 700; }
.reply-form textarea { display: block; width: 100%; min-height: 84px; padding: 11px 12px; border: 1px solid #dadfe5; border-radius: 0; outline: none; background: #fbfbf8; color: var(--ink); font-size: 12px; resize: vertical; }
.reply-form textarea:focus { border-color: var(--blue); }
.review-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7eaef; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .stats-tables { grid-template-columns: 1fr; }
  .admin-grid .admin-panel { margin-top: 0; }
}

/* ---------- Mobile et tablette étroite ---------- */
@media (max-width: 800px) {
  .admin-main { padding-top: 28px; }
  .admin-stats span { font-size: 10px; letter-spacing: .6px; }
  .admin-stats > div { padding: 16px 14px; }
  .form-admin { grid-template-columns: 1fr; }
  .fa input, .fa select, .fa textarea, .reply-form textarea { font-size: 16px; }
  .small-button { min-height: 40px; }
  .mini-action { width: 38px; height: 38px; }
  .slot-row { grid-template-columns: 39px minmax(0, 1fr) auto 38px 38px; }
  .admin-nav-link { min-height: 46px; }
}
@media (max-width: 720px) {
  .pie-layout { grid-template-columns: 1fr; }
  .data-table:not(.kv-table), .data-table:not(.kv-table) tbody, .data-table:not(.kv-table) tr, .data-table:not(.kv-table) td { display: block; }
  .data-table:not(.kv-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table:not(.kv-table) tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .data-table:not(.kv-table) td { position: relative; padding: 6px 0 6px 40%; border: 0; text-align: left; }
  .data-table:not(.kv-table) td::before { position: absolute; top: 7px; left: 0; width: 36%; color: var(--muted); content: attr(data-label); font: 700 9px/1.4 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
  .data-table:not(.kv-table) td[colspan] { padding-left: 0; }
  .data-table:not(.kv-table) td[colspan]::before { content: none; }
  .data-table .num { text-align: left; }
  .kv-table th, .kv-table td { display: block; width: auto; }
  .kv-table th { padding-bottom: 2px; }
  .kv-table td { padding: 0 0 11px; border: 0; }
  .kv-table tr:first-child th { border-top: 0; }
}
@media (max-width: 540px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .admin-stats strong { font-size: 22px; }
  .chart-card { padding: 14px; }
  .entity-card, .review-admin-card { padding: 15px; }
  .payment-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .payment-list li > details { grid-column: 1 / -1; }
  .pie-legend li { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .pie-legend em { grid-column: 2 / -1; min-width: 0; text-align: left; }
  .panel-heading .period-tabs { width: 100%; }
}

/* ==========================================================================
   Icônes Boxicons : tailles et alignements (aucun emoji ni symbole texte dans l'interface)
   ========================================================================== */
.bx { flex: none; line-height: 1; vertical-align: middle; }
.button .bx { font-size: 1.3em; }
.small-button .bx { font-size: 1.25em; }
.text-link .bx, .google-link .bx, .footer-bottom a .bx { vertical-align: -.2em; font-size: 1.2em; }
.back-link { display: inline-flex; align-items: center; gap: 4px; }
.back-link .bx { font-size: 1.4em; }
.logout-form { display: inline-flex; margin: 0; }
.logout-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: 700 11px var(--sans); cursor: pointer; }
.logout-link:hover { color: var(--blue); }
.logout-link .bx { font-size: 1.5em; }
.mini-action { display: inline-grid; place-items: center; padding: 0; }
.mini-action .bx { font-size: 20px; }
.panel-icon .bx { font-size: 19px; }
.stars .bx, .stars-precise .bx { font-size: inherit; vertical-align: top; }
.review-bar > span .bx { color: #f6bf10; vertical-align: -2px; }
.star-input label { display: inline-grid; place-items: center; }
.check-detail { display: block; margin-top: 6px; color: #4e5c70; font-size: 11px; line-height: 1.7; }

/* Champs Date / Heure : jamais plus larges que leur colonne (Safari iOS et Chrome imposent une largeur intrinsèque) */
.slot-form input[type="date"], .slot-form input[type="time"], .fa input[type="date"], .fa input[type="time"],
.field input[type="date"], .field input[type="time"] {
  min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; line-height: 1.2;
}
.slot-form input::-webkit-date-and-time-value, .fa input::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.slot-form input, .slot-form select, .slot-form label { box-sizing: border-box; max-width: 100%; }

/* En-tête de page de l'administration : en colonne (mobile), le bloc de texte ne doit pas hériter d'une hauteur imposée */
@media (max-width: 800px) {
  .admin-heading > div { flex: 0 0 auto; }
}
@media (min-width: 721px) {
  .data-table:not(.kv-table) td:first-child { min-width: 150px; }
}

/* ==========================================================================
   Compléments LMF Rénovation — éléments ajoutés, dessinés avec la charte d'origine
   (mêmes variables, polices, angles droits, filets et couleurs ; aucune animation supplémentaire)
   ========================================================================== */

/* Marque textuelle (en l'absence de logo téléversé) : reprend le monogramme de l'espace d'origine */
.brand { gap: 12px; }
.brand-mark { flex: none; padding: 0 7px; width: auto; min-width: 42px; font-size: 19px; letter-spacing: -.5px; color: var(--ink); }
.brand .brand-name small { white-space: nowrap; }
.footer .brand-mark { border-color: rgba(255, 255, 255, .7); color: #fff; }
.footer .brand-name { color: #fff; }
.footer-brand { min-width: 0; }
.nav-mobile-only { display: none; }

/* Largeurs par pas de 5 % (étoiles et barres d'avis) : remplace les styles en ligne, compatible avec une CSP stricte */
.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.review-policy { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; line-height: 1.7; }
.review-policy a, .privacy-note a { border-bottom: 1px solid #b5beca; }
.review-policy a:hover, .privacy-note a:hover { color: var(--blue); border-color: var(--blue); }
mark.todo { background: #f7efdd; color: #8b6b28; padding: 0 3px; }

/* Rendez-vous : choix entre demande de rendez-vous et message */
.appointment-forms { min-width: 0; }
.form-switch { display: flex; gap: 0; border-bottom: 1px solid #cbd0d7; }
.form-switch button { flex: 1; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #536278; font: 700 .68rem var(--heading); letter-spacing: 1.4px; text-transform: uppercase; }
.form-switch button:hover { color: var(--ink); }
.form-switch button[aria-selected="true"] { border-bottom-color: var(--dark); background: var(--paper); color: var(--ink); }
.appointment-form[hidden] { display: none; }

/* Visuel d'origine (dégradé + icône) utilisé tant qu'aucune photo n'est téléversée */
.service-image .trade-visual, .method-image .trade-visual { position: absolute; inset: 0; height: auto; }
.method-image .trade-visual i { font-size: 6rem; color: #aed2f2; }
.hero-page .hero-photo:empty + .hero-shade { background: linear-gradient(90deg, rgba(12, 16, 22, .84) 0%, rgba(12, 16, 22, .55) 100%); }

/* Réalisations (affichées seulement si des photos de chantiers sont ajoutées) */
.realisations { background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-item { min-width: 0; }
.gallery-item .service-image { height: 260px; }
.gallery-item figcaption { padding-top: 14px; color: var(--muted); font-size: .78rem; }

/* Questions fréquentes : même trame que les étapes de « Notre approche » */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 600 1rem/1.4 var(--heading); letter-spacing: -.3px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .bx { flex: none; color: var(--blue); font-size: 1.3rem; }
.faq-item[open] summary .bx::before { content: "\eb8b"; }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding: 0 0 22px; color: var(--muted); font-size: .87rem; }
.faq-answer a, .prose a { border-bottom: 1px solid #b5beca; }

/* Pages intérieures : prestation (bandeau photo), pages légales, erreur */
.hero-page { min-height: min(560px, calc(100vh - 98px)); }
.hero-page .hero-inner { padding-top: 90px; padding-bottom: 90px; }
.hero-page h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); letter-spacing: -3px; }
.breadcrumb a { color: #dfe4ea; }
.breadcrumb a:hover { color: #fff; }
.prose p { margin-bottom: 18px; }
.prose h2 { margin: 42px 0 16px; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -1px; }
.prose h3 { margin: 28px 0 10px; font-size: 1.1rem; letter-spacing: -.3px; }
.prose ul { display: grid; gap: 7px; margin: 0 0 20px; padding-left: 20px; }
.intro-text.prose ul { color: var(--muted); font-size: .91rem; }
.page-head { padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2.4rem, 4.5vw, 4.4rem); letter-spacing: -2.4px; }
.page-meta { margin-top: 18px; font-size: .82rem; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 9%; align-items: start; }
.legal-nav { position: sticky; top: 125px; display: grid; border-top: 1px solid var(--line); }
.legal-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: #3d495a; font-size: .78rem; font-weight: 600; }
.legal-nav a:hover { color: var(--blue); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--blue); padding-left: 12px; }
.legal-text { max-width: 760px; color: #344051; font-size: .9rem; overflow-wrap: anywhere; }
.legal-text > h2:first-child, .legal-text > .form-notice + h2 { margin-top: 0; }
.legal-text form { margin-top: 16px; }
.error-page .page-title { margin-bottom: 0; }
.error-page .page-meta { margin: 18px auto 30px; max-width: 520px; }
.service-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .gallery, .service-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .nav-mobile-only { display: block; }
  .nav-mobile-only a { color: var(--blue); }
  .brand .brand-name small { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-nav { position: static; }
  .hero-page { min-height: 500px; }
}
@media (max-width: 540px) {
  .gallery, .service-grid-3 { grid-template-columns: 1fr; }
  .form-switch button { font-size: .6rem; letter-spacing: .8px; padding: 0 8px; }
  .hero-page h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -1.8px; }
}
.hero-kicker.breadcrumb span[aria-current] { width: auto; height: auto; background: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: #fff; }
.footer-bottom { flex-wrap: wrap; }
@media (max-width: 540px) { .footer-legal { flex-direction: column; gap: 6px; } }
