/*traneco.css */


  :root {
    --green: #1a7a4a;
    --green-light: #26a065;
    --green-pale: #e8f5ed;
    --orange: #e8650a;
    --orange-light: #ff8c3a;
    --dark: #0d1a12;
    --gray: #4a5568;
    --light: #f7faf8;
    --white: #ffffff;
    --border: #d4e8db;
  }
 
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
h1, h2, h3, h4, .logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-weight: 700;
}
  
/* Hiérarchie des titres */
h1, .hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2, .section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3, h4 {
  font-weight: 600;
}

/* Pour les mots en <em> dans les titres */
.section-title em, .hero-title em {
  font-weight: 900;
  font-style: normal;
}

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(247,250,248,0.97);
    backdrop-filter: blur(12px);
    padding: 0 5%;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(26,122,74,0.07);
  }
  .logo { display: flex; flex-direction: column; line-height: 1; }
  .logo-main { font-size: 1.55rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
  .logo-main span { color: var(--orange); }
  .logo-sub { font-size: 0.58rem; font-weight: 400; color: var(--gray); letter-spacing: 0.5px; text-transform: uppercase; font-family: inherit; margin-top: 1px; }
  .nav-links { display: flex; gap: 1.8rem; list-style: none; }
  .nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
  .nav-links a:hover { color: var(--green); }
  .nav-cta {
    background: var(--orange); color: var(--white) !important;
    padding: 0.5rem 1.2rem; border-radius: 4px; font-weight: 500 !important;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--orange-light) !important; }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
  .hamburger span { width: 24px; height: 2px; background: var(--dark); display: block; transition: 0.3s; }

  /* ─── HERO (light background with solar image overlay) ─── */
  #accueil {
    min-height: 100vh;
    background: linear-gradient(160deg, #f0f8f4 0%, #e8f3ee 40%, #f5f9f6 100%);
    display: flex; align-items: center;
    padding: 100px 5% 80px;
    position: relative; overflow: hidden;
  }

  .hero-bg-image {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 52%;
    overflow: hidden;
  }
  .hero-bg-image img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.55;
    animation: heroZoom 16s ease-in-out infinite alternate;
  }
  .hero-bg-image::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, #f0f8f4 5%, rgba(240,248,244,0.6) 40%, transparent 100%);
  }
  @keyframes heroZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.06); }
  }

  #accueil::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
    background: linear-gradient(transparent, rgba(247,250,248,0.4));
    z-index: 0;
  }

  .hero-content {
    position: relative; z-index: 2;
    max-width: 600px;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(26,122,74,0.1); border: 1px solid rgba(26,122,74,0.25);
    color: var(--green); padding: 0.4rem 1rem; border-radius: 20px;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.5px;
    margin-bottom: 1.8rem;
    animation: fadeUp 0.6s ease forwards;
  }
  .hero-badge .dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

  h1.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800; line-height: 1.1;
    color: var(--dark); margin-bottom: 1.2rem;
    animation: fadeUp 0.6s 0.1s ease both;
  }
  h1.hero-title em { color: var(--orange); font-style: normal; }
  .hero-sub {
    font-size: 1.05rem; line-height: 1.75;
    color: var(--gray);
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s 0.2s ease both;
  }
  .hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
  }
  .btn-primary, .btn-outline {
  background: transparent;
  color: var(--dark);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-1px);
}

.btn-outline:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
  .btn-primary:hover { background: var(--orange-light); border-color: var(--orange-light); transform: translateY(-1px); }
  
 .btn-outline:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

  .hero-stats {
    display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.4s ease both;
  }
  .stat-card {
    background: var(--white); border: 1.5px solid var(--border);
    box-shadow: 0 4px 16px rgba(26,122,74,0.08);
    padding: 0.9rem 1.3rem; border-radius: 10px;
    text-align: center; min-width: 100px;
  }
  .stat-card .num {
  font-family: inherit;
  font-weight: 800;
  color: var(--orange);   /* ← assure-toi que c'est présent */
  font-size: 1.6rem;
  display: block;
}
  .stat-card .lbl { font-size: 0.72rem; color: var(--gray); }

  .hero-certifs {
    background: var(--white); border-top: 1px solid var(--border);
    padding: 1rem 5%; display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap;
  }
  .certif-label { font-size: 0.78rem; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
  .certif-badge {
    background: rgba(26,122,74,0.08); border: 1px solid rgba(26,122,74,0.2);
    color: var(--green); padding: 0.3rem 0.8rem; border-radius: 20px;
    font-size: 0.78rem; font-weight: 500;
  }
  .certif-links { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
  .certif-links a {
    display: flex; align-items: center; gap: 0.4rem;
    color: var(--gray); text-decoration: none; font-size: 0.78rem;
    border: 1px solid var(--border); padding: 0.3rem 0.7rem; border-radius: 20px;
    transition: all 0.2s;
  }
  .certif-links a:hover { color: var(--green); border-color: var(--green); }

  @keyframes fadeUp {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
  }

  /* ─── PARTENAIRES CONFIANCE ─── */
  .trust-bar {
    background: var(--light);
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  }
  .trust-bar-label { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
  .trust-logos { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
  .trust-logo-item {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; color: var(--gray); font-size: 0.82rem; font-weight: 500;
    border: 1px solid var(--border); padding: 0.4rem 0.9rem; border-radius: 6px;
    background: var(--white); transition: all 0.2s;
  }
  .trust-logo-item:hover { border-color: var(--green); color: var(--green); }

  /* ─── SECTION GÉNÉRALE ─── */
  section { padding: 80px 5%; }
  .section-label {
    font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--green); font-weight: 500; margin-bottom: 0.8rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 1rem; color: var(--dark);
  }
  .section-title {
  color: #1a7a4a;
}

.section-title em {
  color: #e8650a;
}
  .section-sub { font-size: 1rem; color: var(--gray); line-height: 1.7; max-width: 580px; }

  /* ─── ATOUTS ─── */
  .atouts { background: var(--light); }
  .atouts-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem;
    margin-top: 3rem;
  }
  .atout-card {
    background: var(--white); border: 1px solid var(--border);
    padding: 2rem 1.5rem; border-radius: 12px; transition: all 0.25s;
  }
  .atout-card:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(26,122,74,0.1); transform: translateY(-3px); }
  .atout-icon { font-size: 2rem; margin-bottom: 1rem; }
  .atout-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); }
  .atout-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

  /* ─── ÉNERGIES RENOUVELABLES HIGHLIGHT ─── */
  .renewable-highlight {
    background: linear-gradient(135deg, rgba(26,122,74,0.06) 0%, rgba(232,101,10,0.06) 100%);
    border: 1.5px solid var(--border);
    border-radius: 16px; padding: 3rem 2.5rem; margin-bottom: 4rem; text-align: center;
  }
  .renewable-highlight .subtitle { font-size: 0.9rem; color: var(--green); font-weight: 600; margin-bottom: 1rem; }
  .renewable-highlight h3 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 0.8rem; }
  .renewable-highlight p { font-size: 1rem; color: var(--gray); line-height: 1.7; max-width: 700px; margin: 0 auto 1.5rem; }
  .renewable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
  .renewable-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem;
    text-align: center; transition: all 0.25s;
  }
  .renewable-card:hover { border-color: var(--green); transform: translateY(-3px); }
  .renewable-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
  .renewable-card h4 { font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
  .renewable-card .subtitle { font-size: 0.75rem; color: var(--orange); font-weight: 600; }

  /* ─── CALCULATEUR ─── */
  .calculator-section {
    background: linear-gradient(135deg, #e8f5ed 0%, #d0eddc 100%);
    color: var(--dark);
  }
  .calculator-section .section-title { color: var(--dark); }
  .calculator-section .section-label { color: var(--green); }
  .calculator-section .section-sub { color: var(--gray); }
  .calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 3rem; }
  .calc-input-group { margin-bottom: 1.5rem; }
  .calc-input-group label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 0.5rem; color: var(--dark); }
  .calc-input-group input { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: 1rem; background: var(--white); color: var(--dark); }
  .calc-range { display: flex; align-items: center; gap: 1rem; }
  .calc-range input[type="range"] { flex: 1; accent-color: var(--green); }
  .calc-range span { font-weight: 700; font-size: 1.2rem; min-width: 60px; color: var(--green); }
  .calc-results {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 2rem;
    box-shadow: 0 4px 20px rgba(26,122,74,0.08);
  }
  .calc-result-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .calc-result-row:last-child { border-bottom: none; }
  .calc-result-label { font-size: 0.9rem; color: var(--gray); }
.calc-result-value {
  font-family: inherit;
  font-weight: 800;
  color: var(--green);
}
#resultROI {
  color: var(--orange);
}
  .calc-cta { margin-top: 1.5rem; }

  /* ─── SERVICES ─── */
  #services { background: var(--white); }
  .services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
  .service-card {
    border: 1.5px solid var(--border); border-radius: 14px;
    padding: 2rem; background: linear-gradient(135deg, #cce7ff 0%, #99d6ff 100%);
    transition: all 0.25s; position: relative; overflow: hidden;
  }
  .service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
  }
  .service-card:hover { border-color: var(--green-light); box-shadow: 0 12px 32px rgba(26,122,74,0.12); transform: translateY(-4px); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-emoji { font-size: 2.2rem; margin-bottom: 1rem; display: block; background: #cce7ff; color: #003d80; padding: 0.5rem; border-radius: 50%; width: fit-content; margin: 0 auto 1rem; }
  .service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--dark); }
  .service-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
  .service-card.featured {
    border: 1.5px solid var(--green-light); color: var(--dark);
  }
  .service-card.featured::before { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
  .service-card.featured h3 { color: var(--dark); }
  .service-card.featured p { color: var(--gray); }
  .service-card.featured .service-badge {
    background: var(--green); border: none;
    color: var(--white); padding: 0.25rem 0.7rem; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600; display: inline-block; margin-bottom: 0.8rem;
  }

  /* ─── ISOLATION ─── */
  .isolation-section { background: var(--light); }
  .isolation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
  .iso-card {
    background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 1.8rem;
    transition: all 0.25s;
  }
  .iso-card:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(26,122,74,0.1); }
  .iso-loss {
    background: #fff3e8; border: 1px solid #ffd4a8; color: #b84d00;
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.82rem;
    font-weight: 600; display: inline-block; margin-bottom: 1rem;
  }
  .iso-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); }
  .iso-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.6; }
  .savings-banner {
    background: linear-gradient(135deg, var(--orange) 0%, #c44e00 100%);
    border-radius: 14px; padding: 2rem 2.5rem; margin-top: 2.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    color: var(--white);
  }
  .savings-banner .big {
  font-family: inherit;
  font-weight: 800;
}
  .savings-banner p { font-size: 0.95rem; opacity: 0.85; }
  .savings-banner .btn-white {
  background: var(--white); color: var(--orange); padding: 0.8rem 1.8rem;
  border-radius: 6px; font-family: inherit; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; white-space: nowrap; transition: all 0.2s;
}
  .savings-banner .btn-white:hover { background: #fff5f0; }

  /* ─── RÉALISATIONS / PORTFOLIO ─── */
  .realisations { background: var(--white); }
  .portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0; }
  .filter-btn {
    background: var(--white); border: 1.5px solid var(--border); color: var(--dark);
    padding: 0.5rem 1.2rem; border-radius: 20px; cursor: pointer; font-weight: 600;
    transition: all 0.2s; font-size: 0.9rem;
  }
  .filter-btn:hover, .filter-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
  .real-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 0.5rem; }
  .real-card {
    aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative;
    background: var(--green-pale);
    border: 1.5px solid var(--border); cursor: pointer; transition: transform 0.3s;
  }
  .real-card:hover { transform: scale(1.03); }
  .real-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s;
  }
  .real-card:hover img { transform: scale(1.07); }
  .real-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    padding: 2rem 1rem 0.9rem;
    color: var(--white); font-size: 0.85rem; font-weight: 500;
  }
  .real-caption span { font-size: 0.75rem; opacity: 0.7; display: block; }
  .real-card .energy-gain { position: absolute; top: 0.8rem; right: 0.8rem; background: var(--orange); color: var(--white); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
  .avis-cta { text-align: center; margin-top: 2.5rem; }
  .btn-green {
  background: var(--green);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--green);
  transition: all 0.2s;
}
.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
}
  .btn-green:hover { background: var(--green-light); border-color: var(--green-light); transform: translateY(-1px); }

  /* ─── VIDÉOS ─── */
  .videos-section { background: var(--light); }
  .videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
  .video-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: all 0.25s; }
  .video-card:hover { box-shadow: 0 8px 24px rgba(26,122,74,0.1); transform: translateY(-3px); }
  .video-card iframe { width: 100%; height: 200px; display: block; }
  .video-card .video-info { padding: 1rem 1.2rem; }
  .video-card .video-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
  .video-card .video-info p { font-size: 0.82rem; color: var(--gray); }

  /* ─── BLOG ─── */
  #blog { background: var(--white); }
  .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
  .blog-card {
    background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
    overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column;
  }
  .blog-card:hover { box-shadow: 0 8px 24px rgba(26,122,74,0.1); transform: translateY(-3px); border-color: var(--green); }
  .blog-thumb {
    background: linear-gradient(135deg, var(--green-pale), #d4eede);
    padding: 2.5rem; text-align: center; font-size: 3rem;
    position: relative; overflow: hidden;
  }
  .blog-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,122,74,0.05), rgba(232,101,10,0.05));
  }
  .blog-category {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--green); color: var(--white); padding: 0.25rem 0.7rem;
    border-radius: 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
  .blog-meta { font-size: 0.75rem; color: var(--gray); margin-bottom: 0.8rem; }
  .blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.8rem; line-height: 1.4; }
  .blog-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.6; flex: 1; }
  .blog-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--green); font-size: 0.85rem; font-weight: 600;
    text-decoration: none; margin-top: 1.2rem; transition: gap 0.2s;
  }
  .blog-link:hover { gap: 0.7rem; }

  /* ─── ARTICLES BLOG (pages intégrées) ─── */
  .blog-article { display: none; position: fixed; inset: 0; z-index: 500; background: var(--white); overflow-y: auto; padding: 120px 5% 60px; }
  .blog-article.active { display: block; }
  .article-back {
  font-family: inherit;
}
  .article-back:hover { text-decoration: underline; }
  .article-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
  .article-header .section-label { margin-bottom: 0.8rem; }
  .article-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); margin-bottom: 1rem; line-height: 1.25; }
  .article-header .article-meta { font-size: 0.82rem; color: var(--gray); }
  .article-content { max-width: 760px; }
  .article-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 2rem 0 0.8rem; }
  .article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--green); margin: 1.5rem 0 0.6rem; }
  .article-content p { font-size: 0.97rem; color: #2d3748; line-height: 1.8; margin-bottom: 1.2rem; }
  .article-content ul, .article-content ol { margin: 0.8rem 0 1.2rem 1.5rem; }
  .article-content li { font-size: 0.97rem; color: #2d3748; line-height: 1.7; margin-bottom: 0.4rem; }
  .article-tip {
    background: var(--green-pale); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem; margin: 1.5rem 0;
  }
  .article-tip strong { color: var(--green); display: block; margin-bottom: 0.3rem; }
  .article-tip p { margin: 0; font-size: 0.92rem; }
  .article-cta-box {
    background: linear-gradient(135deg, #d0eddc 0%, #b8e4c8 100%);
    border: 1.5px solid var(--green-light);
    border-radius: 14px; padding: 2rem; margin-top: 2.5rem; text-align: center; color: var(--dark);
  }
  .article-cta-box h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--dark); }
  .article-cta-box p { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.2rem; }

  /* ─── DPE BILAN ─── */
  .bilan-section {
    background: linear-gradient(135deg, #e8f5ed 0%, #d0eddc 100%);
    color: var(--dark);
  }
  .bilan-section .section-label { color: var(--green); }
  .bilan-section .section-title { color: var(--dark); }
  .bilan-section .section-sub { color: var(--gray); }
  .bilan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
  .bilan-list { list-style: none; }
  .bilan-list li {
    padding: 0.7rem 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.95rem; color: var(--dark);
  }
  .bilan-list li:last-child { border-bottom: none; }
  .bilan-list .check { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
  .aides-box {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 2rem;
    box-shadow: 0 4px 20px rgba(26,122,74,0.08);
  }
  .aides-box h3 {
  font-family: inherit; font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1.2rem; color: var(--dark);
}
  .bilan-cta { margin-top: 1.8rem; }
  .aide-tag {
  display: inline-block; background: var(--green-pale); border: 1px solid var(--border);
  color: var(--green); padding: 0.4rem 0.9rem; border-radius: 20px;
  font-size: 0.82rem; margin: 0.3rem; font-weight: 500;
}

  /* ─── CONTACT ─── */
  #contact { background: var(--light); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
  .contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--dark); }
  .contact-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.1rem 0; border-bottom: 1px solid var(--border);
  }
  .contact-item:last-of-type { border-bottom: none; }
  .ci-icon {
    width: 40px; height: 40px; background: var(--green-pale); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
  }
  .ci-label { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
  .ci-value { font-size: 0.95rem; font-weight: 500; color: var(--dark); }
  .ci-value a { color: var(--green); text-decoration: none; }
  .ci-value a:hover { text-decoration: underline; }
  .horaires-box {
    background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem;
  }
  .horaires-box h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--dark); }
  .horaires-box p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
  .horaires-box .open { color: var(--green); font-weight: 500; }
  .contact-form {
    background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 2rem;
  }
  .contact-form h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--dark); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { margin-bottom: 1.2rem; }
  .form-group label { font-size: 0.82rem; font-weight: 500; color: var(--gray); display: block; margin-bottom: 0.4rem; }
  .form-group input, .form-group textarea, .form-group select {
  font-family: inherit;
}
  .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--green); }
  .form-group textarea { min-height: 110px; resize: vertical; }
    .form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
  }
  .form-submit:hover { background: var(--green-light); }
  .map-embed { border-radius: 14px; overflow: hidden; border: 1.5px solid var(--border); margin-top: 1.5rem; }
  .map-embed iframe { display: block; }

    .form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 3rem 5% 2rem;
  }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-logo {
  font-family: inherit;
  font-weight: 800;
}
  .footer-logo span { color: var(--orange); }
  .footer-desc { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
  .footer-certifs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
  .fcertif { background: rgba(38,160,101,0.12); border: 1px solid rgba(38,160,101,0.2); color: #7ddcb0; padding: 0.25rem 0.7rem; border-radius: 12px; font-size: 0.75rem; }
  footer h4 {
  font-family: inherit;
  font-weight: 700;
}
  .footer-links { list-style: none; }
  .footer-links li { margin-bottom: 0.5rem; }
  .footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
  .footer-links a:hover { color: var(--white); }
  .footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
  .footer-bottom span { font-size: 0.8rem; }
  .footer-mentions { display: flex; gap: 1.5rem; }
  .footer-mentions a { color: rgba(255,255,255,0.35); font-size: 0.78rem; text-decoration: none; transition: color 0.2s; }
  .footer-mentions a:hover { color: rgba(255,255,255,0.7); }

  /* ─── TOAST ─── */
  .toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
    background: var(--green); color: var(--white); padding: 1rem 1.5rem;
    border-radius: 10px; font-weight: 500; font-size: 0.9rem;
    opacity: 0; transform: translateY(10px); transition: all 0.3s; pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .toast.show { opacity: 1; transform: translateY(0); }

  /* ─── ANIMATION SOLAIRE ─── */
  .solar-animation-section {
    background: linear-gradient(135deg, #fff8e1 0%, #f0f9ff 100%);
    padding: 80px 5%;
    text-align: center;
  }
  .solar-animation-container {
    max-width: 900px;
    margin: 3rem auto 0;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(26,122,74,0.1);
    border: 2px solid var(--border);
  }

  /* Animation Flash */
  .solar-animation-container object, .solar-animation-container embed {
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }

  /* Avertissement Flash */
  .flash-warning {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    text-align: center;
  }
  .flash-warning p {
    margin-bottom: 1rem;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
  }
  .flash-warning p:first-child {
    font-weight: 700;
    color: #78350f;
  }
  .alternative-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .alt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--green-pale);
    color: var(--green);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(26,122,74,0.2);
    transition: all 0.2s;
  }
  .alt-link:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-1px);
  }

  /* ─── NAV DEVIS MOBILE ─── */
  .nav-devis-mobile {
    display: none;
    background: var(--orange); color: var(--white);
    padding: 0.45rem 1rem; border-radius: 4px;
    font-family: inherit; font-weight: 600; font-size: 0.82rem;
    text-decoration: none; white-space: nowrap;
    transition: background 0.2s;
    margin-left: 0.5rem;
  }
  .nav-devis-mobile:hover { background: var(--orange-light); }

  /* ─── BOUTON FLOTTANT MOBILE ─── */
  .fab-devis {
    display: none;
    position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
    z-index: 150;
    background: var(--orange); color: var(--white);
    padding: 0.9rem 2rem; border-radius: 30px;
    font-family: inherit; font-weight: 700; font-size: 0.95rem;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 20px rgba(232,101,10,0.45);
    transition: all 0.2s, opacity 0.3s;
    border: none; cursor: pointer;
  }
  .fab-devis:hover { background: var(--orange-light); transform: translateX(-50%) translateY(-2px); }

  @media (max-width: 768px) {

  .nav-devis-mobile {
    display: inline-block;
  }

  .fab-devis {
    display: block;
  }

}

  /* ─── RESPONSIVE TABLET (max 900px) ─── */
  @media (max-width: 900px) {
    .hero-bg-image { width: 100%; opacity: 0.15; }
    .calculator-grid, .bilan-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats { display: flex; flex-direction: row; }
    .solar-animation-container object, .solar-animation-container embed {
      width: 100% !important;
      height: auto !important;
      max-width: 710px;
    }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    section { padding: 60px 5%; }
  }

 /* ========== RESPONSIVE MOBILE (max 650px) ========== */
@media (max-width: 650px) {
  /* Horaires & avis */
  .horaires-box {
    flex-direction: column;
    text-align: center;
  }
  .horaires-box > div:last-child {
    border-left: none !important;
    border-top: 2px solid var(--border);
    padding-left: 0 !important;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%;
    gap: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-links.open .nav-cta {
    width: fit-content;
  }
  .hamburger {
    display: flex;
  }
  .nav-devis-mobile {
    display: inline-block;
  }

  /* Gestion des sous-menus (dropdowns) */
  .dropdown .dropdown-content {
    display: none;
  }
  .dropdown.open .dropdown-content {
    display: block;
  }

  /* Certifs */
  .certif-links {
    display: none;
  }
  .hero-certifs {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 5%;
  }
  .certif-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  /* Hero */
  #accueil {
    padding: 90px 5% 60px;
    min-height: auto;
  }
  h1.hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero-actions a {
    text-align: center;
    width: 100%;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .stat-card {
    flex: 1 1 calc(33% - 0.6rem);
    min-width: 80px;
    padding: 0.7rem 0.8rem;
  }
  .stat-card .num {
    font-size: 1.3rem;
  }

  /* Sections */
  section {
    padding: 50px 4%;
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

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

  /* Formulaire */
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    gap: 1.5rem;
  }

  /* Calculateur */
  .calculator-grid {
    gap: 1.5rem;
  }
  .calc-results {
    padding: 1.2rem;
  }
  .calc-result-value {
    font-size: 1.2rem;
  }

  /* Grilles */
  .atouts-grid {
    grid-template-columns: 1fr;
  }
  .isolation-grid {
    grid-template-columns: 1fr;
  }
  .renewable-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bilan-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Trust bar */
  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .trust-logos {
    flex-wrap: wrap;
  }

  /* Blog cards */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio filters */
  .portfolio-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }

  /* Aides box */
  .aides-box {
    padding: 1.2rem;
  }

  /* FAB visible sur mobile */
  .fab-devis {
    display: block;
  }
  body {
    padding-bottom: 5rem;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
  .footer-mentions {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  /* Toast */
  .toast {
    bottom: 5.5rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}
/* Écrans larges (tablettes, foldables, petits écrans de bureau) */
@media (min-width: 1024px) {
  /* Horaires & avis : côte à côte */
  .horaires-box {
    flex-direction: row !important;
    justify-content: space-between;
    text-align: left;
  }
  .horaires-box > div:last-child {
    border-left: 2px solid var(--border) !important;
    border-top: none !important;
    padding-left: 1rem !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}
  /* ─── TRÈS PETIT ÉCRAN (max 400px) ─── */
  @media (max-width: 400px) {
    nav { padding: 0 4%; }
    .logo-main { font-size: 1.3rem; }
    .renewable-grid { grid-template-columns: 1fr; }
    .stat-card { flex: 1 1 100%; }
    .hero-actions a { font-size: 0.9rem; padding: 0.75rem 1.5rem; }
  }
/* Lightbox pour agrandir les photos */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.modal .close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
/* Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.modal .close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.modal .close-modal:hover {
  color: #ff8c3a;
}
/*
=============================================
🔧 RÉGLAGES DES LOGOS QUALIFICATIONS (TRANECO)
=============================================

📌 Où modifier ?

1. TAILLE DU LOGO
   Chercher : .qualification-card img
   Modifier : width: 60px;  height: 60px;
   Valeurs : 50px (petit) / 60px (moyen) / 70px (grand)

2. ESPACE À L'INTÉRIEUR DE LA CARTE
   Chercher : .qualification-card
   Modifier : padding: 15px 10px;
   (1er nombre = haut/bas, 2nd = gauche/droite)

3. ESPACE ENTRE LES CARTES
   Chercher : .qualifications-grid
   Modifier : gap: 15px;

4. LARGEUR MINIMUM DES CARTES
   Chercher : .qualifications-grid
   Modifier : grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
   (140px = largeur mini, plus petit = cartes plus serrées)

=============================================
💡 RACCOURCI POUR TESTER :
    - Modifier → Sauvegarder → Ctrl+Maj+R (rechargement propre)
=============================================
*/

/* ========================= */
/* QUALIFICATIONS */
/* ========================= */
.qualifications {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f8fafc, #eef4f7);
  text-align: center;
}
.qualifications h2 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 15px;
  font-weight: 700;
}
.qualifications-text {
  max-width: 800px;
  margin: 0 auto 60px;
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
}
.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.qualification-card {
  background: white;
  border-radius: 18px;
  padding: 15px 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px; /* hauteur minimale identique */
}
.qualification-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.qualification-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}
.qualification-card span {
  display: block;
  font-weight: 600;
  color: #003366;
  font-size: 1rem;
}
.certif-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.certif-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  border: 1px solid #ddd;
  transition: 0.3s;
}
.certif-links a:hover {
  background: #003366;
  color: white;
  border-color: #003366;
}

/* GALLERIE - TAILLE CORRECTE DES IMAGES */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s ease;
  background: #f5f5f5;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;  /* cadre l’image sans la déformer */
  display: block;
}

.gallery-item:hover {
  transform: scale(1.02);
}
.hidden-field {
    display: none;
}
/* Forcer le centrage du texte sous l’animation solaire */
.solar-animation-section .section-label,
.solar-animation-section .section-title,
.solar-animation-section .section-sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.solar-animation-section .section-sub {
  max-width: 750px;
}
/* RGPD Banner */
.rgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1a12;
  color: white;
  padding: 1rem;
  z-index: 10000;
  display: none;
  justify-content: center;
  font-family: inherit;
  font-size: 0.85rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  border-top: 2px solid #e8650a;
}

.rgpd-banner.show {
  display: flex;
}

.rgpd-banner-content {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.rgpd-banner-content p {
  margin: 0;
  flex: 1;
}

.rgpd-banner-content a {
  color: #ff8c3a;
  text-decoration: underline;
}

.rgpd-btn {
  background: #e8650a;
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.rgpd-btn:hover {
  background: #ff8c3a;
}

/* ================================== */
/* ANIMATIONS SOLAIRES - MOBILE OK */
/* ================================== */

/* Version desktop : animations normales */
.traneco-schema-wrap .ts-ray,
.traneco-schema-wrap .ts-fhot,
.traneco-schema-wrap .ts-fhotd,
.traneco-schema-wrap .ts-fel,
.traneco-schema-wrap .ts-fgrid,
.traneco-schema-wrap .ts-fecs,
.traneco-schema-wrap .ts-fcold,
.traneco-schema-wrap .ts-glw,
.traneco-schema-wrap .ts-flk,
.traneco-schema-wrap .ts-bolt,
.traneco-schema-wrap .ts-pg,
.traneco-schema-wrap .ts-exh {
  animation-play-state: running;
}

/* Version mobile : animations adaptées (ralenties, pas désactivées) */
@media (max-width: 768px) {
  .traneco-schema-wrap .ts-ray {
    animation-duration: 3s !important;
  }
  .traneco-schema-wrap .ts-fhot,
  .traneco-schema-wrap .ts-fhotd {
    animation-duration: 2s !important;
  }
  .traneco-schema-wrap .ts-fel {
    animation-duration: 1.8s !important;
  }
  .traneco-schema-wrap .ts-fgrid {
    animation-duration: 2.5s !important;
  }
  .traneco-schema-wrap .ts-fecs {
    animation-duration: 2s !important;
  }
  .traneco-schema-wrap .ts-fcold {
    animation-duration: 2.2s !important;
  }
  .traneco-schema-wrap .ts-glw,
  .traneco-schema-wrap .ts-flk {
    animation-duration: 3s !important;
  }
  .traneco-schema-wrap .ts-bolt {
    animation-duration: 2s !important;
  }
  .traneco-schema-wrap .ts-pg {
    animation-duration: 3s !important;
  }
  .traneco-schema-wrap .ts-exh {
    animation-duration: 4s !important;
    opacity: 0.3 !important;
  }
  /* Les vagues de chaleur/froid sont ralenties mais restent visibles */
  #ts-hw1, #ts-hw2, #ts-hw3, #ts-hw4 {
    animation-duration: 3.5s !important;
  }
  #ts-cw1, #ts-cw2, #ts-cw3 {
    animation-duration: 3.5s !important;
  }
}

/* SVG responsive */
#ts-svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.traneco-schema-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Réduire le SVG sur très petit écran */
@media (max-width: 480px) {
  .traneco-schema-wrap {
    padding: 8px 4px;
  }
  .ts-btns button {
    font-size: 10px !important;
    padding: 4px 10px !important;
  }
  .ts-lbl {
    font-size: 9px !important;
    min-height: 20px;
  }
}
/* Page 1 pompe a chaleur */
.arrow-home {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--orange);
  transition: transform 0.2s ease;
  display: inline-block;
}

.logo a:hover .arrow-home {
  transform: translateX(-4px);
}
/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 100;
  border-radius: 8px;
  padding: 0.5rem 0;
  border: 1px solid var(--border);
}

.dropdown-content li {
  display: block;
}

.dropdown-content a {
  color: var(--dark);
  padding: 0.6rem 1.2rem;
  display: block;
  font-size: 0.85rem;
}

.dropdown-content a:hover {
  background: var(--green-pale);
  color: var(--green);
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* Mode paysage sur mobile (largeur > hauteur) */
@media (max-width: 900px) and (orientation: landscape) {
  /* Ajuster la navigation fixe pour qu’elle ne prenne pas trop de place */
  nav {
    height: 54px;
    padding: 0 3%;
  }
  .logo-main {
    font-size: 1.2rem;
  }
  .logo-sub {
  font-family: inherit; /* ou la même pile système que body */
}
  .nav-links a {
    font-size: 0.8rem;
  }
  /* Réduire les marges des sections */
  section {
    padding: 40px 3% !important;
  }
  /* Hero : réduire la hauteur minimale et la taille du texte */
  #accueil {
    min-height: auto;
    padding: 80px 5% 40px !important;
  }
  .hero-title {
    font-size: 1.8rem !important;
  }
  .hero-sub {
    font-size: 0.9rem !important;
  }
  /* Ajuster les grilles (services, isolation, etc.) */
  .services-grid,
  .renewable-grid,
  .isolation-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  /* Réduire la taille des cartes */
  .service-card, .renewable-card, .iso-card {
    padding: 1rem;
  }
  /* Éviter que le menu hamburger ne prenne trop de place */
  .hamburger span {
    width: 20px;
    height: 1.5px;
  }
  /* Ajuster le formulaire de contact */
  .contact-grid {
    gap: 1rem;
  }
  /* Réduire la taille des avis Google */
  .horaires-box {
    flex-direction: row !important;
    gap: 0.5rem;
  }
  .horaires-box > div:last-child {
    border-left: 1px solid var(--border) !important;
    border-top: none !important;
    padding-left: 0.5rem !important;
    padding-top: 0 !important;
  }
  /* Ajuster le toast (message) */
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: auto;
    font-size: 0.8rem;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .dropdown-content {
    max-height: 40vh;
    overflow-y: auto;
  }
}
img, iframe, video {
  max-width: 100% !important;
  height: auto !important;
}
/* ================================== */
/* ÉCRANS LARGES (foldables, tablettes paysage) */
/* ================================== */
@media (min-width: 1200px) and (max-width: 1920px) and (orientation: landscape) {
  /* Conteneur principal : limiter la largeur pour éviter les lignes trop longues */
  body {
    font-size: 16px;
  }
  .hero-content, .section-sub, .calculator-grid, .contact-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Hero : limiter la largeur de l’image et du texte */
  .hero-content {
    max-width: 55%;
  }
  .hero-bg-image {
    width: 45%;
    opacity: 0.5;
  }
  /* Grilles : 3 ou 4 colonnes pour profiter de la largeur */
  .services-grid, .renewable-grid, .real-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .isolation-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Espacement des sections */
  section {
    padding: 60px 5%;
  }
  /* Footer : rester aligné */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
/* Forcer la hero à gauche sur desktop */
@media (min-width: 651px) {
  .hero-content {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.aides-box a {
  color: var(--green);
  text-decoration: none;
}
.aides-box a:hover {
  text-decoration: underline;
}
.aides-box p {
  color: var(--gray); /* garde la couleur normale */
}
.aides-box p strong {
  color: var(--orange);
}
/* Aligner à gauche la section animation solaire sur desktop */
/*@media (min-width: 651px) {
  .solar-animation-section .section-label,
  .solar-animation-section .section-title,
  .solar-animation-section .section-sub {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}
