/* ============================================
   NASSIM ASSURANCES - Main Stylesheet
   Brand: #283720 | #e7fe4c | #fafffb
   Font: CoolveticaRg-Regular
   Deployed by YMH INNOVATION
   ============================================ */

/* ---------- FONT ---------- */
@font-face {
  font-family: 'CoolveticaRg';
  src: url('../assets/fonts/CoolveticaRg-Regular.woff2') format('woff2'),
       url('../assets/fonts/CoolveticaRg-Regular.woff') format('woff'),
       url('../assets/fonts/CoolveticaRg-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:      #283720;
  --lime:       #e7fe4c;
  --light:      #fafffb;
  --gray:       #f0f4f1;
  --gray-mid:   #8a9e8c;
  --font-main:  'CoolveticaRg', 'Helvetica Neue', Arial, sans-serif;
  --radius:     12px;
  --transition: 0.3s ease;
  --shadow:     0 8px 32px rgba(40,55,32,0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--green);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-mid);
  max-width: 560px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  background: var(--lime);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--green);
  border-color: var(--lime);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border-color: var(--light);
}

.btn-outline:active {
  transform: scale(0.97);
}

.btn-dark {
  background: var(--green);
  color: var(--lime);
  border-color: var(--green);
}

.btn-dark:active {
  transform: scale(0.97);
}


/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--green);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(40,55,32,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text span:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.01em;
}

.nav-logo-text span:last-child {
  font-size: 0.8rem;
  color: var(--light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(250,255,251,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width var(--transition);
}

.nav-links a:active { color: var(--lime); }

.nav-links a.active::after,
.nav-links a:active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }


/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  background: var(--green);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  overflow: hidden;
}

.hero-bg-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
  width: 100%;
}

.hero-left { max-width: 580px; }

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--light);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--lime); }

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(250,255,251,0.75);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(250,255,251,0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-card-main {
  background: rgba(250,255,251,0.08);
  border: 1px solid rgba(231,254,76,0.2);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.hero-card-main .card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250,255,251,0.5);
  margin-bottom: 8px;
}

.hero-card-main .card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 24px;
}

.hero-card-main .card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card-main .card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(250,255,251,0.8);
  font-size: 0.95rem;
}

.hero-card-main .card-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

.hero-card-float {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--lime);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.hero-card-float .float-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.hero-card-float .float-text {
  font-size: 0.8rem;
  color: var(--green);
  opacity: 0.7;
  margin-top: 2px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250,255,251,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero-scroll svg { opacity: 0.5; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ---------- SERVICES ---------- */
#services {
  padding: 100px 0;
  background: var(--light);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 24px;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--light);
  border: 2px solid #e8ede9;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:active {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card:active::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gray);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:active .service-icon { background: var(--lime); }

.service-icon img { width: 32px; height: 32px; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--green);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.6;
}

.service-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:active .service-arrow {
  background: var(--green);
}

.service-card:active .service-arrow svg path { stroke: var(--lime); }


/* ---------- ABOUT ---------- */
#about {
  padding: 100px 0;
  background: var(--green);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  background: rgba(231,254,76,0.1);
  border: 2px solid rgba(231,254,76,0.2);
  border-radius: 24px;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 40%;
  display: block;
  transform: scale(1.15);
  transform-origin: 32% 45%;
}

.about-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--lime);
  color: var(--green);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(231,254,76,0.4);
}

.about-badge .badge-num { font-size: 2rem; }
.about-badge .badge-text { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; }

.about-content .section-title { color: var(--light); }
.about-content .section-subtitle { color: rgba(250,255,251,0.6); }

.about-content .tag { background: rgba(231,254,76,0.15); color: var(--lime); }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(231,254,76,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { color: var(--lime); }

.feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.875rem;
  color: rgba(250,255,251,0.55);
  line-height: 1.5;
}


/* ---------- PARTENAIRES ---------- */
#partenaires {
  padding: 80px 0;
  background: var(--gray);
}

.partenaires-header {
  text-align: center;
  margin-bottom: 48px;
}

.partners-track-wrap {
  overflow: hidden;
  position: relative;
}

.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--gray), transparent);
}

.partners-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--gray), transparent);
}

.partners-track {
  display: flex;
  gap: 32px;
  animation: scrollTrack 28s linear infinite;
  width: max-content;
}

.partner-logo {
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  background: var(--light);
  border-radius: var(--radius);
  border: 2px solid #e0e8e1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.partner-logo svg { width: 80px; opacity: 0.5; }
.partner-logo img { max-width: 100%; max-height: 48px; width: auto; object-fit: contain; filter: grayscale(30%); }

@keyframes scrollTrack {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ---------- DEVIS / CONTACT ---------- */
#contact {
  padding: 100px 0;
  background: var(--light);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {}

.contact-info .section-title { margin-bottom: 16px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  margin-bottom: 2px;
}

.contact-item-text strong {
  font-size: 0.95rem;
  color: var(--green);
}

/* Form */
.devis-form {
  background: var(--green);
  border-radius: 24px;
  padding: 40px;
}

.devis-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 8px;
}

.devis-form .form-sub {
  font-size: 0.875rem;
  color: rgba(250,255,251,0.55);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(250,255,251,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(250,255,251,0.95);
  border: 1.5px solid rgba(250,255,251,0.95);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--green);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(40,55,32,0.45);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(231,254,76,0.25);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23283720' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: rgba(250,255,251,0.95);
  cursor: pointer;
}

.form-group select option { background: var(--green); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

.form-note {
  font-size: 0.75rem;
  color: rgba(250,255,251,0.35);
  text-align: center;
  margin-top: 12px;
}

.form-feedback {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.15);
}

/* reCAPTCHA v3 badge — masque (mention legale dans .form-note) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ---------- FOOTER ---------- */
footer {
  background: #1a2414;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,255,251,0.08);
}

.footer-brand {}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-logo img { height: 40px; }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(250,255,251,0.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(250,255,251,0.5);
  transition: color var(--transition);
}

.footer-col ul li a:active { color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(250,255,251,0.3);
}

.footer-bottom .ymh {
  font-size: 0.75rem;
  color: rgba(250,255,251,0.25);
}

.footer-bottom .ymh span { color: var(--lime); }


/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:active {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.6);
}

@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 48px; height: 48px; }
}


/* ---------- SCROLL ANIMATIONS ---------- */
/* Tout est visible par défaut. Animations désactivées pour garantir l'affichage sur tous les contextes (file://, navigateurs, etc.) */
.reveal {
  opacity: 1;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.9rem; }
  .nav-logo img { height: 32px !important; }

  .hero-scroll span { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 100px 0 60px;
    gap: 40px;
  }

  .hero-right { display: none; }

  .hero-stats { gap: 28px; }

  .services-header { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
