:root{
  --brand:#2e7d32;
  --brand2:#1b5e20;
  --bg:#f6f8f7;
  --text:#0f172a;
  --muted:#6b7280;
  --white:#ffffff;
  --line:#e5e7eb;
  --radius:20px;
  --shadow:0 10px 30px rgba(0,0,0,0.05);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  font-family:'Montserrat', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding-top: 16px; 
}

body::before {
  content: "";
  display: block;
  height: 16px; 
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 2000;
  background-color: #c8e6c9; 
  background-image: 
    linear-gradient(45deg, var(--brand) 25%, transparent 25%, transparent 75%, var(--brand) 75%, var(--brand)),
    linear-gradient(45deg, var(--brand) 25%, transparent 25%, transparent 75%, var(--brand) 75%, var(--brand));
  background-size: 16px 16px; 
  background-position: 0 0, 8px 8px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

body.bg-accueil { background-image: linear-gradient(rgba(246, 248, 247, 0.3), rgba(246, 248, 247, 0.3)), url('images/index_1.png'); }
body.bg-solutions { background-image: linear-gradient(rgba(246, 248, 247, 0.3), rgba(246, 248, 247, 0.3)), url('images/contact_solution.png'); }
body.bg-engagements { background-image: linear-gradient(rgba(246, 248, 247, 0.3), rgba(246, 248, 247, 0.3)), url('images/engagement_secteur.png'); }
body.bg-secteurs { background-image: linear-gradient(rgba(246, 248, 247, 0.3), rgba(246, 248, 247, 0.3)), url('images/engagement_secteur.png'); }
body.bg-contact { background-image: linear-gradient(rgba(246, 248, 247, 0.3), rgba(246, 248, 247, 0.3)), url('images/contact_solution.png'); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1200px; margin:auto; padding:0 20px; }

.topbar {
  background: rgba(255, 255, 255, 0.30); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
  position: sticky;
  top: 16px; 
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); 
  transition: all 0.3s ease;
}

/* --- NAVIGATION & LOGO --- */
.nav{ display:flex; align-items:center; justify-content:space-between; min-height:100px; gap:20px; }
.brand{ display:flex; align-items:center; gap:16px; text-decoration: none;}

.brand img { 
  height:60px; 
  width:auto; 
  border-radius: 8px; 
  transition: transform 0.3s ease; 
}

.brand:hover img { transform: scale(1.05); }
.brand:active img { transform: scale(1.1); }

.brand-meta strong{ 
  display:block; 
  font-size:25px; 
  letter-spacing:.05em; 
  color: var(--brand2); 
  line-height: 1;
}

.brand-meta span{ 
  display:block; 
  font-size:10px; 
  color:var(--muted); 
  text-transform: uppercase;
}

.menu { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.menu a { font-size: 14px; font-weight: 600; color: var(--text); position: relative; padding-bottom: 4px; transition: color 0.3s ease; }
.menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background-color: var(--brand); transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px; }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a:hover, .menu a.active { color: var(--brand); }

.actions{ display:flex; align-items:center; gap:10px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:11px 16px; border-radius:12px; font-weight:600; transition:.2s ease; border: none; cursor: pointer; font-family: inherit; }
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--brand); color:white; }
.btn-primary:hover{ background:var(--brand2); }
.btn-secondary{ border:1px solid var(--line); color:var(--text); background:white; }

/* BOUTON BURGER */
.burger-menu { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 1100; padding: 5px; }
.burger-menu span { display: block; width: 28px; height: 3px; background: var(--brand); border-radius: 2px; transition: 0.3s ease; }

/* HERO & SECTIONS */
.hero{ position:relative; min-height:85vh; display:flex; align-items:end; color:white; overflow: hidden; background-color: #07100c; }
#hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background-size: cover; background-position: center; transition: opacity 0.8s ease-in-out, transform 4s linear; }
#hero-bg.zoom-effect { transform: scale(1.1); }
.hero-inner{ width:100%; padding:90px 0 70px; position: relative; z-index: 10; }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:28px; align-items:end; }
.kicker{ display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); font-size:13px; font-weight:700; }
h1{ font-size:clamp(42px, 6vw, 78px); line-height:.94; letter-spacing:-.05em; margin:18px 0 14px; max-width:820px; }
.hero .lead{ font-size:18px; line-height:1.75; color:rgba(255,255,255,.88); max-width:760px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.hero-strap{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }

/* --- CORRECTION BLINDÉE : TEXTE CENTRÉ POUR LES BULLES --- */
.strap { 
  display: flex !important; 
  justify-content: center !important; 
  align-items: center !important; 
  text-align: center !important; 
  border: 1px solid rgba(255,255,255,.14); 
  background: rgba(255,255,255,.08); 
  padding: 14px 16px; 
  border-radius: 16px; 
  color: white; 
  font-weight: 700; 
  font-size: 14px; 
  gap: 10px; 
  width: 100%; 
}

.hero-panel{ background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.14); border-radius:24px; padding:24px; backdrop-filter:blur(8px); }
.hero-panel h3{ font-size:22px; margin-bottom:10px; }
.hero-panel p{ color:rgba(255,255,255,.84); }

.section{ padding:84px 0; }
.section-tight{ padding-top:40px; }
.section-head{ margin-bottom:28px; }
.section-head h2{ font-size:clamp(30px,4vw,52px); line-height:1.02; letter-spacing:-.04em; margin-bottom:10px; }
.sub{ color:var(--muted); font-size:17px; line-height:1.7; max-width:860px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card, .panel{ background:white; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; }
.card h3{ font-size:24px; letter-spacing:-.03em; margin-bottom:12px; color: var(--brand); }
.card p, .card li{ color:var(--muted); line-height:1.75; }
.list{ padding-left:18px; margin-top:10px; }
.band{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; background:#101f18; border-radius:28px; padding:22px; }
.band-item{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); color:#edf5f0; border-radius:18px; padding:16px; text-align:center; font-size:14px; font-weight:700; }

/* === CARTES IMAGES === */
.image-card{ position:relative; overflow:hidden; border-radius:26px; min-height:360px; border:1px solid var(--line); box-shadow:var(--shadow); }
.image-card img{ width:100%; height:100%; object-fit:cover; position: absolute; }
.overlay{ position:absolute; inset:auto 0 0 0; padding:22px; background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(7,17,12,.9) 100%); color:white; }

.feature-stack{ display:grid; gap:36px; margin-top: 40px; }
.feature-row{ display:grid; grid-template-columns:.95fr 1.05fr; gap:24px; align-items:stretch; }
.feature-copy{ display:flex; flex-direction: column; justify-content: center; }
.bullet-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top: 20px; }
.bullet{ background:#f9fafb; border:1px solid var(--line); border-radius:18px; padding:16px; }
.bullet strong{ display:block; margin-bottom:4px; color: var(--brand); }
.bullet .small{ font-size: 13px; color: var(--muted); }

/* --- FORMULAIRE --- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } 
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 15px; background: #f9fafb; color: var(--text); transition: all 0.2s ease; outline: none; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #9ca3af; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1); }
.field textarea { min-height: 120px; resize: vertical; }

.acces-warning { background: #fff3cd; color: #856404; border-left: 5px solid #ffcc00; padding: 20px; border-radius: 12px; margin-bottom: 30px; font-weight: 600; font-size: 1.1rem; }
#acces-pl ol li, #acces-pl ul li { margin-bottom: 10px; }
#acces-pl .card h3 { font-size: 1.2rem; }
.dark-panel{ background:#101f18; color:#eef5f0; border-radius:28px; padding:40px; box-shadow:var(--shadow); }
.dark-panel p, .dark-panel li{ color:rgba(255,255,255,.82); }

/* FOOTER */
.footer{ background:rgba(255, 255, 255, 0.75); border-top:1px solid var(--line); padding:60px 0; margin-top: 40px; backdrop-filter: blur(10px); }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px; }
.footer h4 { color: var(--text); font-size: 14px; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.small{ font-size:14px; color:var(--muted); }

.logo-mark{ display:inline-flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; font-weight:700; color: var(--text); }
.logo-mark img{ height:24px; width:auto; border-radius: 4px; }
.footer-partners { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 25px; }
.partner-link img { height: 55px; max-width: 100%; width: auto; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.partner-link:nth-child(2) img { height: 100px; } 
.partner-link:hover img { filter: grayscale(0%); opacity: 1; transform: translateY(-3px); }

/* --- BOUTON PLAN D'ACCES (BULLE VERTE) --- */
.btn-plan {
  display: inline-block;
  margin-top: 15px;
  background-color: var(--brand);
  color: white !important;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
  text-align: center;
}

.btn-plan:hover {
  background-color: var(--brand2);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(27, 94, 32, 0.3);
}

/* ========================================= */
/* --- RESPONSIVE MOBILE (SÉCURISÉ & AÉRÉ) --- */
/* ========================================= */
@media(max-width:1040px){
  /* Menu burger */
  .burger-menu { display: flex; }
  .menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column; justify-content: center;
    align-items: center; gap: 30px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1050; padding: 40px; flex-wrap: nowrap;
  }
  .menu.active { right: 0; }
  .menu a { font-size: 16px; padding: 10px; } 
  
  .burger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger-menu.active span:nth-child(2) { opacity: 0; }
  .burger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .topbar .actions { display: none; }
  .brand img { height: 45px; } /* Logo légèrement réduit sur tel */

  /* Ajustements d'espace */
  .section { padding: 40px 0; }
  .card, .panel, .dark-panel, .hero-panel { padding: 20px !important; }
  
  .hero { min-height: 60vh; padding-top: 110px; padding-bottom: 40px; }
  
  /* ---> PHOTOS ET LEUR TEXTE (OVERLAY) SUR MOBILE <--- */
  .image-card { height: 240px !important; min-height: 240px !important; }
  
  .overlay { padding: 15px !important; }
  .overlay h3 { font-size: 15px !important; margin-bottom: 4px !important; line-height: 1.2 !important; }
  .overlay p { font-size: 12px !important; line-height: 1.4 !important; margin: 0 !important; }
  
  /* REDUCTION DES TAILLES DE TEXTE SUR MOBILE */
  h1 { font-size: 30px !important; line-height: 1.2; margin-bottom: 12px; }
  h2 { font-size: 24px !important; line-height: 1.2; margin-bottom: 12px; }
  .card h3, .hero-panel h3, .dark-panel h3, #acces-pl .card h3 { font-size: 18px !important; margin-bottom: 10px; line-height: 1.3; }
  
  .lead { font-size: 14px !important; line-height: 1.6; margin-bottom: 20px; }
  .sub { font-size: 14px !important; line-height: 1.6; margin-bottom: 25px; }
  .kicker { font-size: 11px; padding: 6px 10px; }
  
  /* Textes des paragraphes et listes plus petits */
  .card p, .card li, .dark-panel p, .dark-panel li, .hero-panel p, .bullet p { font-size: 14px !important; line-height: 1.6; }
  
  /* Ergonomie tactile pour les boutons et formulaires */
  .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
  .field input, .field select, .field textarea { font-size: 16px !important; } 
  
  /* Grilles transformées en 1 seule colonne */
  .hero-grid, .grid-2, .grid-3, .grid-4, .band, .footer-grid, .hero-strap, .bullet-grid { 
    grid-template-columns: 1fr; 
    gap: 15px; 
  }
  
  /* Rangement forcé pour les solutions (Texte PUIS Photo) */
  .feature-row { 
    display: flex; 
    flex-direction: column; 
    gap: 15px;
  }
  .feature-row .feature-copy { order: 1; }
  .feature-row .image-card { order: 2; }
  
  .form-row { grid-template-columns: 1fr; }
  
  /* Alignement du footer */
  .footer-grid { text-align: center; }
  .logo-mark, .footer-partners { justify-content: center; }
}

/* ========================================= */
/* --- BOUTONS ESPACE CLIENT (PC & MOBILE) --- */
/* ========================================= */

.btn-client { 
  text-decoration: none; 
  transition: 0.3s; 
  display: flex; 
  align-items: center; 
}
.btn-client:hover { opacity: 0.8; }

.mobile-client { display: none; }
.mobile-actions { display: none; }

@media (min-width: 1041px) {
  .mobile-client { display: none !important; }
  .mobile-actions { display: none !important; }
  
  .topbar .container.nav { max-width: 1350px !important; }

  .menu { 
    display: flex !important; 
    flex-wrap: nowrap !important; 
    white-space: nowrap !important; 
    gap: 15px !important; 
  }

  .actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    align-items: center;
  }
  .actions a.btn {
    white-space: nowrap !important;
    padding: 10px 18px !important;
  }
}

@media (max-width: 1040px) {
  .mobile-actions { 
    display: flex !important; 
    align-items: center; 
  }
  .mobile-client { 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px solid var(--line); 
    color: var(--brand) !important; 
    font-weight: 800; 
    text-decoration: none;
  }
  .btn-client { display: none !important; }
}
/* Demandes de devis : états d'envoi et accessibilité. */
.form-alert { padding: 18px; border: 1px solid; border-radius: 12px; scroll-margin-top: 150px; }
.form-alert-success { background: #eaf5ec; color: #155724; border-color: #b7dfc1; }
.form-alert-error { background: #fff1f1; color: #8a2525; border-color: #edb8b8; }
.form-alert ul { padding-left: 20px; margin-top: 6px; }
.form-privacy { font-size: 13px; color: var(--muted); }
.form-privacy a, .client-pending a { text-decoration: underline; color: var(--brand); }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.btn:disabled { cursor: wait; opacity: .65; }
.client-form-disabled { border: 0; display: grid; gap: 20px; opacity: .55; min-width: 0; }
.client-pending { padding: 16px; margin-bottom: 24px; border-radius: 12px; background: #eaf5ec; color: #24512b; font-size: 14px; }
#demande-devis { scroll-margin-top: 150px; }
