/* ============ Les Écuries du Camajey — thème crème & brun chaleureux ============ */
:root {
  --creme: #f6f0e7;
  --creme-2: #efe6d8;
  --blanc: #fffdf9;
  --brun: #2e2318;
  --brun-2: #4b3a2a;
  --taupe: #8a6a4f;
  --taupe-clair: #b99a7b;
  --dore: #c98f4e;        /* décoratif uniquement (bordures, filets) */
  --dore-fonce: #a4632a;  /* texte et fonds de boutons : contraste AA */
  --vert: #6d7f5c;
  --rouge: #a4442e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 35, 24, .10);
  --shadow-soft: 0 4px 14px rgba(46, 35, 24, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--brun);
  background: var(--creme);
}
img { max-width: 100%; }
a { color: var(--taupe); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; color: var(--brun); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ---------- accessibilité ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brun); color: #fff; padding: .8rem 1.4rem;
  border-radius: 0 0 12px 0; font-weight: 800; text-decoration: none;
}
.skip:focus { left: 0; }

/* Police adaptée à la dyslexie (activable par le bouton « Aa Lecture facile ») */
html.dys body, html.dys input, html.dys textarea, html.dys select, html.dys button,
html.dys .brand strong, html.dys h1, html.dys h2, html.dys h3, html.dys blockquote.pull {
  font-family: 'OpenDyslexic', 'Nunito Sans', system-ui, sans-serif !important;
  letter-spacing: .015em;
}
html.dys body { line-height: 1.8; }
html.dys .lead, html.dys p { word-spacing: .05em; }

.topbar-right { display: flex; align-items: center; gap: .5rem; }
.a11y-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem; cursor: pointer;
  background: var(--creme-2); color: var(--brun-2); border: 1px solid rgba(46,35,24,.12);
  border-radius: 999px; padding: .5rem .8rem; min-height: 44px; font: inherit; font-weight: 700; font-size: .82rem;
}
.a11y-toggle:hover { background: #e6d8c4; }
.a11y-toggle[aria-pressed="true"] { background: var(--dore-fonce); color: #fff; border-color: var(--dore-fonce); }
.a11y-toggle span { font-size: .78rem; }

/* Barre d'objectif « affirmée », collée sous le header, sur toutes les pages */
.soutien-bar {
  position: relative; display: flex; align-items: stretch;
  height: 48px; background: #F0E7D5; overflow: hidden;
  border-bottom: 1px solid rgba(46,35,24,.08);
}
.sb-fill {
  flex: none; width: 0; min-width: fit-content;
  background: linear-gradient(90deg, #A9661F 0%, #C07A33 100%);
  border-radius: 0 24px 24px 0;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding-right: 20px;
  transition: width 1s ease;
}
.sb-shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: sb-shine 3.5s ease-in-out infinite;
}
@keyframes sb-shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.sb-heart { font-size: 19px; line-height: 1; animation: sb-pulse 2.5s ease-in-out infinite; }
@keyframes sb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.sb-count { color: #fff; font-weight: 900; font-size: 19px; white-space: nowrap; }
.sb-pct { color: #F4DFC4; font-weight: 700; font-size: 16px; white-space: nowrap; }
.sb-rest {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  padding: 0 20px; padding-right: 150px;
}
.sb-reste-txt {
  color: #8F5720; font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-cta {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 3;
  background: #3E2C1E; color: #FBF7EF; font-weight: 800; font-size: 14px;
  padding: 7px 16px; border-radius: 99px; text-decoration: none; white-space: nowrap;
}
.sb-cta:hover { background: #241a10; }
@media (max-width: 640px) {
  .sb-pct { display: none; }
  .sb-reste-txt { display: none; }
  .sb-rest { padding-right: 130px; }
  /* compteur à gauche du remplissage pour ne pas croiser le bouton */
  .sb-fill { justify-content: flex-start; padding-left: 16px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-heart { animation: none; }
  .sb-shine { display: none; }
}

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 240, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 35, 24, .08);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brun); }
.brand img { height: 54px; }
.brand strong { font-family: 'Fraunces', serif; font-size: 1.05rem; display: block; line-height: 1.1; }
.brand em { font-style: normal; font-size: .78rem; color: var(--taupe); }
.topbar nav { display: flex; align-items: center; gap: clamp(.4rem, 1.5vw, 1.1rem); flex-wrap: wrap; }
.topbar nav a {
  text-decoration: none; color: var(--brun-2); font-weight: 700; font-size: .95rem;
  padding: .35rem .5rem; border-radius: 10px;
}
.topbar nav a:hover { background: var(--creme-2); }
.topbar nav a.on { color: var(--dore-fonce); }
.btn-nav {
  background: var(--brun); color: #fff !important; padding: .5rem 1rem !important;
  border-radius: 999px;
}
.btn-nav:hover { background: var(--taupe) !important; }
.burger { display: none; font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: var(--brun); min-width: 44px; min-height: 44px; line-height: 1; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 800; text-align: center; line-height: 1.2;
  padding: .85rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1.02rem; font-family: inherit; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--dore-fonce); color: #fff; }
.btn-dark { background: var(--brun); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .92); color: var(--brun); }
.btn-big { font-size: 1.25rem; padding: 1.1rem 2.4rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 720px); display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,35,24,.05) 30%, rgba(46,35,24,.72) 100%);
}
.hero-inner {
  position: relative; z-index: 2; color: #fff; width: 100%;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 1100px; margin: 0 auto;
}
.hero-inner h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); margin: 0 0 .6rem; }
.hero-inner p {
  font-size: clamp(1.02rem, 2vw, 1.25rem); max-width: 640px;
  text-shadow: 0 1px 10px rgba(0,0,0,.45); margin: 0 0 1.4rem;
}
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.hero-badge {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 3;
  background: rgba(255,253,249,.95); color: var(--brun); border-radius: 999px;
  padding: .5rem 1.1rem; font-weight: 800; box-shadow: var(--shadow-soft); font-size: .95rem;
  text-decoration: none;
}
.hero-badge b { color: var(--dore-fonce); font-size: 1.15rem; }

/* ---------- sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem); }
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap-narrow { max-width: 780px; margin: 0 auto; }
.section-white { background: var(--blanc); }
.section-creme2 { background: var(--creme-2); }
.section-brun { background: var(--brun); color: #f4ece0; }
.section-brun h2, .section-brun h3 { color: #fff; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 800; color: var(--dore-fonce); margin-bottom: .4rem;
}
.lead { font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.card {
  background: var(--blanc); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(46,35,24,.05);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none; color: var(--brun); display: block;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .pic { font-size: 2rem; }
.card h3 { margin: .5rem 0 .4rem; }
.card p { margin: 0; color: var(--brun-2); }
.card .go { display: inline-block; margin-top: .8rem; font-weight: 800; color: var(--dore-fonce); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; text-align: center; }
.stat b { font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--dore-fonce); display: block; }
.stat span { font-weight: 600; }

blockquote.pull {
  margin: 0; padding: 0 clamp(1rem, 6vw, 4rem); text-align: center;
  font-family: 'Fraunces', serif; font-size: clamp(1.25rem, 2.8vw, 1.8rem); font-weight: 600;
  color: var(--brun-2);
}
blockquote.pull footer { font-family: 'Nunito Sans', sans-serif; font-size: .95rem; margin-top: 1rem; color: var(--taupe); font-weight: 700; }

.piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.pilier { background: var(--blanc); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-soft); }
.pilier b { display: block; font-family: 'Fraunces', serif; font-size: 1.2rem; margin-bottom: .4rem; color: var(--dore-fonce); }

.rich h3 { margin: 1.4rem 0 .5rem; color: var(--taupe); }
.rich ul { padding-left: 1.2rem; }
.rich li { margin: .3rem 0; }

/* ---------- mur de soutiens ---------- */
.mur { columns: 3 300px; column-gap: 1.2rem; }
.temoignage {
  break-inside: avoid; background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.4rem; margin: 0 0 1.2rem;
  border-top: 4px solid var(--dore);
}
.temoignage p.msg { margin: 0 0 .9rem; font-size: .98rem; }
.temoignage .qui { display: flex; align-items: center; gap: .6rem; }
.temoignage .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--creme-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; color: var(--taupe); flex: none;
}
.temoignage .qui b { display: block; line-height: 1.2; }
.temoignage .qui span { font-size: .85rem; color: var(--taupe); }
.temoignage .tag {
  margin-left: auto; font-size: .72rem; background: var(--creme-2); border-radius: 999px;
  padding: .2rem .6rem; font-weight: 700; color: var(--brun-2); flex: none;
}
.compteur {
  text-align: center; margin-bottom: 2rem;
}
.compteur b { font-family: 'Fraunces', serif; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--dore-fonce); }

/* ---------- formulaires ---------- */
form.grand label { display: block; font-weight: 800; margin: 1.1rem 0 .3rem; }
form.grand label small { font-weight: 600; color: var(--taupe); }
form.grand input[type=text], form.grand input[type=email], form.grand input[type=tel],
form.grand textarea, form.grand select {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--creme-2);
  background: var(--blanc); font: inherit; color: var(--brun);
}
form.grand input:focus, form.grand textarea:focus { outline: none; border-color: var(--dore); }
form.grand textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1.1rem 0; font-size: .93rem; }
.consent input { margin-top: .3rem; transform: scale(1.3); }
.form-error {
  background: #fdeae4; border: 2px solid var(--rouge); color: var(--rouge);
  border-radius: 12px; padding: .9rem 1.1rem; font-weight: 700; margin-bottom: 1rem;
}
.form-card {
  background: var(--blanc); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.sig-bloc { margin-top: 1.1rem; }
#sigpad {
  width: 100%; height: 160px; border: 2px dashed var(--taupe-clair); border-radius: 12px;
  background: var(--blanc); touch-action: none; cursor: crosshair;
}
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.sig-tools button { background: none; border: 0; color: var(--taupe); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .9rem; }

/* ---------- financeurs ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.box-offre {
  background: var(--blanc); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-soft); text-align: center; border-top: 5px solid var(--taupe-clair);
}
.box-offre:nth-child(2) { border-top-color: var(--dore); transform: scale(1.03); }
.box-offre h3 { margin: 0 0 .2rem; }
.box-offre .prix { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--dore-fonce); font-weight: 700; }
.box-offre ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.box-offre li { padding: .4rem 0; border-top: 1px solid var(--creme-2); font-size: .95rem; }
.telecharger {
  display: flex; gap: 1.3rem; align-items: center; background: var(--blanc);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem;
}
.telecharger .picto { font-size: 3rem; }

/* ---------- objectif de soutiens (grande version accueil / soutiens) ---------- */
.objectif {
  background: var(--blanc); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 820px; margin: 0 auto; text-align: center;
  border-top: 6px solid var(--dore);
}
.objectif .oj-chiffres { display: flex; align-items: baseline; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.objectif .oj-actuel { font-family: 'Fraunces', serif; font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 700; color: var(--dore-fonce); line-height: 1; }
.objectif .oj-sur { font-size: 1.2rem; color: var(--taupe); font-weight: 700; }
.objectif .oj-bar {
  height: 26px; background: var(--creme-2); border-radius: 999px; overflow: hidden;
  margin: 1.2rem 0 .6rem; box-shadow: inset 0 2px 4px rgba(46,35,24,.08);
}
.objectif .oj-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--dore) 0%, var(--dore-fonce) 100%);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.objectif .oj-reste { font-weight: 700; color: var(--brun-2); }
.objectif .oj-reste b { color: var(--dore-fonce); }

/* ---------- cours & tarifs ---------- */
.disciplines { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.disciplines span {
  background: var(--blanc); border: 1px solid rgba(46,35,24,.08); border-radius: 999px;
  padding: .5rem 1.1rem; font-weight: 700; box-shadow: var(--shadow-soft);
}
.tarif-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.tarif-card {
  background: var(--blanc); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 1.4rem; border-top: 4px solid var(--taupe-clair);
}
.tarif-card h3 { margin: 0 0 .6rem; }
.tarif-card .rich ul { list-style: none; padding: 0; }
.tarif-card .rich li { padding: .35rem 0; border-top: 1px solid var(--creme-2); }
.tarif-card .rich li:first-child { border-top: 0; }
.horaires-table { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.horaires-table td { padding: .6rem 1rem; border-top: 1px solid var(--creme-2); }
.horaires-table td:first-child { font-weight: 800; }
.cours-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .cours-bas { grid-template-columns: 1fr; } }

/* ---------- QR de partage ---------- */
.qr-box {
  display: flex; gap: 1.2rem; align-items: center; background: var(--creme-2);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.qr-box img { width: 120px; height: 120px; background: #fff; border-radius: 12px; padding: 8px; }
.qr-box .qr-txt { flex: 1; min-width: 200px; }
.qr-box .qr-txt b { display: block; margin-bottom: .3rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- presse ---------- */
.presse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.presse-grid img {
  width: 100%; border-radius: 10px; box-shadow: var(--shadow-soft);
  transition: transform .18s; background: #fff;
}
.presse-grid a:hover img { transform: scale(1.04); }

/* ---------- footer ---------- */
footer { background: var(--brun); color: #e9decf; padding: 3rem clamp(1rem, 4vw, 2.5rem) 1rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.foot-logo { height: 70px; opacity: .9; }
footer h4 { color: #fff; font-family: 'Fraunces', serif; margin: 0 0 .5rem; }
footer a { color: #e8c896; }
footer p { font-size: .95rem; }
.foot-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; flex-wrap: wrap;
}

/* ---------- divers ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.vu { opacity: 1; transform: none; }
.center { text-align: center; }
.mt { margin-top: 1.6rem; }
.labels-img { max-height: 300px; display: block; margin: 0 auto; }
.partenaires-img { display: block; margin: 0 auto; border-radius: 12px; }
.legende { text-align: center; font-size: .9rem; color: var(--taupe); margin-top: .5rem; }

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .burger { display: block; }
  .a11y-toggle span { display: none; }
  .topbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--creme); flex-direction: column; align-items: stretch;
    padding: .8rem 1.2rem 1.2rem; border-bottom: 1px solid rgba(46,35,24,.1);
    box-shadow: var(--shadow);
  }
  .topbar nav.open { display: flex; }
  .topbar nav a { padding: .7rem .6rem; font-size: 1.05rem; }
  .hero { min-height: 70vh; }
  .hero-badge { top: auto; bottom: 1rem; right: 1rem; font-size: .85rem; }
}
@media print {
  .topbar, footer, .hero-cta { display: none; }
}
