/* =========================================================
   ASBBIC / ASFECCAM — feuille de style
   Palette issue des deux logos : vert du sceau ASBBIC,
   bruns et or du portrait ASFECCAM, rouge et jaune drapeau.
   ========================================================= */

:root {
  --as-vert: #10502f;
  --as-vert-fonce: #0a3520;
  --as-vert-clair: #1c7a4a;
  --as-brun: #4a2c17;
  --as-brun-clair: #7a4a24;
  --as-terre: #a9642b;
  --as-or: #e8b22b;
  --as-or-clair: #f7d46a;
  --as-rouge: #c0272d;
  --as-ivoire: #faf5ec;
  --as-sable: #f2e9d8;
  --as-encre: #2e1b0c;

  --as-display: "Fraunces", Georgia, serif;
  --as-corps: "Karla", system-ui, -apple-system, sans-serif;

  --as-radius: 4px;
  --as-radius-lg: 18px;
  --as-ombre: 0 18px 45px -28px rgba(46, 27, 12, .55);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--as-corps);
  color: var(--as-encre);
  background: var(--as-ivoire);
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .as-display {
  font-family: var(--as-display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 60;
  color: var(--as-brun);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

a { color: var(--as-vert); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--as-terre); }

::selection { background: var(--as-or); color: var(--as-brun); }

:focus-visible {
  outline: 3px solid var(--as-terre);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Élément signature : la bande pagne tissée ---------- */
.as-band {
  height: 12px;
  width: 100%;
  background:
    repeating-linear-gradient(90deg,
      var(--as-or) 0 26px,
      var(--as-rouge) 26px 38px,
      var(--as-vert) 38px 70px,
      var(--as-brun) 70px 78px,
      var(--as-or-clair) 78px 92px);
  position: relative;
}
.as-band--fine { height: 6px; }
.as-band--haute { height: 22px; }

.as-tissage {
  background-image:
    linear-gradient(135deg, rgba(232, 178, 43, .16) 25%, transparent 25%),
    linear-gradient(225deg, rgba(16, 80, 47, .13) 25%, transparent 25%),
    linear-gradient(45deg, rgba(192, 39, 45, .10) 25%, transparent 25%),
    linear-gradient(315deg, rgba(74, 44, 23, .12) 25%, transparent 25%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 0, 17px -17px, 0 17px;
}

/* ---------- Utilitaires de marque ---------- */
.as-eyebrow {
  font-family: var(--as-corps);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--as-terre);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.as-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--as-or);
  display: inline-block;
}
.as-eyebrow--clair { color: var(--as-or-clair); }

.as-bg-vert { background: var(--as-vert); color: #fff; }
.as-bg-vert h2, .as-bg-vert h3, .as-bg-vert h4 { color: #fff; }
.as-bg-brun { background: var(--as-brun); color: var(--as-sable); }
.as-bg-brun h2, .as-bg-brun h3 { color: #fff; }
.as-bg-sable { background: var(--as-sable); }

.as-texte-or { color: var(--as-or); }
.as-texte-vert { color: var(--as-vert); }

.as-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.as-section-titre { max-width: 46rem; }
.as-lead { font-size: 1.12rem; color: #5a422f; }
.as-bg-vert .as-lead, .as-bg-brun .as-lead { color: rgba(255,255,255,.82); }

/* ---------- Boutons ---------- */
.btn {
  font-family: var(--as-corps);
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: .72rem 1.7rem;
  border-width: 2px;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-as {
  background: var(--as-vert);
  border-color: var(--as-vert);
  color: #fff;
}
.btn-as:hover, .btn-as:focus { background: var(--as-vert-fonce); border-color: var(--as-vert-fonce); color: #fff; }

.btn-as-or {
  background: var(--as-or);
  border-color: var(--as-or);
  color: var(--as-brun);
}
.btn-as-or:hover, .btn-as-or:focus { background: var(--as-or-clair); border-color: var(--as-or-clair); color: var(--as-brun); }

.btn-as-ligne {
  background: transparent;
  border-color: currentColor;
  color: var(--as-brun);
}
.btn-as-ligne:hover { background: var(--as-brun); border-color: var(--as-brun); color: #fff; }

.btn-as-ligne-clair { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-as-ligne-clair:hover { background: #fff; color: var(--as-vert); border-color: #fff; }

/* ---------- Navigation ---------- */
.as-topbar {
  background: var(--as-vert-fonce);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  letter-spacing: .02em;
}
.as-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.as-topbar a:hover { color: var(--as-or); }

.navbar.as-nav {
  background: rgba(250, 245, 236, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 44, 23, .12);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.as-nav .navbar-brand { display: flex; align-items: center; gap: .7rem; }
.as-nav .navbar-brand img { height: 54px; width: auto; }
.as-nav .as-brand-sep { width: 1px; height: 34px; background: rgba(74,44,23,.22); }
.as-nav .as-brand-txt {
  font-family: var(--as-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.05;
  color: var(--as-vert);
}
.as-nav .as-brand-txt small {
  display: block;
  font-family: var(--as-corps);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--as-terre);
  font-weight: 600;
}
.as-nav .nav-link {
  font-weight: 600;
  font-size: .93rem;
  color: var(--as-brun);
  padding: .5rem .9rem !important;
  position: relative;
}
.as-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  background: var(--as-or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.as-nav .nav-link:hover::after, .as-nav .nav-link.active::after { transform: scaleX(1); }
.as-nav .nav-link.active { color: var(--as-vert); }
.navbar-toggler { border-color: rgba(74,44,23,.3); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.as-hero {
  position: relative;
  background: var(--as-vert);
  color: #fff;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}
.as-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 12%, rgba(232,178,43,.20), transparent 62%),
    radial-gradient(700px 500px at 5% 100%, rgba(192,39,45,.18), transparent 60%);
}
.as-hero > * { position: relative; z-index: 2; }
.as-hero h1 { color: #fff; }
.as-hero h1 em {
  font-style: normal;
  color: var(--as-or);
  position: relative;
  white-space: nowrap;
}
.as-hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.08em;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--as-or) 0 14px, var(--as-rouge) 14px 20px, var(--as-vert-clair) 20px 32px);
  border-radius: 3px;
  opacity: .95;
}
.as-hero p.as-lead { color: rgba(255,255,255,.86); max-width: 34rem; }

.as-hero-visuel { position: relative; display: flex; justify-content: center; }
.as-hero-disque {
  position: absolute;
  width: min(94%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--as-or-clair), var(--as-or) 62%, var(--as-terre) 100%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 14px rgba(255,255,255,.07), 0 0 0 32px rgba(255,255,255,.045);
}
.as-hero-figure {
  position: relative;
  width: min(88%, 400px);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
}
.as-hero-sceau {
  position: absolute;
  right: 2%;
  bottom: 4%;
  width: min(34%, 145px);
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--as-ombre);
  z-index: 3;
}

/* Ruban de chiffres sous le hero */
.as-ruban {
  background: var(--as-brun);
  color: var(--as-sable);
}
.as-ruban .as-stat { padding: 1.6rem 1rem; text-align: center; }
.as-ruban .as-stat + .as-stat { border-left: 1px solid rgba(242,233,216,.16); }
.as-stat-nombre {
  font-family: var(--as-display);
  font-variation-settings: "WONK" 1, "SOFT" 30;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--as-or);
  line-height: 1;
  display: block;
}
.as-stat-label {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(242,233,216,.78);
  margin-top: .5rem;
  display: block;
}

/* ---------- Cartes ---------- */
.as-carte {
  background: #fff;
  border: 1px solid rgba(74,44,23,.1);
  border-radius: var(--as-radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.as-carte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--as-vert) 0 18px, var(--as-or) 18px 28px, var(--as-rouge) 28px 34px);
  opacity: 0;
  transition: opacity .22s ease;
}
.as-carte:hover { transform: translateY(-5px); box-shadow: var(--as-ombre); border-color: rgba(74,44,23,.2); }
.as-carte:hover::before { opacity: 1; }
.as-carte h3 { margin-bottom: .6rem; }
.as-carte p { color: #5f4732; margin-bottom: 0; }

.as-icone {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--as-sable);
  color: var(--as-vert);
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}
.as-icone--or { background: rgba(232,178,43,.22); color: var(--as-terre); }
.as-icone--rouge { background: rgba(192,39,45,.12); color: var(--as-rouge); }
.as-icone--vert { background: rgba(16,80,47,.1); color: var(--as-vert); }

/* Carte numérotée (piliers) */
.as-pilier { position: relative; padding-left: 3.6rem; }
.as-pilier .as-num {
  position: absolute;
  left: 0; top: .1rem;
  font-family: var(--as-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--as-or);
  border-bottom: 2px solid var(--as-or);
  line-height: 1.1;
}

/* ---------- Bloc image / motif (placeholders) ---------- */
.as-visuel {
  border-radius: var(--as-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--as-sable);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.as-visuel img { width: 62%; opacity: .95; }
.as-visuel--haut { aspect-ratio: 3 / 4; }
.as-visuel figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem .9rem;
  background: linear-gradient(to top, rgba(46,27,12,.88), transparent);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}

/* ---------- Actualités ---------- */
.as-actu {
  background: #fff;
  border-radius: var(--as-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(74,44,23,.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.as-actu:hover { transform: translateY(-5px); box-shadow: var(--as-ombre); }
.as-actu-media { aspect-ratio: 16/10; display: grid; place-items: center; }
.as-actu-media img { width: 46%; }
.as-actu-corps { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.as-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(16,80,47,.1);
  color: var(--as-vert);
  margin-bottom: .8rem;
}
.as-tag--or { background: rgba(232,178,43,.24); color: var(--as-terre); }
.as-tag--rouge { background: rgba(192,39,45,.12); color: var(--as-rouge); }
.as-date { font-size: .82rem; color: #8a7461; font-weight: 600; }

/* ---------- Témoignages ---------- */
.as-temoin {
  background: #fff;
  border-radius: var(--as-radius-lg);
  padding: 2.2rem 1.9rem 1.7rem;
  height: 100%;
  border-top: 5px solid var(--as-or);
  position: relative;
}
.as-temoin::before {
  content: "\201C";
  font-family: var(--as-display);
  font-size: 4.5rem;
  color: rgba(232,178,43,.35);
  line-height: 1;
  position: absolute;
  top: .6rem; right: 1.2rem;
}
.as-temoin p { font-size: 1.02rem; color: #4a3524; }
.as-temoin-auteur { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; }
.as-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--as-vert);
  color: var(--as-or);
  display: grid;
  place-items: center;
  font-family: var(--as-display);
  font-weight: 700;
  flex: 0 0 auto;
}
.as-temoin-auteur strong { display: block; font-size: .95rem; color: var(--as-brun); }
.as-temoin-auteur span { font-size: .82rem; color: #8a7461; }

/* ---------- Chronologie ---------- */
.as-chrono { position: relative; padding-left: 2.2rem; }
.as-chrono::before {
  content: "";
  position: absolute;
  left: 7px; top: .5rem; bottom: .5rem;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--as-or) 0 14px, var(--as-vert) 14px 26px);
  border-radius: 3px;
}
.as-chrono-item { position: relative; padding-bottom: 2rem; }
.as-chrono-item::before {
  content: "";
  position: absolute;
  left: -2.2rem; top: .45rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--as-terre);
}
.as-chrono-annee {
  font-family: var(--as-display);
  font-weight: 700;
  color: var(--as-terre);
  font-size: 1.15rem;
}

/* ---------- Équipe ---------- */
.as-membre { text-align: center; }
.as-membre-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--as-sable);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 4px solid #fff;
  box-shadow: var(--as-ombre);
  overflow: hidden;
}
.as-membre-photo img { width: 66%; }
.as-membre h4 { font-size: 1.1rem; margin-bottom: .1rem; }
.as-membre span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--as-terre); font-weight: 700; }

/* ---------- Partenaires ---------- */
.as-partenaire {
  border: 1px dashed rgba(74,44,23,.28);
  border-radius: var(--as-radius-lg);
  padding: 1.3rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--as-brun-clair);
  background: #fff;
  font-size: .9rem;
  height: 100%;
  display: grid;
  place-items: center;
}

/* ---------- Bandeau d'appel ---------- */
.as-appel {
  background: var(--as-terre);
  color: #fff;
  border-radius: var(--as-radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.as-appel h2 { color: #fff; }
.as-appel::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 26px solid rgba(255,255,255,.12);
}

/* ---------- Formulaires ---------- */
.form-label { font-weight: 700; font-size: .86rem; color: var(--as-brun); letter-spacing: .02em; }
.form-control, .form-select {
  border: 1.5px solid rgba(74,44,23,.22);
  border-radius: 10px;
  padding: .72rem .95rem;
  background: #fff;
  font-size: .97rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--as-terre);
  box-shadow: 0 0 0 .2rem rgba(169,100,43,.18);
}
.form-check-input:checked { background-color: var(--as-vert); border-color: var(--as-vert); }

/* ---------- En-tête de page interne ---------- */
.as-entete {
  background: var(--as-vert);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.4rem) 0;
  position: relative;
  overflow: hidden;
}
.as-entete::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(760px 380px at 82% 8%, rgba(232,178,43,.22), transparent 60%);
}
.as-entete > * { position: relative; z-index: 2; }
.as-entete h1 { color: #fff; }
.as-entete .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: 0; }
.as-entete .breadcrumb a { color: var(--as-or-clair); text-decoration: none; }
.as-entete .breadcrumb-item.active { color: rgba(255,255,255,.75); }
.as-entete .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }

/* ---------- Accordéon ---------- */
.accordion-item { border: 1px solid rgba(74,44,23,.14); border-radius: 12px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.accordion-button {
  font-family: var(--as-display);
  font-weight: 600;
  color: var(--as-brun);
  background: #fff;
  font-size: 1.05rem;
}
.accordion-button:not(.collapsed) { background: var(--as-sable); color: var(--as-vert); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--as-terre); }

/* ---------- Pied de page ---------- */
.as-footer { background: var(--as-vert-fonce); color: rgba(255,255,255,.72); padding-top: 3.6rem; }
.as-footer h5 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--as-corps);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.as-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.as-footer a:hover { color: var(--as-or); }
.as-footer ul { list-style: none; padding: 0; margin: 0; }
.as-footer li { margin-bottom: .55rem; }
.as-footer-logos { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.as-footer-logos img { height: 66px; background: #fff; border-radius: 12px; padding: 6px; }
.as-footer-bas {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.6rem;
  padding: 1.3rem 0;
  font-size: .85rem;
}
.as-social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28);
  display: inline-grid;
  place-items: center;
  margin-right: .5rem;
  transition: background-color .2s ease, color .2s ease;
}
.as-social:hover { background: var(--as-or); border-color: var(--as-or); color: var(--as-vert-fonce) !important; }

/* ---------- Bouton retour haut ---------- */
.as-haut {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--as-vert);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1030;
  box-shadow: var(--as-ombre);
}
.as-haut.visible { opacity: 1; pointer-events: auto; }
.as-haut:hover { background: var(--as-terre); transform: translateY(-3px); }

/* ---------- Apparition au défilement ---------- */
.as-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.as-reveal.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .as-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .as-nav .navbar-brand img { height: 44px; }
  .as-nav .as-brand-txt { font-size: .95rem; }
  .as-nav .nav-link::after { display: none; }
  .as-ruban .as-stat + .as-stat { border-left: none; }
  .as-ruban .as-stat { border-top: 1px solid rgba(242,233,216,.16); }
}
@media (max-width: 575.98px) {
  body { font-size: .98rem; }
  .as-carte { padding: 1.6rem 1.3rem; }
  .as-hero-sceau { width: 30%; }
}
