/* MathsGaillard — styles partagés vitrine (accueil + pages SEO) */

:root {

  --marron-marque: #87644f;

  --primary: #87644f;

  --primary-soft: #9a7862;

  --accent: #ebbc34;

  --accent-end: #ecc132;

  --action-green: #3d8f6d;

  --action-green-deep: #2f6b52;

  --text: #222;

  --text-muted: #555;

  --bg: #f9fafc;

  --surface: #fff;

  --surface-muted: #faf6f0;

  --surface-muted-deep: #ede4d8;

  --border-subtle: color-mix(in srgb, var(--primary) 10%, white);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);

  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);

  --radius-sm: 8px;

  --radius-md: 10px;

  --radius-lg: 12px;

}



*,

*::before,

*::after {

  box-sizing: border-box;

}



body.vitrine {

  font-family: "Segoe UI", Roboto, sans-serif;

  background: var(--bg);

  color: var(--text);

  margin: 0;

  line-height: 1.65;

  scroll-behavior: smooth;

}



/* ——— Navigation ——— */

.site-nav {

  position: sticky;

  top: 0;

  z-index: 100;

  background: #fff;

  border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, white);

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

}



.site-nav-inner {

  max-width: 1100px;

  margin: 0 auto;

  padding: 0.75rem 1.25rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

}



.site-logo {

  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  font-size: 1.25rem;

  font-weight: 800;

  color: var(--primary);

  text-decoration: none;

  white-space: nowrap;

}



.site-logo-img {

  display: block;

  width: auto;

  height: 2.25rem;

  flex-shrink: 0;

}



.site-logo:hover {

  color: var(--action-green-deep);

}



.site-nav-toggle {

  display: none;

  border: 1px solid color-mix(in srgb, var(--primary) 25%, white);

  background: #fff;

  color: var(--primary);

  font-weight: 600;

  font-size: 0.9rem;

  padding: 0.45rem 0.85rem;

  border-radius: var(--radius-sm);

  cursor: pointer;

}



.site-nav-links {

  display: flex;

  align-items: center;

  gap: 0.25rem 1.25rem;

  list-style: none;

  margin: 0;

  padding: 0;

  flex-wrap: wrap;

  justify-content: flex-end;

}



.site-nav-links a {

  color: var(--text);

  text-decoration: none;

  font-weight: 600;

  font-size: 0.95rem;

  padding: 0.35rem 0;

  border-bottom: none;

  text-decoration-line: underline;

  text-decoration-color: transparent;

  text-decoration-thickness: 2px;

  text-underline-offset: 0.15em;

  transition: color 0.2s, text-decoration-color 0.2s;

}



.site-nav-links a:hover,

.site-nav-links a[aria-current="page"] {

  color: var(--primary);

  text-decoration-color: var(--accent);

}



.site-nav-cta {

  display: inline-block;

  background: var(--action-green) !important;

  color: #fff !important;

  padding: 0.5rem 1rem !important;

  border-radius: 999px;

  border-bottom: none !important;

  text-decoration: none !important;

  box-shadow: 0 3px 10px rgba(61, 143, 109, 0.35);

}



.site-nav-cta:hover {

  background: var(--action-green-deep) !important;

  filter: brightness(1.05);

}



@media (max-width: 768px) {

  .site-nav-toggle {

    display: block;

  }



  .site-nav-links {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    flex-direction: column;

    align-items: stretch;

    background: #fff;

    padding: 1rem 1.25rem 1.25rem;

    border-bottom: 1px solid color-mix(in srgb, var(--primary) 15%, white);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  }



  .site-nav-links.is-open {

    display: flex;

  }



  .site-nav-links a {

    padding: 0.5rem 0;

    text-underline-offset: 0.12em;

  }



  .site-nav-cta {

    text-align: center;

    margin-top: 0.5rem;

  }



  .site-nav-inner {

    position: relative;

    flex-wrap: wrap;

  }

}



/* ——— Fil d'Ariane ——— */

.breadcrumb {

  max-width: 900px;

  margin: 1rem auto 0;

  padding: 0 1.25rem;

  font-size: 0.88rem;

  color: #666;

}



.breadcrumb ol {

  list-style: none;

  margin: 0;

  padding: 0;

  display: flex;

  flex-wrap: wrap;

  gap: 0.35rem;

}



.breadcrumb a {

  color: var(--primary);

  text-decoration: none;

  font-weight: 600;

}



.breadcrumb a:hover {

  text-decoration: underline;

}



/* ——— Hero accueil ——— */

#contact {
  scroll-margin-top: 4.5rem;
}

.accueil-hero {

  padding: 1.35rem 1.25rem;

  background: var(--marron-marque);

  color: #fff;

  position: relative;

  overflow: hidden;

  z-index: 1;

  border-bottom: 3px solid var(--accent);

}

.accueil-hero-inner {

  max-width: 1100px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: minmax(0, 1fr) min(19.5rem, 100%);

  gap: 1.25rem 2rem;

  align-items: center;

  position: relative;

  z-index: 1;

}

.hero-pitch {

  display: flex;

  align-items: flex-start;

  gap: 1.25rem 1.5rem;

  text-align: left;

}

.hero-form-card {

  background: rgba(255, 255, 255, 0.96);

  color: var(--text);

  border-radius: var(--radius-md);

  padding: 0.9rem 1rem 0.85rem;

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

}

.hero-form-title {

  margin: 0 0 0.65rem;

  font-size: 1rem;

  font-weight: 700;

  color: var(--primary);

  line-height: 1.3;

}

.hero-byline {

  margin: 0.6rem 0 0;

  font-size: 0.9rem;

  line-height: 1.45;

  opacity: 0.95;

}

.hero-byline strong {

  font-weight: 700;

}

.hero-inline-link {

  color: #fff;

  text-decoration: underline;

  text-underline-offset: 0.12em;

  text-decoration-color: rgba(235, 188, 52, 0.75);

}

.hero-inline-link:hover {

  text-decoration-color: var(--accent);

}



.accueil-hero::before {

  content: "∑ ∫ π";

  position: absolute;

  font-size: 4rem;

  font-weight: 300;

  opacity: 0.04;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  letter-spacing: 3rem;

  pointer-events: none;

}



.header-photo {

  width: 96px;

  height: 96px;

  flex-shrink: 0;

  border-radius: 50%;

  border: 3px solid var(--accent);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);

  object-fit: cover;

  object-position: center 70%;

  z-index: 1;

}



.header-content {

  text-align: left;

  flex: 1 1 auto;

  min-width: 0;

  z-index: 1;

}



.accueil-hero h1 {

  font-size: clamp(1.6rem, 3.5vw, 2rem);

  margin: 0 0 0.5rem;

  color: #fff;

  font-weight: 700;

  line-height: 1.25;

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);

}



.hero-promise {

  font-size: clamp(1.05rem, 2.2vw, 1.2rem);

  color: #fff;

  font-weight: 600;

  margin: 0 0 0.5rem;

  line-height: 1.45;

  max-width: 36rem;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);

}



.header-buttons {

  display: flex;

  flex-direction: row;

  flex-wrap: wrap;

  justify-content: flex-start;

  gap: 0.75rem;

  z-index: 1;

  align-items: center;

  margin-top: 1rem;

}



.header-btn {

  padding: 0.65rem 1.25rem;

  border-radius: var(--radius-sm);

  font-weight: 600;

  font-size: 0.95rem;

  text-decoration: none;

  transition: background 0.2s, transform 0.2s;

  white-space: nowrap;

}



.header-btn.primary {

  background: var(--action-green);

  color: #fff;

  box-shadow: 0 4px 14px rgba(47, 107, 82, 0.35);

}



.header-btn.primary:hover {

  background: var(--action-green-deep);

  transform: translateY(-1px);

}



.header-btn.secondary {

  background: transparent;

  color: #fff;

  border: 2px solid rgba(255, 255, 255, 0.85);

}



.header-btn.secondary:hover {

  background: rgba(255, 255, 255, 0.1);

  transform: translateY(-1px);

}



@media (min-width: 901px) {

  .accueil-hero {
    padding: 0.9rem 1.25rem;
  }

  .hero-form-card {
    padding: 0.7rem 0.9rem 0.65rem;
  }

  .hero-form-title {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
  }

  .lead-form--hero .lead-form-field,
  .lead-form--hero .lead-form-row-2 {
    margin-bottom: 0.32rem;
  }

  .lead-form--hero .lead-form-label {
    font-size: 0.76rem;
    margin-bottom: 0.05rem;
  }

  .lead-form--hero .lead-form-field input[type="text"],
  .lead-form--hero .lead-form-field input[type="email"],
  .lead-form--hero .lead-form-field input[type="tel"],
  .lead-form--hero .lead-form-select {
    padding: 0.36rem 0.55rem;
    font-size: 0.86rem;
  }

  .lead-form--hero .lead-form-submit {
    padding: 0.5rem 1rem;
  }

  .lead-form--hero .lead-form-actions {
    margin-top: 0.4rem;
  }

  .lead-form--hero .lead-form-note {
    margin-top: 0.3rem;
    font-size: 0.7rem;
  }

}

@media (max-width: 900px) {

  .accueil-hero-inner {

    grid-template-columns: 1fr;

    gap: 1.5rem;

  }

  .hero-form-card {

    order: -1;

  }

}

@media (max-width: 768px) {

  .accueil-hero {

    padding: 1.5rem 1.25rem 1.75rem;

  }

  .hero-pitch {

    flex-direction: column;

    align-items: center;

    text-align: center;

  }

  .header-content {

    text-align: center;

  }

  .header-buttons {

    width: 100%;

    flex-direction: column;

    justify-content: center;

  }



  .header-btn {

    width: 100%;

    max-width: 22rem;

    text-align: center;

  }

}



/* ——— Bandeau connexion élève (Classroom) ——— */
.student-login-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  padding: 0.7rem 1rem;
  background: color-mix(in srgb, var(--accent) 16%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  position: relative;
  z-index: 2;
}

.student-login-bar p {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.student-login-bar .vitrine-btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
}

/* ——— Hero pages intérieures ——— */

.page-hero {

  background: linear-gradient(160deg, var(--primary), color-mix(in srgb, var(--primary) 88%, #1a1008));

  color: #fff;

  text-align: center;

  padding: 1.65rem 1.25rem 1.85rem;

  border-bottom: 3px solid var(--accent);

}



.page-hero h1 {

  font-size: clamp(1.5rem, 3.5vw, 2.05rem);

  margin: 0 0 0.55rem;

  font-weight: 700;

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

  line-height: 1.25;

}



.page-hero .lead {

  font-size: clamp(0.95rem, 2.2vw, 1.05rem);

  max-width: 560px;

  margin: 0 auto 1rem;

  opacity: 0.95;

  line-height: 1.5;

}

.page-hero .lead-sub {
  display: block;
  margin-top: 0.55rem;
}



.page-hero .hero-meta {

  font-size: 0.92rem;

  opacity: 0.88;

  margin-bottom: 1.5rem;

}



/* ——— Fond décoratif contenu ——— */

.content-wrapper {

  position: relative;

  min-height: calc(100vh - 200px);

  padding: 1.75rem 1rem 2.5rem;

  overflow: hidden;

  background: color-mix(in srgb, var(--bg) 96%, white);

}



.content-wrapper::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background-image: url('fond d\'écran maths.png');

  background-size: cover;

  background-position: top center;

  background-repeat: no-repeat;

  opacity: 0.14;

  z-index: 0;

  pointer-events: none;

}

/* Sous-pages : même fond que l'accueil */
.page-shell {
  position: relative;
  padding: 1.75rem 1rem 2.5rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 96%, white);
}

.page-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('fond d\'écran maths.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}

/* Page formation MPSI */
.infos-formation-body .section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.15rem;
  padding: 2rem 2.1rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8e8e8;
  position: relative;
  z-index: 1;
}

.infos-formation-body .section h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.infos-formation-body .section p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.infos-formation-body .section p:last-child {
  margin-bottom: 0;
}

.formation-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

.formation-highlight {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: #fffdf5;
  border-radius: 0 4px 4px 0;
}

.formation-highlight p {
  margin: 0;
  line-height: 1.6;
}

.formation-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8e8e8;
}

.formation-tag {
  display: inline-block;
  background: #f5f0eb;
  border: 1px solid #ddd0c4;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.formation-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.formation-checklist li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}

.formation-checklist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.formation-pricing {
  max-width: 720px;
  margin: 0 auto 1.15rem;
  padding: 2rem 2.1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, white), color-mix(in srgb, var(--accent) 42%, white));
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 18px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  z-index: 1;
}

.formation-pricing h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.formation-pricing .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}

.formation-pricing p {
  margin: 0;
  line-height: 1.6;
}

.formation-cta-row {
  text-align: center;
  margin: 0 auto 1.15rem;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.formation-contact-band {
  text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, white) !important;
}

.formation-contact-band p + p {
  margin-top: 0.75rem;
}



/* ——— Panneaux blancs (accueil + sous-pages) ——— */
.vitrine-section,
.content-section {
  max-width: 720px;
  margin: 0 auto 1.15rem;
  padding: 2rem 2.1rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8e8e8;
  position: relative;
  z-index: 1;
}

.vitrine-section:first-of-type,
.page-main > .content-section:first-of-type {
  margin-top: 0;
}

.vitrine-section:last-of-type,
.page-main > .content-section:last-of-type {
  margin-bottom: 0;
}

.vitrine-section h2,
.content-section h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  border-left: none;
  padding-left: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.vitrine-lead-title {
  font-size: 1.3rem;
  color: var(--primary);
}

.vitrine-section h3,
.content-section h3 {
  color: var(--text);
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}

.vitrine-section p,
.vitrine-section li,
.content-section p,
.content-section li {
  font-size: 1.02rem;
  line-height: 1.7;
}

.vitrine-section strong,
.content-section strong {
  color: inherit;
  font-weight: 600;
}

.vitrine-section a:not(.button):not(.vitrine-btn):not(.header-btn),
.content-section a:not(.button):not(.vitrine-btn):not(.header-btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vitrine-section a:not(.button):not(.vitrine-btn):not(.header-btn):hover,
.content-section a:not(.button):not(.vitrine-btn):not(.header-btn):hover {
  color: var(--action-green-deep);
}



/* ——— Contenu page intérieure ——— */

.page-main {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.content-section ul,
.vitrine-section ul {
  padding-left: 1.25rem;
}

.infos-formation-body .container {
  max-width: none;
  padding: 0;
  margin: 0;
}

.content-section.cta-band,
.content-section.content-section--login {
  text-align: center;
}

.content-section.content-section--login {
  padding-bottom: 2.5rem;
}



.level-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid #eee;
}

.level-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  padding: 1.1rem 0;
}

.level-card:last-child {
  border-bottom: none;
}

.level-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--primary);
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.feature-list li {
  margin-bottom: 0.65rem;
  line-height: 1.65;
}

.content-section--login {
  text-align: center;
  padding-bottom: 3rem;
}



/* ——— Tableau zones ——— */

.zones-table-wrap {

  overflow-x: auto;

  margin: 1.25rem 0;

  border-radius: 0;

  border: 1px solid #e5e5e5;

}



.zones-table {

  width: 100%;

  border-collapse: collapse;

  font-size: 0.98rem;

}



.zones-table th,

.zones-table td {

  padding: 0.85rem 1rem;

  text-align: left;

  border-bottom: 1px solid #eee;

  vertical-align: top;

}



.zones-table th {
  background: #f3f3f3;
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}



.zones-table tr:last-child td {

  border-bottom: none;

}



.zones-table td:first-child {
  font-weight: 600;
  color: var(--text);
  background: #f8f8f8;
  white-space: nowrap;
}

.zones-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.65;
}



/* ——— Boutons ——— */

.button,

.vitrine-btn {

  display: inline-block;

  margin: 0.4rem 0.5rem 0.4rem 0;

  padding: 0.8rem 1.35rem;

  border-radius: var(--radius-sm);

  font-weight: 600;

  font-size: 0.98rem;

  text-decoration: none;

  transition: background 0.2s, transform 0.2s, filter 0.2s;

  border: none;

  cursor: pointer;

}



.vitrine-btn-primary,

a.button {

  background: var(--primary);

  color: #fff;

  box-shadow: var(--shadow-sm);

}



.vitrine-btn-primary:hover,

a.button:hover {

  background: var(--primary-soft);

  color: #fff;

  transform: translateY(-1px);

}



.vitrine-btn-green {

  background: var(--action-green);

  color: #fff;

  box-shadow: 0 3px 10px rgba(47, 107, 82, 0.25);

}



.vitrine-btn-green:hover {

  background: var(--action-green-deep);

  transform: translateY(-1px);

}



.vitrine-btn-outline {

  background: #fff;

  color: var(--primary);

  border: 2px solid var(--primary);

}



.vitrine-btn-outline:hover {

  background: var(--surface-muted);

}



/* ——— Conversion (accueil) ——— */

.vitrine-section--trust {

  background: var(--surface-muted);

  border: 1px solid var(--border-subtle);

}



.trust-grid {

  list-style: none;

  margin: 1.25rem 0 0;

  padding: 0;

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 1rem;

}



.trust-card {

  background: #fff;

  border: 1px solid var(--border-subtle);

  border-radius: var(--radius-sm);

  padding: 1rem 1.1rem;

  box-shadow: var(--shadow-sm);

}



.trust-card strong {

  display: block;

  color: var(--primary);

  margin-bottom: 0.35rem;

  font-size: 1.02rem;

}



.trust-card p {

  margin: 0;

  font-size: 0.95rem;

  color: var(--text-muted);

  line-height: 1.55;

}



.methode-cta {
  margin: 1.25rem 0 0;
  text-align: center;
}

.methode-cta .button {
  margin: 0;
}

.cta-inline,

.cta-final-band {

  margin-top: 1.5rem;

  padding: 1.25rem 1.35rem;

  border-radius: var(--radius-md);

  background: color-mix(in srgb, var(--action-green) 8%, white);

  border: 1px solid color-mix(in srgb, var(--action-green) 22%, white);

  text-align: center;

}



.cta-inline p,

.cta-final-band p {

  margin: 0 0 1rem;

}



.cta-final-band {

  text-align: center;

}



.section-lead {

  color: var(--text-muted);

  margin-top: -0.25rem;

  margin-bottom: 1.25rem;

}



.lead-magnet-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 1rem;

}



.lead-magnet-card {

  background: #fff;

  border: 1px solid var(--border-subtle);

  border-radius: var(--radius-sm);

  padding: 1.15rem;

  box-shadow: var(--shadow-sm);

}



.lead-magnet-card h3 {

  margin: 0 0 0.5rem;

  font-size: 1.05rem;

  color: var(--primary);

}



.lead-magnet-card p {

  margin: 0 0 1rem;

  font-size: 0.95rem;

  color: var(--text-muted);

  line-height: 1.55;

}



.lead-magnet-card--highlight {

  border-color: color-mix(in srgb, var(--action-green) 35%, white);

  background: color-mix(in srgb, var(--action-green) 6%, white);

}



.mobile-cta-bar {

  display: none;

}



@media (max-width: 768px) {

  body.vitrine {

    padding-bottom: 4.75rem;

  }



  .mobile-cta-bar {

    display: flex;

    align-items: center;

    justify-content: center;

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    z-index: 90;

    padding: 0.85rem 1rem;

    background: var(--action-green);

    color: #fff;

    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);

  }



  .mobile-cta-bar:hover {

    background: var(--action-green-deep);

    color: #fff;

  }

}



.cta-band {
  text-align: center;
  padding: 2rem 0;
  background: transparent;
  border-radius: 0;
  margin-top: 0;
}

.cta-band p {

  margin-bottom: 1rem;

  font-size: 1.05rem;

}



.cta-row {

  text-align: center;

  margin-top: 1.25rem;

}



.contact-meta {

  text-align: center;

  margin-top: 1rem;

  color: var(--text-muted);

  font-size: 0.95rem;

}



/* ——— FAQ ——— */

.faq-item {

  margin-bottom: 1rem;

  padding-bottom: 1rem;

  border-bottom: 1px solid #eee;

}



.faq-item:last-child {

  margin-bottom: 0;

  padding-bottom: 0;

  border-bottom: none;

}



.faq-item h4 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
}



.faq-item--static h4 {

  cursor: default;

}



.faq-item p,

.faq-item > div {

  margin: 0;

  display: none;

  color: var(--text);

  font-size: 1rem;

  line-height: 1.65;

}



.faq-item--static p {

  display: block;

}



.faq-item p[style*="display: block"],

.faq-item > div[style*="display: block"] {

  display: block !important;

}



/* ——— Formation MPSI (accueil) ——— */

#formation-mpsi {
  text-align: left;
}

#formation-mpsi .formation-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}



#formation-mpsi .formation-body {

  color: var(--text);

  font-size: 1.02rem;

  line-height: 1.75;

  margin-bottom: 0.85rem;

  text-align: left;

  max-width: 720px;

  margin-left: auto;

  margin-right: auto;

}



#formation-mpsi a.button.formation-cta {

  background: var(--primary);

  color: #fff !important;

  font-size: 1.05rem;

  padding: 0.85rem 1.75rem;

  border-radius: var(--radius-sm);

  margin-top: 0.5rem;

}



/* ——— Accès plateforme (discret) ——— */

.plateforme-band {

  background: var(--surface-muted);

  border: 1px dashed color-mix(in srgb, var(--primary) 25%, white);

  text-align: center;

  padding: 1.5rem 2rem;

}



.plateforme-band h2 {

  font-size: 1.15rem;

  border-left: none;

  padding-left: 0;

  margin-bottom: 0.5rem;

}



.plateforme-band p {

  margin: 0;

  font-size: 0.98rem;

  color: var(--text-muted);

}



.plateforme-band a {

  font-weight: 600;

}



/* ——— Tarifs ——— */

.tariff-table-wrap {

  overflow-x: auto;

  margin: 1rem 0;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-subtle);

  box-shadow: var(--shadow-sm);

}



.tariff-table {

  background: white;

  min-width: 320px;

}



.tariff-table table {

  width: 100%;

  border-collapse: collapse;

}



.tariff-table th,

.tariff-table td {

  padding: 0.9rem 1rem;

  text-align: center;

  border-bottom: 1px solid #f0f0f0;

}



.tariff-table th {

  background: var(--primary);

  color: white;

  font-weight: 600;

}



.tariff-table td:first-child {

  background: #f8f9fa;

  font-weight: 600;

  color: var(--primary);

  text-align: left;

}



.tariff-table tr:last-child td {

  border-bottom: none;

}



.tariff-note {

  font-size: 0.92rem;

  color: var(--text-muted);

  margin-top: 0.75rem;

  line-height: 1.65;

}



.collective-rate {

  background: var(--primary);

  color: white;

  padding: 1rem 1.25rem;

  border-radius: var(--radius-sm);

  text-align: center;

  margin: 1.25rem 0;

  font-weight: 600;

}



.collective-rate strong {

  color: #fff;

}



/* ——— Footer ——— */

.site-footer {

  text-align: center;

  padding: 2rem 1.25rem;

  background: var(--primary);

  color: white;

  font-size: 0.95rem;

  position: relative;

  z-index: 1;

}



.site-footer a {

  color: var(--accent);

  text-decoration: none;

  font-weight: 600;

}



.site-footer a:hover {

  text-decoration: underline;

}



.site-footer-nav {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 0.75rem 1.25rem;

  margin-bottom: 1rem;

}



.site-footer-nav a {

  color: #fff;

  font-weight: 600;

  font-size: 0.9rem;

}



.site-footer-nav a:hover {

  color: var(--accent);

}



.site-footer-student {

  margin-bottom: 0.75rem;

  font-size: 0.88rem;

  opacity: 0.9;

}



.site-footer-student a {

  color: var(--accent);

}



.site-footer-legal {

  margin-top: 1.25rem;

  padding-top: 1rem;

  border-top: 1px solid rgba(255, 255, 255, 0.2);

  font-size: 0.78rem;

  opacity: 0.75;

}



.site-footer-legal a {

  color: #fff;

  font-weight: 400;

  text-decoration: underline;

}



.site-footer-legal a:hover {

  color: var(--accent);

}

.phone-reveal-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}



/* ——— Formulaire contact (accueil) ——— */

.lead-form {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

.lead-form--hero {
  max-width: none;
  margin: 0;
}

.lead-form--hero .lead-form-field {
  margin-bottom: 0.45rem;
}

.lead-form--hero .lead-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.6rem;
  margin-bottom: 0.45rem;
}

.lead-form--hero .lead-form-row-2 .lead-form-field {
  margin-bottom: 0;
}

.lead-form--hero .lead-form-label {
  font-size: 0.82rem;
  margin-bottom: 0.1rem;
}

.lead-form--hero .lead-form-field input[type="text"],
.lead-form--hero .lead-form-field input[type="email"],
.lead-form--hero .lead-form-field input[type="tel"],
.lead-form--hero .lead-form-select {
  padding: 0.48rem 0.6rem;
  font-size: 0.92rem;
}

.lead-form--hero .lead-form-submit {
  padding: 0.62rem 1rem;
  font-size: 0.92rem;
  margin: 0;
}

.lead-form-honeypot {
  display: none;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.lead-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lead-form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.lead-form-optional,
.lead-form-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.lead-form-field input[type="text"],
.lead-form-field input[type="email"],
.lead-form-field input[type="tel"],
.lead-form-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8dce3;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lead-form-select {
  cursor: pointer;
  appearance: auto;
}

.lead-form-field input:focus,
.lead-form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.lead-form-details {
  margin: 0.35rem 0 0;
  border: none;
  border-radius: 0;
  padding: 0;
}

.lead-form--hero .lead-form-details {
  margin-top: 0.25rem;
}

.lead-form-details summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.15rem 0;
  list-style: none;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.lead-form-details summary::-webkit-details-marker {
  display: none;
}

.lead-form-details summary::after {
  content: " ▾";
  font-size: 0.75rem;
  opacity: 0.7;
}

.lead-form-details[open] summary::after {
  content: " ▴";
}

.lead-form-details-body {
  padding-top: 0.5rem;
}

.lead-form--hero .lead-form-details-body .lead-form-field {
  margin-bottom: 0.45rem;
}

.lead-form-checks {
  border: none;
  margin: 0 0 0.25rem;
  padding: 0;
}

.lead-form-checks legend {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding: 0;
}

.lead-form-checks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.lead-form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.lead-form-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--action-green);
  cursor: pointer;
}

.lead-form-actions {
  text-align: center;
  margin-top: 0.85rem;
}

.lead-form-submit {
  width: 100%;
  max-width: none;
  margin: 0;
  display: block;
}

.lead-form--hero .lead-form-actions {
  margin-top: 0.55rem;
}

.lead-form-note {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

.lead-form-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.lead-form-note a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .lead-form-grid {
    grid-template-columns: 1fr;
  }

  .lead-form--hero .lead-form-row-2 {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

/* ——— Page merci (post-formulaire) ——— */

.merci-page .merci-hero {
  text-align: center;
}

.merci-page .merci-hero h1 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.merci-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.merci-calendly {
  padding-top: 0;
}

.merci-alt {
  text-align: center;
}

.merci-alt p {
  margin-bottom: 0.75rem;
}

/* Bandeau de consentement cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.cookie-banner-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cookie-banner-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
}

.cookie-banner-actions .vitrine-btn {
  margin: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .cookie-banner-actions {
    justify-content: flex-end;
  }
}

