/*
Theme Name: Hello Elementor Child
Description: Thème enfant pour Hello Elementor, avec surcharges CSS pour l’annuaire, la page perso, et la page d’accueil.
Template: hello-elementor
Version: 1.0.0
*/

/* ——— Import du thème parent ——— */
@import url("../hello-elementor/style.css");

/* ———————————————————————————————–
   STYLES GÉNÉRAUX (police, couleur, base)
——————————————————————————————— */
html, body {
  width: 100%;
  overflow-x: hidden;
  color: #333;
  font-family: "Chivo", sans-serif;
  line-height: 1.6;
  background: #f3f4f6;
}
.elementor-widget-text-editor p { margin: 0 0 1rem; }
.elementor-widget-text-editor ul { padding-left: 1.2rem; }
.elementor-widget-text-editor li { margin-bottom: 0.5rem; }

/* --- Titre uniformisé sur toutes les pages --- */

.page-title-banner {
  background: #06384F;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 42px;
  border-bottom-right-radius: 38px;
  box-shadow: 0 8px 32px rgba(20, 40, 80, 0.18);
  padding: 2.5rem 4rem 2.5rem 2.5rem;
  display: inline-block;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 1.5rem 0 2rem 0;
  max-width: 100%;
  text-align: left;
}

/* ———————————————————————————————–
   BANDEAU HERO
——————————————————————————————— */
.hero-split-bluebox {
  background: #06384F;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 42px !important;
  border-bottom-right-radius: 38px !important;
  box-shadow: 0 8px 32px rgba(20,40,80,0.18);
  padding: 2.5rem 4rem 2.5rem 2.5rem !important;
  margin-left: -320px;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 560px;
  max-width: 900px;
  z-index: 3;
  position: relative;
}
.hero-split-bluebox img {
  width: 136px !important;
  height: auto !important;
  margin-bottom: 0.6rem;
  margin-right: 0.7rem;
  float: left;
  display: inline-block;
  vertical-align: middle;
}
.hero-split-bluebox .elementor-heading-title,
.hero-split-bluebox .elementor-widget-text-editor,
.hero-split-bluebox h2,
.hero-split-bluebox span {
  color: #fff !important;
  margin: 0;
  font-size: 2.07rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.13;
  letter-spacing: 0.01em;
}
.hero-split-bluebox .elementor-heading-title {
  margin-top: 0.12em;
}
.hero-split-bluebox br { display: block; }

/* Espace entre Hero et Présentation */
.single-home-presentation {
  margin-top: 6.5rem !important;
  padding-top: 0 !important;
}

/* ———————————————————————————————–
   PAGE D’ACCUEIL : Bloc Présentation
——————————————————————————————— */
.single-home-presentation {
  width: 100vw;
  max-width: none;
  margin: 2.5rem 0 0 0 !important;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.single-home-presentation .elementor-container {
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(40,60,70,0.11);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  min-height: 210px;
}
.single-home-presentation .elementor-column {
  padding: 2.7rem 3vw 2.7rem 3vw !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.single-home-presentation .elementor-column:nth-child(2) {
  align-items: center;
  justify-content: center;
  padding-left: 2vw !important;
  padding-right: 2vw !important;
}
.single-home-presentation .elementor-heading-title {
  margin-bottom: 1.2rem;
  font-size: 2rem;
  color: #06384F;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #dde4ee;
  padding-bottom: 0.5rem;
  display: inline-block;
}
.single-home-presentation .elementor-widget-text-editor {
  font-size: 1.13rem;
  margin-bottom: 1.3rem;
  text-align: left;
  max-width: 100%;
}
.single-home-presentation .elementor-widget-image img {
  max-width: 530px;
  width: 100%;
  height: 350px;
  min-width: 220px;
  min-height: 200px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20,40,80,0.19), 0 0 0 6px #fff;
  margin-left: 2rem;
  margin-right: 0;
  background: #fff;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ———————————————————————————————–
   ACCUEIL : Blocs principaux
——————————————————————————————— */
/* Blocs ENCADRÉS (évènements, publications scientifiques) */
.home-events,
.home-publications-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20,40,80,0.12);
  padding: 2.3rem 2.2rem 2.3rem 2.2rem;
  margin: 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Bloc “À la une” (widget publications/actualités) : PAS d’encadré, ni fond ni ombre */
.home-featured-list {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Titres soulignés */
.home-featured-list .elementor-heading-title,
.home-events .elementor-heading-title,
.home-publications-list .elementor-heading-title {
  text-align: center;
  color: #06384F;
  font-size: 1.42rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid #dde4ee;
  padding-bottom: 0.7rem;
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Espacement entre "Évènements à venir" et "Dernières publications" */
.home-events {
  margin-bottom: 28px !important;
}

/* Séparateur entre les publications de “À la une” */
.home-featured-list .elementor-widget-text-editor:not(:last-child) {
  border-bottom: 1.5px solid #dde4ee;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

/* ———————————————————————————————–
   Bloc Où nous trouver (section, encadré, titre souligné)
——————————————————————————————— */
.single-home-map {
  width: 100vw;
  max-width: none;
  margin: 3rem 0 2rem 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.single-home-map .elementor-container {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(40,60,70,0.13);
  display: flex;
  gap: 3vw;
  align-items: stretch;
  padding: 1rem 2vw;
}
.single-home-map .elementor-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.single-home-map .elementor-heading-title {
  color: #06384F;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
  margin-top: 0 !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  border-bottom: 2px solid #dde4ee;
  padding-bottom: 0.4rem;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}
.map-contact-box {
  background: #06384F;
  color: #fff !important;
  border-radius: 10px;
  padding: 0.7rem 1.3rem 0.7rem 1.3rem;
  /*max-width: 265px;*/
  max-width: 165px;
  margin: 0 auto 0.4rem auto;
  /*font-size: 0.75rem;*/
  font-size: 1.01rem;
  box-shadow: 0 2px 12px rgba(10,20,50,0.18);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 92px;
}
.map-contact-box:before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  height: 40px;
  width: 6px;
  border-radius: 7px;
  background: linear-gradient(180deg, #66a2d8 10%, #06384F 100%);
  opacity: 0.22;
}
.map-contact-box * {
  color: #fff !important;
  text-align: center !important;
}
.map-contact-box .elementor-heading-title {
  color: #fff !important;
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
  border-bottom: none !important;
}
.map-contact-box .elementor-button {
  background: #fff;
  color: #06384F !important;
  font-weight: 700;
  font-size: 0.89rem;
  padding: 0.35rem 1.05rem;
  border-radius: 4px;
  margin-top: 0.9rem;
  border: none;
  box-shadow: 0 2px 10px rgba(10,20,50,0.13);
  transition: background 0.14s;
  width: fit-content;
  align-self: center;
}
.map-contact-box .elementor-button:hover {
  background: #0a4f6f;
  color: #fff !important;
}
.single-home-map .elementor-widget-google_maps {
  min-height: 210px !important;
  max-height: 210px !important;
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  align-self: flex-start;
}

/* ———————————————————————————————————————————————
   Bloc ACTUALITÉS – PAGE actualités (page-id-22 uniquement)
——————————————————————————————————————————————— */
body.page-id-22 .elementor-widget-posts article,
body.page-id-22 .elementor-widget-archive-posts article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(20,40,80,0.12);
  padding: 18px 20px 18px 20px;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
}
body.page-id-22 .elementor-widget-posts article:hover,
body.page-id-22 .elementor-widget-archive-posts article:hover {
  box-shadow: 0 8px 32px rgba(20,40,80,0.20);
}
body.page-id-22 .elementor-post__thumbnail img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
  margin-bottom: 18px;
  background: #e9eef4;
  display: block;
}
body.page-id-22 .elementor-post__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.7em 0;
}
body.page-id-22 .elementor-post__excerpt {
  font-size: 1.01rem;
  color: #425167;
  margin-bottom: 1.4em;
}
body.page-id-22 .elementor-widget-posts .elementor-post__read-more,
body.page-id-22 .elementor-widget-archive-posts .elementor-post__read-more {
  margin-top: auto;
  background: #06384F;
  color: #fff;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.7em 1.4em;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 12px rgba(20,40,80,0.09);
  margin-bottom: 0.1em;
}
body.page-id-22 .elementor-widget-posts .elementor-post__read-more:hover,
body.page-id-22 .elementor-widget-archive-posts .elementor-post__read-more:hover {
  background: #005276;
  color: #fff;
}

/* ———————————————————————————————–
   Bloc "Les dernières publications scientifiques"
——————————————————————————————— */
.home-publications-list ol#publis {
  list-style: disc inside;
  padding-left: 1.1rem;
  margin: 0.5rem 0;
  max-width: 97%;
}
.home-publications-list ol#publis li {
  padding: 0.45rem 0 0.45rem 0;
  border-bottom: 1px solid #e7eaed;
  font-size: 1.06rem;
  line-height: 1.5;
  margin: 0 0 0.05rem 0;
}
.home-publications-list ol#publis li:last-child {
  border-bottom: none;
}
.home-publications-list ol#publis li a {
  color: #06384F;
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}
.home-publications-list ol#publis li a:hover {
  color: #66a2d8;
  text-decoration: underline;
}

/* ———————————————————————————————–
   ANNULAIRE & PAGE PERSO
——————————————————————————————— */
.single-annuaire {
  background: #f2f5f6;
  padding: 3rem 1rem 4rem;
}
.ann-card {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.ann-card-header {
  background: #06384F;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.ann-photo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border: 5px solid #ffffff;
  border-radius: 50%;
  overflow: hidden;
  background: #eaeaea;
}
.ann-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  background: #eaeaea;
}
.ann-title {
  margin: 0;
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ann-card-body {
  padding: 2rem 2.5rem;
}
.ann-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.ann-details th,
.ann-details td {
  padding: 0.8rem 1rem;
}
.ann-details th {
  width: 30%;
  background: #06384F;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  vertical-align: top;
}
.ann-details td {
  background: #fbfcfc;
  color: #333;
  border-bottom: 1px solid #e1e1e1;
}
.ann-bio,
.ann-sujets {
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1px solid #e5e5e5;
}
.ann-bio h2,
.ann-sujets h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: #06384F;
  border-bottom: 3px solid #06384F;
  display: inline-block;
  padding-bottom: 0.3rem;
}
.ann-bio p,
.ann-sujets p,
.ann-bio ul,
.ann-sujets ul {
  margin: 0.8rem 0 0;
  line-height: 1.65;
}

/* ———————————————————————————————–
   ANNULAIRE GÉNÉRALE – LISTE DES MEMBRES
——————————————————————————————— */
.annuaire-search,
.annuaire-table {
  max-width: 960px;
  margin: 0 auto 2rem;
}
.annuaire-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.annuaire-search input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.annuaire-search button {
  background: #06384F;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.annuaire-search button:hover {
  background: #0a4f6f;
}
.annuaire-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.annuaire-table thead {
  background: #06384F;
}
.annuaire-table thead th {
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}
.annuaire-table tbody tr:nth-child(even) td {
  background: #f7f9fa;
}
.annuaire-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e1e1e1;
  color: #333;
}
.annuaire-table td a {
  color: #06384F;
  text-decoration: none;
}
.annuaire-table td a:hover {
  text-decoration: underline;
}
/* ———————————————————————————————–
   BLOC "LES ÉVÈNEMENTS À VENIR" – FullCalendar harmonisé
——————————————————————————————— */
.home-events .fc-toolbar-chunk {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.home-events .fc-toolbar-chunk .fc-button-group {
  order: 1;
  margin-bottom: 0.8rem;
  justify-content: center;
  width: 100%;
}
.home-events .fc-toolbar-chunk .fc-toolbar-title {
  order: 2;
}
.home-events .fc-toolbar-chunk .fc-today-button {
  order: 3;
  align-self: center;
  margin: 0.4em auto 0.6em auto;
}
.home-events .fc-toolbar-title {
  font-size: 1.12rem !important;
  font-weight: 700;
  color: #06384F !important;
  margin-bottom: 0.8rem;
}
.home-events .fc-toolbar.fc-header-toolbar {
  margin-bottom: 0.7rem;
  gap: 0.7rem;
}
.home-events .fc .fc-button {
  font-size: 0.93rem !important;
  padding: 0.25em 0.85em !important;
  min-height: 32px;
  margin-right: 0.3em;
  border-radius: 6px !important;
  background: #f4f7fb !important;
  color: #06384F !important;
  border: 1px solid #c5d8e8 !important;
  box-shadow: none !important;
  transition: background 0.14s;
}
.home-events .fc .fc-button.fc-button-active,
.home-events .fc .fc-button:hover {
  background: #0a4f6f !important;
  color: #fff !important;
}
.home-events .fc .fc-button-primary:focus {
  box-shadow: 0 0 0 2px #06384F77 !important;
}
.home-events .fc-col-header-cell {
  font-size: 0.97rem !important;
}
.home-events .fc-daygrid-day-number {
  font-size: 0.97rem !important;
  font-weight: 600;
}
.home-events .fc-event {
  font-size: 0.95rem !important;
  border-radius: 6px !important;
}
.home-events .fc-header-toolbar {
  flex-direction: column !important;
  align-items: center !important;
}
.home-events ul,
.home-events ol {
  width: 100%;
  padding: 0 0.7rem;
  margin: 0 auto 0.5rem auto;
  list-style: none;
}
.home-events li {
  background: #f7fafd;
  border-radius: 7px;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  color: #06384F;
  box-shadow: 0 1px 7px rgba(20,40,80,0.06);
  font-size: 1.09rem;
  position: relative;
  transition: background 0.12s;
}
.home-events li:hover {
  background: #e6f2fa;
}
.home-events li a {
  color: #06384F;
  text-decoration: none;
  font-weight: 600;
}
.home-events li a:hover {
  color: #66a2d8;
  text-decoration: underline;
}

/* ———————————————————————————————–
   RESPONSIVE DESIGN
——————————————————————————————— */
@media (max-width: 1200px) {
  .single-home-presentation .elementor-container,
  .single-home-wrapper .elementor-container,
  .single-home-map .elementor-container {
    max-width: 98vw !important;
    padding: 0 1vw !important;
  }
  .single-home-presentation .elementor-widget-image img {
    max-width: 350px;
    height: 210px;
    margin-left: 0.7rem;
  }
  .hero-split-bluebox {
    min-width: 350px !important;
    max-width: 95vw !important;
    margin-left: -120px;
    padding: 1.7rem 1vw 1.7rem 1.3vw !important;
  }
}
@media (max-width: 880px) {
  .single-home-presentation .elementor-container,
  .single-home-wrapper .elementor-container,
  .single-home-map .elementor-container {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .single-home-presentation .elementor-column,
  .single-home-map .elementor-column {
    width: 100% !important;
    padding-left: 4vw !important;
    padding-right: 4vw !important;
    align-items: flex-start !important;
  }
  .single-home-presentation .elementor-widget-image img {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .single-home-map .elementor-widget-google_maps {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
    margin-bottom: 1.2rem !important;
  }
  .map-contact-box {
    margin: 2.2rem auto 1rem auto !important;
    max-width: 97vw !important;
  }
}
@media (max-width: 600px) {
  .ann-card,
  .annuaire-search,
  .annuaire-table {
    max-width: 99vw;
    padding: 0 1vw;
  }
  .single-home-presentation .elementor-container,
  .single-home-wrapper .elementor-container,
  .single-home-map .elementor-container {
    padding: 0 1vw !important;
  }
  .home-featured-list,
  .home-events,
  .home-publications-list {
    padding: 1.4rem 1vw 1.4rem 1vw !important;
    min-height: 160px !important;
  }
  .hero-split-bluebox {
    min-width: 90vw !important;
    max-width: 99vw !important;
    padding: 1.2rem 1vw !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    border-radius: 24px !important;
  }
/* Menus Elementor : empêcher que le header coupe les sous-menus */
  .header,
  .elementor-location-header,
  .elementor-nav-menu--main { 
    overflow: visible !important;
  }

  .elementor-nav-menu .sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999;
  } 
}

