/* Le Soleil Consult & Training — feuille de style unique, sans dépendance externe. */
:root {
  --sun: #ffc20e;
  --sun-soft: #fff4cc;
  --sun-deep: #b8860b;
  --ink: #1f2430;
  --ink-soft: #4a5263;
  --muted: #6b7385;
  --line: #e7e3d8;
  --bg: #fffdf7;
  --surface: #ffffff;
  --band: #fbf6e9;
  --accent: #0f7fb5;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(31 36 48 / 6%), 0 8px 24px rgb(31 36 48 / 6%);
  --wrap: 1120px;
  --font: 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;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); letter-spacing: -.02em; margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, blockquote { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(32px, 5vw, 64px); }
.band { background: var(--band); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--sun-deep); margin: 0 0 .5em; }

/* En-tête ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 253 247 / 92%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--sun-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sun); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header nav { position: absolute; inset: 100% 0 auto; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-header nav.open { display: block; }
  .nav { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Accueil ----------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(255 194 14 / 35%), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgb(15 127 181 / 8%), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); margin-bottom: .2em; }
.hero-quote-src { color: var(--muted); font-style: italic; margin-bottom: 1.4em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.hero-img { width: 100%; max-width: 340px; justify-self: center; aspect-ratio: 275 / 424; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { max-width: 220px; order: -1; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }

/* Composants -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--sun);
  background: var(--sun); color: var(--ink); font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgb(255 194 14 / 45%); }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }

.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.news-list { display: grid; gap: 24px; max-width: 820px; }
.news-article h2 { margin-top: 0; }
.news-article { scroll-margin-top: 90px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.card-action { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card-action:hover { transform: translateY(-3px); border-color: var(--sun); color: inherit; }
.card-action h3 { font-size: 1.05rem; margin-bottom: .3em; }
.card-action p { color: var(--ink-soft); }
.news-card p { color: var(--ink-soft); }
.group-title { margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--sun); }

.grid-team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.team-card { padding: 14px; text-decoration: none; color: var(--ink); text-align: center; transition: transform .15s; }
.team-card:hover { transform: translateY(-3px); color: var(--ink); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--band); }
.team-card h3 { font-size: 1rem; margin: .7em 0 0; }

/* En-tête de page et fil d'Ariane ----------------------------------------- */
.page-head { background: linear-gradient(180deg, var(--sun-soft), transparent); border-bottom: 1px solid var(--line); padding-block: 28px 32px; }
.page-head h1 { margin: 0; max-width: 28ch; }
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--ink-soft); }

/* Contenu éditorial -------------------------------------------------------- */
.prose { max-width: 72ch; }
.contact-grid .prose, .section:not(.narrow) > .prose { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 .6em; padding: 10px 16px; background: var(--band); border-left: 4px solid var(--sun); border-radius: 0 10px 10px 0; }
.prose img { border-radius: 10px; }
.prose .float-left { float: left; margin: 4px 24px 12px 0; max-width: 45%; }
.prose .float-right { float: right; margin: 4px 0 12px 24px; max-width: 45%; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) {
  .prose .float-left, .prose .float-right { float: none; display: block; margin: 0 auto 16px; max-width: 100%; }
}
.prose table { border-collapse: collapse; width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* Questionnaires ----------------------------------------------------------- */
.boussoleExemple { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 18px 14px 36px; background: var(--band); border-radius: 10px; }
.boussoleExemple li { margin-right: 18px; }
.quiz-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quiz-table th, .quiz-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.quiz-table tr:last-child td { border-bottom: 0; }
.quiz-table tbody tr:nth-child(even) { background: #fdfaf2; }
.quiz-table tbody tr:has(input:checked) td:first-child { box-shadow: inset 4px 0 0 var(--sun); }
.quiz-table thead th { background: var(--band); font-size: .9rem; }
.quiz input[type="radio"] { width: 22px; height: 22px; accent-color: var(--sun-deep); cursor: pointer; }
.quiz-scale td:not(:first-child), .quiz-scale th:not(:first-child) { text-align: center; width: 56px; }
.quiz-pair td:nth-child(2), .quiz-pair td:nth-child(3) { text-align: center; width: 48px; }
.quiz-pair td:nth-child(4) { text-align: right; }
.quiz label { cursor: pointer; }
@media (max-width: 640px) {
  .quiz-pair .quiz-table tr { display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; }
  .quiz-pair .quiz-table td { border: 0; padding: 10px 8px; font-size: .92rem; }
  .quiz-pair .quiz-table tr { border-bottom: 1px solid var(--line); }
  .quiz-scale .quiz-table td, .quiz-scale .quiz-table th { padding: 10px 6px; font-size: .92rem; }
  .quiz-scale td:not(:first-child), .quiz-scale th:not(:first-child) { width: 34px; }
}

/* Formulaire de contact ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside h2 { font-size: 1.1rem; margin: 0 0 .4em; }
.contact-aside h2:not(:first-child) { margin-top: 1.2em; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; background: var(--surface); }
.contact-form legend { font-weight: 700; padding: 0 6px; }
.contact-form .field-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 11px 14px; border: 1px solid #d8d3c4; border-radius: 10px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgb(255 194 14 / 55%); border-color: var(--sun-deep); }
.contact-form .choice { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.contact-form .choice input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--sun-deep); }
.choices { display: grid; gap: 8px; }
.choices-cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.req { color: #c0392b; }
.form-error { color: #a12b1f; background: #fdecea; border-radius: 10px; padding: 10px 14px; margin: 0; }

/* Pied de page ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d7dae2; margin-top: 48px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sun); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 24px 40px; padding-block: 40px; }
.footer-inner .plain li { margin-bottom: 6px; }
.footer-inner > .small { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / 12%); padding-top: 18px; margin: 0; color: #a3a9b7; }
.brand-foot { font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: .3em; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .actions { display: none; }
  body { background: #fff; }
}
