/*
Theme Name: Speedoc Custom Theme
Theme URI: https://speedoc.example
Author: Speedoc Team
Author URI: https://speedoc.example
Description: Theme WordPress sur mesure pour la startup Speedoc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: speedoc
*/

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #11203b;
  --muted: #5f6e85;
  --primary: #1968ff;
  --primary-dark: #0f4ec8;
  --accent: #18c2a4;
  --border: #dce3ef;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(17, 32, 59, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.site-branding a {
  color: inherit;
}

.main-nav .menu,
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.main-nav a {
  font-weight: 600;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  cursor: pointer;
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

.button--primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.button--ghost {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card__badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(25, 104, 255, 0.1);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.section {
  padding: 1.5rem 0 3.5rem;
}

.section h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin: 0 0 0.4rem;
}

.section p.section-intro {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

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

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.cta {
  margin: 3rem 0;
  background: linear-gradient(125deg, #1149b7 0%, #1968ff 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cta h2,
.cta p {
  margin: 0 0 0.8rem;
}

.cta .button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.not-found {
  text-align: center;
  padding: 5rem 0;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
    text-align: center;
  }
}
