/* ======================================================================
   CLINICOG – feuille de styles Front Page
   ====================================================================== */

/* **********************************************************************
   1. SECTION D’INTRODUCTION
   ********************************************************************* */
.hero-text {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.hero-text-content h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: 1.4em;
  font-weight: 700;
  color: #557c8c;
  line-height: 1.5;
}

/* **********************************************************************
   2. SECTION HERO (expertises + actualités)
   ********************************************************************* */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px;
  min-height: 80vh;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero_image.webp") center / cover no-repeat;
  opacity: 0.4;
  z-index: -1;
}

/* --- grille interne -------------------------------------------------- */
.hero-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* --- carte domaines -------------------------------------------------- */
.hero-card {
  flex: 1 1 58%;
  max-width: 600px;
  min-width: 300px;
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  background: #fff;
  color: #527887;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.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;
}
.hero-content h3 {
  padding-top: 10px;
  font-size: 1.03rem;
}
.subtitle {
  display: block;
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 300;
}
.hero-content ul {
  padding-left: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

/* --- carte actualités ----------------------------------------------- */
.hero-news {
  flex: 1 1 38%;
  max-width: 450px;
  margin-left: auto;
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  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;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ecf0;
}

.hero-news-icon {
  font-size: 24px;
  color: #69b3f0;
}
.hero-news h3 {
  margin: 0;
  font-size: 22px;
  color: #69b3f0;
}

.hero-news-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-title {
  font: 600 16.5px/1 "Inter", sans-serif;
  color: #527887;
}
.news-date {
  font: 700 13px/1 "Inter", sans-serif;
  text-transform: uppercase;
  color: #69b3f0;
}
.news-text {
  font-size: 15px;
  line-height: 1.6;
  color: #527887;
}

/* --- breakpoints HERO ------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .hero-card,
  .hero-news {
    max-width: 100%;
    margin-left: 0;
  }
}

@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 INFO GÉNÉRALE
   ********************************************************************* */
.info {
  display: flex;
  justify-content: center;
  background: #69b3f0;
  color: #fff;
  font-size: 16px;
}

.info-content {
  margin: 30px;
  max-width: 1000px;
  text-align: center;
}

.info-content h3 {
  padding-bottom: 10px;
  color: #fff;
}
.info-content p,
.info-content ul {
  padding-bottom: 10px;
  color: #fff;
}
.info-content ul {
  list-style-position: inside;
}

/* --- 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;
  }
}

/* **********************************************************************
   6. SECTION EXPERTS
   ********************************************************************* */
.experts {
  position: relative;
  text-align: center;
  padding-bottom: 60px;
  z-index: 10;
}

/* --- header ---------------------------------------------------------- */
.experts-header {
  position: relative;
  overflow: hidden;
  height: 500px;
  padding: 20px;
  background: #557c8c;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.experts-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/background.webp") center / cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}

.experts-header h2,
.experts-header p {
  position: relative;
  margin-top: 30px;
  color: #fff;
}

.experts-header h2 {
  font-size: 28px;
}
.experts-header p {
  font-size: 20px;
}

/* --- cartes ---------------------------------------------------------- */
.experts-cards {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: -300px; /* superposition sous le header      */
}

.expert-card {
  position: relative;
  width: 740px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.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: #fff;
  background: rgba(0, 0, 0, 0.5);
}

.expert-card-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}
.expert-card-content p {
  font-size: 14px;
  color: #fff;
}

/* --- 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;
    gap: 30px;
    margin-top: -330px;
  }
  .expert-card {
    width: 90%;
  }
}

/* **********************************************************************
   7. SECTION RESSOURCES
   ********************************************************************* */
.resources {
  display: flex;
  justify-content: center;
  padding: 0 20px 0;
}

.resources-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  width: 100%;
}

.resource-card {
  position: relative;
  flex: 1;
  max-width: 47%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #527887;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.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;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.resource-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.2;
  transition: opacity 0.3s;
}
.resource-card:hover img {
  opacity: 0.4;
}

.resource-card h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
}

/* --- breakpoints RESSOURCES ----------------------------------------- */
@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 {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.partner-logo img {
  display: block;
  transition: transform 0.3s;
}
.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;
  }
}
