/*
 Theme Name: Neve Child
 Template: neve
 Version: 1.2
*/

/* ————————————————————————————————
 🎨 TYPOGRAPHIE & COULEURS GÉNÉRALES
——————————————————————————————— */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #f6f6f6;
  background-color: #000;
  text-align: justify;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: auto;
  text-justify: inter-word;
}

p {
  margin: 0 0 1.2em 0;
}

/* ————————————————————————————————
 🧭 TITRES
——————————————————————————————— */
h1, h2, h3, h4 {
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 0.6em 0;
  line-height: 1.15;
  text-align: center; /* centrage global des titres */
}

h1.entry-title {
  font-size: 2.4rem;
  letter-spacing: 0.5px;
}

/* ————————————————————————————————
 📐 LARGEUR DU CONTENU
   (sauf les bandeaux alignfull ou alignwide)
——————————————————————————————— */
.site-content,
.entry-content,
.page-content,
.site-main,
.content-area {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ✅ On laisse les blocs "alignfull" et "alignwide" s’étendre sur toute la largeur */
.alignfull,
.alignwide,
.wp-block-group.alignfull,
.wp-block-group.alignwide {
  max-width: 100vw !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  text-align: center;
}

/* ————————————————————————————————
 📸 IMAGES GÉNÉRALES
——————————————————————————————— */
.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* ————————————————————————————————
 📱 RESPONSIVE GLOBAL
——————————————————————————————— */
@media (max-width: 1024px) {
  .site-content {
    max-width: 95%;
    padding: 0 25px;
  }
}

@media (max-width: 768px) {
  h1.entry-title {
    font-size: 1.8rem;
  }

  .site-content {
    max-width: 100%;
    padding: 0 15px;
    text-align: left;
  }
}

/* ————————————————————————————————
 📄 MISE EN PAGE PAR PAGE
——————————————————————————————— */
.page-pour-qui,
.page-se-faire-accompagner,
.page-mon-parcours,
.page-se-rencontrer,
.page-infos-pratiques {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 40px;
  color: #f6f6f6;
  background-color: transparent;
}

/* Centrer les paragraphes des pages globalement */
.page-pour-qui p,
.page-se-faire-accompagner p,
.page-mon-parcours p,
.page-se-rencontrer p,
.page-infos-pratiques p {
  text-align: justify;
  margin-left: auto;
  margin-right: auto;
  max-width: 750px;
}

/* ————————————————————————————————
 🧩 SECTIONS SPÉCIALES
——————————————————————————————— */

/* — PAGE 1 : POUR QUI — cartes */
.page-pour-qui .cartes-consultation {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-pour-qui .carte {
  flex: 1;
  background: #111;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  max-width: 300px;
}

.page-pour-qui .carte img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
}

/* — PAGE 2 : ACCOMPAGNER — poésie */
.page-se-faire-accompagner {
  text-align: center;
  font-style: italic;
  line-height: 1.8;
  white-space: pre-line;
}

/* — PAGE 5 : INFOS PRATIQUES — */
.page-infos-pratiques h2 {
  margin-top: 40px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

/* ======================================================
   PAGE PARCOURS — layout stable : image 1/3 | texte 2/3
   Applique aussi aux wrappers internes Gutenberg
   (remplacer toutes les règles .page-parcours .portrait-section)
   ====================================================== */

.page-parcours .portrait-section,
.page-parcours .portrait-section > .wp-block-group__inner-container,
.page-parcours .portrait-section .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;       /* centre verticalement image & texte */
  gap: 40px !important;
  flex-wrap: nowrap !important;
  max-width: 1100px;
  margin: 60px auto;
  box-sizing: border-box;
}

/* Forcer les enfants directs à être des blocs pour que le parent flex les organise */
.page-parcours .portrait-section > * ,
.page-parcours .portrait-section .wp-block-group__inner-container > * {
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Colonne image : ~1/3 (fixe). On laisse l'image remplir sa colonne */
.page-parcours .portrait-section .wp-block-image,
.page-parcours .portrait-section figure,
.page-parcours .portrait-section img {
  flex: 0 0 33% !important;        /* réserve 33% de la largeur au visuel */
  max-width: 360px !important;     /* limite la taille maximale de l'image */
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
}

/* Colonne texte : ~2/3, flexible */
.page-parcours .portrait-section .wp-block-paragraph,
.page-parcours .portrait-section p,
.page-parcours .portrait-section .wp-block-group {
  flex: 1 1 67% !important;
  min-width: 0 !important;         /* essentiel pour éviter overflow */
  line-height: 1.8;
}

/* Ajustements si l'image est dans un figure/wp-block-image avec wrapper */
.page-parcours .portrait-section .wp-block-image {
  margin: 0 !important;
}

/* MOBILE : empile proprement (image au-dessus, texte en dessous) */
@media (max-width: 768px) {
  .page-parcours .portrait-section,
  .page-parcours .portrait-section > .wp-block-group__inner-container,
  .page-parcours .portrait-section .wp-block-group__inner-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .page-parcours .portrait-section .wp-block-image,
  .page-parcours .portrait-section img {
    flex: 0 0 auto !important;
    width: 70% !important;
    max-width: 320px !important;
  }

  .page-parcours .portrait-section .wp-block-paragraph,
  .page-parcours .portrait-section p {
    max-width: 100% !important;

.coordonnees-psychologue {
  width: 100%;
  text-align: right;
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.95em;
  line-height: 1.5;
}

.coordonnees-psychologue div {
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .coordonnees-psychologue {
    text-align: center !important;
  }
  .coordonnees-psychologue div,
  .coordonnees-psychologue p,
  .coordonnees-psychologue a,
  .coordonnees-psychologue small {
    text-align: center !important;
  }
}