/* =========================================================
   I-PROFS — PAGE D'ACCUEIL
   Feuille de style : accueil.css
   ========================================================= */

:root {
  --green: #3cb371;
  --green-dark: #298612;
  --ink: #20242b;
  --text: #333333;
  --border: #dddddd;
  --panel: #f5f7f3;
  --white: #ffffff;
  --wrap-width: 1240px;
}

/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(var(--wrap-width), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   HEADER — include menu.php
   ========================================================= */

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 86px;
  padding: 5px 0;
}

.header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo img {
  width: auto;
  height: 76px;
}

.header-shop {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 120px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 50px;
  height: 45px;
  padding: 0;
  border: 1px solid #c5c5c5;
  background: #f6f6f6;
  cursor: pointer;
}

.menu-toggle .line {
  display: block;
  width: 30px;
  height: 4px;
  margin: 3px auto;
  background: #454545;
}

.menu-toggle .menu-label {
  display: none;
}

/* =========================================================
   MENU OVERLAY — généré par footer.php
   ========================================================= */

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(43, 43, 43, .97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.overlay-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

.drilldown-menu {
  text-align: center;
}

.drilldown-menu > li {
  margin-bottom: 18px;
}

.drilldown-menu > li > a {
  font-family: "Baloo 2", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.drilldown-menu > li > a:hover {
  color: #dcebd7;
}

/* =========================================================
   FOOTER — include footer.php
   ========================================================= */

#site-footer {
  padding: 22px 0;
  color: var(--white);
  background: #252a2d;
}

#site-footer p {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

#site-footer a {
  color: #f5f7f3;
}

#site-footer a:hover {
  text-decoration: underline;
}

#open_preferences_center {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
}

/* =========================================================
   CONTENU DE LA PAGE D'ACCUEIL
   ========================================================= */

.hero {
  background:linear-gradient(110deg,#f7fbf0,#fff 55%,#f1f8df)
}

.hero-grid {
  min-height:470px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:45px;
  padding:55px 0
}

.hero h1 {
  font-size:clamp(42px,5vw,62px);
  line-height:1.03;
  margin:0 0 16px
}

.hero h1 span {
  color:#5a982d
}

.hero p {
  font-size:18px;
  line-height:1.7;
  color:#626a74
}

.btn {
  display:inline-block;
  background:#4e8e29;
  color:#fff;
  text-decoration:none;
  padding:13px 21px;
  border-radius:999px;
  font-family:"Baloo 2";
  font-weight:800
}

.visual {
  height:330px;
  position:relative
}

.tree {
  position:absolute;
  right:50px;
  top:10px;
  font-size:210px
}

.owl {
  position:absolute;
  right:150px;
  bottom:35px;
  font-size:80px
}

.books {
  position:absolute;
  right:20px;
  bottom:5px;
  font-size:80px
}

section {
  padding:65px 0
}

.soft {
  background:#fafbf9
}

h2.title {
  text-align:center;
  font:800 38px/1.1 "Baloo 2";
  margin:0 0 10px
}

.intro {
  text-align:center;
  color:#6b7280;
  margin:0 auto 32px;
  max-width:720px
}

.univers {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:17px
}

.card {
  min-height:285px;
  border:1px solid #e8e8e8;
  border-radius:20px;
  padding:22px 17px;
  text-align:center;
  text-decoration:none;
  box-shadow:0 8px 20px #0000000d
}

.card:nth-child(1) {
  background:#f1f8e8
}

.card:nth-child(2) {
  background:#f4effb
}

.card:nth-child(3) {
  background:#fff7df
}

.card:nth-child(4) {
  background:#eaf7fb
}

.card:nth-child(5) {
  background:#fff0f2
}

.ico {
  display:grid;
  place-items:center;
  width:88px;
  height:88px;
  margin:auto auto 14px;
  background:#ffffffb8;
  border-radius:22px;
  font-size:48px
}

.card h3 {
  font:800 21px "Baloo 2";
  margin:0 0 8px
}

.card p {
  font-size:14px;
  line-height:1.55;
  color:#626a74
}

.pill {
  display:inline-block;
  margin-top:8px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:999px;
  padding:8px 14px;
  color:#39772a;
  font:800 14px "Baloo 2"
}

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

.feature {
  border:1px solid #e7e7e7;
  border-radius:18px;
  overflow:hidden;
  background:#fff
}

.feature .pic {
  height:145px;
  display:grid;
  place-items:center;
  font-size:65px;
  background:#eef6e9
}

.feature:nth-child(2) .pic {
  background:#fff3d8
}

.feature:nth-child(3) .pic {
  background:#e8f3fb
}

.feature:nth-child(4) .pic {
  background:#f6eaf7
}

.body {
  padding:17px
}

.body h3 {
  font:800 20px "Baloo 2";
  margin:0 0 7px
}

.body p {
  font-size:14px;
  color:#68707b;
  line-height:1.5
}

.body a {
  color:#39772a;
  font-weight:800;
  text-decoration:none
}

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

.panel {
  border-radius:24px;
  padding:30px;
  border:1px solid #e9e9e9
}

.lit {
  background:#f6f0fb
}

.play {
  background:#fff7e3
}

.panel h2 {
  text-align:center;
  font:800 30px "Baloo 2";
  margin:0 0 8px
}

.panel>p {
  text-align:center;
  color:#626a74
}

.cycles,.plays {
  display:grid;
  gap:14px;
  margin-top:22px
}

.cycles {
  grid-template-columns:1fr 1fr
}

.plays {
  grid-template-columns:repeat(2,1fr)
}

.small {
  background:#fff;
  border-radius:16px;
  padding:20px;
  text-align:center;
  text-decoration:none
}

.small span {
  display:block;
  font-size:42px
}

.small strong {
  font:800 18px "Baloo 2"
}

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

.box {
  border:1px solid #e9e9e9;
  border-radius:22px;
  padding:28px;
  background:#fff
}

.box h2 {
  text-align:center;
  font:800 28px "Baloo 2"
}

.quote {
  background:#f8faf7;
  border-radius:16px;
  padding:22px;
  text-align:center;
  line-height:1.65
}

.stars {
  color:#e8ad23;
  font-size:21px;
  margin:10px
}

.faq details {
  border-bottom:1px solid #e8e8e8
}

.faq summary {
  padding:14px 2px;
  font-weight:700;
  cursor:pointer
}

.faq p {
  color:#68707b
}

@media(max-width:1000px) {
  .univers {
  grid-template-columns:repeat(3,1fr)
}

.features {
  grid-template-columns:repeat(2,1fr)
}

}

@media(max-width:760px) {
  .hero-grid,.split,.bottom {
  grid-template-columns:1fr
}


.univers,.features {
  grid-template-columns:1fr
}


.hero-grid {
  min-height:auto
}

.plays {
  grid-template-columns:1fr 1fr 1fr
}

}

.hero-art {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:355px;
}

.hero-art img {
  width:100%;
  max-width:560px;
  height:auto;
  display:block;
  border-radius:24px;
}

.ico-img {
  overflow:hidden;
  padding:0;
}

.ico-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pic-img {
  overflow:hidden;
  padding:0;
}

.pic-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.small-img {
  display:block !important;
  width:100%;
  height:105px;
  overflow:hidden;
  border-radius:12px;
  margin-bottom:9px;
}

.small-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================================================
   V2 — GRANDS UNIVERS PLUS GRAPHIQUES
   ========================================================= */

.univers {
  gap: 22px;
  align-items: stretch;
}

.universe,
.card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 0 0 22px;
  border: 0;
  border-radius: 24px;
  background: #fff !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.10);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.universe:hover,
.card:hover {
  transform: translateY(-7px) rotate(-.4deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.universe:nth-child(even):hover,
.card:nth-child(even):hover {
  transform: translateY(-7px) rotate(.4deg);
}

/* grande zone d'image */
.universe-icon,
.ico {
  width: 100%;
  height: 165px;
  margin: 0 0 18px;
  border-radius: 0;
  background: #fff;
}

.ico-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

/* bandes colorées plus franches */
.universe:nth-child(1),
.card:nth-child(1) {
  border-top: 8px solid #5d9f2f;
}

.universe:nth-child(2),
.card:nth-child(2) {
  border-top: 8px solid #8060bf;
}

.universe:nth-child(3),
.card:nth-child(3) {
  border-top: 8px solid #f0ad1f;
}

.universe:nth-child(4),
.card:nth-child(4) {
  border-top: 8px solid #3499c5;
}

.universe:nth-child(5),
.card:nth-child(5) {
  border-top: 8px solid #e84d73;
}

.universe h3,
.card h3 {
  margin: 0 20px 8px;
  font-size: 23px;
}

.universe p,
.card p {
  margin: 0 20px 18px;
  min-height: 65px;
  font-size: 14px;
  line-height: 1.55;
}

.universe .mini-btn,
.card .pill {
  margin: auto 20px 0;
  padding: 9px 16px;
  border: 0;
  color: #fff;
  box-shadow: none;
}

.universe:nth-child(1) .mini-btn,
.card:nth-child(1) .pill {
  background: #5d9f2f;
}

.universe:nth-child(2) .mini-btn,
.card:nth-child(2) .pill {
  background: #8060bf;
}

.universe:nth-child(3) .mini-btn,
.card:nth-child(3) .pill {
  background: #f0ad1f;
  color:#222;
}

.universe:nth-child(4) .mini-btn,
.card:nth-child(4) .pill {
  background: #3499c5;
}

.universe:nth-child(5) .mini-btn,
.card:nth-child(5) .pill {
  background: #e84d73;
}

/* =========================================================
   HERO : VISUEL PLUS GRAND, CHOUETTE NON COUPÉE
   ========================================================= */

.hero-visual,
.visual.hero-art {
  min-height: 390px;
  overflow: visible;
}

.hero-art img {
  width: 112%;
  max-width: none;
  height: 390px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
  transform: translateX(-3%);
}

/* =========================================================
   APPRENDRE AUTREMENT : 2 ENTRÉES UNIQUEMENT
   ========================================================= */

.play-grid,
.plays {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.play-item,
.plays .small {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.play-item .ico,
.plays .small-img {
  height: 125px;
}

@media (max-width: 1050px) {
  .universe-icon,
  .ico {
  height: 190px;
}

}

@media (max-width: 620px) {
  .hero-art img {
  width: 100%;
  height: auto;
  transform: none;
}

.universe-icon,
  .ico {
  height: 210px;
}

.play-grid,
  .plays {
  grid-template-columns: 1fr 1fr !important;
}

}

/* =========================================================
   V3 — IMAGES ENTIÈRES, SANS RECADRAGE
   ========================================================= */

/* HERO : affiche toute l'illustration */
.hero-visual,
.visual.hero-art {
  min-height: 420px;
  overflow: visible;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 420px;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  border-radius: 0;
}

/* GRANDS UNIVERS : aucune image coupée */
.universe-icon,
.ico {
  width: 100%;
  height: 190px;
  margin: 0 0 18px;
  overflow: visible !important;
  background: #fff;
}

.ico-img {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}

.ico-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* À LA UNE : images visibles en entier */
.pic-img {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 180px;
  overflow: hidden;
  padding: 8px;
  background: #fff;
}

.pic-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

/* LITTÉRATURE + APPRENDRE AUTREMENT */
.small-img {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 145px !important;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  padding: 6px;
}

.small-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Cards un peu plus hautes pour laisser respirer les visuels */
.universe,
.card {
  min-height: 355px;
}

@media (max-width: 1050px) {
  .universe-icon,
  .ico {
  height: 210px;
}

.hero-art img {
  height: 380px;
}

}

@media (max-width: 620px) {
  .hero-visual,
  .visual.hero-art {
  min-height: auto;
}

.hero-art img {
  width: 100%;
  height: auto;
  max-height: none;
}

.universe-icon,
  .ico {
  height: 230px;
}

.pic-img {
  height: 210px;
}

.small-img {
  height: 160px !important;
}

}


/* =========================================================
   IMAGES — AFFICHAGE INTÉGRAL SANS COUPE
   ========================================================= */

/* HERO */
.hero-visual,
.visual.hero-art {
  min-height: 0;
  overflow: visible;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  border-radius: 0;
}

/* GRANDS UNIVERS */
.universe-icon,
.ico,
.ico-img {
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 18px;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent;
}

.ico-img img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* À LA UNE */
.feature .pic,
.pic-img {
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent;
}

.pic-img img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* LITTÉRATURE + APPRENDRE AUTREMENT */
.small-img {
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin-bottom: 10px;
  overflow: visible !important;
  background: transparent;
  border-radius: 12px;
}

.small-img img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Les cards s'adaptent à la hauteur réelle de l'image. */
.universe,
.card,
.feature,
.small {
  height: auto !important;
  overflow: visible;
}

/* Conserver les angles arrondis de la card sans couper l'illustration. */
.universe,
.card,
.feature {
  overflow: hidden;
}

/* Apprendre autrement = 2 blocs */
.play-grid,
.plays {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 620px) {
  .hero-art img,
  .ico-img img,
  .pic-img img,
  .small-img img {
    width: 100%;
    height: auto !important;
  }
}


/* =========================================================
   AJUSTEMENTS V5
   - Image du professeur avec coins arrondis
   - Texte des Grands univers en noir
   ========================================================= */

/* HERO : coins arrondis sur l'image du professeur */
.visual.hero-art {
  overflow: visible;
}

.visual.hero-art img {
  border-radius: 24px !important;
}

/* GRANDS UNIVERS : tous les textes en noir */
#univers .card,
#univers .card h3,
#univers .card p,
#univers .card .pill,
#univers .card:link,
#univers .card:visited,
#univers .card:hover,
#univers .card:active {
  color: #111 !important;
}

#univers .card .pill {
  color: #111 !important;
}


/* =========================================================
   AJUSTEMENT V6 — OMBRAGE LÉGER DU HERO
   ========================================================= */
.visual.hero-art img {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12) !important;
}

/* =========================================================
   RESPONSIVE — HEADER
   ========================================================= */

@media (max-width: 640px) {
  .header-row {
    gap: 8px;
    min-height: 70px;
  }

  .header-logo img {
    height: 56px;
  }

  .header-shop {
    min-width: 0;
  }

  .header-social {
    gap: 6px;
  }

  .header-social img {
    width: 26px;
    height: 26px;
  }
}

/* AVIS CLIENTS + FAQ */
.reviews-section{padding:62px 0}.reviews-title,.faq-title{margin:0 0 32px;text-align:center;font-family:"Open Sans",sans-serif;font-weight:800;letter-spacing:-.025em;font-size:clamp(32px,4vw,44px)}
.review-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.review{padding:23px;border:1px solid #e8e8e8;border-radius:19px;background:#fff}.review-name{margin-bottom:4px;font-weight:800}.review-product{margin-bottom:12px;color:#3CB371;font-family:"Baloo 2",sans-serif;font-weight:800}.review-text{color:#555d67;font-size:14px;line-height:1.6}.review .stars{margin-top:15px;color:#f7bd27;font-size:19px;letter-spacing:2px}
.faq-section{padding:62px 0 78px;background:#fafafa}.faq-layout{display:grid;grid-template-columns:220px 1fr;gap:38px;align-items:start}.faq-image{width:100%;max-width:220px}.faq-list{display:grid;gap:12px}.faq-item{border:1px solid #e8e8e8;border-radius:16px;background:#fff;overflow:hidden}.faq-item summary{cursor:pointer;list-style:none;padding:18px 20px}.faq-item summary::-webkit-details-marker{display:none}.faq-question{font-family:"Baloo 2",sans-serif;font-size:19px;font-weight:800}.faq-answer{padding:0 20px 19px;color:#59616c;line-height:1.65}
@media(max-width:980px){.review-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.review-grid,.faq-layout{grid-template-columns:1fr}.faq-image{margin:0 auto}}
