/* =========================================================
   géoduc — page d'accueil
   Les couleurs réseaux (--gd-*, .tone-*, .pill, .net-*) et les
   cartes d'articles viennent de blog.css, chargé avant ce fichier.
   ========================================================= */

.home-section {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.home-section-head {
  margin-bottom: 2rem;
}
.home-section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

h2.home-h2 {
  margin: 0;
  font-size: clamp(1.625rem, 2vw + 1rem, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2.home-h2::before {
  display: none;
}

.home-lead {
  margin: 0.875rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--q2-text-muted);
}

/* ---------- Accroche ---------- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}
@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
  }
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--gd-line);
  border-radius: 9999px;
  background: var(--q2-bg-elev);
  font-family: var(--pico-font-family-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--q2-text-muted);
}
.home-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gd-telecom);
  box-shadow: 0 0 0 3px var(--gd-telecom-soft);
}

h1.home-title {
  margin: 0;
  font-size: clamp(3.5rem, 8vw + 1rem, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.home-subtitle {
  margin: 0.75rem 0 0;
  font-family: var(--pico-font-family-display);
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.625rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--q2-text-strong);
}

.home-intro {
  max-width: 54ch;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--q2-text-muted);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.home-actions .btn {
  width: auto;
  min-height: 48px;
  margin: 0;
  padding-inline: 1.375rem;
}

/* Illustration */
.home-hero-art {
  border-radius: 14px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  overflow: hidden;
}
.home-art {
  display: block;
  width: 100%;
  height: auto;
}
.home-art-grid line {
  stroke: var(--gd-grid);
  stroke-width: 1;
}
.home-art-line {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 0;
  animation: home-draw 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
.home-art-line.line-gaz     { animation-delay: 0.12s; }
.home-art-line.line-eau     { animation-delay: 0.24s; }
.home-art-line.line-telecom { animation-delay: 0.36s; }

.home-art-nodes circle {
  stroke: var(--q2-bg-elev);
  stroke-width: 4;
  animation: home-fade 0.4s ease 1.3s both;
}
.node-elec    { fill: var(--gd-elec); }
.node-gaz     { fill: var(--gd-gaz); }
.node-eau     { fill: var(--gd-eau); }
.node-telecom { fill: var(--gd-telecom); }

@keyframes home-draw {
  from { stroke-dashoffset: 700; }
  to   { stroke-dashoffset: 0; }
}
@keyframes home-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Pourquoi géoduc ? ---------- */
.home-why {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 14px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
}
.home-why .home-h2 {
  margin-bottom: 1.75rem;
}

.home-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.home-why-part {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--tone);
}
.home-why-word {
  font-family: var(--pico-font-family-display);
  font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tone-ink);
}
.home-why-meaning {
  font-size: 1.0625rem;
  line-height: 1.55;
}

.home-why-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.home-why-examples li {
  list-style: none;
  margin: 0;
}
.home-why-examples li::before { content: none; }

/* ---------- La démarche ---------- */
.home-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-card {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  border-top: 4px solid var(--tone);
}
.home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 1.125rem;
}
h3.home-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.home-card-text {
  margin: 0;
  font-size: 0.9875rem;
  line-height: 1.6;
  color: var(--q2-text-muted);
}

/* ---------- Les ambitions (bandeau inversé) ---------- */
/* Bandeau toujours sombre (couleur « ink » de la charte), dans les deux thèmes */
.home-ambitions {
  --amb-bg: #16181D;
  --amb-text: #F1F1EC;
  --amb-muted: #A9AEB6;
  /* Variantes vives des couleurs réseaux, lisibles sur fond sombre */
  --gd-elec: #E8424F;
  --gd-gaz: #F2B705;
  --gd-eau: #3E8BD0;
  --gd-telecom: #3BB36E;
  border-radius: 14px;
  overflow: hidden;
  background: var(--amb-bg);
  color: var(--amb-text);
}
:root[data-theme="dark"] .home-ambitions {
  --amb-bg: #1C1F25;
  box-shadow: inset 0 0 0 1px #2E333B;
}
.home-ambitions-inner {
  padding: clamp(1.75rem, 4vw, 3rem);
}
.home-ambitions .gd-overline {
  color: var(--amb-muted);
}
.home-ambitions .home-h2 {
  color: var(--amb-text);
  margin-bottom: 1.75rem;
}

.home-ambitions-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 860px) {
  .home-ambitions-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
.home-ambitions-list li {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  list-style: none;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--amb-text);
}
.home-ambitions-list li::before { content: none; }
.home-ambition-num {
  font-family: var(--pico-font-family-monospace);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tone);
}
.home-ambition-num::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--tone);
}

/* ---------- Feuille de route ---------- */
.roadmap {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roadmap-item {
  position: relative;
  margin: 0;
  padding: 0 0 1.5rem 2.5rem;
  list-style: none;
}
.roadmap-item::before { content: none; }
.roadmap-item:last-child { padding-bottom: 0; }

/* Le trait vertical prend la couleur du réseau de chaque étape */
.roadmap-item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -2px;
  width: 4px;
  border-radius: 2px;
  background: var(--tone);
  opacity: 0.35;
}
.roadmap-item:last-child::after { display: none; }

.roadmap-node {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 1.375rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px var(--q2-bg), 0 0 0 7px var(--tone-soft);
}
.status-later .roadmap-node,
.status-always .roadmap-node {
  background: var(--q2-bg-elev);
  border: 4px solid var(--tone);
}

.roadmap-card {
  max-width: 720px;   /* largeur des cartes de la feuille de route : marge à droite */
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
}

.roadmap-status {
  display: inline-block;
  padding: 0.1875rem 0.75rem;
  border-radius: 9999px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
h3.roadmap-title {
  margin: 0.75rem 0 0.375rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.roadmap-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--q2-text-muted);
}
.roadmap-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* ---------- Derniers articles ---------- */
.home-more {
  font-weight: 600;
  color: var(--q2-text-strong);
  text-decoration: none;
}
.home-more:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 14px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  border-left: 6px solid var(--gd-eau);
}
.home-cta p {
  margin: 0.5rem 0 0;
  max-width: 56ch;
  color: var(--q2-text-muted);
}
.home-cta .btn {
  width: auto;
  min-height: 48px;
  margin: 0;
}

/* ---------- Contenu libre ---------- */
.home-free > :first-child { margin-top: 0; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .home-art-line,
  .home-art-nodes circle {
    animation: none;
  }
}
