/* Groupe Scolaire Roger Bellon — feuille de style */

:root {
  --color-navy: #14275c;
  --color-navy-dark: #0b1638;
  --color-accent: #c9932c;
  --color-bg: #fbfaf6;
  --color-surface: #ffffff;
  --color-text: #2a2d3a;
  --color-text-muted: #5b5f70;
  --color-border: #e6e2d8;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(20, 39, 92, 0.25);
  --shadow-sm: 0 2px 10px -4px rgba(20, 39, 92, 0.2);
  --max-width: 960px;
}

* {
  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;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-navy);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin-top: 0;
}

/* Header */

.site-header {
  background: var(--color-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.brand__text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.15;
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: #c7cde0;
  letter-spacing: 0.03em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #dfe3f2;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  font-weight: 600;
}

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--color-navy), var(--color-navy-dark));
  color: #fff;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__text {
  flex: 1 1 320px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 0.75rem;
}

.hero p {
  color: #d5d9ec;
  max-width: 46ch;
}

.hero__frame {
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.hero__frame img {
  border-radius: 4px;
}

/* Main content */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* Card grid (accueil) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

.card h2 {
  font-size: 1.15rem;
  margin: 0;
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card__cta {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* Article */

.article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.article h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
}

.article .subtitle {
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.article p {
  margin: 0 0 1rem;
}

.article .lede {
  font-size: 1.05rem;
  color: var(--color-navy);
  font-weight: 600;
}

.article__figure {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 220px;
  text-align: center;
}

.article__figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article__figure figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.article::after {
  content: "";
  display: table;
  clear: both;
}

/* Placeholder / "en construction" */

.placeholder {
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
}

.placeholder img {
  margin: 1.5rem auto 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.placeholder h1 {
  font-size: 1.5rem;
}

/* Back link */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--color-accent);
}

/* Footer */

.site-footer {
  background: var(--color-navy-dark);
  color: #b7bcd6;
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .article__figure {
    float: none;
    margin: 0 auto 1.5rem;
  }
}
