/* Administrer Autrement — feuille de style du portail */
:root {
  --bordeaux: #7a1216;
  --bordeaux-dark: #4f0b0e;
  --bordeaux-soft: #f6ecea;
  --or: #e3b23c;
  --or-dark: #a77a12;
  --encre: #2b2324;
  --gris: #6b6162;
  --fond: #fbf9f6;
  --carte: #ffffff;
  --trait: #e8e0dc;
  --vert: #2f7d4f;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(43,35,36,.06), 0 8px 24px rgba(43,35,36,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
a:hover { color: var(--bordeaux-dark); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--bordeaux-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--or); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bordeaux); }
.brand img { width: 64px; height: 48px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.1; }
.brand-tag { display: block; font-family: var(--sans); font-style: normal; font-size: .78rem; color: var(--gris); letter-spacing: .02em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--encre); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav summary { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--encre); font-weight: 500; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: var(--bordeaux-soft); color: var(--bordeaux); }
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid var(--trait); border-radius: 12px; box-shadow: var(--ombre); padding: 6px; display: block; }
.nav .menu a { font-weight: 400; padding: 8px 12px; }
.nav .menu .sep { border-top: 1px solid var(--trait); margin: 6px 4px; }
.nav .cta a { background: var(--bordeaux); color: #fff; }
.nav .cta a:hover { background: var(--bordeaux-dark); color: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--trait); box-shadow: var(--ombre); padding: 8px 16px 16px; max-height: calc(100vh - 76px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}

/* Bandeau de page */
.hero { background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%); color: #fff; padding: clamp(48px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border: 40px solid rgba(227,178,60,.18); transform: rotate(45deg); }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--or); font-weight: 600; margin: 0; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.page-head { background: var(--bordeaux-soft); border-bottom: 1px solid var(--trait); padding: 40px 0 28px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 8px 0 0; color: var(--gris); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: 600 1rem/1.2 var(--sans); }
.btn-or { background: var(--or); color: #2b1d00; }
.btn-or:hover { background: #f0c556; color: #2b1d00; }
.btn-ligne { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ligne:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-plein { background: var(--bordeaux); color: #fff; }
.btn-plein:hover { background: var(--bordeaux-dark); color: #fff; }
a.btn { margin-top: 4px; }
.answer .btn { background: var(--bordeaux-soft); color: var(--bordeaux); border-color: var(--trait); }

/* Sections */
main { display: block; }
.section { padding: clamp(44px, 7vw, 80px) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--trait); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.figure img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.intro-logo { width: 200px; margin: 0 0 24px; }
.emphase { font-family: var(--serif); font-size: 1.3rem; color: var(--bordeaux); border-left: 4px solid var(--or); padding: 4px 0 4px 18px; margin: 1.4em 0; }
.signature { font-weight: 700; text-align: center; color: var(--bordeaux); margin-top: 2em; font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .2em; }
.card .tag { display: inline-block; align-self: flex-start; background: var(--bordeaux-soft); color: var(--bordeaux); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.card ul { margin: 0 0 1em; }
.card .push { margin-top: auto; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--trait); border-radius: 12px; text-decoration: none; color: var(--encre); font-weight: 500; }
.doc-list a:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.doc-list .pdf { font-size: .72rem; font-weight: 700; color: #fff; background: var(--bordeaux); border-radius: 6px; padding: 3px 7px; letter-spacing: .04em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 28px 0; }
.stat { text-align: center; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 12px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; color: var(--vert); }
.stat span { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--gris); }

.news { background: var(--bordeaux-dark); color: #fff; text-align: center; }
.news h2 { color: #fff; }
.news .on { color: var(--or); font-weight: 600; margin: 0 0 .4em; }
.news .next { color: #9fe0b5; font-weight: 600; }
.video { max-width: 640px; margin: 24px auto 0; aspect-ratio: 16/9; border-radius: var(--rayon); overflow: hidden; background: #000; position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: radial-gradient(circle at 50% 40%, #3a0a0c, #120304); color: #fff; border: 0; width: 100%; cursor: pointer; font: inherit; }
.video-facade .play { width: 74px; height: 74px; border-radius: 50%; background: var(--or); display: grid; place-items: center; }
.video-facade .play::before { content: ""; border-left: 22px solid #2b1d00; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video-facade small { color: rgba(255,255,255,.75); max-width: 420px; font-size: .82rem; }

/* Formulaire */
.form-card { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(22px, 4vw, 36px); box-shadow: var(--ombre); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req::after { content: " *"; color: var(--bordeaux); }
input, select, textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #cfc4c0; border-radius: 10px; background: #fff; color: var(--encre); }
input:focus, select:focus, textarea:focus { border-color: var(--bordeaux); outline: 3px solid rgba(122,18,22,.15); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--gris); margin: 14px 0 0; }
.form-msg { border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e7f4ec; color: #1d5c37; border: 1px solid #b6dcc4; }
.form-msg.err { display: block; background: #fbe9e9; color: var(--bordeaux); border: 1px solid #efc3c3; }
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.coord { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.coord p { margin: 0 0 .6em; }

/* FAQ */
.toc { columns: 2 320px; column-gap: 32px; padding: 0; list-style: none; counter-reset: q; margin: 0 0 40px; }
.toc li { break-inside: avoid; margin-bottom: 8px; padding-left: 2.2em; position: relative; }
.toc li span { position: absolute; left: 0; color: var(--or-dark); font-weight: 700; }
.faq details { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 12px; scroll-margin-top: 96px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .num { color: var(--or-dark); margin-right: 8px; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--bordeaux); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--trait); }
.faq .answer { padding: 18px 22px 8px; }
.prose { max-width: 820px; }

/* Lexique */
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; padding: 0; list-style: none; }
.alpha a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--trait); text-decoration: none; font-weight: 700; }
.alpha a:hover { background: var(--bordeaux); color: #fff; }
.letter { scroll-margin-top: 96px; margin-bottom: 30px; }
.letter h2 { font-size: 2.2rem; border-bottom: 2px solid var(--or); padding-bottom: 4px; }
.letter dl { margin: 0; }
.letter dt { font-weight: 700; color: var(--bordeaux-dark); margin-top: 14px; }
.letter dd { margin: 2px 0 0; }

/* Cabinets */
.agences { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.agence { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--encre); box-shadow: var(--ombre); transition: transform .15s; display: flex; flex-direction: column; }
.agence:hover { transform: translateY(-3px); color: var(--bordeaux); }
.agence .logo { aspect-ratio: 1; display: grid; place-items: center; padding: 18px; background: #fff; border-bottom: 1px solid var(--trait); }
.agence .logo img { max-height: 100%; width: auto; object-fit: contain; }
.agence .txt { padding: 12px 14px; text-align: center; }
.agence strong { display: block; }
.agence span { font-size: .9rem; color: var(--gris); }

/* Pages légales */
.legal h2 { margin-top: 1.6em; font-size: 1.35rem; }
.todo { background: #fff4d6; border: 1px dashed var(--or-dark); border-radius: 6px; padding: 0 6px; font-weight: 600; color: #6b4b00; }
.legal table { border-collapse: collapse; width: 100%; margin: 1em 0; background: #fff; }
.legal th, .legal td { border: 1px solid var(--trait); padding: 10px 12px; text-align: left; vertical-align: top; font-size: .95rem; }
.legal th { background: var(--bordeaux-soft); }

/* Pied de page */
.site-footer { background: #2a1415; color: #eadfdc; padding: 56px 0 0; margin-top: 0; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--or); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2 160px; }
.site-footer li { margin-bottom: 6px; }
.site-footer .small { font-size: .88rem; color: #cbb9b5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Bandeau cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin-inline: auto; background: #fff; color: var(--encre); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 20px 22px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; font-size: .95rem; }
.cookie-banner .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 20px; }
.cookie-banner .btn-gris { background: #fff; color: var(--encre); border-color: var(--encre); }
.cookie-banner .btn-gris:hover { background: #f2eeec; }

@media print {
  .site-header, .site-footer, .cookie-banner, .hero::after, .video, form { display: none !important; }
  body { background: #fff; }
  .faq details { border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
