/* ===== Variables & Reset ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Merriweather:wght@400;700&family=Poppins:wght@500;600;700&display=swap');

/* ===== Root Variables ===== */
:root {
  /* 🎨 Couleurs principales */
  --primary: #1e7cbb;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #dc2626;
  --muted: #555;
  --maxw: 1200px;

  /* 🔤 Polices globales */
  --font-ui: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Merriweather', Georgia, "Times New Roman", serif;
}

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: #222;
  line-height: 1.6;
  font-size: 16px;
  font-family: var(--font-body);
}

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:100px;
}

.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:2rem;
  background:none;
  border:none;
  cursor:pointer;
}

/* ===== Hero ===== */
.hero {
  position:relative;
  background-image: url('house.png');
  height:90vh;
  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;
}

/* ===== Carte blanche (papier) ===== */
.hero-card {
  position: absolute;
  bottom: 0px;   /* bien collée en bas, petite marge */
  left: 20px;     /* un peu d’espace du bord gauche */
  background: #ffffff;
  color: #111;
  padding: 10px 15px;
  border-radius: 5px;
  max-width: 280px;
  z-index: 3;
  font-family: 'Poppins', sans-serif;
}


/* Texte */
.hero-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 auto;
  text-align: justify;
  max-width: 500px; /* limite la largeur pour un meilleur rendu */
}
/* ===== About Phrase ===== */
.about-phrase {
  text-align: center;
  margin: 40px 0;
  color: #222;
}

.about-phrase i {
  font-size: 40px;
  color: #0d47a1;
  margin-bottom: 10px;
  animation: bounce 1.5s infinite;
}

.about-phrase h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #0d47a1;
  margin-bottom: 0.8rem;
  position: relative;
}

.about-phrase h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #1e7cbb;
  display: block;
  margin: 10px auto 30px;
  border-radius: 2px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Sections ===== */
.section {
  padding:5rem 0;
  text-align:center;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #0d47a1;
  margin-bottom: 0.8rem;
  position: relative;
}

.section h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #1e7cbb;
  display: block;
  margin: 10px auto 30px;
  border-radius: 2px;
}

.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(204, 202, 202, 0.15);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.card p {
  color: var(--muted);
}

.card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: grid;
  gap: 0.5rem;
}

.card ul li {
  padding-left: 1.8rem;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.card ul li::before {
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: bold;
  color: var(--primary);
}

/* ===== Videos Section ===== */
.videos-section {
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
  padding: 80px 10%;
  text-align: center;
  overflow: hidden;
}

.videos-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #0d47a1;
  margin-bottom: 0.8rem;
  position: relative;
}

.videos-section h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #1e7cbb;
  display: block;
  margin: 10px auto 30px;
  border-radius: 2px;
}

.videos-intro {
  font-family: 'Inter', sans-serif;
  color: #555;
  font-size: 1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.video-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(13, 71, 161, 0.2);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d47a1;
  margin: 15px;
  text-align: center;
  line-height: 1.4;
}

.video-card:hover h4 {
  color: #1e7cbb;
}

/* ===== 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;
}

.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 ===== */
.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%);
}

.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;
}

/* ===== Vision / Mission ===== */
.vm-section {
  padding: 80px 10%;
  background: #ffffffc5;
}

.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;
  padding: 25px;
  border-radius: 15px;
  text-align: justify;
}

.white-bg {
  background-color: #0d47a1;
  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);
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #0d47a1;
  margin-bottom: 0.8rem;
  position: relative;
}

.container h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #1e7cbb;
  display: block;
  margin: 10px auto 30px;
  border-radius: 2px;
}

/* ===== Card1 ===== */
.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;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeUp 0.6s forwards;
  animation-delay: var(--delay);
}

/* ===== Partners ===== */
.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: 50px;
}

.partner {
  flex: 0 0 120px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner img {
  max-width: 120%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.partner:hover img {
  filter: grayscale(0%);
  transform: scale(1.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;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section .social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-section .social-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section .social-links a:hover {
  color: var(--primary);
}

.footer-section .social-links img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: #fff;
  padding: 5px;
  object-fit: cover;
  margin-bottom: 0.3rem;
}
/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #25d366;
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 25px 25px 0;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, padding 0.3s;
  z-index: 9999;
}

.whatsapp-float i {
  font-size: 24px;
}

/* Dérouler au survol */
.whatsapp-float:hover {
  transform: translateY(-50%) translateX(0);
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.whatsapp-float span {
  display: none; /* cacher texte par défaut */
  font-weight: 600;
}

.whatsapp-float:hover span {
  display: inline; /* afficher texte au survol */
}


/* ===== 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-photo img { width:200px; height:200px; }
  .vm-content { flex-direction: column; }
  .cards-grid, .grid, .videos-grid, .about-cards { grid-template-columns:1fr; }
  .partners-logos { gap: 30px; }
  .hero-card {display: none;}
  
}
