/* OAPO — identité vert forêt, or et ivoire. Mobile-first. */
:root {
  --forest-950: #0a2113;
  --forest-900: #102d1b;
  --forest-800: #173b26;
  --forest-700: #285337;
  --olive-600: #587348;
  --sage-300: #ccd6bd;
  --sage-150: #e5eadc;
  --gold-500: #d5b650;
  --ivory-50: #fbfaf5;
  --ivory-100: #f4f1e7;
  --sand-200: #e8e2d3;
  --ink: #172119;
  --muted: #687067;
  --line: #d9d5c8;
  --white: #fff;
  --ok: #2e7d32;
  --warn: #b26a00;
  --err: #b3261e;
  --radius-sm: .7rem;
  --radius-md: 1.25rem;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(10, 33, 19, .12);
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; padding: 0; color: var(--ink); background: var(--ivory-50); font-family: Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
img, video, svg { display: block; max-width: 100%; }

/* ===== Landing publique ===== */
.landing { overflow: hidden; background: var(--ivory-50); }
.page-shell { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.section-space { padding-block: clamp(4.5rem, 8vw, 8rem); }
.eyebrow { margin: 0 0 .75rem; color: var(--forest-700); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255, 255, 255, .82); }
.landing h1, .landing h2, .landing h3, .landing blockquote p { font-family: Georgia, "Times New Roman", serif; }
.landing h2 { margin: 0; color: var(--forest-950); font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.05; letter-spacing: -.035em; }

.hero { position: relative; z-index: 0; min-height: max(46rem, 100svh); color: var(--white); background: var(--forest-950) url("/static/img/oapo-hero-poster.webp") center center / cover no-repeat; }
.hero-video, .hero-shade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-video { z-index: -2; object-fit: cover; object-position: 53% center; }
.hero-shade { z-index: -1; background:
  linear-gradient(90deg, rgba(7, 27, 15, .9) 0%, rgba(7, 27, 15, .68) 36%, rgba(7, 27, 15, .22) 67%, rgba(7, 27, 15, .15) 100%),
  linear-gradient(0deg, rgba(7, 27, 15, .82) 0%, transparent 48%),
  linear-gradient(180deg, rgba(7, 27, 15, .52) 0%, transparent 30%); }

.site-header { position: relative; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; min-height: 7.5rem; padding-top: .5rem; }
.brand { align-self: start; text-decoration: none; }
.brand img { width: clamp(5rem, 7vw, 6.15rem); height: auto; border-radius: 50%; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .24)); }
.desktop-nav { display: none; justify-content: center; gap: clamp(1rem, 2.2vw, 2rem); }
.desktop-nav a { position: relative; color: rgba(255, 255, 255, .9); font-size: .87rem; font-weight: 650; text-decoration: none; }
.desktop-nav a::after { position: absolute; right: 100%; bottom: -.45rem; left: 0; height: 1px; content: ""; background: var(--gold-500); transition: right .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.header-cta { display: none; align-items: center; gap: .55rem; padding: .72rem 1.1rem; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-pill); background: rgba(9, 36, 20, .48); color: var(--white); font-size: .82rem; font-weight: 750; text-decoration: none; backdrop-filter: blur(9px); }
.mobile-menu { position: relative; justify-self: end; }
.mobile-menu summary { display: grid; gap: 5px; width: 2.8rem; height: 2.8rem; padding: .78rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(9,36,20,.48); cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 100%; height: 2px; border-radius: 2px; background: #fff; }
.mobile-menu nav { position: absolute; top: 3.4rem; right: 0; display: grid; min-width: 15rem; padding: .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 1rem; background: rgba(10, 33, 19, .96); box-shadow: var(--shadow-soft); }
.mobile-menu nav a { padding: .75rem 1rem; border-radius: .7rem; color: #fff; font-weight: 650; text-decoration: none; }
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { background: rgba(255,255,255,.1); }

.hero-content { position: relative; z-index: 2; padding-top: clamp(5rem, 11vh, 8.5rem); padding-bottom: 14rem; }
.hero h1 { max-width: 16ch; margin: 0; color: var(--white); font-size: clamp(2.65rem, 6.2vw, 4.75rem); font-weight: 700; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 span { display: block; color: var(--white); }
.hero-intro { max-width: 39rem; margin: 1.45rem 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.7vw, 1.16rem); line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.25rem; padding: .8rem 1.35rem; border: 0; border-radius: var(--radius-pill); font-weight: 780; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .landing input:focus-visible, .mobile-menu summary:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.button-primary { background: var(--forest-700); color: var(--white); box-shadow: 0 12px 30px rgba(4, 22, 11, .22); }
.button-primary:hover { background: #346845; }
.button-ghost { border: 1px solid rgba(255,255,255,.65); background: rgba(10,33,19,.22); color: var(--white); backdrop-filter: blur(6px); }
.button-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-signature { display: none; position: absolute; z-index: 2; top: 44%; right: max(3rem, calc((100vw - 75rem) / 2)); margin: 0; padding: .65rem .85rem; border-radius: 1rem; background: rgba(10,33,19,.2); color: rgba(255,255,255,.94); font-family: "Segoe Script", "Bradley Hand", cursive; font-size: clamp(1.25rem, 2.3vw, 2rem); font-style: italic; line-height: 1.22; text-shadow: 0 2px 12px rgba(0,0,0,.7); transform: rotate(-4deg); backdrop-filter: blur(2px); }
.hero-benefits { position: absolute; z-index: 2; right: 0; bottom: 4.25rem; left: 0; display: grid; gap: .7rem; }
.hero-benefits > div { display: flex; align-items: center; gap: .75rem; }
.hero-benefits p { margin: 0; color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.25; }
.hero-benefits strong { color: #fff; font-size: .88rem; }
.benefit-icon { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--gold-500); }
.scroll-cue { display: none; }
.hero-wave { position: absolute; z-index: 3; right: 0; bottom: -1px; left: 0; width: 100%; height: clamp(2.6rem, 6vw, 5.6rem); }
.hero-wave path { fill: var(--ivory-50); }

.project-section { position: relative; background: var(--ivory-50); }
.section-heading { position: relative; z-index: 1; max-width: 48rem; text-align: center; }
.section-heading > p:last-child { margin: 1.25rem auto 0; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.botanical { position: absolute; color: var(--sage-300); font-family: Georgia, serif; font-size: clamp(8rem, 18vw, 17rem); line-height: 1; opacity: .48; pointer-events: none; }
.botanical-left { top: 1rem; left: -2rem; transform: rotate(48deg); }
.botanical-right { top: 2rem; right: -2rem; transform: scaleX(-1) rotate(48deg); }

.process { display: grid; gap: 0; margin-top: clamp(3rem, 6vw, 5rem); padding-left: 0; list-style: none; }
.process li { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; min-height: 7.2rem; }
.process li:not(:last-child)::after { position: absolute; top: 4.35rem; bottom: .25rem; left: 2.1rem; width: 2px; content: ""; background: #bcc9aa; }
.process li:last-child { min-height: auto; }
.step-visual { position: relative; display: grid; width: 4.25rem; height: 4.25rem; place-items: center; border-radius: 50%; background: var(--sage-150); color: var(--forest-700); }
.step-visual svg { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step-number { position: absolute; top: -.22rem; right: -.12rem; display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border: 3px solid var(--ivory-50); border-radius: 50%; background: var(--forest-700); color: #fff; font-family: Inter, sans-serif; font-size: .65rem; font-weight: 800; }
.process h3 { margin: .25rem 0 .35rem; color: var(--forest-900); font-size: 1.17rem; line-height: 1.15; }
.process p { margin: 0; color: #5d655d; font-size: .92rem; }

.facts { display: grid; margin-top: clamp(1.5rem, 3vw, 3rem); overflow: hidden; border: 1px solid var(--sand-200); border-radius: var(--radius-md); background: var(--ivory-100); }
.facts > div { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.35rem; }
.facts > div + div { border-top: 1px solid var(--line); }
.fact-icon { color: var(--forest-700); font-size: 1.7rem; }
.facts p { display: grid; margin: 0; line-height: 1.25; }
.facts strong { color: var(--forest-900); font-size: 1rem; }
.facts span:last-child { margin-top: .2rem; color: #5d655d; font-size: .82rem; }
.schedule-note { margin: 1rem auto 0; color: var(--muted); font-size: .82rem; text-align: center; }

.contact-section { position: relative; padding-top: 1rem; background: var(--ivory-50); }
.contact-layout { display: grid; gap: 2rem; align-items: center; }
.contact-photo { min-height: 17rem; border-radius: 45% 45% 1.5rem 1.5rem; background: linear-gradient(180deg, transparent 55%, rgba(10,33,19,.35)), url("/static/img/oapo-hero-poster.webp") 30% center / cover; box-shadow: var(--shadow-soft); }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-copy > p:not(.eyebrow):not(.contact-assurance) { color: var(--muted); }
.contact-assurance { color: var(--forest-700); font-size: .9rem; line-height: 2; }
.contact-assurance span { color: var(--gold-500); font-weight: 900; }
.form-card { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--sand-200); border-radius: var(--radius-md); background: rgba(255,255,255,.9); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; margin-bottom: .38rem; color: var(--forest-900); font-size: .78rem; font-weight: 750; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select { width: 100%; min-height: 3rem; padding: .72rem .9rem; border: 1px solid #c8c3b5; border-radius: var(--radius-sm); background: var(--ivory-50); color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:hover { border-color: var(--olive-600); }
.field input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(40,83,55,.13); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { margin: 1.15rem 0; color: #4f574f; font-size: .84rem; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.checkbox input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--forest-700); }
.submit-button { width: 100%; }
.legal, .muted { color: #5d655d; font-size: .78rem; }
.legal { margin: .85rem 0 0; text-align: center; }
.legal a { color: var(--forest-700); }
.error { margin: 0 0 .75rem; padding: .75rem 1rem; border-left: 3px solid var(--err); background: #fff0ee; color: var(--err); font-size: .84rem; }

.join-section { position: relative; margin-top: 0; padding: clamp(6rem, 10vw, 9rem) 0 clamp(3rem, 5vw, 5rem); overflow: hidden; background: var(--forest-950); color: #fff; }
.join-section::after { position: absolute; right: -7rem; bottom: -9rem; width: 28rem; height: 28rem; border: 1px solid rgba(213,182,80,.13); border-radius: 50%; content: ""; box-shadow: 0 0 0 3rem rgba(213,182,80,.035), 0 0 0 6rem rgba(213,182,80,.025); }
.join-wave { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(3.5rem, 7vw, 6rem); }
.join-wave path { fill: var(--ivory-50); }
.join-layout { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
.join-layout blockquote { margin: 0; }
.quote-mark { display: block; height: 2.2rem; color: var(--gold-500); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.join-layout blockquote p { max-width: 18ch; margin: .7rem 0 1rem; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-style: italic; line-height: 1.16; }
.join-layout cite { color: rgba(255,255,255,.6); font-size: .75rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.join-action { text-align: left; }
.button-light { background: var(--ivory-50); color: var(--forest-900); }
.button-light:hover { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.button-disabled { cursor: default; opacity: .78; }
.button-disabled:hover { transform: none; }
.join-action p { margin: .8rem 0 0; color: rgba(255,255,255,.58); font-size: .76rem; }

.site-footer { background: var(--forest-950); color: rgba(255,255,255,.65); }
.footer-layout { display: grid; gap: 1rem; align-items: center; padding-block: 1.7rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; text-align: center; }
.footer-layout img { width: 4rem; height: 4rem; margin-inline: auto; border-radius: 50%; }
.footer-layout p { margin: 0; }
.footer-layout strong, .footer-layout a { color: #fff; }

/* ===== Merci ===== */
.thanks { max-width: 640px; margin: 60px auto; padding: 24px 16px; text-align: center; }
.thanks-icon { font-size: 48px; }
.thanks h1 { color: var(--forest-900); font: 700 2rem/1.15 Georgia, serif; }
.thanks p { font-size: 17px; }
.thanks-cta-label { margin-top: 24px; color: var(--ink); }
.thanks .btn-primary { max-width: 420px; margin: 14px auto; }
.back a { color: var(--forest-700); }

/* Compatibilité des boutons hors landing (merci/admin). */
.btn-primary, .btn-secondary { display: inline-block; width: 100%; padding: 14px; border: none; border-radius: 10px; background: var(--forest-800); color: #fff; font-size: 16px; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.btn-primary:hover, .btn-secondary:hover { background: var(--forest-950); }
.btn-secondary { border: 2px solid var(--forest-800); background: #fff; color: var(--forest-900); }
.btn-secondary:hover { background: var(--ivory-100); }

/* ===== Admin ===== */
.admin-header { padding: 14px 20px; background: var(--forest-950); color: #fff; }
.admin-header strong { color: #fff; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; color: #fff; }
.admin-header nav a { color: #fff; text-decoration: none; }
.admin-header nav form.inline { margin: 0; }
.link-btn, .danger-btn { padding: 0; border: none; background: none; color: var(--forest-900); text-decoration: underline; cursor: pointer; }
.danger-btn { color: var(--err); }
.admin { max-width: 1100px; margin: 0 auto; padding: 20px; }
.admin .field { margin-bottom: 14px; }
.admin h1 { margin-top: 24px; color: var(--forest-900); }
.admin h2 { margin-top: 28px; }
.admin.auth { max-width: 440px; margin: 80px auto; }
.admin.auth h1 { color: var(--forest-900); text-align: center; }
form.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
form.filters select, form.filters input { padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
form.filters button { padding: 8px 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
table th, table td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
table thead th { background: var(--ivory-100); color: var(--forest-900); }
td.actions form.inline { display: inline; margin: 0 4px; }
.cards { display: flex; flex-wrap: wrap; gap: 14px; }
.card { flex: 1 1 200px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.card .num { display: block; color: var(--forest-900); font-size: 28px; font-weight: 700; }
.card span { display: block; color: var(--muted); font-size: 13px; }
.cards.small .card { flex: 1 1 180px; }
.ok { color: var(--ok); font-weight: 600; }
.no { color: var(--muted); }
.warn { color: var(--warn); font-weight: 600; }
.warn-box { padding: 12px; border: 1px solid var(--warn); border-radius: 8px; background: #fff3da; color: #5a3d00; }
code { padding: 1px 5px; border-radius: 4px; background: #efeaea; font-size: 12.5px; }

@media (min-width: 36rem) {
  .hero-actions { flex-direction: row; }
  .hero-benefits { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-top: 0; }
  .facts > div:nth-child(even) { border-left: 1px solid var(--line); }
  .footer-layout { grid-template-columns: auto 1fr auto; text-align: left; }
  .footer-layout img { margin: 0; }
}

@media (min-width: 56rem) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .desktop-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .mobile-menu { display: none; }
  .hero-content { padding-top: clamp(4.5rem, 9vh, 7rem); }
  .hero-signature { display: block; }
  .hero-benefits { grid-template-columns: repeat(3, minmax(0, 15rem)); justify-content: start; gap: 2rem; }
  .scroll-cue { position: absolute; right: 2rem; bottom: 6rem; z-index: 2; display: grid; gap: .45rem; justify-items: center; color: rgba(255,255,255,.75); font-size: .62rem; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; writing-mode: vertical-rl; }
  .process { grid-template-columns: repeat(5, 1fr); }
  .process li { display: grid; grid-template-columns: 1fr; gap: 1rem; min-height: auto; padding-inline: .7rem; text-align: center; }
  .process li:not(:last-child)::after { top: 2.1rem; right: -1.15rem; bottom: auto; left: calc(50% + 2.8rem); width: calc(100% - 3.3rem); height: 1px; }
  .step-visual { margin-inline: auto; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { border-top: 0 !important; }
  .facts > div + div { border-left: 1px solid var(--line); }
  .contact-layout { grid-template-columns: .72fr .8fr 1.5fr; gap: clamp(1.5rem, 3vw, 3rem); }
  .contact-photo { min-height: 27rem; }
  .join-layout { grid-template-columns: 1.3fr .8fr; }
  .join-action { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .button, .desktop-nav a::after { transition: none; }
}

@media (max-width: 35.99rem) {
  .hero { min-height: 55rem; }
  .hero-video { object-position: 61% center; }
  .hero-content { padding-top: 4.2rem; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .hero-benefits { bottom: 4.5rem; }
  .button { width: 100%; }
  .cards .card { flex: 1 1 100%; }
}
