/* =========================================================
   OPTIONAL SECTION STYLES (unchanged from your project)
   ========================================================= */
.feature-strip {
  background: #fff;
  padding: 40px 0;
}
.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--card-bd);
  border-radius: 14px;
  padding: 16px 18px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .icon i {
  color: #36a9e1;
}

.services-aisla {
  background: #f7f9ff;
}
.section-head {
  max-width: 700px;
  margin: 0 auto 28px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--card-bd);
  overflow: hidden;
}
.service-card .top-accent {
  height: 10px;
  background: linear-gradient(90deg, #f7b27c, #e75a2a);
}
.service-card:hover {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}

.project-card {
  background: #fff;
  border: 1px solid var(--card-bd);
  border-radius: 14px;
  overflow: hidden;
}
.project-card .img-wrap {
  height: 250px;
  overflow: hidden;
}
.project-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card:hover {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}

.team-card {
  background: #fff;
  border: 1px solid var(--card-bd);
  border-radius: 16px;
  padding: 18px;
}
.team-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  background: #f2f5ff;
}
.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--card-bd);
  border-radius: 16px;
  overflow: hidden;
}
.blog-card .img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.blog-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card .img .pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0d6efd;
  color: #fff;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
}
.blog-card .content {
  padding: 16px;
}

/* Contact block decorations (leave if you use them) */
.contact-detail::before {
  position: absolute;
  content: "";
  height: 50%;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, 0.3)), url(../img/background.jpg) center /
    cover no-repeat;
  border-radius: 10px;
  z-index: -1;
}
.contact-map {
  background: #1f7904;
}
.contact-form {
  background: #1f7904;
}

/* Testimonials dots */
.testimonial-carousel .owl-dots {
  margin-top: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.testimonial-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background: #c1dad0;
  border-radius: 15px;
  transition: .3s;
}
.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: #0d6efd;
}
/* ========= About – Donut layout ========= */

.about-aisla .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #f5a623;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.about-aisla .eyebrow i {
  display: inline-block;
  width: 62px;
  height: 3px;
  background: #f5a623;
  border-radius: 2px;
}

.about-aisla .about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a5568;
  margin: .35rem 0;
  font-size: 1rem;
}
.about-aisla .about-list i {
  color: var(--indigo);
}

/* Donut wrapper centers the visual */
.about-donut-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Big circle with blue arc */
.about-donut {
  width: min(640px, 80vw);
  aspect-ratio: 1 / 1;
  position: relative;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 70px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 70px), #000 0);

  --arc-start: 210deg;
  --arc-size: 280deg;

  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
  border-radius: 50%;
}

.about-donut__inner {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: #676767;
  box-shadow: inset 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.about-donut__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Make it breathe a bit on small screens */
@media (max-width: 992px) {
  .about-donut {
    width: min(520px, 88vw);
  }
  .about-aisla .display-5 {
    font-size: clamp(1.75rem, 4.5vw + .5rem, 2.75rem);
  }
}

/* =========================================================
   SECTION STYLES - Updated with Figma colors
   ========================================================= */
.feature-strip {
  background: #fff;
  padding: 40px 0;
}
.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .icon i {
  color: var(--secondary);
}

.services-aisla {
  background: var(--light);
}
.section-head {
  max-width: 700px;
  margin: 0 auto 28px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.service-card .top-accent {
  height: 10px;
  background: linear-gradient(90deg, var(--warning), var(--accent));
}
.service-card:hover {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}

.project-card {
  border-radius: 12px;
  min-height: 320px;
}

/* Première carte */
.project-card.highlight {
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--dark);
}
.project-card.highlight .category {
  color: var(--accent);
  font-size: 0.85rem;
}
.project-card.highlight .savings {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 0;
}
.project-card.highlight .year-savings {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Autres cartes */
.project-card.muted {
  background: #555;
  border-radius: 12px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.team-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  background: var(--surface);
}
.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.blog-card .img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.blog-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card .img .pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
}
.blog-card .content {
  padding: 16px;
}

/* Contact block decorations */
.contact-detail::before {
  position: absolute;
  content: "";
  height: 50%;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, 0.3)), url(../img/background.jpg) center /
    cover no-repeat;
  border-radius: 10px;
  z-index: -1;
}
.contact-map {
  background: #1f7904;
}
.contact-form {
  background: #1f7904;
}

/* Testimonials dots */
.testimonial-carousel .owl-dots {
  margin-top: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.testimonial-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background: #c1dad0;
  border-radius: 15px;
  transition: .3s;
}
.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: #0d6efd;
}

/* ========= Projects Section Fix ========= */
.projects-section {
  background: #fff;
}

.projects-section .project-featured-card {
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: #fff;
  transition: all 0.3s ease;
}

.projects-section .project-featured-card:hover {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.projects-section .project-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.projects-section .project-nav-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

.projects-section .project-nav-btn:hover {
  transform: translateY(-2px);
}

.projects-section .project-placeholder {
  background: var(--muted);
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.projects-section .project-placeholder:hover {
  transform: scale(1.02);
}

.project-image-card {
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.project-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.project-overlay {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.project-image-card:hover .project-overlay {
  opacity: 1;
}
.project-image-card:hover .project-image {
  transform: scale(1.05);
}
.project-overlay h6 {
  font-size: 0.9rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* === FIX taille cartes projets === */
.project-carousel .owl-stage { display: flex; }
.project-carousel .owl-item { display: flex; }
.project-item { display: flex; width: 100%; }

.project-item .card {
  display: flex;
  flex-direction: column;
  height: 400px; /* hauteur fixe */
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.project-item .card-body {
  flex: 0 0 auto;
  padding: 16px;
}

.project-item .card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.project-item img,
.project-item .card > img {
  flex: 1 1 auto;
  width: 100%;
  height: 420px; /* hauteur image fixe */
  object-fit: cover;
  display: block;
}

.project-item .card .bg-secondary {
  flex: 1 1 auto;
  min-height: 220px;
}

.project-item .card:hover {
  box-shadow: 0 16px 30px rgba(0,0,0,.06);
}

@media (max-width: 576px) {
  .project-item .card { height: 360px; }
  .project-item img,
  .project-item .card > img,
  .project-item .card .bg-secondary {
    height: 200px;
    min-height: 200px;
  }
}
