/* ==========================================================================
   Thème rose — aucune police ni ressource externe (respect du RGPD)
   ========================================================================== */

:root {
  --rose-50: #fff7fa;
  --rose-100: #ffeaf1;
  --rose-200: #fdd3e2;
  --rose-300: #f8abc7;
  --rose-400: #ef7fa8;
  --rose-500: #e0578a;
  --rose-600: #c43d71;
  --rose-700: #9e2d5a;
  --rose-900: #4a1830;
  --ink: #3a2430;
  --muted: #7a5d6d;
  --line: #f3dbe5;
  --white: #fff;
  --vert: #1f6e4c;
  --vert-bg: #e3f5ec;
  --gris: #6b5a63;
  --gris-bg: #f3ecf0;
  --rouge: #b3261e;
  --rouge-bg: #fdecea;
  --orange: #b4630f;
  --orange-bg: #fff4e5;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(74, 24, 48, .04), 0 14px 34px -18px rgba(158, 45, 90, .35);
  --shadow-lg: 0 24px 60px -24px rgba(158, 45, 90, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 0% -10%, var(--rose-100) 0, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #fff0f5 0, transparent 60%),
    var(--rose-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; color: var(--rose-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: .3em 0; }

a { color: var(--rose-700); text-underline-offset: 3px; }
a:hover { color: var(--rose-600); }
:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 3px; border-radius: 6px; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
code { background: var(--rose-100); padding: .1em .4em; border-radius: 6px; font-size: .95em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--rose-700); color: var(--white); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.empty { color: var(--muted); font-style: italic; }
.todo { color: var(--rouge); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--rose-600); margin: 0 0 .5rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); margin: 0 0 1.4rem; max-width: 40em; }

/* ---------- Bandeau + en-tête ---------- */

.topbar { background: var(--rose-700); color: var(--white); font-size: .95rem; text-align: center; padding: .55rem 0; font-weight: 500; }

.site-header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 6px 10px rgba(224, 87, 138, .3)); }
.brand strong { display: block; font-family: var(--font-title); font-size: 1.2rem; color: var(--rose-900); line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.3; }

.main-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.main-nav a, .link-button {
  padding: .5rem .95rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: .98rem; transition: background .15s, color .15s;
}
.main-nav a:hover, .link-button:hover { background: var(--rose-100); color: var(--rose-700); }
.main-nav a[aria-current="page"] { background: var(--rose-100); color: var(--rose-700); }
.main-nav .nav-cta { background: var(--rose-500); color: var(--white); margin-left: .3rem; box-shadow: 0 8px 18px -8px rgba(224, 87, 138, .8); }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--rose-600); color: var(--white); }
.link-button { background: none; border: 0; cursor: pointer; font: inherit; }

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

.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.6rem 1.6rem; }
.footer-grid p { margin: 0 0 .4rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--rose-600); text-decoration: underline; }
.footer-brand { font-family: var(--font-title); font-size: 1.25rem; color: var(--rose-900); font-weight: 700; }
.footer-title { font-weight: 700; color: var(--rose-900); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.1rem 1.4rem; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-bottom nav a { color: var(--muted); }

.login-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .8rem; border: 1px solid var(--rose-200); border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: .86rem;
}
.login-link:hover { border-color: var(--rose-500); color: var(--rose-700); background: var(--rose-50); }
.login-link svg { width: 14px; height: 14px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.45rem; border-radius: 999px; border: 2px solid var(--rose-500);
  background: var(--rose-500); color: var(--white); font: inherit; font-weight: 600; line-height: 1.3;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 10px 22px -12px rgba(224, 87, 138, .9);
}
.btn:hover { background: var(--rose-600); border-color: var(--rose-600); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--rose-700); box-shadow: none; border-color: var(--rose-300); }
.btn-ghost:hover { background: var(--rose-100); color: var(--rose-700); border-color: var(--rose-500); }
.btn-light { background: var(--white); color: var(--rose-700); border-color: var(--white); }
.btn-light:hover { background: var(--rose-100); border-color: var(--rose-100); color: var(--rose-700); }
.btn-small { padding: .35rem .85rem; font-size: .9rem; box-shadow: none; }
.btn-danger { background: var(--white); border-color: #f0b6b2; color: var(--rouge); box-shadow: none; }
.btn-danger:hover { background: var(--rouge); border-color: var(--rouge); color: var(--white); }
.btn-block { width: 100%; }
.icon-btn {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--rose-200); background: var(--white);
  color: var(--rose-700); cursor: pointer; font: inherit; font-weight: 700; line-height: 1;
}
.icon-btn:hover:not(:disabled) { background: var(--rose-100); border-color: var(--rose-400); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Alertes ---------- */

.alert { padding: .9rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; border: 1px solid; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.alert p { margin: 0; }
.alert-success { background: var(--vert-bg); border-color: #a8dcc2; color: #18553b; }
.alert-error { background: var(--rouge-bg); border-color: #f3b8b3; color: #8c1d17; }
.alert-info { background: var(--rose-100); border-color: var(--rose-300); color: var(--rose-900); }
.notice { background: var(--orange-bg); border: 1px solid #f6d2a5; color: #6b3d07; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.notice strong { display: block; }
.notice-info { background: var(--rose-50); border-color: var(--rose-200); color: var(--rose-900); }
.notice ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.notice li + li { margin-top: .35rem; }

/* ---------- Cartes et sections ---------- */

.card {
  background: var(--white); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 1.8rem;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2rem; }
.legal h2 { margin-top: 1.6em; font-size: 1.15rem; }

.section { margin: 3.5rem 0; }
.section-head { margin-bottom: 1.3rem; }
.section-head h2 { margin: 0; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { max-width: 22em; }
.page-title { margin-bottom: 1.2rem; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Accueil ---------- */

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin: .5rem 0 3rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero h1 .eyebrow { display: block; font-family: var(--font); letter-spacing: .12em; line-height: 1.4; margin-bottom: .6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art svg { width: 100%; height: auto; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 40% 60% 45% 55% / 45% 40% 60% 55%;
  box-shadow: var(--shadow-lg); border: 8px solid var(--white);
}

.status { display: inline-flex; align-items: center; gap: .8rem; padding: .85rem 1.25rem; border-radius: var(--radius-sm); margin: 0 0 .5rem; }
.status div { display: flex; flex-direction: column; line-height: 1.4; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.status-recherche { background: var(--vert-bg); color: #18553b; }
.status-recherche .status-dot { background: #2fa36f; box-shadow: 0 0 0 5px rgba(47, 163, 111, .2); animation: pulse 2s infinite; }
.status-complet { background: var(--gris-bg); color: var(--gris); }
.status-complet .status-dot { background: #a5949d; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(47, 163, 111, .05); } }

.infos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-bottom: 1rem; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.05rem; color: var(--rose-600); margin: .4rem 0 .3rem; }
.info-card p { margin: 0; }
.info-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--rose-100); font-size: 1.3rem; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin: 3.5rem 0 0; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700)); color: var(--white); box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .92; }

/* ---------- Annonces ---------- */

.annonces { display: grid; gap: 1.4rem; margin-bottom: 1rem; }
.annonce { background: var(--white); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--line); border-left: 6px solid var(--rose-400); }
.annonce-complet { border-left-color: #cdbdc6; }
.annonce header { margin-bottom: .8rem; }
.annonce-date { color: var(--muted); font-size: .9rem; margin: 0; }
.annonce-infos { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.annonce-infos li { background: var(--rose-50); border: 1px solid var(--rose-200); border-radius: 999px; padding: .25rem .85rem; font-size: .95rem; }
.annonce-texte p { margin: 0 0 .8em; }

.badge { display: inline-block; padding: .22rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.badge-recherche { background: var(--rose-500); color: var(--white); }
.badge-complet { background: var(--gris-bg); color: var(--gris); }

/* ---------- Témoignages, fermetures, galerie, FAQ ---------- */

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-bottom: .8rem; }
.testimonial { margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: "“"; position: absolute; top: -.6rem; left: 1.2rem; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--rose-300); }
.testimonial blockquote { margin: .6rem 0 1rem; font-style: italic; }
.testimonial blockquote p { margin: 0 0 .6em; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .92rem; }
.testimonial figcaption strong { color: var(--rose-700); }
.testimonial figcaption span { color: var(--muted); }

.closures { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.closures li { display: flex; gap: .8rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.closure-icon { font-size: 1.3rem; }

.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.toc a { background: var(--white); border: 1px solid var(--rose-200); border-radius: 999px; padding: .35rem .95rem; text-decoration: none; font-size: .95rem; }
.toc a:hover { border-color: var(--rose-500); background: var(--rose-100); }
.content-section { scroll-margin-top: 6rem; }
.content-section h2 span { margin-right: .2rem; }
#photos { scroll-margin-top: 6rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a { display: block; overflow: hidden; }
.gallery figcaption { padding: .6rem .9rem; font-size: .92rem; color: var(--muted); }

/* ---------- Site sur une seule page ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id], [id="photos"] { scroll-margin-top: 6rem; }
.intro-card { border-left: 6px solid var(--rose-400); }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; margin-bottom: 1.8rem; }
.topics .card { margin-bottom: 0; }
.topic h3 { margin-top: 0; font-size: 1.15rem; color: var(--rose-700); display: flex; align-items: center; gap: .5rem; }
.topic h3 span { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: var(--rose-100); font-size: 1.15rem; }
.sub-title { margin: 2.2rem 0 1rem; font-size: 1.3rem; }
.contact-section {
  padding: clamp(1.6rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--rose-100), var(--rose-50)); border: 1px solid var(--rose-200);
}
.contact-section .card { margin-bottom: 0; }
.alert.sent { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; font-size: 1.05rem; }
.alert.sent::before { content: "💌"; font-size: 1.4rem; }

.faq { display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 600; color: var(--rose-900); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--rose-500); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1.1rem; }
.faq-answer p { margin: 0 0 .7em; }

/* ---------- Formulaires ---------- */

.form .field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.field-row[hidden] { display: none; }
.req { color: var(--rose-600); }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.help { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="date"], input[type="file"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .9rem; border: 2px solid var(--rose-200); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
input[type="file"] { padding: .55rem; background: var(--rose-50); }
input:focus, textarea:focus { border-color: var(--rose-500); outline: none; box-shadow: 0 0 0 4px var(--rose-100); }
textarea { resize: vertical; min-height: 6rem; }
.input-code { font-size: 1.5rem; letter-spacing: .3em; text-align: center; }

.field-check { display: flex; gap: .7rem; align-items: flex-start; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; flex: none; accent-color: var(--rose-500); }
.field-check label { font-weight: 400; margin: 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.card { padding: clamp(1.3rem, 3vw, 2rem); scroll-margin-top: 1.5rem; }
legend { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--rose-900); padding: 0; margin-bottom: .8rem; float: left; width: 100%; }
legend + * { clear: both; }

.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.form-narrow { max-width: 460px; }

.contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; align-items: start; }
.contact-side .card { margin-bottom: 1.2rem; }
.contact-side h2 { font-size: 1.15rem; }
.contact-direct p, .contact-direct div { margin: 0 0 1rem; }
.contact-direct div p { margin: 0; }
.contact-direct .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-direct a { font-size: 1.05rem; font-weight: 600; word-break: break-word; }

/* ---------- Page d'erreur ---------- */

.error-page { text-align: center; max-width: 560px; margin-inline: auto; }
.error-code { font-family: var(--font-title); font-size: 4rem; font-weight: 800; color: var(--rose-300); margin: 0; line-height: 1; }

/* ==========================================================================
   Administration
   ========================================================================== */

body.admin { background: #fbf5f8; }
.admin-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--white); border-right: 1px solid var(--line); padding: 1.4rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem;
}
.sidebar .brand { padding: 0 .5rem .6rem; }
.sidebar-menu summary { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: .1rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem;
}
.sidebar nav a:hover { background: var(--rose-50); color: var(--rose-700); }
.sidebar nav a[aria-current="page"] { background: var(--rose-100); color: var(--rose-700); font-weight: 600; }
.sidebar nav .pill { margin-left: auto; }
.nav-icon { width: 1.4rem; text-align: center; }
.sidebar-group { margin: 1rem .75rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 1rem .75rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; }
.sidebar-foot .link-button { padding: 0; color: var(--rouge); }
.sidebar-foot .link-button:hover { background: none; text-decoration: underline; }
.admin-main { padding: clamp(1.2rem, 3vw, 2.5rem); max-width: 1100px; width: 100%; }

.pill { display: inline-block; background: var(--rose-500); color: var(--white); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; vertical-align: middle; }
form.inline { display: inline; margin: 0; }

.guest-box { width: min(440px, 100% - 2rem); margin: 3rem auto; background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); flex: none; }
.guest-box h1 { font-size: 1.6rem; text-align: center; }
.guest-logo { width: 64px; margin: 0 auto 1rem; }
.guest-back { text-align: center; margin: 1.2rem 0 0; font-size: .95rem; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head .page-title { margin: 0 0 .2rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-head p { margin: 0; max-width: 46em; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.quick {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: 1.2rem 1.4rem;
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  border: 2px solid var(--rose-200); background: var(--rose-50); transition: transform .15s, border-color .15s;
}
.quick:hover { transform: translateY(-2px); border-color: var(--rose-500); color: var(--ink); }
.quick strong { font-size: 1.15rem; font-family: var(--font-title); color: var(--rose-900); }
.quick span { color: var(--muted); font-size: .95rem; }
.quick .quick-icon { font-size: 1.8rem; }
.quick-recherche { background: var(--rose-100); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.4rem; text-decoration: none; color: var(--muted); border: 1px solid var(--line); box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--rose-400); }
.stat strong { display: block; font-size: 2.2rem; font-family: var(--font-title); color: var(--rose-600); line-height: 1.1; }

.checklist { border-left: 6px solid #e8a23a; }
.checklist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; background: var(--rose-50); border-radius: var(--radius-sm); }
.checklist li.important { background: var(--orange-bg); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.dash-grid .card { margin-bottom: 0; }
.chart { width: 100%; height: 140px; display: block; }
.chart-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin: .3rem 0 1rem; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.shortcuts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; }
.shortcuts a { display: block; padding: .5rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.shortcuts a:hover { background: var(--rose-50); color: var(--rose-700); }

.empty-state { text-align: center; }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--rose-50); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fffbfc; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { margin-left: .25rem; }

.state { font-size: .85rem; font-weight: 600; }
.state-on { color: var(--vert); }
.state-off { color: var(--muted); }

.type-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.type-choice legend { font-size: 1rem; font-family: var(--font); margin-bottom: .4rem; grid-column: 1 / -1; }
.type-option { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; cursor: pointer; border: 2px solid var(--rose-200); border-radius: var(--radius-sm); background: var(--rose-50); }
.type-option input { margin-top: .35rem; accent-color: var(--rose-500); width: 1.1rem; height: 1.1rem; }
.type-option small { display: block; color: var(--muted); }
.type-option:has(input:checked) { border-color: var(--rose-500); background: var(--rose-100); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tabs { display: flex; gap: .3rem; background: var(--white); padding: .3rem; border-radius: 999px; border: 1px solid var(--line); }
.tabs a { padding: .4rem 1rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--rose-500); color: var(--white); }
.search { display: flex; gap: .5rem; align-items: center; flex: 1; max-width: 460px; }
.search input { padding: .5rem .8rem; }

.message-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.message-list a {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; background: var(--white); padding: 1rem 1.3rem;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); border: 1px solid var(--line);
}
.message-list a:hover { border-color: var(--rose-400); }
.message-list .unread a { border-left: 5px solid var(--rose-500); }
.message-list .unread .message-from { font-weight: 700; }
.message-from .state { margin-left: .5rem; }
.message-date { color: var(--muted); font-size: .88rem; }
.message-excerpt { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1.2rem; }
.details dt { font-weight: 600; color: var(--muted); }
.details dd { margin: 0; }
.message-body { background: var(--rose-50); border-radius: var(--radius-sm); padding: 1.2rem; margin-bottom: 1.4rem; }
.message-body p { margin: 0 0 .8em; }

.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.photo-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.photo-card.is-hidden img { opacity: .45; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.photo-form { padding: .9rem 1rem .3rem; display: grid; gap: .6rem; }
.photo-form input[type="text"] { padding: .45rem .7rem; }
.photo-form .btn { justify-self: start; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .4rem 1rem 1rem; }

.sticky-save { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, #fbf5f8 35%); }
.rgpd-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.recovery { border: 2px dashed var(--rose-400); }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.codes code { display: block; text-align: center; font-size: 1.15rem; padding: .5rem; }
.steps li { margin-bottom: .8rem; }
.secret code { font-size: 1.2rem; letter-spacing: .05em; display: inline-block; padding: .5rem .8rem; word-break: break-all; }
.journal { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .95rem; }
.journal li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.journal span { color: var(--muted); display: inline-block; min-width: 15rem; }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem 1rem; }
  .sidebar-menu summary { display: block; cursor: pointer; font-weight: 600; padding: .5rem .75rem; border-radius: 12px; background: var(--rose-50); }
  .sidebar-foot { flex-direction: row; justify-content: space-between; margin-top: 0; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin-inline: auto; grid-row: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .table .actions { white-space: normal; }
  .journal span { display: block; min-width: 0; }
  .checklist li { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.footer-bottom .independant { display: inline-block; margin-top: .3rem; font-size: .85rem; opacity: .85; }
