/* ==========================================================================
   Diaspora Comorienne de France pour le Sport — site vitrine
   Design system : charte drapeau comorien (vert, or, blanc, rouge, bleu).
   Statique pur, une seule feuille, aucune dépendance externe.
   ========================================================================== */

/* ---- Fonte auto-hébergée (RGPD : aucun appel à Google Fonts) ------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --green-950: #052018;
  --green-900: #0b3a28;
  --green-700: #14532d;
  --green-600: #1b6b3a;
  --gold: #ffc61e;
  --gold-soft: #fff3cd;
  --red: #ce1126;
  --blue: #3a75c4;
  --cream: #faf8f2;
  --paper: #ffffff;
  --ink: #17201b;
  --muted: #55655c;
  --line: #e5e1d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 58, 40, 0.08);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--green-900);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw + 0.8rem, 3.5rem);
  font-weight: 850;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.2rem);
}

h3 {
  font-size: 1.18rem;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--gold);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---- Layout -------------------------------------------------------------- */
.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
}

.section--alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: start;
}

/* ---- Bandeau drapeau (signature graphique) ------------------------------- */
.flagbar {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--gold) 0 25%,
    #ffffff 25% 50%,
    var(--red) 50% 75%,
    var(--blue) 75% 100%
  );
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  background: var(--green-900);
  color: #fff;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 54px;
  height: 54px;
  flex: none;
}

.brand-name {
  display: block;
  font-weight: 850;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-950);
}

.btn-gold:hover {
  background: #ffd558;
  color: var(--green-950);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-green {
  border-color: var(--green-700);
  color: var(--green-700);
}

.btn-outline-green:hover {
  background: var(--green-700);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 198, 30, 0.16), transparent 65%),
    var(--green-900);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.03),
    0 0 0 130px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
}

.hero--page {
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}

/* ---- Eyebrow ------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--gold);
  flex: none;
}

.on-dark .eyebrow {
  color: var(--gold);
}

/* ---- Cards --------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--green-700);
  margin-bottom: 1rem;
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

/* ---- Bloc principe (signature) ------------------------------------------- */
.principle {
  background: var(--green-950);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  gap: 1rem;
}

.principle .statement {
  font-size: clamp(1.4rem, 2.4vw + 0.6rem, 2.1rem);
  font-weight: 850;
  line-height: 1.15;
  color: var(--gold);
  margin: 0;
}

.principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 65ch;
}

/* ---- Étapes numérotées --------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.steps li::before {
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.7rem;
  padding-inline: 0.5rem;
  border-radius: 10px;
  background: var(--green-900);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 0.8rem;
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Listes à coches ------------------------------------------------------ */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a28' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E")
    center / 62% no-repeat;
}

/* ---- Encadrés ------------------------------------------------------------- */
.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}

.notice--honest {
  border-left-color: var(--red);
}

.notice--info {
  border-left-color: var(--blue);
}

.notice h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.notice p,
.notice ul {
  margin-bottom: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.notice ul {
  padding-left: 1.2rem;
}

/* ---- Badges -------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--green-700);
  border: 1px solid rgba(20, 83, 45, 0.18);
  vertical-align: middle;
}

/* ---- Bande CTA finale ----------------------------------------------------- */
.cta-band {
  background: var(--green-900);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 58ch;
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  padding-block: 3rem 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Divers --------------------------------------------------------------- */
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 65ch;
}

.max-prose {
  max-width: 70ch;
}

.mt-2 {
  margin-top: 2rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.doc-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---- Lien d'action dans une carte --------------------------------------- */
.card .card-link {
  margin-top: 0.9rem;
  font-weight: 700;
}

/* ---- Pastilles (types de matériel) --------------------------------------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.pills li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-900);
}

/* ---- Bloc email (adresse unique de contact) ------------------------------ */
.email-box {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: clamp(1rem, 1.6vw + 0.5rem, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  background: var(--gold-soft);
  color: var(--green-900);
  border: 1px solid rgba(20, 83, 45, 0.18);
  text-decoration: none;
}

.email-box:hover {
  background: var(--gold);
  color: var(--ink);
}

.on-dark .email-box {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  border-color: rgba(255, 198, 30, 0.45);
}

.on-dark .email-box:hover {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-nav {
    margin-left: 0;
    width: 100%;
  }

  .site-nav ul {
    gap: 0.2rem 1.1rem;
  }

  .hero::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card {
    transition: none;
  }
}
