/*
Theme Name:   Mediscribe Child
Theme URI:    https://mediscribe.fr
Description:  Thème enfant Mediscribe — Contenu médical SEO & AEO
Author:       Florent Durand
Author URI:   https://mediscribe.fr
Template:     twentytwentyfour
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  mediscribe
*/

/* =========================================================
   MEDISCRIBE — DESIGN SYSTEM
   Palette : Teal / Vert sauge / Blanc cassé
   Typo : Fraunces (display) + DM Sans (corps)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,300&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --teal:        #0d7377;
  --teal-dark:   #0a5458;
  --teal-light:  #e6f4f4;
  --sage:        #4a7c6f;
  --sage-light:  #eef4f1;
  --offwhite:    #f8f7f3;
  --text:        #1c1f26;
  --muted:       #5a6170;
  --border:      #d8e0dc;
  --white:       #ffffff;
  --accent:      #c8e6c4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   28px;

  --shadow-sm:   0 1px 3px rgba(13,115,119,.08);
  --shadow-md:   0 4px 16px rgba(13,115,119,.12);
  --shadow-lg:   0 12px 40px rgba(13,115,119,.16);

  --max-w:       1140px;
  --max-w-text:  720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--muted); }
.text-teal  { color: var(--teal); }
.font-display { font-family: var(--font-display); }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section.tight { padding: 48px 0; }
section.hero  { padding: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
}

/* ── Tags / badges ── */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid rgba(13,115,119,.2);
}
.tag-white {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-teal {
  background: var(--teal-light);
  border-color: rgba(13,115,119,.15);
}
.card-dark {
  background: var(--teal-dark);
  color: var(--white);
  border-color: transparent;
}

/* ── Section labels ── */
.section-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: block;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s .15s ease both; }
.fade-up-3 { animation: fadeUp .6s .3s ease both; }
