/* ===== Variables & Reset ===== */
:root{
  --primary:#1e7cbb;
  --bg:#f8fafc;
  --card:#ffffff;
  --accent:#dc2626;
  --muted:#555;
  --maxw:1200px;
  font-family: 'Inter', sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}
body{background:var(--bg); color:#222; line-height:1.6; font-size:16px;}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
.container{width:90%; max-width:var(--maxw); margin:0 auto;}

/* ===== Header ===== */
.site-header{
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
  position:sticky;
  top:0;
  z-index:100;
}
.header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}
.logo{height:70px;}
.main-nav{display:flex; gap:1rem;}
.main-nav a{padding:0.5rem 1rem; border-radius:6px; transition:0.3s;}
.main-nav a:hover{background:var(--primary); color:#fff;}
.nav-toggle{display:none; font-size:1.5rem; background:none; border:none; cursor:pointer;}

/* ===== Hero ===== */
.hero{
  position:relative;
  background-image: url('house.png');
  height:80vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
}
.hero .overlay{
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background:rgba(30,124,187,0.6);
}
.hero-content{
  position:relative;
  z-index:2;
}
.hero h1{font-size:clamp(2rem,5vw,3rem); margin-bottom:1rem;}
.hero p{font-size:1.2rem; margin-bottom:2rem;}
.cta{
  background:var(--primary);
  color:#fff;
  padding:0.8rem 1.5rem;
  border-radius:8px;
  transition:0.3s;
}
.cta:hover{background:#05395e4b;}

/* ===== Sections ===== */
.section{padding:4rem 0; text-align:center;}
.section h2{font-size:2rem; margin-bottom:2rem; color:var(--primary);}
.grid{display:grid; gap:2rem; grid-template-columns:repeat(auto-fit, minmax(250px,1fr));}



/* ===== Cards ===== */
.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.card p {
  color: var(--muted);
}

/* ✅ Image bien posée */
.card img {
  display: block;
  width: 100%;         /* prend toute la largeur de la card */
  height: 180px;       /* hauteur fixe (tu peux ajuster) */
  object-fit: cover;   /* recadre l’image sans la déformer */
  border-radius: 8px;  /* arrondis pour rester cohérent avec la card */
  margin-bottom: 1rem;       /* adapte sans rogner */
}

/* ✅ Liste propre */
.card ul {
  list-style: none;           /* pas de puces classiques */
  padding: 0;
  margin: 0;
  text-align: left;           /* aligne les textes */
  display: grid;
  gap: 0.5rem;                /* espace entre les lignes */
}


.card ul li {
  position: relative;
  padding-left: 1.8rem;       /* espace pour l’icône */
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ✅ Icône stylisée devant chaque élément */
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: bold;
  color: var(--primary);
}


.videos-section {
  padding: 60px 10%;
  background: #f9fafc;
}

.videos-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
  color: #0d47a1;
}

.videos-intro {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  color: #333;
}

/* Slider */
.slider-wrapper {
  position: relative;
}

.videos-slider {
  display: flex;
  overflow: hidden;
  gap: 20px;
  scroll-behavior: smooth;
}

.video-card {
  min-width: 250px; /* taille compacte */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card h4 {
  font-size: 16px;
  margin: 10px;
  color: #0d47a1;
  text-align: center;
}

/* Flèches */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(13,71,161,0.8);
  border: none;
  color: #fff;
  font-size: 28px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.slider-btn.prev {
  left: -20px;
}

.slider-btn.next {
  right: -20px;
}

.slider-btn:hover {
  background-color: #0d47a1;
}


/* ===== About Cards ===== */
.about-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 2rem 0;
}
.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  font-size: 2rem;
  color: #fff;
}

/* Couleurs spécifiques pour chaque card */
.card-avocat .icon-circle { background: #f8b500; }
.card-medecin .icon-circle { background: #1f3c88; }
.card-mecanicien .icon-circle { background: #27ae60; }
.card-dieteticien .icon-circle { background: #ff6b6b; }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #2c3e50;
}

.card ul {
  text-align: left;
  padding-left: 1.2rem;
  margin: 0;
  list-style-type: disc;
  color: #555;
  line-height: 1.5;
}

.founder-section {
  padding: 80px 10%;
  background: linear-gradient(135deg, #0d47a1, #1a237e);
  color: #fff;
}

.founder-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.founder-text {
  flex: 1.2;
  font-size: 17px;
  line-height: 1.8;
}

.founder-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.founder-text h2 span {
  color: hsl(51, 100%, 50%); /* doré pour l'élégance */
}

.founder-text p {
  margin-bottom: 18px;
  color: #f0f0f0;
  text-align: justify;
}

.founder-photo {
  flex: 0.8;
  text-align: center;
}

.photo-wrapper {
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.founder-photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.founder-photo h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.founder-photo p {
  font-size: 15px;
  color: #ddd;
}

.vm-section {
  padding: 80px 10%;
  background: #ffffffc5; /* bleu très clair pour le fond général */
}

.vm-container {
  margin-bottom: 60px;
}

.vm-title h2 {
  background-color: #0d47a1;
  color: #fff;
  display: inline-block;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 26px;
  margin-bottom: 25px;
}

.vm-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.vm-content.reverse {
  flex-direction: row-reverse;
}

.vm-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
  color: #fff; /* texte en noir */
  padding: 25px;
  border-radius: 15px;
  text-align: justify;
}

.white-bg {
  background-color: #0d47a1; /* fond blanc */
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.vm-text p {
  margin-bottom: 15px;
}

.vm-image {
  flex: 1;
  text-align: center;
}

.vm-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}


/* ===== Contact Form ===== */
.contact-form{
  max-width:600px;
  margin:0 auto;
  background:#fff;
  padding:2rem;
  border-radius:12px;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}
.contact-form input, .contact-form textarea{
  width:100%;
  padding:0.8rem;
  margin-bottom:1rem;
  border:1px solid #ddd;
  border-radius:8px;
  font-size:1rem;
}
.contact-form button{
  background:var(--primary);
  color:#fff;
  border:none;
  padding:0.8rem 1.5rem;
  border-radius:8px;
  cursor:pointer;
  transition:0.3s;
}
.contact-form button:hover{background:#155a8a;}
.form-status{margin-top:1rem; color:var(--accent); font-weight:600;}

/* ===== Footer ===== */
.site-footer{
  background:#000000;
  color:#fff;
  padding:2rem 0;
  text-align:center;
}
.site-footer .footer-container{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-around;
  gap:2rem;
  margin-bottom:1rem;
}
.site-footer a{color:#fff;}
.site-footer a:hover{color:var(--primary);}
.footer-section h3{margin-bottom:0.5rem;}
.site-footer img{height:24px; margin:0 5px;}

.services-section {
  padding: 80px 10%;
  background: #f0f4f8;
}

.services-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #0d47a1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.card1 h3 {
  margin-top: 0;
  font-size: 20px;
  color: #0d47a1;
  text-align: center;
}
.card1 {
  background: #fff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: #333;
  opacity: 0;
  transform: translateY(30px);
}

.card1 h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #0d47a1;
}

.card1 ul {
  padding-left: 20px;
  font-size: 15px;
}

.card1 li {
  margin-bottom: 8px;
}

.card1:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #0d47a1, #1a237e);
  color: #fff;
}

.card1:hover li {
  color: #fff;
}

.card1 img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 15px;
}

/* Animation on scroll */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeUp 0.6s forwards;
  animation-delay: var(--delay);
}

.partners-section {
  padding: 60px 10%;
  background: #f0f4f8;
}

.partners-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #0d47a1;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.partner {
  flex: 0 0 120px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.partner:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}



/* ===== Responsive ===== */
@media(max-width:768px){
  .main-nav{display:none; flex-direction:column; background:#fff; position:absolute; top:70px; right:0; width:200px; padding:1rem; box-shadow:0 4px 10px rgba(0,0,0,0.1);}
  .nav-toggle{display:block;}
    .founder-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .founder-text {
    text-align: justify;
  }
  .vm-content, .vm-content.reverse {
    flex-direction: column;
  }
  .vm-image img {
    max-width: 100%;
    margin-top: 20px;
  }
  .vm-title h2 {
    font-size: 22px;
    padding: 12px 20px;
  }
    .cards-grid {
    grid-template-columns: 1fr;
  }

    .videos-slider {
    gap: 15px;
  }
  .video-card {
    min-width: 200px;
  }
  .slider-btn.prev { left: -10px; }
  .slider-btn.next { right: -10px; }

}
