/*
Theme Name: GESD
Theme URI: https://gesd.org
Author: GESD
Description: Thème WordPress moderne pour le Groupe d'Entraide et de Soutien à Domicile
Version: 1.0
Text Domain: gesd
*/
@import url("assets/css/bootstrap.min.css");

/* ==========================
   COLORS
========================== */
:root {
  --primary: #5faf93;
  --secondary: #75539a;
  --accent: #f28c38;
  --success: #00b86b;
  --danger: #c84a4a;
  --dark: #111827;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #6b7280;
}

/* ==========================
   GLOBAL
========================== */

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark);
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: auto;
}

/* =======================
   HEADER
======================= */

.header-area {
  position: relative;
  z-index: 9999;
}

.navbar {
  padding: 20px 0;
  transition: 0.4s;
  background: transparent;
  border-bottom: solid 3px #d8dbdd;
}

.navbar.scrolled {
  background: #d4d2d2;
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(236, 234, 234, 0.08);
  border-bottom: solid 4px #00b86b;
}

/* =======================
   LOGO
======================= */

.navbar-brand img {
  height: 80px;
  transition: 0.3s;
}

.navbar.scrolled .navbar-brand img {
  height: 65px;
}

/* =======================
   MENU
======================= */
/* NAVBAR MENU MODERNE */

.navbar-nav {
  align-items: center;
  gap: 8px;
}

/* Li pi pwòp pase margin sou li */
.navbar-nav li {
  list-style: none;
}

/* LINK STYLE */
.navbar-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: #f8fafc;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* HOVER BACKGROUND SOFT (MODERN TOUCH) */
.navbar-nav a:hover {
  color: #5faf93 !important;
  background: rgba(95, 175, 147, 0.08);
}

/* ACTIVE MENU ITEM */
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a {
  color: #5faf93 !important;
  background: rgba(95, 175, 147, 0.12);
}

/* UNDERLINE ANIMATION */
.navbar-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: #5faf93;
  border-radius: 50px;
  transition: all 0.3s ease;
  opacity: 0;
}

.navbar-nav a:hover::after,
.navbar-nav .current-menu-item > a::after,
.navbar-nav .current_page_item > a::after {
  width: 60%;
  opacity: 1;
}

/* SCROLLED NAVBAR SUPPORT */
.navbar.scrolled .navbar-nav a {
  color: #111 !important;
}

/* FOCUS ACCESSIBILITY */
.navbar-nav a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 175, 147, 0.25);
}

/* =======================
   BUTTON
======================= */

.btn-menu {
  background: #5faf93;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-menu:hover {
  background: #00b86b;
  color: white;
  transform: translateY(-3px);
}

/* =======================
   DROPDOWN
======================= */

.sub-menu {
  list-style: none;
  padding: 15px;
  margin: 0;
  min-width: 250px;
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  color: #111827 !important;
  display: block;
  padding: 10px;
}

.sub-menu a:hover {
  background: #f3f4f6;
  border-radius: 10px;
}

/* =======================
   MOBILE
======================= */

.offcanvas {
  width: 320px;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #eee;
}

.mobile-menu a {
  display: block;
  padding: 15px;
  color: #111827;
  font-weight: 600;
}

.mobile-menu a:hover {
  color: #5faf93;
}

/* =======================
   TOGGLER
======================= */

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  filter: brightness(10);
}

/* .navbar.scrolled .navbar-toggler-icon {
  filter: none;
} */

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 991px) {
  .navbar-collapse {
    display: none !important;
  }

  .navbar-brand img {
    height: 65px;
  }
}
/* ==========================
   NAVBAR
========================== */

.navbar {
  padding: 20px 0;
  transition: 0.4s;
  background: transparent;
}

.navbar.scrolled {
  background: #e4e4e7;
  box-shadow: 0 10px 30px rgba(236, 234, 234, 0.15);
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
}

.navbar-brand img {
  height: 70px;
}

.nav-link {
  font-weight: 500;
  margin-left: 15px;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.navbar-toggler {
  background-color: purple;
  color: #d1d5db;
}

/* ==========================
   HERO
========================== */
.hero-slide {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15)
  );
}

.hero-slide .container {
  z-index: 3;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.12) translate(-10px, -8px);
  }

  100% {
    transform: scale(1.22) translate(10px, 8px);
  }
}

.hero-slide h1 {
  font-size: 3.8rem;
  line-height: 1.15;
}

.hero-slide p {
  max-width: 600px;
}

.carousel-item {
  transition: transform 1.2s ease-in-out;
}

.btn-success {
  border-radius: 50px;
  padding: 14px 34px;
  font-weight: 600;
}

.btn-outline-light {
  border-radius: 50px;
  padding: 14px 34px;
}

@media (max-width: 992px) {
  .hero-slide {
    height: 90vh;
  }

  .hero-slide h1 {
    font-size: 1.7rem;
  }
}

/* ==========================
   BUTTONS
========================== */

.btn-primary-custom {
  background: var(--primary);
  border: none;
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-primary-custom:hover {
  background: var(--success);
  color: white;
}

.btn-outline-custom {
  border: 2px solid white;
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
}

.btn-outline-custom:hover {
  background: white;
  color: var(--dark);
}

/* ==========================
   STATS
========================== */

.stats {
  background: white;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.stats p {
  font-weight: 500;
  color: var(--gray);
}

/* ==========================
   SERVICES
========================== */

.service-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  height: 100%;
  transition: 0.4s;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto auto 25px;
  color: white;
  font-size: 35px;
}

.service-card h4 {
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray);
}

/* ==========================
   ABOUT
========================== */

.about-image {
  border-radius: 30px;
  overflow: hidden;
}

.about-content h2 {
  font-size: 42px;
  font-weight: 700;
}

.about-content p {
  color: var(--gray);
}

/* ==========================
   TESTIMONIALS
========================== */

.testimonial {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial p {
  font-style: italic;
  color: var(--gray);
}

.testimonial h5 {
  margin-top: 20px;
  color: var(--primary);
}

/* ==========================
   CONTACT
========================== */

.contact-box {
  background: white;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-control {
  height: 55px;
  border-radius: 12px;
}

textarea.form-control {
  height: 150px;
}

/* ==========================
   FOOTER
========================== */

.footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 30px;
}

.footer h5 {
  margin-bottom: 20px;
  font-weight: 600;
}

.footer a {
  color: #d1d5db;
}

.footer a:hover {
  color: var(--primary);
}

.footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.copyright {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

/* ==========================
   ANIMATIONS
========================== */

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 991px) {
  .hero-section {
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.8rem;
  }

  .hero-logo {
    margin-top: 40px;
    max-width: 280px;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 3rem;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .counter {
    font-size: 2.2rem;
    margin-top: 20px;
  }

  .service-card {
    padding: 30px;
  }
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.post-content blockquote {
  border-left: 5px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #6b7280;
}

.wp-block-image img {
  border-radius: 15px;
}

.page article,
.single article {
  margin-bottom: 50px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation a {
  display: inline-block;
  padding: 12px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
