/* ==========================================================================
   CLINICOG – Feuille de styles globale
   --------------------------------------------------------------------------
   • Sections clairement balisées pour se repérer rapidement
   ========================================================================== */

/* ==========================================================================
   1. SECTION D’INTRODUCTION
   ========================================================================== */
.hero-text {
  background-color: #ffffff; /* Fond neutre */
  padding: 40px 20px;
  text-align: center;
}

.hero-text-content h1 {
  font-size: 1.4em; /* Taille adaptée au mobile */
  font-weight: bold;
  max-width: 900px;
  color: #557c8c; /* Bleu identitaire */
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   2. SECTION HÉRO (expertises + actualités)
   ========================================================================== */
.hero {
  position: relative; /* Contexte pour ::before */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px;
  min-height: 80vh; /* Pleine hauteur sur grands écrans */
  text-align: center;
  color: #ffffff; /* Couleur par défaut (avant la carte) */
}

/* Image d’arrière-plan placée en pseudo-élément
   ➜ n’ajoute aucun nœud HTML parasite et garde le texte accessible */
.hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  background: url("../images/hero_image.webp") no-repeat center/cover;
  opacity: 0.4; /* Laisse apparaître le contenu */
  z-index: -1; /* Derrière tout le reste */
}

/* === Sous-conteneur carte & actualités ===== */
.hero-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px 40px; /* row-gap / column-gap             */
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* Les cartes n’ont plus besoin de flex-basis/max-width ;
   elles prennent simplement toute la colonne */
.hero-card,
.hero-news {
  width: 100%;
}

/* ---------------- Carte domaines d’expertise ---------------- */
.hero-card {
  background-color: #ffffff;
  color: #527887;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 58%;
  max-width: 600px;
  min-width: 300px;
}

.hero-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-content {
  text-align: left;
}

.hero-content h2 {
  font-size: 2.2rem;
}

.subtitle {
  display: block;
  font-size: 1.6rem;
  font-weight: lighter;
  margin-top: 10px;
}

.hero-content h3 {
  padding-top: 10px;
}

.hero-content ul {
  padding-left: 30px;
} /* Décalage puces */

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

/* ---------------- Bloc actualités (aside) ------------------- */
.hero-news {
  flex: 1 1 38%;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  margin-left: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-news:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hero-news-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e6ecf0;
  padding-bottom: 12px;
}

.hero-news-icon {
  font-size: 24px;
  color: #69b3f0;
}
.hero-news h3 {
  font-size: 22px;
  margin: 0;
  color: #69b3f0;
}

.hero-news-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-title {
  font-size: 16.5px;
  font-weight: 600;
  color: #527887;
}
.news-date {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  color: #69b3f0;
}
.news-text {
  font-size: 15px;
  line-height: 1.6;
  color: #527887;
}

/* === BREAKPOINTS pour la section HÉRO ======================= */
@media (max-width: 1100px) {
  .hero-wrapper {
    display: flex; /* ⬅️ on écrase grid */
    flex-direction: column; /* empile les cartes */
    gap: 40px; /* espace vertical */
  }

  .hero-card,
  .hero-news {
    max-width: 100%;
    margin-left: 0; /* supprime le décalage actu */
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 60px;
    min-height: 60vh;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1.4rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px;
    min-height: 50vh;
    justify-content: center;
  }
  .hero-card {
    max-width: 90%;
    padding: 20px;
    text-align: center;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .subtitle {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px;
  }
  .hero-text-content h1 {
    font-size: 1.2em;
    max-width: 100%;
  }
  .hero-card {
    padding: 15px;
  }
  .hero-content h2 {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .hero-buttons {
    gap: 8px;
  }
}

/* ==========================================================================
   3. SECTION D’INFORMATION GÉNÉRALE
   ========================================================================== */
.info {
  display: flex;
  justify-content: center;
  background-color: #69b3f0; /* Bleu Clinicog */
  color: #ffffff;
  font-size: 16px;
}

.info-content {
  margin: 30px;
  text-align: center;
  max-width: 1000px;
}

.info-content h3 {
  padding-bottom: 10px;
}
.info-content p {
  padding-bottom: 10px;
  color: #ffffff;
}

.info-content ul {
  list-style-position: inside; /* Puces alignées */
  padding-bottom: 10px;
  color: #ffffff;
}

/* === BREAKPOINTS (info) ==================================== */
@media (max-width: 1024px) {
  .info {
    font-size: 15px;
  }
  .info-content {
    margin: 25px;
    max-width: 800px;
  }
  .info-content h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .info {
    font-size: 14px;
    padding: 30px 20px;
  }
  .info-content {
    margin: 20px auto;
    max-width: 90%;
  }
  .info-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .info {
    font-size: 13px;
    padding: 20px;
  }
  .info-content {
    margin: 15px auto;
    max-width: 100%;
  }
  .info-content h3 {
    font-size: 1.2rem;
  }
  .info-content p,
  .info-content ul {
    padding-bottom: 6px;
  }
}

/* ==========================================================================
   4. SECTION « Psychologie computationnelle »
   ========================================================================== */
.section-two-cols {
  background: #ffffff;
  padding: 80px 20px;
}

.section-two-cols__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-two-cols__text {
  flex: 1 1 55%;
}
.section-two-cols__media {
  flex: 1 1 40%;
}

.section-two-cols__buttons {
  margin-top: 20px;
}

/* Responsive : empilement des colonnes */
@media (max-width: 900px) {
  .section-two-cols__container {
    flex-direction: column;
  }
  .section-two-cols__text,
  .section-two-cols__media {
    flex: 1 1 100%;
  }
}

/* ====================================================================
   SECTION 5 — SERVICES (consultations · remédiation · adaptation)
   ==================================================================== */

/* ---------- Conteneur principal ----------------------------------- */
.services {
  background-color: #f4f7f9;
  padding: 80px 20px; /* padding “standard” */
  padding-top: 0; /* on l’annule par défaut */
  display: flex;
  justify-content: center;
}

/* Modificateur : ajoute un padding-top réutilisable où l’on veut */
.services--top {
  padding-top: 80px;
}

/* ---------- Grille cartes ---------------------------------------- */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
}

/* ---------- Carte service ---------------------------------------- */
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1;
  max-width: 47%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Visuel */
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---------- Contenu ---------------------------------------------- */
.service-card-content {
  padding: 20px;
  color: #527887;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Titre H2 de la carte */
.service-card-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Sous-titre optionnel (.subtitle) */
.service-card-content .subtitle {
  font-size: 16px;
}

/* Paragraphe standard */
.service-card-content p {
  font-size: 14px;
  margin: 10px 0;
}

/* ---------- Sous-titres H3 (“Objectifs”, “Modalités”… ) ----------- */
.service-card-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0 10px;
  color: #527887;
}

/* ---------- Listes ------------------------------------------------ */
.service-card-content ul,
.service-card-content ol {
  list-style: disc inside;
  margin: 8px 0 15px;
  padding-left: 0;
}

.service-card-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.service-card-content li strong {
  color: #4e7c8d;
}

/* ====================================================================
   BREAKPOINTS
   ==================================================================== */

/* ≤ 1024 px --------------------------------------------------------- */
@media (max-width: 1024px) {
  .services {
    padding-bottom: 50px;
  }

  /* si on a le modif .services--top, on garde le padding-top */
  .services:not(.services--top) {
    padding-top: 0;
  }
}

/* ≤ 768 px ---------------------------------------------------------- */
@media (max-width: 768px) {
  .services {
    padding: 0 15px 30px;
  }
  .services--top {
    padding-top: 60px;
  } /* un peu moins haut en mobile */

  .services-container {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }

  .service-card-content h2 {
    font-size: 22px;
  }
  .service-card-content h3 {
    font-size: 17px;
  }
  .service-card-content p {
    font-size: 13px;
  }
}

/* ≤ 480 px ---------------------------------------------------------- */
@media (max-width: 480px) {
  .service-card-content {
    padding: 15px;
  }

  .service-card-content h2 {
    font-size: 20px;
  }
  .service-card-content h3 {
    font-size: 16px;
  }
  .service-card-content p {
    font-size: 12px;
  }
  .service-card-content li {
    font-size: 12px;
  }
}

/* ==========================================================================
   6. SECTION EXPERTS
   ========================================================================== */
.experts {
  position: relative;
  text-align: center;
  padding-bottom: 60px;
  z-index: 10;
}

/* Bandeau d’en-tête avec image en superposition */
.experts-header {
  background-color: #557c8c;
  height: 500px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  padding: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.experts-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/background.webp") no-repeat center/cover;
  opacity: 0.2;
  z-index: 0;
}

.experts-header h2,
.experts-header p {
  position: relative; /* Passe au-dessus du ::before */
  margin-top: 30px;
  color: #ffffff;
}

.experts-header h2 {
  font-size: 28px;
  color: #ffffff;
}
.experts-header p {
  font-size: 20px;
  font-family: "Inter", sans-serif;
}

/* ---- Cartes experts ---- */
.experts-cards {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: -300px; /* Effet de superposition */
  flex-wrap: wrap;
  z-index: 1000; /* Au-dessus du bandeau */
}

.expert-card {
  width: 740px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.expert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  text-align: left;
  box-sizing: border-box;
}

.expert-card-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.expert-card-content p {
  font-size: 14px;
  color: #ffffff;
}

/* BREAKPOINTS (experts) */
@media (max-width: 1024px) {
  .experts {
    padding-bottom: 30px;
  }
  .experts-header h2 {
    font-size: 24px;
  }
  .experts-header p {
    font-size: 16px;
  }
  .experts-cards {
    flex-direction: column;
    align-items: center;
    margin-top: -330px;
    gap: 30px;
  }
  .expert-card {
    width: 90%;
  }
}

/* ==========================================================================
   7. SECTION RESSOURCES
   ========================================================================== */
.resources {
  padding: 20px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resources-container {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  gap: 20px;
}

/* ---- Carte ressource ---- */
.resource-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #527887;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1;
  max-width: 47%;
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.resource-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.resource-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.2;
  transition: opacity 0.3s ease-in-out;
}

.resource-card:hover img {
  opacity: 0.4;
}

.resource-card h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

/* BREAKPOINTS (resources) */
@media (max-width: 430px) {
  .resources-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .resource-card {
    max-width: 80%;
    height: 250px;
  }
  .resource-card h3 {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   8. SECTION PARTENAIRES
   ========================================================================== */
.partners {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.partners-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-logo img {
  display: block;
  transition: transform 0.3s ease;
}

.partner-logo:hover img {
  transform: scale(1.1);
}

/* BREAKPOINTS (partners) */
@media (max-width: 768px) {
  .partners {
    padding: 60px 0;
  }
  .partners-container {
    gap: 30px;
  }
  .partner-logo img {
    width: 150px;
  }
}
