/* Site layer — layout and page patterns built on the Organic tokens (organic.css). */

html { scroll-behavior: smooth; }
body { font-size: 16px; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.prose { max-width: 680px; }
.prose p, .prose li { font-size: 17px; }
.lead, .prose .lead { font-size: 19px; line-height: 1.5; }
.kicker { font-size: 15px; color: var(--color-accent-700); margin-bottom: var(--space-2); font-weight: 600; }
.section { padding-block: 56px; }
.section-tight { padding-block: 32px; }
.section-surface { background: var(--color-surface); }
.section h2 { margin-bottom: var(--space-4); }
.stack > * + * { margin-top: var(--space-4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.btn { font-size: 15px; padding: 11px 20px; }
.btn-secondary { border-color: var(--color-text); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 2.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-text); color: var(--color-bg); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* — header — */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: blur(8px); }
.site-header .nav { max-width: 1120px; margin-inline: auto; padding: 14px 20px; }
.nav-brand { color: var(--color-text) !important; font-size: 22px !important; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; }
.nav .nav-contact { color: var(--color-text); padding: 8px 18px; }
.nav .nav-contact:hover, .nav .nav-contact[aria-current='page'] { color: var(--color-text); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; position: relative; }
  .nav-toggle > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--color-text); border-radius: 999px; font-family: var(--font-heading); font-size: 14px; }
  .nav-toggle > summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] .nav-links { display: flex; }
  .nav-desktop { display: none !important; }
  .nav-toggle .nav-links { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 2px; min-width: 240px; padding: 12px; background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .nav-toggle .nav-links a { display: block; padding: 10px 14px; border-radius: 999px; }
  .nav-toggle .nav-links a:hover { background: var(--color-accent-100); }
  .nav-toggle .nav-contact { text-align: center; margin-top: 6px; }
}

/* — photo slots (replace with <img class="washed"> when photos are ready) — */
.photo { background: var(--color-surface); color: var(--color-neutral-600); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; overflow: hidden; border-radius: var(--radius-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-blob { border-radius: 50% 50% 46% 54% / 60% 52% 48% 40%; aspect-ratio: 1 / 1.05; background: var(--color-peach); }
.photo-round { border-radius: 50%; aspect-ratio: 1; }

/* — hero (wireframe 2a) — */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); }
.hero .photo-blob { max-width: 420px; width: 100%; justify-self: end; }
.page-hero { padding-block: 48px 24px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); max-width: 800px; }
.page-hero .lead { max-width: 680px; }

/* — tinted tiles — */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.tile { display: flex; flex-direction: column; gap: var(--space-2); padding: 26px; border-radius: var(--radius-lg); background: var(--color-surface); color: inherit; text-decoration: none; }
.tile h3 { font-size: 22px; margin: 0; }
.tile p { margin: 0; flex: 1; }
.tile-accent { background: var(--color-peach); }
.tile-accent-2 { background: var(--color-accent-2); }
.tile-accent-3 { background: var(--color-accent-3-200); }
.tile-light { background: var(--color-bg); }
.tile-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); color: var(--color-text); margin-top: var(--space-2); }
a.tile { transition: transform .15s ease, box-shadow .15s ease; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.tile:active { transform: none; box-shadow: var(--shadow-sm); }

/* — split section: text + aside — */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }

/* — places / format strip — */
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--color-accent-3-700); }

/* — agenda rows (wireframe 2b) — */
.events { display: flex; flex-direction: column; gap: var(--space-2); }
.event { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: var(--color-bg); border-radius: 22px; padding: 12px 16px; }
.event-date { text-align: center; line-height: 1; }
.event-date b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 28px; }
.event-date span { font-size: 13px; }
.event h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; margin: 0 0 2px; letter-spacing: 0; }
.event-meta { font-size: 14px; color: var(--color-neutral-700); }
.agenda-panel { background: var(--color-surface); border-radius: calc(var(--radius-lg) * 1.15); padding: 26px; }
.agenda-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.agenda-panel-head h2 { margin: 0; font-size: 26px; }
.empty-note { background: var(--color-bg); border-radius: 22px; padding: 18px 20px; }
.event-summary { font-size: 14px; margin: 4px 0 0; }
.event-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* — event details pop-up (native popover, no script) — */
.event-dialog { width: min(600px, calc(100% - 32px)); max-height: min(85vh, 900px); overflow-y: auto; margin: auto; padding: 32px; border: 0; border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow-lg); }
.event-dialog:popover-open { display: flex; flex-direction: column; gap: var(--space-3); }
.event-dialog::backdrop { background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); }
.event-dialog h2 { font-size: 28px; margin: 0; padding-right: 40px; }
.event-dialog .tag { align-self: flex-start; font-size: 13px; }
.event-dialog-close { position: absolute; top: 16px; right: 16px; font-size: 16px; font-family: var(--font-body); }
.event-dialog-close:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.event-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--color-surface); border-radius: var(--radius-lg); padding: 16px 18px; }
.event-facts > div { display: grid; grid-template-columns: 22px 80px 1fr; gap: 10px; align-items: start; }
.event-facts .icon { color: var(--color-accent-3-700); margin-top: 2px; }
.event-facts dt { font-weight: 700; }
.event-facts dd { margin: 0; }
.event-description { white-space: pre-line; }
.event-dialog .actions { margin-top: var(--space-2); }

/* — numbered steps — */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; background: var(--color-bg); border-radius: var(--radius-lg); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); color: var(--color-text); font-family: var(--font-heading); font-size: 18px; margin-bottom: var(--space-3); }
.steps li:nth-child(even)::before { background: var(--color-accent-3); }
.steps h3 { font-size: 20px; }
.steps p:last-child { margin: 0; }

/* — topic chips — */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--color-accent-3-200); color: var(--color-accent-3-800); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.chips-accent li { background: var(--color-accent-100); color: var(--color-accent-800); }
.emoji-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.emoji-list li { background: var(--color-surface); border-radius: 20px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.section-surface .emoji-list li { background: var(--color-bg); }
.emoji-list span[aria-hidden] { font-size: 22px; }

/* — offers (Mes formules) — */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: var(--space-2); padding: 28px; border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-surface); }
.offer-featured { background: var(--color-accent-100); box-shadow: 0 0 0 2px var(--color-accent); }
.offer h2 { font-size: 24px; margin: 0; letter-spacing: 0.01em; }
.offer-format { font-weight: 600; color: var(--color-accent-700); }
.offer ul { padding-left: 0; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.offer li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.offer li .icon { color: var(--color-accent-3-700); margin-top: 3px; width: 16px; height: 16px; }
.offer-price { font-family: var(--font-heading); font-size: 34px; line-height: 1; margin-top: var(--space-3); }
.offer-note { font-size: 14px; color: var(--color-neutral-700); }
.offer .btn { align-self: flex-start; }

/* — letter (Qui suis-je ?, wireframe 2e) — */
.letter h2 { margin-top: 40px; }
.pull-quote { font-family: var(--font-heading); font-size: 24px; line-height: 1.25; color: var(--color-accent-700); border-left: 4px solid var(--color-accent-300); padding-left: 18px; margin: 32px 0; }
.signature { font-family: var(--font-heading); font-size: 26px; margin-top: var(--space-6); }
.aside-stack { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: 96px; }
.brief { background: var(--color-surface); border-radius: var(--radius-lg); padding: 22px; }
.brief h3 { font-size: 20px; }
.questions { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: 8px; }
.questions li { background: var(--color-accent-2-300); border-radius: 20px; padding: 10px 16px; font-weight: 600; }

/* — timeline (wireframe 2d) — */
.timeline { list-style: none; margin: 0; padding: 4px 0 0 30px; border-left: 3px dashed var(--color-neutral-400); margin-left: 10px; }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -42px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); }
.timeline li:last-child::before { background: var(--color-accent-3); }
.timeline b { display: block; }

/* — call to action band — */
.cta-band { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: 32px; border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-peach); }
.cta-band h2 { margin: 0; font-size: 28px; max-width: 620px; }
.cta-band p { margin: 6px 0 0; max-width: 620px; }
.cta-band .actions { margin: 0; }
.cta-band-sage { background: var(--color-accent-2); }

/* — contact — */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-grid .full { grid-column: 1 / -1; }
.field > label { font-size: 14px; font-weight: 600; }
.input { font-size: 16px; min-height: 44px; background: var(--color-surface); }
textarea.input { min-height: 170px; border-radius: 24px; padding-block: 12px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2307375f' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input-validation-error { border-color: var(--color-accent-600); }
.field-error { display: block; font-size: 14px; color: var(--color-accent-700); margin-top: 5px; }
.validation-summary-errors ul { margin: 0 0 var(--space-4); padding: 14px 18px 14px 36px; background: var(--color-accent-100); color: var(--color-accent-800); border-radius: 20px; }
.validation-summary-valid { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--color-neutral-700); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--color-accent-2-300); color: var(--color-accent-2-900); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: var(--space-6); }
.notice .icon { color: var(--color-accent-2-700); width: 24px; height: 24px; }
.notice p { margin: 0; }

/* — FAQ — */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--color-surface); border-radius: 22px; padding: 14px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-heading); font-size: 20px; line-height: 1; color: var(--color-accent-700); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

.todo { background: var(--color-surface); border: 2px dashed var(--color-neutral-400); border-radius: 20px; padding: 14px 18px; color: var(--color-neutral-700); }

/* — footer — */
.site-footer { background: var(--color-text); color: var(--color-neutral-200); margin-top: 56px; }
.site-footer a { color: var(--color-neutral-100); }
.site-footer a:hover { color: var(--color-accent-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 48px 32px; }
.footer-brand { font-family: var(--font-heading); font-size: 24px; color: var(--color-neutral-100); margin-bottom: var(--space-2); }
.site-footer h2 { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-400); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer ul a { text-decoration: none; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--color-neutral-100) 15%, transparent); padding-block: 18px; font-size: 13px; color: var(--color-neutral-400); }

/* — responsive — */
@media (max-width: 860px) {
  .hero, .split, .split-even { grid-template-columns: 1fr; gap: 32px; }
  .hero .photo-blob { justify-self: start; max-width: 300px; order: -1; }
  .offers { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-block: 40px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 52px 1fr; }
  .event-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .event-dialog { padding: 24px 20px; }
  .event-facts > div { grid-template-columns: 22px 1fr; }
  .event-facts dt { grid-column: 2; }
  .event-facts dd { grid-column: 2; }
  .cta-band { padding: 24px; }
}
