/* Page : template-accueil.php */
:root{
  --shadow-sm: 0 2px 8px rgba(26, 34, 56, 0.04);
  --shadow-md: 0 12px 24px rgba(26, 34, 56, 0.08);
  --shadow-lg: 0 24px 48px rgba(26, 34, 56, 0.12);
}

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

body {
  font-family: var(--police-texte);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--police-titres);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* HEADER */
header {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 20px;
}

header .name {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 18px;
}

header nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

header nav a:hover {
  color: var(--indigo);
}

header .btn-sm {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
}

header .btn-sm:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

header .btn-sm-ic {
  margin-right: 6px;
}

@media screen and (max-width: 768px) {
  header {
    padding: 14px 11px;
  }
}

/* ACCROCHE (lot 18 : la photo de fond, si elle existe, est posée par le
   gabarit, registre_fond_style() ; sinon fond uni, sans fichier demandé) */
.hero {
  position: relative;
  background-color: var(--indigo-deep);
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-inner--seul {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber-75);
  background: rgba(var(--amber-rgb), 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #fff;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 500px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--amber);
  color: var(--indigo-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--amber-63);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--indigo);
  border-color: #fff;
}

/* EXEMPLE DE CONVERSATION */
.mockup {
  margin: 0;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--amber);
  color: var(--amber-15);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.mockup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.mockup-ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-ai-avatar svg {
  width: 20px;
  height: 20px;
}

.mockup-ai-name {
  font-size: 14px;
  font-weight: 600;
}

.mockup-ai-status {
  font-size: 11px;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-ai-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

.chat-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chat-msg {
  margin-bottom: 16px;
  max-width: 85%;
}

.chat-msg--eleve {
  margin-left: auto;
}

.msg-ai,
.msg-user {
  display: block;
}

.msg-ai {
  background: var(--paper);
  padding: 12px 16px;
  border-radius: 12px 12px 12px 4px;
  font-size: 13.5px;
  color: var(--ink);
}

.msg-user {
  background: var(--indigo);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px 12px 4px 12px;
  font-size: 13.5px;
  text-align: right;
}

/* FEATURES */
.features-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.section-head {
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: 32px;
  color: var(--indigo-deep);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-light);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.feature .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--indigo);
}

.feature .ic svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--indigo-deep);
}

.feature p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* COMMENT ÇA MARCHE (lot 18) */
.steps-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
  text-align: center;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  color: var(--indigo-deep);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
}

/* ÉLÈVES ET ÉTUDIANTS */
.community {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.community--sans-image {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}

.community-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-text h2 {
  font-size: 32px;
  color: var(--indigo-deep);
  margin-bottom: 16px;
}

.community-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.publics {
  display: grid;
  gap: 18px;
}

.community--sans-image .publics {
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.public {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.public h3 {
  font-size: 18px;
  color: var(--indigo-deep);
  margin-bottom: 6px;
}

.public p:last-child {
  margin-bottom: 0;
}

/* CHIFFRES (facultatifs) */
.chiffres {
  background: var(--indigo-deep);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
}

.chiffres h2 {
  font-size: 24px;
  margin-bottom: 28px;
}

.chiffres-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.chiffres-grid div {
  display: flex;
  flex-direction: column-reverse;
}

.chiffres-grid dd {
  font-family: var(--police-titres);
  font-variant-numeric: lining-nums;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.chiffres-grid dt {
  font-size: 13px;
  color: var(--indigo-82);
}

/* PARENTS ET DONNÉES */
.confiance {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px;
}

.confiance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.confiance-grid--seul {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.confiance-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.confiance-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.confiance-card .ic svg {
  width: 22px;
  height: 22px;
}

.confiance-card h2 {
  font-size: 22px;
  color: var(--indigo-deep);
  margin-bottom: 10px;
}

.confiance-card p {
  font-size: 14.5px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.lien {
  color: var(--indigo);
  font-weight: 600;
}

.lien:hover,
.lien:focus-visible {
  color: var(--indigo-deep);
}

/* QUESTIONS FRÉQUENTES */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.faq .section-head {
  margin-bottom: 32px;
  text-align: center;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--indigo-deep);
  list-style-position: inside;
}

.faq-reponse {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--text-light);
}

/* APPEL FINAL */
.cta-final {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 40px 90px;
}

.cta-final .cta-inner {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta-final h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta-final p {
  color: var(--indigo-82);
  margin-bottom: 26px;
}

/* TÉMOIGNAGE (facultatif ; photo de fond posée par le gabarit si elle existe) */
.testimonial {
  position: relative;
  background-color: var(--indigo-deep);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Effet Parallaxe */
  padding: 120px 40px;
  text-align: center;
}

.testimonial figure {
  margin: 0;
}

.testimonial blockquote {
  font-family: var(--police-titres);
  font-size: 28px;
  max-width: 800px;
  margin: 0 auto 24px;
  color: #fff;
  font-style: italic;
  line-height: 1.4;
}

.testimonial figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  font-style: normal;
  display: block;
}

/* FOOTER */
footer {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 40px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.footer-nav a {
  color: #fff;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--amber-75);
}

.footer-bottom {
  font-size: 12px;
}

/* RESPONSIVE */
@media(max-width:900px) {
  header nav {
    display: none;
  }

  .hero {
    padding: 60px 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

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

  .features-section {
    padding: 60px 24px;
  }

  .steps-section {
    padding: 0 24px 60px;
  }

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

  .confiance {
    padding: 60px 24px 30px;
  }

  .confiance-grid,
  .community--sans-image .publics {
    grid-template-columns: 1fr;
  }

  .faq {
    padding: 30px 24px 60px;
  }

  .cta-final {
    padding: 30px 24px 60px;
  }

  .cta-final .cta-inner {
    padding: 40px 24px;
  }

  .chiffres {
    padding: 44px 24px;
  }

  .community {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
    gap: 40px;
  }

  .community-image {
    height: 300px;
    order: -1;
  }

  /* Désactive le parallaxe sur mobile pour éviter les bugs */
  .testimonial {
    background-attachment: scroll;
    padding: 80px 24px;
  }

  .testimonial blockquote {
    font-size: 22px;
  }
}

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

  .hero h1 {
    font-size: 32px;
  }
}
