/* ===== Marga Formations — Design System ===== */
@font-face { font-family: "Bricolage"; src: url("assets/fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("assets/fonts/bricolage-grotesque-v9-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-v20-latin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-v20-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --encre: #1B2A4A; --creme: #FAF5EF; --corail: #FF5C39; --corail-fonce: #D8431F; --corail-btn: #C0391A;
  --jaune: #FFC94D; --menthe: #9BE8C6; --blanc: #FFFFFF;
  --font-titre: "Bricolage", system-ui, sans-serif;
  --font-texte: "Manrope", system-ui, sans-serif;
  --radius: 20px; --shadow: 0 6px 24px rgba(27, 42, 74, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-texte); color: var(--encre); background: var(--creme); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-titre); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .5em; }
h3 { font-size: 1.25rem; }
p { max-width: 62ch; }
a { color: var(--corail-fonce); }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--encre { background: var(--encre); color: var(--creme); }
.section--encre p, .section--encre h2 { color: var(--creme); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: #C0391A; }
.section--encre .eyebrow { color: var(--jaune); }

/* Surlignage "marqueur" */
.highlight { background: linear-gradient(104deg, transparent .6%, var(--jaune) 2.4%, var(--jaune) 97.8%, transparent 99%); padding: .05em .25em; border-radius: .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Boutons */
.btn { display: inline-block; font-family: var(--font-titre); font-weight: 700; font-size: 1.125rem; padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 3px solid transparent; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--shadow); }
.btn--primary { background: var(--corail-btn); color: var(--blanc); }
.btn--ghost { background: transparent; color: var(--encre); border-color: var(--encre); }
.section--encre .btn--ghost { color: var(--creme); border-color: var(--creme); }

/* Badges stickers */
.badge { display: inline-block; background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: 12px; padding: 6px 14px; font-weight: 700; font-size: .9rem; box-shadow: 3px 3px 0 var(--encre); }
.badge--tilt { transform: rotate(-2deg); }
.badge--tilt:nth-child(even) { transform: rotate(1.5deg); }

/* Cartes */
.card { background: var(--blanc); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-4px); }
.card--jaune { background: var(--jaune); }
.card--menthe { background: var(--menthe); }
.card--corail { background: var(--corail); color: var(--blanc); }
.card--corail h3, .card--corail p { color: var(--encre); }
.card h3 { margin-bottom: .4em; }

/* Icônes SVG */
.icon { width: 44px; height: 44px; color: var(--encre); display: block; margin-bottom: .5em; }
.icon--sm { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin: 0 .3em 0 0; }
.card--corail .icon { color: var(--blanc); }

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); align-items: center; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero p.lead { font-size: 1.25rem; margin: 20px 0 28px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* Image hero */
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 520px; object-fit: cover; }

/* Étapes */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: var(--blanc); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--corail); color: var(--blanc); font-family: var(--font-titre); font-weight: 800; font-size: 1.4rem; margin-bottom: 14px; }

/* Témoignages */
.testimonial { background: var(--blanc); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.testimonial footer { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-titre); font-weight: 800; color: var(--encre); background: var(--menthe); }

/* Header / nav */
.site-header { background: var(--creme); position: sticky; top: 0; z-index: 10; border-bottom: 2px solid rgba(27,42,74,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--font-titre); font-weight: 800; font-size: 1.3rem; color: var(--encre); text-decoration: none; }
.logo span { color: var(--corail); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--encre); }
.site-nav ul { display: flex; gap: 26px; list-style: none; align-items: center; }
.site-nav a { color: var(--encre); text-decoration: none; font-weight: 700; }
.site-nav a[aria-current="page"] { border-bottom: 3px solid var(--corail); }
.site-nav .btn { padding: 10px 22px; font-size: 1rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--creme); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 20px; align-items: flex-start; }
}

/* Footer */
.site-footer { background: var(--encre); color: var(--creme); padding: 48px 0 32px; margin-top: 72px; }
.site-footer a { color: var(--creme); }
.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.site-footer .legal { margin-top: 32px; font-size: .85rem; opacity: .8; }

/* Formulaire */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--encre); border-radius: 12px; font: inherit; background: var(--blanc); color: var(--encre); }

/* Tableau admin (partenaires) */
.table-admin { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-admin th, .table-admin td { text-align: left; padding: 13px 18px; border-bottom: 1px solid rgba(27,42,74,.1); }
.table-admin th { width: 40%; }

@media (max-width: 640px) {
  .hero-img { max-height: 260px; }
  .table-admin th, .table-admin td { display: block; width: 100%; }
  .table-admin th { padding-bottom: 2px; border-bottom: 0; }
  .table-admin td { padding-top: 0; overflow-wrap: anywhere; }
  .section { padding: 44px 0; }
  .hero { padding: 56px 0 44px; }
  .card, .step, .testimonial { padding: 22px; }
  .site-footer { padding: 36px 0 24px; margin-top: 44px; }
  body { font-size: 1rem; }
}

/* ===== Impression (fiches programme) ===== */
@media print {
  .site-header, .site-footer, .btn, .cta-row { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .section { padding: 8pt 0; }
  .hero { padding: 8pt 0; }
  .hero p.lead { font-size: 11pt; margin: 6pt 0; }
  /* Hook générique pour masquer une section à l'impression sans toucher .card--jaune globalement (utilisée aussi dans le catalogue) */
  .print-hide { display: none !important; }
  .card, .step, .testimonial { box-shadow: none; border: 1pt solid #999; padding: 10pt; }
  .step::before { width: 20pt; height: 20pt; font-size: 10pt; margin-bottom: 4pt; }
  .badge { box-shadow: none; }
  h1 { font-size: 20pt; margin-bottom: .2em; }
  h2 { font-size: 14pt; margin-bottom: .3em; }
  h3 { font-size: 11.5pt; }
  a { color: #000; text-decoration: none; }
  .highlight { background: none; font-weight: 800; }
}
