/* Rokia-Charia.com — Design system
   Palette et typographie provisoires — voir claude.md section 7.
   À remplacer si un logo / une charte graphique définitive est fournie par Amine. */

:root {
  --color-navy: #1B2A41;
  --color-emerald: #2F6E5D;
  --color-bg: #F7F6F3;
  --color-bg-alt: #EFEDE7;
  --color-text: #2B2B2B;
  --color-gold: #B79A5A;
  --color-white: #FFFFFF;
  --color-border: #DEDAD1;
  --color-danger-bg: #FBF2E9;
  --color-danger-border: #D9A441;

  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Lora", Georgia, serif;
  --font-arabic: "Amiri", serif;

  --radius: 8px;
  --max-width: 1120px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 2.2rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 0.75rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--color-emerald); text-decoration: underline; text-decoration-thickness: 1px; }
a:hover { color: var(--color-navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 63px; width: auto; display: block; }

nav.main-nav { display: flex; align-items: center; gap: 1.5rem; }
nav.main-nav ul { list-style: none; display: flex; gap: 1.35rem; margin: 0; padding: 0; }
nav.main-nav a { color: var(--color-text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
nav.main-nav a:hover { color: var(--color-emerald); }

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--color-emerald); color: var(--color-white); }
.btn-primary:hover { background: #244f43; color: var(--color-white); }
.btn-outline { background: transparent; border-color: var(--color-navy); color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-navy) 0%, #223A57 100%);
  color: var(--color-white);
  padding: 4rem 0;
}
.hero h1 { color: var(--color-white); }
.hero p.lead { font-size: 1.15rem; color: #DCE3EC; max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }

/* Image placeholder frames — aucune image générée ou stock intégrée (voir claude.md section 5) */
.img-placeholder {
  border: 2px dashed var(--color-gold);
  border-radius: var(--radius);
  background: rgba(183, 154, 90, 0.06);
  color: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  min-height: 220px;
  font-size: 0.9rem;
  gap: 0.5rem;
}
.img-placeholder .ico { font-size: 1.8rem; }
.img-placeholder small { color: #6b6455; }

/* Sections */
section.block { padding: 3rem 0; }
section.block.alt { background: var(--color-bg-alt); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.pillar-card h3 { margin-top: 0; }
.pillar-card a { text-decoration: none; font-weight: 600; }

/* Health / legal notice — composant réutilisable obligatoire (claude.md 7.3) */
.health-notice {
  display: flex;
  gap: 0.9rem;
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-left: 4px solid var(--color-danger-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.96rem;
}
.health-notice .ico { font-size: 1.3rem; line-height: 1; }
.health-notice strong { color: var(--color-navy); }

/* Table of contents */
.toc {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.toc h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.toc ul { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.35rem; }

/* Arabic text isolation */
.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 1.15rem;
  color: var(--color-navy);
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-navy);
  padding: 1.1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 1.1rem; color: #4a4a4a; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; font-size: 1.3rem; color: var(--color-emerald); }

/* Author card */
.author-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

/* Forms */
form.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
form.contact-form label { font-weight: 600; font-size: 0.92rem; color: var(--color-navy); }
form.contact-form input, form.contact-form textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--color-white);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; }
.checkbox-row input { margin-top: 0.25rem; }
.form-note { font-size: 0.85rem; color: #6b6b6b; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--color-white);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.whatsapp-btn:hover { background: #1ebe5b; color: var(--color-white); }

/* Bouton WhatsApp flottant — présent sur toutes les pages */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
.whatsapp-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-float .wa-label { display: flex; flex-direction: column; line-height: 1.15; }
.whatsapp-float .wa-status { display: flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 500; opacity: 0.92; }
.whatsapp-float .wa-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #baf7cf;
  box-shadow: 0 0 0 rgba(186,247,207,0.6);
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(186,247,207,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(186,247,207,0); }
  100% { box-shadow: 0 0 0 0 rgba(186,247,207,0); }
}
@media (max-width: 640px) {
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float { padding: 0.8rem; border-radius: 50%; }
}

/* Footer */
footer.site-footer {
  background: var(--color-navy);
  color: #C7D0DB;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}
footer.site-footer a { color: #E4E9EF; }
.footer-logo { height: 60px; width: auto; display: block; margin-bottom: 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1.1rem 1.25rem;
  display: none;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.cookie-banner.visible { display: block; }
.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 640px; }
.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: #6b6b6b; margin-bottom: 1rem; }
.breadcrumb a { color: #6b6b6b; }

/* Utility */
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--color-emerald); font-weight: 700; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 1fr; }
  nav.main-nav ul { display: none; }
  .nav-toggle { display: inline-block; }
  nav.main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-white);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }
  nav.main-nav { position: relative; }
}
