/*
Theme Name: Cardioréliance
Theme URI: https://cardioreliance.fr
Author: Cardioréliance
Description: Thème WordPress pour le Centre Cardiologique d'Orléans
Version: 2.0
*/

:root {
  --primary: #1a5276;
  --secondary: #2e86c1;
  --accent: #e74c3c;
  --light: #eaf4fc;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --white: #ffffff;
  --border: #d6eaf8;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--white); }
.topbar .urgence {
  background: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== HEADER / NAV ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--secondary); }
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
nav a {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  transition: color 0.2s;
}
nav a:hover { color: var(--secondary); }
.nav-cta {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary) !important; }

/* BURGER */
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 26px; height: 2px; background: var(--primary); display: block; }

/* ===== CONTAINER ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 90px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--white);
  color: var(--primary);
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); color: var(--primary); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ===== URGENCE BANNER ===== */
.urgence-banner {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 600;
}
.urgence-banner a { color: var(--white); text-decoration: underline; }

/* ===== INTRO ===== */
.intro { padding: 70px 0; background: var(--light); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.intro h2 { font-size: 34px; color: var(--primary); margin-bottom: 18px; }
.intro p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
.stats-row { display: flex; gap: 30px; margin-top: 30px; }
.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ===== SERVICES ===== */
.services { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: var(--primary); margin-bottom: 10px; }
.section-title p { color: var(--muted); font-size: 17px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(26,82,118,0.12); transform: translateY(-4px); }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* ===== EQUIPE ===== */
.equipe { padding: 80px 0; background: var(--light); }
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.medecin-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
  display: flex;
  gap: 16px;
  align-items: center;
}
.medecin-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.medecin-avatar {
  width: 110px; height: 110px;
  aspect-ratio: 1 / 1;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 3px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}
.medecin-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top;
  display: block;
}
.medecin-info h4 { font-size: 16px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.medecin-specialite { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.btn-savoir-plus {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.btn-savoir-plus:hover { background: #c0392b; }

/* ===== SEJOUR ===== */
.sejour { padding: 80px 0; }
.sejour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.sejour-card {
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  padding: 32px 26px;
}
.sejour-card h3 { font-size: 20px; margin-bottom: 14px; }
.sejour-card p { opacity: 0.85; font-size: 15px; margin-bottom: 12px; }
.sejour-card a { color: #aed6f1; font-weight: 600; }
.sejour-tel { font-size: 18px; font-weight: 700; margin-top: 10px; }

/* ===== CONTACT ===== */
.contact { padding: 80px 0; background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact h2 { font-size: 34px; color: var(--primary); margin-bottom: 24px; }
.contact-info p { margin-bottom: 12px; font-size: 15px; }
.contact-info strong { color: var(--primary); }
.contact-info a { color: var(--secondary); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 14px;
  font-family: inherit;
  background: var(--white);
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--primary); }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .logo { color: var(--white); font-size: 22px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; opacity: 0.8; }
footer h4 { color: var(--white); margin-bottom: 16px; font-size: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; font-size: 14px; }
footer ul a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .intro-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  nav ul { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  nav ul.open { display: flex; }
  .burger { display: flex; }
  .stats-row { flex-wrap: wrap; }
  .equipe-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
