/* Académie Tawhid : identité Héritage (ivoire, or, encre) */

/* Polices hébergées sur le site (aucun appel à Google), licence SIL OFL : voir /fonts */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-700.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/fonts/outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('/fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/outfit-600.woff2') format('woff2'); }

:root {
  --ivory: #F7F3EA;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --line: #E8DFC8;
  --line-soft: #ECE6D8;
  --gold: #B08D2E;
  --gold-dark: #7A6420;      /* boutons et liens : contraste suffisant sur blanc */
  --gold-light: #D9B95C;     /* or sur fond sombre */
  --bronze: #6B5A2A;
  --ink: #1B1B1B;
  --text: #3A3A3A;
  --muted: #5E5E5E;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --radius: 18px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
a:hover { color: #5C4A12; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 5.4vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 24px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-family: var(--sans); font-size: 17px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold-dark); color: var(--white); }
.btn-primary:hover { background: #66531A; color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: #D9CDA9; }
.btn-ghost:hover { background: var(--ivory); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-big { min-height: 58px; padding: 0 40px; font-size: 18px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 247, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { height: 64px; width: auto; margin-left: -8px; }

/* Haut de page */
.hero2 { background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero2-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px; padding-bottom: 64px; gap: 18px; }
.hero2-mark { width: 120px; }
.hero2 h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; }
.hero2-sub { font-size: 19px; color: var(--text); }
.hero2-small { font-size: 14px; color: var(--muted); margin-top: -6px; }
.hero2 .btn-big { margin-top: 8px; min-width: 260px; }

/* Blocs */
.block { padding: 80px 0; }
.block-white { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.block-ivory { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Pour qui ? */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; min-height: 140px; justify-content: flex-end; background: var(--white); border: 1.5px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.who-card:hover { border-color: var(--gold-dark); transform: translateY(-2px); color: var(--ink); }
.who-title { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.who-sub { font-size: 16px; color: var(--muted); }
.who-go { position: absolute; top: 22px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-dark); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* Comment ça marche */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.how strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.how span:last-child { font-size: 15px; color: var(--muted); }
.num { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ivory); border: 1px solid var(--gold); color: var(--gold-dark); font-size: 18px; font-weight: 600; }

/* Cours */
.fam-sub { color: var(--muted); margin: -10px 0 24px; }
.fam { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fam a { position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: 26px 20px 60px; text-align: center; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.fam a:hover { border-color: var(--gold-dark); transform: translateY(-2px); color: var(--ink); }
.fam strong { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.fam span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.fam i { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--gold-dark); color: var(--white); font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.fam-ijaza { margin-top: 18px; }
.fam-ijaza span { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--gold-light); font-size: 16px; font-weight: 500; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tarifs div { background: var(--white); border-radius: 18px; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.tarifs strong { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--gold-dark); line-height: 1.1; }
.tarifs span { font-size: 14px; color: var(--muted); }
.tarifs-note { margin: 20px 0 24px; color: var(--muted); font-size: 15px; }

/* Pied de page */
.foot { background: var(--ink); color: #CFC8B6; padding: 56px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { font-family: var(--sans); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; font-weight: 500; }
.foot p { margin-bottom: 8px; font-size: 15px; }
.foot a { color: #EDE6D3; text-decoration: none; }
.foot a:hover { color: var(--gold-light); text-decoration: underline; }
.foot-logo { height: 56px; width: auto; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; color: #A39C8B; }

/* Pages de texte : règlement, mentions légales, confidentialité */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 28px; }
.doc h2 { font-size: 28px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--text); margin-bottom: 10px; }
.doc ul { padding-left: 22px; }

/* Tablette et téléphone */
@media (max-width: 900px) {
  .block { padding: 56px 0; }
  .hero2-in { padding-top: 36px; padding-bottom: 44px; }
  .hero2-mark { width: 90px; }
  .hero2 .btn-big { width: 100%; }
  .who, .how, .fam { grid-template-columns: 1fr; }
  .how { gap: 26px; }
  .who-card { min-height: 104px; padding: 22px; }
  .who-go { top: 50%; transform: translateY(-50%); }
  .fam a { text-align: left; align-items: flex-start; padding: 20px 64px 20px 20px; }
  .fam i { left: auto; right: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .fam strong { font-size: 26px; }
  .tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand img { height: 54px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .who-card, .fam a { transition: none; } }
