/* =====================================================
   EUREKA MAYOTTE - ENTREPRISES (CSS nettoye + mobile-first)
   - Une seule logique de menu (checkbox)
   - Header translucide (glass)
   - Menu mobile en carte arrondie
===================================================== */

/* =========================
   RESET & VARIABLES
   ========================= */
:root{
  /* Brand */
  --blue-brand: #2AA6A9;
  --blue-secondary: #1F8F92;
  --blue-deep: #0F1113;

  --gold-brand: #F57C00;
  --gold-hover: #D96C00;

  /* Backgrounds */
  --bg-main: #0F1113;
  --bg-mid: #111827;
  --bg-soft: #0B1220;
  --card-bg: rgba(255,255,255,0.04);
  --border-soft: rgba(255,255,255,0.10);

  /* Text */
  --text-main: #FFFFFF;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;

  /* UI */
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 18px 45px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.25);
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

.container{
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* =========================
   BOUTONS
   ========================= */
.btn{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-primary{
  background: var(--gold-brand);
  color: #000;
}
.btn-primary:hover{ background: var(--gold-hover); }

.btn-outline{
  border: 2px solid var(--gold-brand);
  color: var(--gold-brand);
  background: transparent;
}
.btn-outline:hover{
  background: var(--gold-brand);
  color: #000;
}

/* =====================================================
   HEADER + NAV (UNE SEULE VERSION)
===================================================== */

/* IMPORTANT: on utilise .header (comme dans ton HTML). */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 0;

  /* bande nav translucide sombre */
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.header-container{
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative; /* repere pour la carte du menu mobile */
}

/* Logo (image + texte) */
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img{ height: 48px; width: auto; display: block; }

.logo-text-group{ display: flex; flex-direction: column; line-height: 1; }

.logo-main{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--blue-brand);
}

.logo-sub{
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-brand);
  margin-top: 2px;
}

/* Checkbox (interrupteur) : cachee mais fonctionnelle */
.nav-toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Bouton hamburger (label) */
.nav-toggle-btn{
  display: none; /* visible seulement sur mobile */
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff; /* IMPORTANT: visible sur bande sombre */
  -webkit-tap-highlight-color: transparent;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-btn span{
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

/* Menu desktop */
.main-nav{ margin-left: auto; }

.main-nav ul,
.nav-list{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a,
.nav-link{
  font-size: 16px;
  color: var(--text-main);
  opacity: 0.92;
  transition: color .2s ease, opacity .2s ease, background-color .2s ease;
}

.main-nav a:hover,
.nav-link:hover{
  color: var(--gold-brand);
  opacity: 1;
}

.nav-link.active{ color: var(--gold-brand); font-weight: 700; opacity: 1; }

/* =========================
   MENU MOBILE EN CARTE
   ========================= */
@media (max-width: 900px){
  .nav-toggle-btn{ display: inline-flex; }

  /* On cache la nav desktop */
  .main-nav{ margin-left: 0; }

  .main-nav ul,
  .nav-list{
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);

    width: min(340px, calc(100vw - 32px));
    padding: 12px;

    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--shadow-lg);

    display: none; /* cache par defaut */
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 1500;
  }

  /* OUVERTURE via checkbox */
  #nav-toggle:checked ~ .main-nav ul,
  #nav-toggle:checked ~ .main-nav .nav-list{
    display: flex;
  }

  .main-nav a,
  .nav-link{
    color: var(--blue-deep);
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 14px;
    opacity: 1;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .nav-link:hover,
  .nav-link:focus-visible{
    background: rgba(42, 166, 169, 0.12);
    outline: none;
  }
}

/* =====================================================
   HERO ENTREPRISES
===================================================== */
.hero-entreprises{
  background: var(--bg-main);
  padding: 150px 0 80px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-title{
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-main);
}

.hero-subtitle{
  font-size: clamp(15px, 1.5vw, 20px);
  color: var(--text-soft);
  margin-bottom: 22px;
}

.hero-badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-badges li{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
}

.hero-visual{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-img{ width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-entreprises{ padding: 120px 0 64px; }
}

/* =====================================================
   SECTION - SERVICES ENTREPRISES
===================================================== */
.section-services{
  background: var(--bg-mid);
  padding: 70px 0;
}

.section-header{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.section-title{
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text-main);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.section-title::after{
  content: "";
  width: 60px;
  height: 3px;
  background: var(--gold-brand);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-intro{ font-size: 16px; color: var(--text-soft); }

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

.service-card{
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-brand), var(--gold-brand));
  opacity: .9;
}

.service-card:hover{
  transform: translateY(-6px);
  border-color: rgba(211,179,106,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.service-title{ font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.service-text{ color: var(--text-soft); font-size: 15px; line-height: 1.6; }

@media (max-width: 1024px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-card{ padding: 18px; }
}

@media (max-width: 720px){
  .services-grid{ grid-template-columns: 1fr; }
  .service-card{ padding: 16px; }
}

/* =====================================================
   SECTION - PROCESSUS
===================================================== */
.section-process{
  background: var(--bg-main);
  padding: 70px 0;
}

.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.process-step{
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(211, 179, 106, 0.55);
}

.process-img{
  overflow: hidden;
  width: 100%;
  height: 160px;
  display: block;
}

.process-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  transform: scale(1);
}

.process-step:hover .process-img img{ transform: scale(1.08); }

.process-content{
  padding: 22px;
  position: relative;
  z-index: 1;
}

.process-content::before{
  content: attr(data-step);
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.10);
  z-index: 0;
  pointer-events: none;
}

.process-step:hover .process-content::before{ color: rgba(255, 255, 255, 0.16); }

.process-number{
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  background: var(--gold-brand);
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
}

.process-step-title{
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.process-step-text{
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px){
  .process-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .process-grid{ grid-template-columns: 1fr; }
  .process-step{ min-height: auto; }
}

/* =====================================================
   SECTION - DEPOSER UNE DEMANDE
===================================================== */
.section-demande{
  background: var(--bg-soft);
  padding: 70px 0;
}

.demande-form{
  max-width: 960px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.demande-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
}

.form-group{ display: flex; flex-direction: column; gap: 6px; }
.form-group-full{ grid-column: 1 / -1; }

.form-group label{ font-size: 14px; color: var(--text-soft); }

.required{ color: var(--gold-brand); margin-left: 2px; }

.form-group input,
.form-group textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(5, 10, 20, 0.8);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder{ color: var(--text-muted); font-size: 13px; }

.form-group input:focus,
.form-group textarea:focus{
  border-color: var(--blue-brand);
  box-shadow: 0 0 0 1px rgba(74,165,255,0.4);
}

.demande-footer{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form-note{ font-size: 13px; color: var(--text-muted); }

.btn-submit{ padding-inline: 28px; }

@media (max-width: 900px){
  .demande-grid{ grid-template-columns: 1fr; }
  .demande-form{ padding: 20px 16px 22px; }
}

@media (max-width: 480px){
  .demande-footer{ flex-direction: column; align-items: flex-start; }
  .btn-submit{ width: 100%; text-align: center; }
}

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

.site-footer {
  background: var(--bg-main);
  color: #f5efe7;
  padding-top: 60px;
  padding-bottom: 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-brand p { color: #ddd0c4; line-height: 1.6; }

.footer-nav h3,
.footer-contact h3 {
  color: var(--blue-brand);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li,
.footer-contact ul li { margin: 6px 0; }

.footer-nav a,
.footer-contact a {
  color: #f5efe7;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold-brand); }

.site-footer .social-links li a { color: var(--gold-brand); }
.site-footer .social-links li a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  color: #d8cfc4;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a { color: var(--gold-brand); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.social-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-inline {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* Taille fixe icônes sociales */
.social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

/* =========================
   FOOTER – Liens : gras + animation
   ========================= */

.site-footer a{
  font-weight: 600;                 /* texte en gras */
  transition: 
    color .25s ease,
    transform .25s ease;
}

/* Effet au survol */
.site-footer a:hover{
  transform: translateX(4px);       /* petit déplacement */
  color: #ffffff;
}


@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px){
  .hero-grid{
    position: relative;
    grid-template-columns: 1fr;
  }

  .hero-visual{
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-visual img{
    height: 100%;
    filter: brightness(0.45);
  }

  .hero-content{
    position: relative;
    z-index: 1;
    padding: 32px 0;
  }
}

