/* Garbay Consulting Formation — maquette 2026 (aucune ressource externe : pas de Google Fonts, pas de CDN → rien à déclarer côté RGPD) */
:root {
  --ink: #1b1b1b;
  --ink-2: #3d3a35;
  --mute: #6d675c;
  --line: #e7e1d5;
  --bg: #ffffff;
  --bg-soft: #faf7f0;
  --brand: #1c1c1c;
  --brand-dark: #000000;
  --accent: #8a6416;      /* or foncé : texte lisible sur fond clair */
  --gold: #c9a24a;        /* or du logo : fonds de boutons, pastilles */
  --accent-soft: #f8f0dc;
  --ok: #1f7a4d;
  --ok-bg: #e5f4ec;
  --err: #b3261e;
  --err-bg: #fbe8e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 25, 15, .06), 0 8px 24px rgba(30, 25, 15, .07);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Bandeau démo */
.demo-banner { background: var(--gold); color: var(--ink); text-align: center; font-size: .85rem; padding: 6px 12px; font-weight: 600; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { 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; line-height: 1.1; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; flex: none; }
.brand small { display: block; font-weight: 500; color: var(--mute); font-size: .78rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 1rem; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: #b38d3a; color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-dark); }
.nav .btn { padding: 8px 16px; font-size: .9rem; margin-left: 8px; }
.btn svg { width: 18px; height: 18px; }

/* Héros */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, #f5ead2 0%, rgba(245, 234, 210, 0) 60%), linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.hero-card li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.hero-card strong { display: block; font-size: 1.02rem; }
.hero-card span { color: var(--mute); font-size: .95rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

/* Sections */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head p { color: var(--mute); font-size: 1.08rem; }

/* Formations */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30, 25, 15, .06), 0 16px 36px rgba(30, 25, 15, .10); }
.card img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-weight: 650; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 6px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-top: 12px; color: var(--ink-2); font-size: .97rem; }
details h4 { margin: 12px 0 6px; font-size: .95rem; }

/* Approche */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 750; margin-bottom: 16px; }
.step p { color: var(--mute); margin: 0; }

/* Bandeau plateforme */
.platform { background: linear-gradient(120deg, #1c1c1c 0%, #3b3226 100%); color: #fff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.platform h2 { color: #fff; margin-bottom: .3em; }
.platform p { color: #e9e2d2; margin: 0; }
.platform .btn { background: var(--gold); color: var(--ink); }
.platform .btn:hover { background: #b38d3a; color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info p { color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list small { display: block; color: var(--mute); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label em { font-style: normal; color: var(--mute); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px #f3e6c8; }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { color: var(--err); font-size: .87rem; margin-top: 4px; }
.field.has-err input, .field.has-err textarea { border-color: var(--err); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .85rem; color: var(--mute); margin: 4px 0 20px; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-weight: 550; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--accent-soft); color: #6e5012; }

/* Pied de page */
.site-footer { background: var(--ink); color: #cfc8b8; padding: 56px 0 28px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9a927f; }
.footer-intro { margin-top: 16px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: rgba(255, 255, 255, .16); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #9a927f; }

/* Page mentions */
.legal { max-width: 780px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; background: var(--bg-soft); border-radius: var(--radius); padding: 20px 24px; }
.legal dt { font-weight: 650; }
.legal dd { margin: 0; color: var(--ink-2); }

/* Révélation douce au défilement */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .card, .btn { transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .contact { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .platform { grid-template-columns: 1fr; padding: 32px 24px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0; }
  .form { padding: 24px 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
/* Logo (rond noir et or) à la place du carré « GC » */
.brand-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; display: block; }
.site-footer .brand-logo { width: 56px; height: 56px; }
/* Téléphone : en-tête et boutons plus compacts */
@media (max-width: 760px) {
  .site-header .wrap { min-height: 58px; }
  .site-header .brand-logo { width: 36px; height: 36px; }
  .site-header .brand { font-size: .95rem; gap: 8px; }
  .site-header .brand small { font-size: .7rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 10px 18px; font-size: .95rem; }
}
/* Bouton « Nous contacter » seul dans l'en-tête (page mentions légales) */
.btn-header { padding: 8px 16px; font-size: .9rem; white-space: nowrap; }
@media (max-width: 760px) { .btn-header { padding: 7px 14px; font-size: .85rem; } }
/* Contact : formulaire seul, centré */
.contact-seul { grid-template-columns: 1fr; max-width: 760px; gap: 8px; }
.contact-seul .contact-info { text-align: center; }
.legal h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.leurre { display: none; }
