@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --orange: #F4500A;
  --orange-light: #FFF0EA;
  --orange-mid: #FFD4C0;
  --black: #0F0D0C;
  --gray-800: #2A2520;
  --gray-500: #8A7F78;
  --gray-200: #F0EDE9;
  --white: #FDFCFB;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(253, 252, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.logo {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
}
.logo span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── HERO ─── */
.hero {
  padding: 9rem 2.5rem 5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 720px;
  margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--orange); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── PAGE HEADER (rubriques) ─── */
.page-header {
  padding: 8rem 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 3rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.page-header p {
  color: var(--gray-500);
  font-size: 1rem;
  font-weight: 300;
}

/* ─── BOUTONS ─── */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; }

.btn-secondary {
  background: transparent;
  color: var(--black);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--gray-200);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ─── BLOB DÉCO ─── */
.blob {
  position: absolute;
  top: 6rem; right: -5rem;
  width: 480px; height: 480px;
  background: radial-gradient(ellipse at center, var(--orange-mid) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
  filter: blur(40px);
}

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.section-label {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.section-label span {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative; top: -2px;
}

.see-all {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.see-all:hover { text-decoration: underline; }

/* ─── MAIN ─── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}

.section { margin-bottom: 5rem; }

/* ─── CARDS ─── */
.cards-grid { display: grid; gap: 1.25rem; }
.cards-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.col-2 { grid-template-columns: 2fr 1fr; }
.cards-grid.col-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 80, 10, 0.08);
}

.card.featured {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.card.featured .card-meta,
.card.featured .card-tag { color: rgba(255,255,255,0.7); }
.card.featured:hover { box-shadow: 0 8px 40px rgba(244, 80, 10, 0.3); }

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.card.featured .card-tag { color: rgba(255,255,255,0.8); }

.card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}
.card.featured p { color: rgba(255,255,255,0.75); }

.card-meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-meta::before {
  content: '';
  display: block;
  width: 3px; height: 3px;
  background: currentColor;
  border-radius: 50%;
}

/* ─── TUTOS ─── */
.tuto-list { display: flex; flex-direction: column; gap: 0.75rem; }

.tuto-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.tuto-item:hover { border-color: var(--orange); background: var(--orange-light); }

.tuto-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--orange-mid);
  min-width: 2rem;
  line-height: 1;
}

.tuto-content { flex: 1; }
.tuto-content h4 { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.tuto-content p { font-size: 0.8rem; color: var(--gray-500); }

.tuto-arrow {
  color: var(--gray-500);
  font-size: 1.1rem;
  transition: transform 0.2s, color 0.2s;
}
.tuto-item:hover .tuto-arrow { transform: translateX(3px); color: var(--orange); }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--gray-200);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  max-width: 480px;
  line-height: 1.2;
}
.cta-banner h2 em { font-style: italic; color: var(--orange); }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem 0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--gray-500); }
.breadcrumb .current {
  color: var(--black);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ─── PAGE ARTICLE ─── */
.article-header {
  padding: 2rem 2.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.article-header .card-tag { margin-bottom: 1rem; display: block; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.article-header .article-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  gap: 1rem;
}

/* ─── SOURCE BOX ─── */
.source-box {
  background: var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.source-box-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}
.source-box-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.source-box-link:hover { color: var(--orange); }
.source-box-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.source-box-url {
  flex: 1;
  font-size: 0.8rem;
  color: var(--gray-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-box-arrow {
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}
.article-body p { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.75; color: var(--gray-800); }
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
}
.pratique-box {
  background: var(--orange-light);
  border-left: 3px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}
.pratique-box strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.pratique-box p { margin: 0; color: var(--black); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--gray-200);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--gray-500);
}
footer a { color: var(--orange); text-decoration: none; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: fadeUp 0.5s ease both; }
h1 { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.5s 0.3s ease both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .breadcrumb { padding-left: 1.25rem; padding-right: 1.25rem; }
  .breadcrumb .current { max-width: 160px; }
  .source-box-url { display: none; }
  .hero, .page-header, .article-header { padding-left: 1.25rem; padding-right: 1.25rem; }
  main, .article-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cards-grid.col-3, .cards-grid.col-2 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .blob { display: none; }
}
