/* ===============================
   RESET
=================================*/
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Segoe UI', sans-serif;
}

body{
  background:#0f172a;
  color:white;
  line-height:1.6;
}

/* ===============================
   HEADER
=================================*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #38bdf8;
}

/* ===============================
   USER IMAGE - PROFILE IMAGE
=================================*/
#user-profile-image {
  width: 40px; /* تحديد الحجم */
  height: 40px;
  border-radius: 50%; /* يجعل الصورة دائرية */
  border: 2px solid #38bdf8; /* إضافة حدود ملونة */
  display: inline-block; /* عرض الصورة بجانب العناصر الأخرى */
  margin-left: 15px; /* إضافة مسافة بين الصورة و "Contact" */
}

/* ================= LOGO 2026 FIXED ================= */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: 60px;
  position: relative;
}

/* الصورة */
.logo-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* 🔵 الدائرة تدور (فوق logo) */
.logo-img::after {
  content: "";
  position: absolute;
  inset: -3px; /* حجم الدائرة */
  border-radius: 50%;
  background: conic-gradient(
    #f8385500,
   #38bdf8,
    #38bdf8
  );
  animation: spinBorder 3s linear infinite;
  z-index: 3;

  /* نخليها ring موش مملية */
  -webkit-mask: radial-gradient(circle, transparent 65%, black 66%);
  mask: radial-gradient(circle, transparent 65%, black 66%);
}

/* hover */
.logo-img:hover {
  transform: scale(1.08);
}

/* animation */
@keyframes spinBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}
/* ================= LIVE CLOCK 2026 ================= */
.live-clock {
  font-size: 15px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56,189,248,0.12);
  padding: 8px 16px;
  border-radius: 30px;
  white-space: nowrap;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(56,189,248,0.2);
  transition: all 0.4s ease;
  opacity: 0;                /* مخفية في البداية */
  visibility: hidden;        /* مش موجودة حتى في المساحة */
  pointer-events: none;      /* ما تتفاعلش مع الماوس وهي مخفية */
  transform: translateY(10px); /* شوية تحت عشان الظهور يكون smooth */
}

.live-clock.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover على الـ header كامل يخليها تطلع (أحسن من hover على الساعة نفسها) */
.header:hover .live-clock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* mobile: دايما ظاهرة (ما عندوش hover) */
@media (max-width: 768px) {
  .live-clock {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    margin: 10px 0;
    font-size: 13px;
    min-width: 220px;
  }
}
/* ===============================
   LOGIN BUTTON
=================================*/
button.login-btn {
    background-color: #38bdf8;
    color: #000;
    font-weight: 600;
    font-size: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

button.login-btn:hover {
    background: #2563eb;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* ===============================
   NAVBAR
=================================*/
.nav{
  display:flex;
  align-items:center;
  gap:25px;
}

.nav a{
  text-decoration:none;
  color:white;
  font-weight:500;
  transition:0.3s;
}

.nav a:hover{
  color:#38bdf8;
}

/* ================= VISITS COUNTER IN HEADER (mise à jour 2026) ================= */
#visits-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);     /* أخف وأجمل */
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.35s ease;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

#visits-simple:hover {
    background: rgba(56, 189, 248, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

#visits-simple img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);          /* بيضاء دايماً */
    transition: transform 0.3s ease;
}

#visits-simple:hover img {
    transform: scale(1.18) rotate(5deg);      /* حركة أجمل عند hover */
}

/* Mobile – تصغير وتركيز */
@media (max-width: 768px) {
    #visits-simple {
        font-size: 13px;
        padding: 6px 12px;
        gap: 6px;
        margin-left: 12px !important;         /* مسافة يمين أحسن */
    }
    #visits-simple img {
        width: 18px;
        height: 18px;
    }
}

/* إذا كان الـ header flex وتحب يتكيّف أكثر */
.header .nav {
    position: relative;   /* مهم إذا كنت تستعمل position absolute داخل الـ nav */
}
/* ===============================
   LOGIN BUTTON
=================================*/
button.login-btn,
button.login-submit {
    background-color: #38bdf8; /* أزرق جذاب */
    color: #000; /* نص أسود */
    font-weight: 600;
    font-size: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* زيادة المسافة بين النص و الأيقونة */
}

button.login-btn .google-logo, button.login-submit .google-logo {
    width: 10px; /* حجم الأيقونة */
    height: 10px; /* حجم الأيقونة */
}

button.login-btn:hover,
button.login-submit:hover {
    background: #2563eb; /* أزرق أغمق عند المرور */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

button.login-btn:active,
button.login-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* ================= ONLINE USERS 2026 ================= */
#onlineBox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
  width: 160px;
  z-index: 999;
  transition: 0.3s;
}

#onlineBox:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #38bdf8;
}

.online-header {
  font-size: 14px;
  color: #38bdf8;
  margin-bottom: 8px;
  font-weight: 600;
}

/* avatars mini */
.online-users-mini img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  position: relative;
}

/* نقطة online */
.online-users-mini img::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0f172a;
}
/* ===============================
   HERO SECTION
=================================*/
.hero{
  text-align:center;
  padding:120px 20px;
}

/* title */
.hero-title{
  font-size:40px;
  margin-bottom:15px;
  color:white;
  transform:translateY(20px);
  transition:0.6s;
}

/* typing text */
.hero-title span{
  color:#38bdf8;
  padding-right:6px;
}

/* blink النص كامل */
@keyframes textBlink{
  0%{opacity:1;}
  50%{opacity:0;}
  100%{opacity:1;}
}

.text-blink{
  animation:textBlink 0.6s 2;
}

/* paragraph */
.hero p{
  color:#cbd5f5;
  margin-bottom:25px;
}
/* ===============================
   HERO BUTTONS - STYLE COMPLET 2026 (PC + MOBILE)
   =============================== */

/* Conteneur des boutons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 40px auto 20px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Style de base commun aux deux boutons */
.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 38px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    border-radius: 999px;
    overflow: hidden;
    transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    user-select: none;
}

/* Effet shine / lumière qui passe sur hover */
.hero-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.hero-btn:hover::before {
    left: 200%;
}

/* Bouton principal - "Découvrir nos services" */
.hero-btn.primary {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
    background-size: 200% 100%;
    color: #000000;
    box-shadow: 
        0 8px 25px rgba(14, 165, 233, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
    animation: gradientFlow 6s linear infinite;
}

.hero-btn.primary:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 
        0 15px 40px rgba(56, 189, 248, 0.7),
        inset 0 1px 4px rgba(255, 255, 255, 0.5);
}

/* Bouton secondaire - "forum 💬 live" */
.hero-btn.secondary {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(10px);
    border: 2.5px solid #38bdf8;
    color: #38bdf8;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.hero-btn.secondary:hover {
    background: rgba(56, 189, 248, 0.18);
    color: white;
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 15px 45px rgba(56, 189, 248, 0.65);
    border-color: #60a5fa;
}

/* Animation gradient pour le bouton primary */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Icône flèche pour primary */
.hero-btn.primary .arrow {
    font-size: 1.25em;
    transition: transform 0.4s ease;
}

.hero-btn.primary:hover .arrow {
    transform: translateX(8px);
}

/* Responsive - Téléphone / petits écrans */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 22px;
        margin: 45px auto 30px;
    }

    .hero-btn {
        padding: 18px 0;
        font-size: 18px;
        min-width: 82%;
        max-width: 340px;
        border-radius: 60px;
        box-shadow: 
            0 6px 18px rgba(56, 189, 248, 0.45),
            inset 0 1px 3px rgba(255, 255, 255, 0.15);
    }

    .hero-btn:active {
        transform: scale(0.96);
        box-shadow: 0 4px 12px rgba(56, 189, 248, 0.6);
    }

    /* Ripple effect sur tap (mobile) */
    .hero-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
        pointer-events: none;
    }

    .hero-btn:active::after {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Très petits écrans (ex: iPhone SE, ~320px) */
@media (max-width: 480px) {
    .hero-btn {
        font-size: 17px;
        padding: 16px 0;
        min-width: 88%;
    }
}
/* ===============================  
   SERVICES, CALCUL ÉLECTRONIQUE & ATELIER CARDS 2026
=================================*/
.services, .calcul-electronique, .atelier {
  text-align:center;
  padding:80px 8%;
}

.services h2, .calcul-electronique h2, .atelier h2 {
  font-size:36px;
  margin-bottom:40px;
  color:#38bdf8;
}

.services .cards, .calc-cards, .atelier-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  justify-items:center;
}

.service-card, .calc-card, .atelier-cards .card {
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(8px);
  border-radius:20px;
  padding:25px 20px;
  width:250px;
  text-align:center;
  text-decoration:none;
  color:white;
  font-weight:500;
  transition:0.5s;
  position:relative;
  overflow:hidden;
}

.service-card h3, .calc-card h3, .atelier-cards .card h3 {
  margin-bottom:15px;
  color:#38bdf8;
}

.service-card p, .calc-card p, .atelier-cards .card p {
  font-size:15px;
  line-height:1.4;
  color:#cbd5e1;
}

.service-card::before, .calc-card::before, .atelier-cards .card::before{
  content:'';
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background:linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0), rgba(255,255,255,0.15));
  transform:skewX(-20deg);
  transition:0.5s;
}

.service-card:hover::before, .calc-card:hover::before, .atelier-cards .card:hover::before{
  left:125%;
}

.service-card:hover, .calc-card:hover, .atelier-cards .card:hover{
  transform:translateY(-5px) scale(1.05);
  box-shadow:0 15px 35px rgba(56,189,248,0.7), 0 0 15px rgba(56,189,248,0.5) inset;
}

/* ================= VIDEOS SECTION ================= */
.videos-section {
  padding: 80px 8%;
  text-align: center;
}

.videos-section h2 {
  font-size: 34px;
  color: #38bdf8;
  margin-bottom: 40px;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.video-box {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: 0.4s;
}

.video-box:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(56,189,248,0.5);
}

.video-box video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
}
/* =============================== RATING SECTION =============================== */
.rating-title{
  text-align:center;
  font-size:22px;
  font-weight:800;
  color:#38bdf8;
  margin-top:40px;
}

#rating-average{
  text-align:center;
  margin-top:8px;
  font-size:16px;
  color:#cbd5f5;
  font-weight:600;
}

.stars-horizontal{
  display:flex;
  justify-content:center;
  gap:14px;
  margin:20px 0;
}

.stars-horizontal span{
  font-size:2.8rem;
  cursor:pointer;
  color:#334155;
  transition:0.3s ease;
}

.stars-horizontal span:hover{
  color:#facc15;
  transform:scale(1.3) rotate(5deg);
}

.stars-horizontal span.selected{
  color:#ffc107;
  text-shadow:0 0 10px rgba(255,193,7,0.8);
}

.rating-message{
  text-align:center;
  margin-top:12px;
  font-size:15px;
  color:#38bdf8;
  opacity:0;
  transform:translateY(10px);
  transition:0.5s;
}

.rating-message.show{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:768px){
  .stars-horizontal span{
    font-size:2.2rem;
  }
}
/* ===============================
   SCROLL ANIMATION (WhatsApp style)
=================================*/

.service-card,
.calc-card,
.atelier-cards .card{
  transform:translateY(60px);
  transition:all 0.7s ease;
}

.service-card.show,
.calc-card.show,
.atelier-cards .card.show{
  opacity:1;
  transform:translateY(0);
}

/* delay صغير باش يطلعوا بالتدريج */

.cards a:nth-child(1){transition-delay:0.1s;}
.cards a:nth-child(2){transition-delay:0.2s;}
.cards a:nth-child(3){transition-delay:0.3s;}

/* ================= AEM WHATSAPP-STYLE SECTION ================= */
.aem-footer-section {
  background: #111827;
  padding: 60px 5% 40px;
  border-top: 1px solid rgba(56,189,248,0.15);
}

.aem-footer-container {
  max-width: 1200px;
  margin: auto;
}

.aem-logo-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.aem-logo-circle {
  display: inline-block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #38bdf8;
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
  transition: 0.4s;
}

.aem-logo-circle:hover {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 0 30px rgba(56,189,248,0.7);
}

.aem-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aem-logo-text {
  margin-top: 15px;
  font-size: 24px;
  font-weight: 700;
  color: #38bdf8;
}

.aem-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.aem-col h4 {
  color: #38bdf8;
  font-size: 17px;
  margin-bottom: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.aem-col h4:hover {
  transform: translateX(5px);
}

.aem-col a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 15px;
  transition: 0.3s;
}

.aem-col a:hover {
  color: #38bdf8;
  padding-left: 8px;
}

/* Bouton central */
.aem-btn-wrapper {
  text-align: center;
}

.aem-contact-btn {
  background: #38bdf8;
  color: #000 !important;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(56,189,248,0.4);
  transition: 0.3s;
}

.aem-contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(56,189,248,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .aem-footer-section { padding: 50px 5% 30px; }
  .aem-links-grid { grid-template-columns: 1fr; text-align: center; }
  .aem-col a:hover { padding-left: 0; }
}
/* ===============================
   FOOTER
=================================*/
footer {
  background: #020617;
  color: #94a3b8;
  padding: 20px 10%;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between; /* المسافة بين النصوص */
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  direction: ltr; /* خلي النصوص تصطف على اليمين والأيقونات على اليسار */
}

.footer-content p {
  margin: 0;
  text-align: right; /* النص يروح لليمين */
  flex: 1; /* ياخذ المساحة المتاحة */
  order: 2; /* النص يظهر على اليمين */
}

.social-icons {
  display: flex;
  gap: 15px;
  order: 1; /* الأيقونات تظهر على اليسار */
}

.social-circle {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #1f2937;
  transition: all 0.3s ease;
}

.social-circle img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

/* ===== HOVER ANIMATION 2026 STYLE ===== */
.social-circle:hover {
  background: #38bdf8;
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 8px 20px rgba(56,189,248,0.5), 0 0 15px rgba(56,189,248,0.4) inset;
}

.social-circle:hover img {
  filter: brightness(0) invert(0);
  transform: scale(1.3) rotate(-10deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}
/* ================= LOGIN POPUP ================= */
#login-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
}

#login-popup button {
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

#login-popup #close-login {
  background: transparent;
  color: #38bdf8;
  font-size: 18px;
  position: absolute;
  top: 16px;
  right: 16px;
}

#login-popup #close-login:hover {
  transform: rotate(90deg) scale(1.2);
}

.login-submit {
  background: #38bdf8;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-submit img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Hover animation */
.login-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #38bdf8;
}

/* ===============================
   USER ACCOUNT LOGO DISPLAY
=================================*/
#userBox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(30,41,59,0.9);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}

#userBox img {
  width: 40px; /* الحجم المناسب للصورة */
  height: 40px;
  border-radius: 50%; /* جعل الصورة دائرية */
  border: 2px solid #38bdf8; /* تأكيد التنسيق الجمالي للصورة */
}

#userBox div {
  display: none; /* إخفاء الاسم وعدد الزيارات */
}

#userBox .user-rank {
  display: none; /* إخفاء الرتبة */
}

#loginButton {
  display: none; /* إخفاء زر تسجيل الدخول بعد تسجيل الدخول */
}
/* ================= ONLINE USERS 2026 ================= */
#onlineBox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
  width: 160px;
  z-index: 999;
}

.online-header {
  font-size: 14px;
  color: #38bdf8;
  margin-bottom: 8px;
  font-weight: 600;
}

.online-users-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.online-users-mini img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
}
/* ===============================
   SHOW ANIMATION
=================================*/
.show{
  opacity:1 !important;
  transform:translateY(0) !important;
  transition:0.6s;
}
/* ===== clickable service card ===== */
.service-card{
text-decoration:none;
color:inherit;
display:block;
}
// ========================
// SLIDESHOW 2 PHOTOS HERO
// ========================
.hero {
    text-align: center;
    padding: 100px 5% 140px;
    position: relative;
}

.hero-photos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin: 30px auto 45px;
    max-width: 1100px;
    flex-wrap: wrap;
}

.hero-photo {
    width: 210px;
    height: 210px;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45),
                inset 0 0 15px rgba(56, 189, 248, 0.15);
    transition: all 0.4s ease;
    background: rgba(30, 41, 59, 0.7);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.hero-photo:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.55);
    border-color: #38bdf8;
}

.hero-photo:hover img {
    transform: scale(1.10);
}

/* Fade effect */
.hero-photo img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-photo img.fade-out {
    opacity: 0;
}

/* Classes pour différencier un peu (optionnel) */
.photo-center {
    width: 240px;
    height: 240px;
    z-index: 2; /* un peu plus au centre */
    border-width: 4px;
}

/* Mobile */
@media (max-width: 900px) {
    .hero-photos-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-photo {
        width: 260px;
        height: 260px;
    }
    
    .photo-center {
        width: 280px;
        height: 280px;
    }
    
    .hero {
        padding: 80px 5% 100px;
    }
}
/* ===============================
   MOBILE OPTIMISATION
=================================*/
@media (max-width:768px){

/* ===== HEADER ===== */
.header{
padding:12px 4%;
display:flex;
flex-direction:column;
align-items:center;
gap:10px;
}

.logo{
font-size:18px;
text-align:center;
}

/* ===== NAVIGATION ===== */
.nav{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
}

.nav a{
font-size:14px;
padding:6px 10px;
}

/* ===== HERO SECTION ===== */
.hero{
padding:40px 15px;
text-align:center;
}

.hero h2{
font-size:24px;
line-height:1.4;
}

.hero p{
font-size:15px;
margin-top:10px;
}

/* ===== BUTTONS ===== */
.btn{
padding:10px 18px;
font-size:14px;
}

/* ===== SERVICES / CARDS ===== */
.services{
display:grid;
grid-template-columns:1fr;
gap:18px;
padding:20px 15px;
}

.card{
padding:18px;
border-radius:12px;
}

/* ===== PROFILE POPUP ===== */
.profile-content{
width:95%;
padding:18px;
border-radius:12px;
}

/* ===== ONLINE USERS ===== */
.online-users{
max-width:95%;
margin:auto;
font-size:14px;
padding:12px;
}

/* ===== COMMENTS ===== */
.comments{
padding:15px;
}

.comments textarea{
width:100%;
font-size:14px;
padding:10px;
border-radius:8px;
}

.comments button{
font-size:14px;
padding:10px 16px;
margin-top:8px;
}

/* ===== IMAGES ===== */
img{
max-width:100%;
height:auto;
}

/* ===== FOOTER ===== */
.footer{
font-size:13px;
text-align:center;
padding:20px;
}
/* ===== LOGIN MOBILE FIX ===== */
.login-btn {
  padding: 8px 12px;
  font-size: 13px;
  gap: 6px;
}

.login-btn .google-logo {
  width: 20px;
  height: 20px;
}

/* ===== NAVBAR FIX ===== */
.nav {
  justify-content: center;
  gap: 8px;
}

.nav a {
  font-size: 13px;
}

.login-btn {
  margin-top: 5px;
}

/* ===== ONLINE BOX MOBILE ===== */
#onlineBox {
  bottom: 10px;
  right: 10px;
  width: auto;
  padding: 8px 10px;
}

.online-header {
  font-size: 12px;
}

.online-users-mini img {
  width: 24px;
  height: 24px;
}

/* ===== HEADER FIX ===== */
.logo-img {
  width: 45px;
  height: 45px;
}

.logo h1 {
  font-size: 18px;
}

}
/* ===== CONTAINER ===== */
.container{
width:95%;
margin:auto;
}

/* ===== TABLE ===== */
table{
width:100%;
font-size:13px;
}

/* ===== SCROLL FIX ===== */
body{
overflow-x:hidden;
}

}
/* ================= BEFORE AFTER PRO (UPDATED 2026) ================= */
.before-after-pro {
  padding: 80px 5%;
  text-align: center;
}

/* TITLE */
.before-after-pro h2 {
  color: #38bdf8;
  margin-bottom: 40px;
  font-size: 34px;
  text-align: center;
  width: 100%;
}

/* CONTAINER (FIX OVERFLOW + CENTER) */
.ba-pro-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  width: 100%;
}

/* BOX */
.ba-pro-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: ew-resize;
  width: 100%;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: 0.4s;
}

.ba-pro-box:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(56,189,248,0.4);
}

/* IMAGES */
.ba-pro-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* AFTER IMAGE */
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

/* SLIDER LINE */
.ba-slider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 3px;
  background: #38bdf8;
  z-index: 5;
  box-shadow: 0 0 10px #38bdf8;
}

.ba-line {
  width: 100%;
  height: 100%;
  background: #38bdf8;
}

/* SLIDER CIRCLE */
.ba-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #38bdf8;
  color: black;
  padding: 10px 14px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 0 20px #38bdf8;
  transition: 0.3s;
}

.ba-pro-box:hover .ba-circle {
  transform: translate(-50%, -50%) scale(1.1);
}

/* LABELS */
.label {
  position: absolute;
  top: 10px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: 0.3s;
}

.before-label { left: 10px; }
.after-label { right: 10px; }

.ba-pro-box:hover .label {
  background: rgba(56,189,248,0.8);
  color: black;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .ba-pro-box img {
    height: 220px;
  }

  .before-after-pro {
    padding: 60px 4%;
  }
}

/* GLOBAL FIX */
body {
  overflow-x: hidden;
}
/* ================= diagnostic ================= */
/* ================= DIAGNOSTIC SECTION - NOUVEAU STYLE 2026 (100% assorti au site AEM) ================= */
.diagnostic {
  padding: 100px 8%;
  text-align: center;
 
  backdrop-filter: blur(16px);
  border-radius: 24px;

 
  margin: 40px 5%;
  position: relative;
  overflow: hidden;
}

/* Effet shine léger comme les cartes du site */
.diagnostic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  transition: left 0.8s ease;
  pointer-events: none;
}
.diagnostic:hover::before {
  left: 200%;
}

/* H2 assorti aux autres sections (services, atelier, etc.) */
.diagnostic h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #38bdf8;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Select & Textarea - style glassmorphic sombre */
.diagnostic select,
.diagnostic textarea {
  display: block;
  margin: 16px auto;
  padding: 14px 18px;
  width: 320px;
  max-width: 90%;
  border-radius: 16px;
  border: 2px solid #38bdf8;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.diagnostic select:focus,
.diagnostic textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3);
  transform: scale(1.02);
  outline: none;
}

.diagnostic textarea {
  height: 120px;
  resize: vertical;
}

/* Bouton - exactement comme les hero-btn (gradient + shine) */
.diagnostic button {
  padding: 16px 38px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
  background-size: 200% 100%;
  color: #000;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 
    0 10px 30px rgba(14, 165, 233, 0.6),
    inset 0 1px 4px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Effet shine sur le bouton */
.diagnostic button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transition: left 0.7s ease;
}
.diagnostic button:hover::before {
  left: 200%;
}

.diagnostic button:hover {
  transform: translateY(-6px) scale(1.06);
  background-position: 200% 50%;
  box-shadow: 
    0 20px 45px rgba(56, 189, 248, 0.8),
    inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

.diagnostic button:active {
  transform: scale(0.96);
}

/* RESULTAT - style cartes du site */
#result {
  margin-top: 30px;
  text-align: left;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(10px);
}

#result h3 {
  color: #38bdf8;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

#result ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#result li {
  background: rgba(30, 41, 59, 0.7);
  padding: 18px 20px;
  margin: 14px 0;
  border-radius: 16px;
  border-left: 5px solid #38bdf8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
  color: #e2e8f0;
}

#result li:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.3);
  border-left-color: #60a5fa;
}

#result li strong {
  color: #38bdf8;
}

#result p {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
}

/* WhatsApp link dans le résultat */
#result a {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 28px;
  background: #0ea5e9;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
}

#result a:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* RESPONSIVE - même que le reste du site */
@media (max-width: 768px) {
  .diagnostic {
    padding: 60px 5%;
    margin: 20px 3%;
  }
  
  .diagnostic select,
  .diagnostic textarea {
    width: 92%;
  }
  
  .diagnostic button {
    padding: 14px 32px;
    font-size: 17px;
  }
  
  #result {
    padding: 18px;
  }
}
/* ================= CODES ERREURS SECTION - STYLE 2026 (même glassmorphic que diagnostic) ================= */
.error-codes {
  padding: 100px 8%;
  text-align: center;
 
  backdrop-filter: blur(16px);
  border-radius: 24px;
 

  margin: 40px 5%;
}

.error-codes h2 {
  font-size: 36px;
  color: #38bdf8;
  margin-bottom: 40px;
}

.error-codes select,
.error-codes input {
  display: block;
  margin: 16px auto;
  padding: 14px 18px;
  width: 320px;
  max-width: 90%;
  border-radius: 16px;
  border: 2px solid #38bdf8;
  background: rgba(15,23,42,0.85);
  color: white;
  font-size: 16px;
  backdrop-filter: blur(8px);
}

.error-codes input {
  height: 52px;
}

.error-codes button {
  padding: 16px 38px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
  color: #000;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 10px 30px rgba(14,165,233,0.6);
}

.error-codes button:hover {
  transform: translateY(-6px) scale(1.06);
}

#errorResult {
  margin-top: 30px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(30,41,59,0.7);
  padding: 25px;
  border-radius: 20px;
  border-left: 6px solid #38bdf8;
  text-align: left;
  color: #e2e8f0;
}

#errorResult h3 { color: #38bdf8; margin-bottom: 15px; }
#errorResult p { margin: 12px 0; }
#errorResult .price { color: #fbbf24; font-weight: bold; }
#errorResult a { 
  display: inline-block; margin-top: 15px; 
  padding: 12px 28px; background: #25d366; color: white; 
  border-radius: 50px; text-decoration: none; font-weight: 600; 
}

/* ================= FOTO PROPRIÉTAIRE POSITION PARFAITE ================= */

.aem-footer-container {
  position: relative;
  padding-left: 90px; /* espace للفوتو */
}

/* نحطوها فوق الكولونات مباشرة */
.footer-photo-wrapper {
  position: absolute;
  left: 95px;
  top: 90px; /* 🔥 هذا تتحكم فيه باش تجي فوق Notre mission */
  max-width: 60px;
  z-index: 5;
}

/* الصورة */
.footer-owner-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 
    0 6px 15px rgba(56, 189, 248, 0.45),
    inset 0 0 8px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-owner-photo:hover {
  transform: scale(1.15);
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .aem-footer-container {
    padding-left: 0;
  }

  .footer-photo-wrapper {
    position: static;
    text-align: center;
    margin: 10px auto 5px; /* قريبة برشة */
  }

  .footer-owner-photo {
    width: 65px;
    height: 65px;
  }
}