/* =========================================================
   MATHPHYS06 — PAGE D'ACCUEIL
   Mathématiques + projets Python
   ========================================================= */

:root {
  --mp-blue: #1559b7;
  --mp-blue-dark: #0e3568;
  --mp-blue-deep: #08264d;
  --mp-blue-light: #edf5ff;

  --mp-text: #17365f;
  --mp-text-light: #536b88;

  --mp-border: #dce6f1;
  --mp-bg-light: #f6f9fc;

  --mp-white: #ffffff;
  --mp-radius: 14px;
}


/* =========================================================
   NETTOYAGE DE LA PAGE BLOCKSY
   ========================================================= */

body.home .entry-header {
  display: none;
}

body.home .site-main {
  padding-top: 0;
  padding-bottom: 0;
}

body.home .entry-content {
  margin-top: 0;
  margin-bottom: 0;
}

body.home .entry-content.is-layout-constrained {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.home .ct-container-full {
  width: 100%;
  max-width: none;
  padding: 0;
  max-width: 1150px;
}

body.home .entry-content > .mp06-home {
  width: 100%;
  max-width: none;
}


/* =========================================================
   STRUCTURE GÉNÉRALE
   ========================================================= */

.mp06-home {
  width: 100%;
  overflow: hidden;
  color: var(--mp-text);
  background: var(--mp-white);
  font-family: inherit;
}

.mp06-home *,
.mp06-home *::before,
.mp06-home *::after {
  box-sizing: border-box;
}

.mp06-home a {
  text-decoration: none;
}

.mp06-home h1,
.mp06-home h2,
.mp06-home h3,
.mp06-home p {
  margin-top: 0;
}

.mp06-home section {
  width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.mp06-hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: 70px;

  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 40px 90px;
}

.mp06-hero-content {
  max-width: 650px;
}

.mp06-eyebrow {
  display: inline-block;
  margin-bottom: 18px;

  color: var(--mp-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
}

.mp06-hero h1 {
  margin-bottom: 25px;

  color: var(--mp-blue-deep);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.mp06-hero-text {
  max-width: 590px;
  margin-bottom: 32px;

  color: var(--mp-text-light);
  font-size: 18px;
  line-height: 1.7;
}

.mp06-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}


/* IMAGE HERO */

.mp06-hero-image {
  position: relative;
  width: 100%;
}

.mp06-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: cover;

  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(8, 38, 77, .14);
}


/* =========================================================
   BOUTONS
   ========================================================= */

.mp06-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 13px 23px;

  border-radius: 8px;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.mp06-btn:hover {
  transform: translateY(-2px);
}

.mp06-btn-primary {
  color: var(--mp-white);
  background: var(--mp-blue);

  box-shadow: 0 8px 22px rgba(21, 89, 183, .20);
}

.mp06-btn-primary:hover {
  color: var(--mp-white);
  background: var(--mp-blue-dark);
  box-shadow: 0 12px 28px rgba(21, 89, 183, .25);
}

.mp06-btn-secondary {
  color: var(--mp-blue-dark);
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
}

.mp06-btn-secondary:hover {
  color: var(--mp-blue-dark);
  background: var(--mp-blue-light);
  border-color: #c6d8ec;
}


/* =========================================================
   FEATURES
   ========================================================= */

.mp06-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  max-width: 1160px;
  margin: 0 auto;
  padding: 25px 40px 85px;
}

.mp06-feature {
  padding: 28px 24px;

  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.mp06-feature:hover {
  transform: translateY(-4px);
  border-color: #c8d9eb;
  box-shadow: 0 15px 35px rgba(8, 38, 77, .08);
}

.mp06-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;
  margin-bottom: 20px;

  background: var(--mp-blue-light);
  border-radius: 10px;

  font-size: 21px;
}

.mp06-feature h2 {
  margin-bottom: 10px;

  color: var(--mp-blue-deep);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.mp06-feature p {
  margin-bottom: 0;

  color: var(--mp-text-light);
  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   TITRES DE SECTIONS
   ========================================================= */

.mp06-section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.mp06-section-heading .mp06-eyebrow {
  margin-bottom: 12px;
}

.mp06-section-heading h2 {
  margin-bottom: 16px;

  color: var(--mp-blue-deep);
  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.mp06-section-heading p {
  margin-bottom: 0;

  color: var(--mp-text-light);
  font-size: 17px;
  line-height: 1.65;
}


/* =========================================================
   NIVEAUX
   ========================================================= */

.mp06-levels {
  padding: 95px 40px 105px;
  background: var(--mp-bg-light);
}

.mp06-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;

  max-width: 1080px;
  margin: 0 auto;
}

.mp06-level-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 150px;
  padding: 25px;

  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.mp06-level-card:hover {
  transform: translateY(-4px);

  border-color: #a9c6e6;
  box-shadow: 0 16px 35px rgba(8, 38, 77, .09);
}

.mp06-level-number {
  margin-bottom: 9px;

  color: var(--mp-blue);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.mp06-level-name {
  color: var(--mp-text-light);
  font-size: 14px;
  font-weight: 600;
}

.mp06-level-arrow {
  position: absolute;
  right: 22px;
  bottom: 19px;

  color: var(--mp-blue);
  font-size: 21px;

  transition: transform .2s ease;
}

.mp06-level-card:hover .mp06-level-arrow {
  transform: translateX(4px);
}


/* =========================================================
   CONCEPT
   ========================================================= */

.mp06-concept {
  max-width: 1240px;
  margin: 0 auto;
  padding: 105px 40px;
}

.mp06-concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;

  max-width: 1100px;
  margin: 0 auto;
}

.mp06-concept-card {
  position: relative;
  padding: 10px 28px 15px;
  border-left: 1px solid var(--mp-border);
}

.mp06-concept-card:first-child {
  border-left: 0;
}

.mp06-concept-number {
  display: block;
  margin-bottom: 20px;

  color: #9bb4ce;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.mp06-concept-card h3 {
  margin-bottom: 10px;

  color: var(--mp-blue-deep);
  font-size: 18px;
  font-weight: 750;
}

.mp06-concept-card p {
  margin-bottom: 0;

  color: var(--mp-text-light);
  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   PYTHON
   ========================================================= */

.mp06-subjects {
  padding: 100px 40px 110px;
  background: var(--mp-blue-light);
}

.mp06-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;

  max-width: 1050px;
  margin: 0 auto;
}

.mp06-subject-card {
  padding: 34px 30px;

  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);

  text-align: center;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.mp06-subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(8, 38, 77, .10);
}

.mp06-subject-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  margin: 0 auto 20px;

  background: var(--mp-bg-light);
  border-radius: 14px;

  font-size: 27px;
}

.mp06-subject-card h3 {
  margin-bottom: 11px;

  color: var(--mp-blue-deep);
  font-size: 19px;
  font-weight: 750;
}

.mp06-subject-card p {
  margin-bottom: 0;

  color: var(--mp-text-light);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   POURQUOI MATHPHYS06
   ========================================================= */

.mp06-why {
  max-width: 1160px;
  margin: 0 auto;
  padding: 105px 40px;
}

.mp06-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;

  max-width: 900px;
  margin: 0 auto;
}

.mp06-why-item {
  padding: 28px 35px;
  border-top: 1px solid var(--mp-border);
}

.mp06-why-item:nth-child(odd) {
  border-right: 1px solid var(--mp-border);
}

.mp06-why-item:nth-child(-n+2) {
  border-top: 0;
}

.mp06-why-item h3 {
  margin-bottom: 9px;

  color: var(--mp-blue-deep);
  font-size: 18px;
  font-weight: 750;
}

.mp06-why-item p {
  margin-bottom: 0;

  color: var(--mp-text-light);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   À PROPOS
   ========================================================= */

.mp06-about {
  padding: 95px 40px;

  background: var(--mp-bg-light);
}

.mp06-about-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.mp06-about h2 {
  margin-bottom: 22px;

  color: var(--mp-blue-deep);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.mp06-about p {
  margin-bottom: 14px;

  color: var(--mp-text-light);
  font-size: 16px;
  line-height: 1.75;
}

.mp06-about p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.mp06-cta {
  padding: 95px 40px;

  background: var(--mp-blue-deep);
}

.mp06-cta-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.mp06-cta .mp06-eyebrow {
  color: #9fc5f2;
}

.mp06-cta h2 {
  margin-bottom: 18px;

  color: var(--mp-white);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.mp06-cta p {
  max-width: 600px;
  margin: 0 auto 30px;

  color: #c8d9eb;
  font-size: 17px;
  line-height: 1.7;
}

.mp06-cta .mp06-btn-primary {
  background: var(--mp-white);
  color: var(--mp-blue-dark);
  box-shadow: none;
}

.mp06-cta .mp06-btn-primary:hover {
  background: var(--mp-blue-light);
  color: var(--mp-blue-deep);
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1100px) {

  .mp06-hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 65px;
    padding-bottom: 75px;
  }

  .mp06-hero-content {
    max-width: 750px;
    text-align: center;
    margin: 0 auto;
  }

  .mp06-hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .mp06-hero-buttons {
    justify-content: center;
  }

  .mp06-hero-image {
    max-width: 700px;
    margin: 0 auto;
  }

  .mp06-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp06-levels-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mp06-concept-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .mp06-concept-card:nth-child(3) {
    border-left: 0;
  }

  .mp06-subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .mp06-hero {
    min-height: auto;
    padding: 50px 22px 60px;
  }

  .mp06-hero h1 {
    font-size: 38px;
  }

  .mp06-hero-text {
    font-size: 16px;
  }

  .mp06-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .mp06-btn {
    width: 100%;
  }

  .mp06-features {
    grid-template-columns: 1fr;
    padding: 10px 22px 65px;
  }

  .mp06-levels {
    padding: 70px 22px 75px;
  }

  .mp06-levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp06-section-heading {
    margin-bottom: 35px;
  }

  .mp06-section-heading h2 {
    font-size: 31px;
  }

  .mp06-section-heading p {
    font-size: 15px;
  }

  .mp06-concept {
    padding: 75px 22px;
  }

  .mp06-concept-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .mp06-concept-card,
  .mp06-concept-card:nth-child(3) {
    padding: 25px 0;
    border-left: 0;
    border-top: 1px solid var(--mp-border);
  }

  .mp06-concept-card:first-child {
    border-top: 0;
  }

  .mp06-subjects {
    padding: 75px 22px 80px;
  }

  .mp06-subjects-grid {
    grid-template-columns: 1fr;
  }

  .mp06-why {
    padding: 75px 22px;
  }

  .mp06-why-grid {
    grid-template-columns: 1fr;
  }

  .mp06-why-item,
  .mp06-why-item:nth-child(odd) {
    border-right: 0;
    border-top: 1px solid var(--mp-border);
  }

  .mp06-why-item:first-child {
    border-top: 0;
  }

  .mp06-why-item {
    padding: 25px 0;
  }

  .mp06-about {
    padding: 70px 22px;
  }

  .mp06-cta {
    padding: 70px 22px;
  }

}


/* =========================================================
   PETITS ÉCRANS
   ========================================================= */

@media (max-width: 400px) {

  .mp06-hero h1 {
    font-size: 33px;
  }

  .mp06-levels-grid {
    grid-template-columns: 1fr;
  }

  .mp06-level-card {
    min-height: 125px;
  }

  .mp06-feature {
    padding: 24px 21px;
  }

}

