/* ========== VARIABLES & RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    scroll-behavior: smooth;
    line-height: 1.5;
  }
  
  :root {
    --blue-deep: #0f3b5f;
    --blue-soft: #1e5a7d;
    --red-accent: #c73c2b;
    --gray-bg: #f9fafb;
    --gray-light: #f1f5f9;
    --border-light: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.05);
  }
  
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }
  
  /* ========== HEADER ========== */
  header {
    background: var(--blue-deep);
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
  }
  
  .logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
  }
  
  .baseline {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
    color: #cbd5e1;
  }
  
  .baseline .gas { color: #facc15; }
  .baseline .eau { color: #38bdf8; }
  .baseline .chauffage { color: #f97316; }
  
  .nav-links {
    display: flex;
    gap: 12px;
    list-style: none;
  }
  
  .nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 40px;
    transition: 0.2s;
    color: #f1f5f9;
    background: transparent;
  }
  
  .nav-links a.active-link {
    background: var(--red-accent);
    color: white;
    box-shadow: 0 2px 6px rgba(199,60,43,0.3);
  }
  
  .nav-links a:hover:not(.active-link) {
    background: rgba(255,255,255,0.15);
    color: white;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: white;
  }
  
  /* ========== SLIDER FULLSCREEN ========== */
  .fullscreen-swiper {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }
  
  .swiper.fullscreen {
    width: 100%;
    height: 100%;
  }
  
  .swiper-slide {
    background-size: cover;
    background-position: center 30%;
    position: relative;
  }
  
  .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,59,95,0.6) 0%, rgba(199,60,43,0.3) 100%);
  }
  
  .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 85%;
    max-width: 800px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 2;
  }
  
  .slide-content h3 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 18px;
  }
  
  .slide-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
  }
  
  .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
  }
  
  .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 5px;
    background: var(--red-accent);
  }
  
  /* ========== SECTIONS ========== */
  section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-variant: small-caps;
    letter-spacing: 1px;
    margin-bottom: 48px;
    text-align: center;
    background: linear-gradient(120deg, var(--blue-deep), var(--red-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
  }
  
  .section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--red-accent);
    margin: 16px auto 0;
    border-radius: 4px;
  }
  
  /* ========== ONGLETS A PROPOS ========== */
  .about-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    padding-bottom: 8px;
  }
  
  .about-tab {
    background: transparent;
    border: none;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.25s;
    border-radius: 40px;
    color: #334155;
  }
  
  .about-tab.active {
    background: var(--red-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(199,60,43,0.2);
  }
  
  .about-tab:hover:not(.active) {
    background: rgba(0,0,0,0.03);
    color: var(--blue-deep);
  }
  
  .about-two-columns {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-wrap: wrap;
  }
  
  .about-detail {
    flex: 2;
    min-width: 260px;
  }
  
  .about-why {
    flex: 1.2;
    min-width: 260px;
  }
  
  .about-card {
    background: white;
    padding: 28px 32px;
    border: 1px solid var(--border-light);
    border-radius: 28px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    height: 100%;
  }
  
  .about-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gray-bg);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--red-accent);
    border: 1px solid var(--border-light);
  }
  
  .about-text {
    flex: 1;
  }
  
  .about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--blue-deep);
    font-weight: 700;
  }
  
  .about-text p {
    color: #334155;
    line-height: 1.5;
  }
  
  .why-card {
    background: var(--gray-bg);
    padding: 28px 28px;
    border-radius: 28px;
    border: 1px solid var(--border-light);
    height: 100%;
  }
  
  .why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .why-card ul {
    list-style: none;
  }
  
  .why-card li {
    margin-bottom: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
  }
  
  .why-card li i {
    color: var(--red-accent);
    width: 24px;
    font-size: 1.2rem;
  }
  
  .fade-pane {
    animation: fadeSlide 0.3s ease-out;
  }
  
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ========== CV SECTION ========== */
  .cv-section-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .cv-inner {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .cv-card-container {
    width: 100%;
    max-width: 780px;
    background: var(--gray-bg);
    border-radius: 40px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .cv-lang-vertical {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
    padding: 20px 16px;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    z-index: 20;
    white-space: nowrap;
  }
  
  .cv-lang-vertical-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.2s;
    color: #1e293b;
  }
  
  .cv-lang-vertical-btn.active {
    background: var(--red-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(199,60,43,0.2);
  }
  
  .cv-simple {
    padding: 48px 32px;
    text-align: center;
  }
  
  .cv-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 24px;
  }
  
  .cv-simple h3 {
    font-size: 1.8rem;
    color: var(--blue-deep);
    margin-bottom: 8px;
  }
  
  .cv-simple .cv-title {
    font-size: 1rem;
    color: var(--red-accent);
    font-weight: 600;
    margin-bottom: 16px;
  }
  
  .cv-simple .tagline {
    font-size: 1rem;
    color: #475569;
    max-width: 480px;
    margin: 0 auto 32px;
  }
  
  .cv-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-deep);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
  }
  
  .btn-cv:hover { background: var(--red-accent); }
  .cv-hidden { display: none; }
  
  /* ========== STATS ========== */
  .stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
  }
  
  .stat-modern {
    flex: 1;
    background: var(--gray-bg);
    padding: 32px 20px;
    text-align: center;
    border-radius: 28px;
    border: 1px solid var(--border-light);
  }
  
  .stat-modern i { font-size: 2.8rem; color: var(--red-accent); margin-bottom: 16px; }
  .stat-number-lg { font-size: 2.8rem; font-weight: 800; color: var(--blue-deep); }
  .stat-label-modern { font-weight: 500; color: #475569; margin-top: 8px; }
  
  /* ========== TÉMOIGNAGES ========== */
  .testi-card-premium {
    background: white;
    padding: 40px 32px;
    border-radius: 28px;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
  }
  
  .testi-stars { color: #fbbf24; margin-bottom: 24px; font-size: 1.2rem; }
  .testi-text-premium { font-size: 1rem; line-height: 1.5; margin-bottom: 28px; color: #334155; }
  .testi-author-premium { font-weight: 700; color: var(--blue-deep); display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--border-light); padding-top: 24px; }
  .testimonialSingle .swiper-pagination { display: none; }
  
  /* ========== CONTACT ========== */
  .contact-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  
  .form-group { margin-bottom: 24px; }
  input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
  }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-accent); }

  /* ========== STYLES POUR LE FORMULAIRE AVEC ASTÉRISQUES ========== */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--blue-deep);
}

.required {
  color: var(--red-accent);
  font-weight: bold;
  margin-left: 4px;
}

.required-info {
  font-size: 0.75rem;
  color: #6c757d;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-accent);
  box-shadow: 0 0 0 3px rgba(199,60,43,0.1);
}

/* Style pour les champs invalides */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: var(--red-accent);
}

/* Animation de focus */
.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.2s, box-shadow 0.2s;
}
  
  .btn-submit-modern {
    background: var(--blue-deep);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
  }
  .btn-submit-modern:hover { background: var(--red-accent); }
  
  .map-wrapper {
    height: 650px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .map-wrapper iframe { width: 100%; height: 100%; border: 0; }
  
  /* ========== FOOTER ========== */
  footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 32px;
    margin-top: 20px;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-brand h3 { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
  .footer-brand p { font-size: 0.85rem; max-width: 260px; opacity: 0.8; }
  
  .footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
  .footer-links-column h4 { color: white; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
  .footer-links-column ul { list-style: none; }
  .footer-links-column li { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
  .footer-links-column li i { color: var(--red-accent); font-size: 0.7rem; width: 16px; }
  .footer-links-column a { color: #cbd5e1; text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
  .footer-links-column a:hover { color: var(--red-accent); }
  
  .footer-contact p { font-size: 0.85rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
  .social-icons { margin-top: 16px; }
  .social-icons a { color: #94a3b8; margin-right: 18px; font-size: 1.2rem; transition: 0.2s; }
  .social-icons a:hover { color: var(--red-accent); }
  
  .footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid #1e293b; font-size: 0.75rem; opacity: 0.7; }
  
  /* ========== BACK TO TOP ========== */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--blue-deep);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
    z-index: 99;
    border-radius: 30px;
  }
  .back-to-top.visible { opacity: 1; }
  
  /* ========== RESPONSIVE ========== */
  @media (max-width: 900px) {
    .cv-section-wrapper {
      flex-direction: column;
      align-items: center;
    }
    .cv-lang-vertical {
      position: static;
      transform: none;
      flex-direction: row;
      justify-content: center;
      margin-bottom: 20px;
      width: fit-content;
    }
    .cv-card-container { max-width: 100%; }
  }
  
  @media (max-width: 880px) {
    .about-two-columns { flex-direction: column; }
  }
  
  @media (max-width: 850px) {
    .nav-links {
      display: none;
      width: 100%;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 24px 0;
    }
    .nav-links.active { display: flex; }
    .container { padding: 0 20px; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .contact-modern { grid-template-columns: 1fr; gap: 32px; }
  }
  
  @media (max-width: 768px) {
    .slide-content h3 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
  }