
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0d1117;
    color: #e2e8f0;
    scroll-behavior: smooth;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.hero-title {
    background: linear-gradient(45deg, #3b82f6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-heading {
    font-weight: 900;
    letter-spacing: -1px;
}

.value-heading {
    font-size: 14px;
}

.nav-link:hover {
    color: #f97316;
    transition: color 0.3s;
}

.mobile-nav-toggle {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-panel {
    display: none;
    width: 100%;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(2, 6, 23, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-panel.open {
    display: block;
}

.mobile-nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-nav-panel a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    color: #e5e7eb;
    -webkit-text-decoration: none;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.mobile-contact {
    background: rgba(59, 130, 246, 0.12);
    color: #f97316;
}

.bento-item {
    background-color: #1a202c;
    border: 1px solid #2d3748;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.bento-item:hover {
    background-color: #2d3748;
    transform: translateY(-8px) scale(1.02) rotateX(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.bento-item-icon {
    transform: translateZ(20px);
    transition: transform 0.4s;
}

.bento-item:hover .bento-item-icon {
    transform: translateZ(30px) rotateY(10deg);
}

/* Fond circuit électrique animé */
.bg-circuit {
    position: relative;
    background-color: #0f1115;
    overflow: hidden;
}

.bg-circuit::before,
.bg-circuit::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 4px);
    background-size: 40px 40px, 40px 40px, 40px 40px;
    animation: moveCircuit 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.bg-circuit::after {
    animation-duration: 35s;
    opacity: 0.8
}

/* Animation du motif */
@keyframes moveCircuit {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50px, 50px) rotate(360deg);
    }
}

.btn-discover {
    background: linear-gradient(90deg, #3b82f6, #f97316);
    /* bleu → orange */
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-discover:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

:root {
      --primary: #3b82f6;
      --secondary: #f97316;
      --dark: #0d1117;
      --glass: rgba(255, 255, 255, 0.03);
    }

    body { 
      font-family: 'Montserrat', sans-serif; 
      background-color: #0d1117; 
      background-color: var(--dark); 
      color: #e2e8f0; 
      overflow-x: hidden; 
    }

    /* Header Style BUTEC */
    #header {
      background: rgba(0, 0, 0, 0.8) !important;
      -webkit-backdrop-filter: blur(15px);
      backdrop-filter: blur(15px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      padding: 15px 0;
    }

    .hero-title { 
      background: linear-gradient(45deg, #3b82f6, #f97316); 
      background: linear-gradient(45deg, var(--primary), var(--secondary)); 
      -webkit-background-clip: text; 
      -webkit-text-fill-color: transparent; 
      font-weight: 900;
    }

    /* Glass Cards */
    .glass-card {
      background: rgba(255, 255, 255, 0.03);
      background: var(--glass);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 30px;
      padding: 40px;
      transition: all 0.4s ease;
    }

    .glass-card:hover {
      border-color: #3b82f6;
      border-color: var(--primary);
      transform: translateY(-5px);
    }

    /* Icons Custom */
    .icon-circle {
      width: 60px;
      height: 60px;
      background: linear-gradient(45deg, #3b82f6, #2563eb);
      background: linear-gradient(45deg, var(--primary), #2563eb);
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 20px;
      color: white;
      box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    }

    /* Breadcrumbs Dark */
    .breadcrumbs {
      padding: 140px 0 60px 0;
      background: none;
    }

    .breadcrumbs h2 {
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 5px;
      color: #f97316;
      color: var(--secondary);
    }

    /* Section About Style */
    .about-img-container {
      position: relative;
      border-radius: 40px;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .about-img-container::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: linear-gradient(to top, #0d1117, transparent);
      background: linear-gradient(to top, var(--dark), transparent);
    }

    .check-icon {
      color: #f97316;
      color: var(--secondary);
      margin-right: 10px;
      font-size: 1.2rem;
    }

    /* Footer Dark */
    #footer {
      background: #05070a;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      padding: 80px 0 30px 0;
    }

    #footer .footer-social {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-top: 1rem;
    }

    #footer .footer-social a {
      width: 3rem;
      height: 3rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    #footer .footer-social a:hover {
      transform: translateY(-3px);
      box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
    }

    #footer h4 {
      letter-spacing: 0.08em;
    }

    #footer .footer-link {
      color: #cbd5e1;
      transition: color 0.25s ease;
    }

    #footer .footer-link:hover {
      color: #ffffff;
    }

    #footer .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    @media (min-width: 768px) {
      #footer .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
    }

    /* Animations d'apparition : l'état caché n'existe que dans l'animation,
       donc un navigateur sans animations CSS (Opera Mini, IE 9) affiche directement le contenu */
    .anim-fade-up,
    .anim-fade-down,
    .anim-fade-left,
    .anim-fade-right,
    .anim-zoom {
      animation-fill-mode: both;
      animation-duration: 0.9s;
      animation-timing-function: ease-out;
    }

    .anim-fade-up { animation-name: fadeUp; }
    .anim-fade-down { animation-name: fadeDown; }
    .anim-fade-left { animation-name: fadeLeft; }
    .anim-fade-right { animation-name: fadeRight; }
    .anim-zoom { animation-name: zoomIn; }

    .anim-delay-100 { animation-delay: 0.1s; }
    .anim-delay-200 { animation-delay: 0.2s; }
    .anim-delay-300 { animation-delay: 0.3s; }
    .anim-delay-400 { animation-delay: 0.4s; }

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

    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-1rem); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeLeft {
      from { opacity: 0; transform: translateX(-1rem); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes fadeRight {
      from { opacity: 0; transform: translateX(1rem); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes zoomIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    /* Header dropdown support */
    .nav-dropdown {
      position: relative;
    }

    .dropdown-menu {
      display: none;
      position: absolute;
      left: 0;
      top: 100%;
      margin-top: 0.75rem;
      min-width: 12rem;
      border-radius: 1rem;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
      background: #111827;
      border: 1px solid rgba(55, 65, 81, 0.85);
      z-index: 999;
    }

    .nav-dropdown:hover > .dropdown-menu {
      display: block;
    }

    .dropdown-menu li + li {
      margin-top: 0.25rem;
    }

    .dropdown-menu a {
      display: block;
      color: #e5e7eb;
      padding: 0.75rem 1rem;
      font-size: 0.75rem;
      line-height: 1.25;
      -webkit-text-decoration: none;
      text-decoration: none;
    }

    .dropdown-menu a:hover {
      background: rgba(107, 114, 128, 0.35);
    }

    .dropdown-toggle {
      cursor: pointer;
    }

    .nav-link {
      position: relative;
      color: #e5e7eb;
      -webkit-text-decoration: none;
      text-decoration: none;
      transition: color 0.25s ease, transform 0.25s ease;
    }

    .nav-link::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -0.35rem;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #3b82f6, #f97316);
      border-radius: 999px;
      transition: width 0.25s ease, left 0.25s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
      left: 0;
      width: 100%;
    }

    .nav-link:hover {
      transform: translateY(-1px);
    }

    .nav-link:hover,
    .nav-link.active {
      color: #3b82f6;
    }

    .nav-dropdown .dropdown-toggle.active {
      color: #f97316;
    }

    .dropdown-menu a.active {
      color: #f97316;
      font-weight: 700;
      background: rgba(249, 115, 22, 0.12);
    }

    .header-animated {
      opacity: 0;
      transform: translateY(-1rem);
      animation: headerFade 0.8s ease-out forwards;
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
      transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
      box-shadow: 0 8px 25px rgba(2,6,23,0.45);
      border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .header-animated.scrolled {
      transform: translateY(0);
      box-shadow: 0 18px 50px rgba(2,6,23,0.6);
    }

    @keyframes headerFade {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* stronger active/hover visual for nav */
    .nav-link.active,
    .nav-link:hover {
      color: #f97316;
    }

    .dropdown-toggle.active svg {
      transform: rotate(180deg);
      transition: transform 0.2s ease;
    }

    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown:focus-within > .dropdown-menu {
      display: block;
    }

    .whatsapp-float,
    .wa-float {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: #25d366;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      z-index: 9999;
      -webkit-text-decoration: none;
      text-decoration: none;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .whatsapp-float:hover,
    .wa-float:hover {
      transform: scale(1.1);
      background-color: #128c7e;
      color: #fff;
    }

    .whatsapp-float::before,
    .wa-float::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: #25d366;
      opacity: 0.7;
      z-index: -1;
      animation: pulse-whatsapp 2s infinite;
    }

    @keyframes pulse-whatsapp {
      0% { transform: scale(1); opacity: 0.7; }
      100% { transform: scale(1.6); opacity: 0; }
    }

    .hero-vertical-img {
      width: 100%;
      max-width: 100%;
      height: 720px;
      -o-object-fit: cover;
         object-fit: cover;
      border-radius: 1.5rem;
      display: block;
    }

    .hero-carousel { min-height: 80vh; }
    .carousel-slide { background-position: center top; }
    .carousel-content { padding: 1.5rem; }
    .carousel-content h1 { font-size: max(2.5rem, min(4vw, 4.5rem)); }
    .carousel-content p { font-size: max(1rem, min(2vw, 1.15rem)); }
    .carousel-dots { gap: 0.85rem; }
    .carousel-dot { width: 14px; height: 14px; }
    .dropdown-toggle { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
    .dropdown-toggle::after { display: none !important; }
    .dropdown-toggle svg { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
    .nav-dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
    .nav-dropdown .dropdown-menu { min-width: 10rem; }
    .news-item { margin-bottom: 3rem; }
    .news-item .news-image-panel { position: relative; overflow: hidden; border-radius: 1.5rem; }
    .news-item .news-image-panel img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; min-height: 280px; display: block; transition: transform 0.4s ease; }
    .news-item .news-image-panel:hover img { transform: scale(1.04); }
    .news-item .news-content-panel { background: rgba(15,23,42,0.9); border: 1px solid rgba(255,255,255,0.06); border-radius: 1.5rem; padding: 2rem; min-height: 100%; }
    .news-item .news-content-panel h4 { font-size: 1.7rem; margin-bottom: 1rem; }
    .news-item .news-content-panel p { color: #cbd5e1; line-height: 1.8; }
    .news-item .news-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: #f97316; margin-bottom: 1rem; }
    .news-item .news-badge span { background: rgba(249,115,22,0.12); padding: 0.55rem 0.9rem; border-radius: 999px; }
    .news-item .news-link { display: inline-flex; align-items: center; gap: 0.35rem; }
    .news-item:nth-child(even) .news-content-panel { background: rgba(10, 15, 26, 0.96); }
    .news-item .news-meta { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1rem; }
    .registration-section { padding: 80px 0; background: rgba(255,255,255,0.02); }
    .registration-section .card-custom { border-radius: 2rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
    .registration-section .form-control, .registration-section select, .registration-section textarea { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
    .registration-section .form-control:focus, .registration-section select:focus, .registration-section textarea:focus { border-color: #3b82f6; border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.18); }
    .registration-section .training-checklist li { margin-bottom: 0.8rem; }
    .registration-section .training-checklist li::before { content: "✓"; color: #f97316; color: var(--secondary); margin-right: 0.65rem; }

    @media (max-width: 992px) {
      .hero-carousel { min-height: 70vh; }
      .carousel-dots { bottom: 1.5rem; }
      .dropdown-toggle svg { width: 1.05rem; height: 1.05rem; }
      .news-item { margin-bottom: 2rem; }
    }

    @media (max-width: 768px) {
      .carousel-content { padding: 1rem; }
      .carousel-content h1 { font-size: 2.3rem; }
      .carousel-content p { font-size: 1rem; }
      .carousel-slide::before { background: linear-gradient(180deg, rgba(7, 16, 28, 0.75), rgba(4, 10, 18, 0.95)); }
      .carousel-dots { gap: 0.5rem; }
      .carousel-dot { width: 12px; height: 12px; }
      .registration-section .container { padding: 0 1rem; }
    }

    .training-link {
      width: 100%;
      background: transparent;
      border: none;
      padding: 0;
      text-align: left;
      cursor: pointer;
    }

    .training-link:hover {
      transform: translateX(6px);
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 99999;
    }

    .modal-card {
      width: min(100%, 920px);
      max-width: 920px;
      background: #0f172a;
      border: 1px solid rgba(148, 163, 184, 0.12);
      border-radius: 24px;
      padding: 0;
      box-shadow: 0 40px 90px rgba(15, 23, 42, 0.65);
      position: relative;
      color: #e2e8f0;
      overflow: hidden;
    }

    .modal-card .modal-body {
      display: flex;
      flex-wrap: wrap;
      min-height: 100%;
    }

    .modal-card .modal-side {
      flex: 0 0 42%;
      min-height: 100%;
      background-size: cover;
      background-position: center;
      position: relative;
    }

    .modal-card .side-overlay {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.95));
      padding: 2rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      color: #f8fafc;
    }

    .modal-card .side-overlay h5 {
      margin-bottom: 0.75rem;
      font-size: 1.2rem;
    }

    .modal-card .side-overlay p {
      color: rgba(241, 245, 249, 0.85);
      line-height: 1.8;
    }

    .modal-card .modal-form {
      flex: 1;
      padding: 2rem;
    }

    .modal-card .modal-form h4 {
      margin-bottom: 0.75rem;
    }

    .modal-card .modal-form .modal-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 1rem;
    }

    @media (max-width: 768px) {
      .modal-card .modal-body {
        flex-direction: column;
      }

      .modal-card .modal-side {
        width: 100%;
        min-height: 220px;
      }

      .modal-card .modal-form {
        padding: 1.5rem;
      }
    }

    .modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-card h3 {
      font-size: 1.75rem;
      margin-bottom: 1rem;
      letter-spacing: -0.03em;
    }

    .modal-card label {
      display: block;
      font-size: 0.85rem;
      margin-bottom: 0.35rem;
      color: #94a3b8;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .modal-card input,
    .modal-card textarea,
    .modal-card select {
      width: 100%;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #f8fafc;
      border-radius: 14px;
      padding: 1rem 1.1rem;
      margin-bottom: 1rem;
      font-size: 0.95rem;
    }

    .modal-card textarea {
      min-height: 140px;
      resize: vertical;
    }

    .modal-card .close-modal {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 50%;
      background: rgba(148, 163, 184, 0.12);
      color: #e2e8f0;
      font-size: 1.25rem;
      cursor: pointer;
      display: grid;
      align-items: center;
      justify-items: center;
      place-items: center;
    }

    .site-footer {
      background: #05070a;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding: 4rem 0;
      color: #e2e8f0;
    }

    .site-footer a {
      color: #94a3b8;
      -webkit-text-decoration: none;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .site-footer a:hover {
      color: #3b82f6;
    }
.page-heading { font-weight: 900; letter-spacing: -1px; }
.about-copy { line-height: 1.8; }
.values-section { background: rgba(0, 0, 0, 0.2); }
.value-title { font-size: 14px; }
.value-card.accent-border { border-bottom: 4px solid #f97316; border-bottom: 4px solid var(--secondary); }
.value-icon { background: #f97316; background: var(--secondary); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 300px; }
:focus-visible { outline: 3px solid #f97316; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Responsive : aucun élément ne doit créer de défilement horizontal sur mobile */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

@media (max-width: 767px) {
    .breadcrumbs .d-flex { flex-wrap: wrap; gap: 0.5rem; }
    .breadcrumbs h2 { font-size: 24px; }
    .intro-wrapper { flex-direction: column; align-items: flex-start; gap: 24px; padding-left: 20px; }
    .intro-title-box h3 { font-size: 34px; }
    .intro-stats { flex-wrap: wrap; gap: 24px; }
}

/* =====================================================================
   EN-TÊTE ET PIED DE PAGE COMMUNS (partials/header.html, partials/footer.html)
   CSS volontairement simple (sans variables) pour les anciens navigateurs.
   ===================================================================== */
.ie-banner {
    display: none;
    position: relative;
    z-index: 10001;
    padding: 10px 16px;
    background: #f97316;
    color: #fff;
    font-size: 14px;
    text-align: center;
}
.ie-banner a { color: #fff; font-weight: 700; -webkit-text-decoration: underline; text-decoration: underline; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0b0f16;
    background: rgba(8, 12, 20, 0.88);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.25s ease, background 0.25s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}
.site-header.is-scrolled {
    background: rgba(8, 12, 20, 0.97);
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.55);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 16px;
}
.site-logo { display: block; line-height: 0; flex-shrink: 0; }
.site-logo img { display: block; width: auto; height: 36px; max-width: none; }

.site-nav { display: none; }
.site-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav__item { position: relative; margin: 0 18px; }

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-text-decoration: none;
    text-decoration: none;
    transition: color 0.25s ease;
}
.site-nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #f97316;
    background: linear-gradient(90deg, #3b82f6, #f97316);
    transition: width 0.3s ease, left 0.3s ease;
}
.site-nav-link:hover,
.site-nav-link:focus,
.site-dropdown:hover > .site-nav-link,
.site-nav-link.is-active { color: #f97316; }
.site-nav-link:hover::after,
.site-nav-link:focus::after,
.site-dropdown:hover > .site-nav-link::after,
.site-nav-link.is-active::after { left: 0; width: 100%; }
.site-nav-link.is-active::after { animation: navUnderline 0.7s ease-out both; }
@keyframes navUnderline { from { left: 50%; width: 0; } to { left: 0; width: 100%; } }

.site-dropdown__caret {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    transition: transform 0.25s ease;
}
.site-dropdown:hover .site-dropdown__caret,
.site-dropdown.is-open .site-dropdown__caret { transform: rotate(180deg); }

/* Le sous-menu commence juste sous le titre (padding au lieu de marge) :
   la souris ne quitte jamais la zone en descendant, le menu reste ouvert. */
.site-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 220px;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
    z-index: 1001;
}
.site-dropdown__menu::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: #111827;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    z-index: -1;
}
.site-dropdown:hover > .site-dropdown__menu,
.site-dropdown.is-open > .site-dropdown__menu { display: block; }
.site-dropdown:focus-within > .site-dropdown__menu { display: block; }
.site-dropdown__menu li:first-child a { margin-top: 8px; }
.site-dropdown__menu li:last-child a { margin-bottom: 8px; }
.site-dropdown__menu a {
    display: block;
    margin: 0 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    -webkit-text-decoration: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.site-dropdown__menu a:hover,
.site-dropdown__menu a:focus { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-dropdown__menu a.is-active { background: rgba(249, 115, 22, 0.14); color: #f97316; font-weight: 700; }

.site-header__actions { display: flex; align-items: center; }
.site-cta {
    display: none;
    margin-right: 12px;
    padding: 11px 24px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    -webkit-text-decoration: none;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    transition: background 0.25s ease;
}
.site-cta:hover, .site-cta:focus { background: #2563eb; color: #fff; }
.site-cta.is-active { background: #2563eb; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.55); }

.mobile-nav-toggle span + span { margin-top: 4px; }
.mobile-nav-panel { max-height: 75vh; overflow-y: auto; }
.mobile-nav-panel a.is-active { background: rgba(249, 115, 22, 0.14); color: #f97316; }
.mobile-nav-label {
    padding: 14px 14px 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
/* Sans JavaScript, le menu mobile est simplement affiché */
.no-js .mobile-nav-toggle { display: none; }
.no-js .mobile-nav-panel { display: block; max-height: none; }

@media (min-width: 640px) {
    .site-cta { display: inline-block; }
    .site-header__inner { padding: 14px 32px; }
    .site-logo img { height: 40px; }
}
@media (min-width: 1024px) {
    .site-nav { display: block; }
    .mobile-nav-toggle,
    .mobile-nav-panel,
    .no-js .mobile-nav-panel { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-nav__item { margin: 0 9px; }
    .site-nav-link { font-size: 12px; letter-spacing: 0.05em; }
    .site-cta { padding: 10px 16px; font-size: 10px; letter-spacing: 0.08em; }
    .header-tool { width: 36px; height: 36px; margin-right: 6px; }
}
.site-cta { white-space: nowrap; }

/* ---------- Pied de page ---------- */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 64px 0 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.site-footer__grid { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.site-footer__brand,
.site-footer__col { width: 100%; padding: 0 16px; margin-bottom: 40px; box-sizing: border-box; }
.site-footer__logo { display: inline-block; line-height: 0; margin-bottom: 20px; }
.site-footer__logo img { height: 48px; width: auto; }
.site-footer__text { max-width: 460px; margin: 0 0 20px; color: #cbd5e1; font-size: 15px; line-height: 1.7; }
.site-footer__contact,
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__contact li { margin-bottom: 8px; color: #cbd5e1; font-size: 14px; }
.site-footer__contact i { display: inline-block; width: 22px; color: #f97316; }
.site-footer__contact a,
.site-footer__links a { color: #cbd5e1; -webkit-text-decoration: none; text-decoration: none; transition: color 0.2s ease; }
.site-footer__contact a:hover,
.site-footer__links a:hover { color: #fff; }
.site-footer__social { margin-top: 22px; }
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 10px 10px 0;
    border-radius: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    color: #94a3b8;
    font-size: 18px;
    -webkit-text-decoration: none;
    text-decoration: none;
    /* Même animation que les réseaux de la page Contact : rebond, rotation, couleur du réseau */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-footer__social a:hover,
.site-footer__social a:focus { color: #fff; transform: scale(1.1) rotate(5deg); border-color: transparent; }
.site-footer__social .is-facebook:hover, .site-footer__social .is-facebook:focus { background: #1877f2; }
.site-footer__social .is-linkedin:hover, .site-footer__social .is-linkedin:focus { background: #0077b5; }
.site-footer__social .is-instagram:hover, .site-footer__social .is-instagram:focus { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.site-footer__social .is-youtube:hover, .site-footer__social .is-youtube:focus { background: #ff0000; }
.site-footer__social .is-whatsapp:hover, .site-footer__social .is-whatsapp:focus { background: #25d366; }
.site-footer__title {
    margin: 0 0 18px;
    color: #60a5fa;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-footer__links li { margin-bottom: 10px; font-size: 15px; }
.site-footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}
.site-footer__bottom p { margin: 0 0 6px; }
@media (min-width: 768px) {
    .site-footer__inner { padding: 0 32px; }
    .site-footer__brand { width: 50%; }
    .site-footer__col { width: 25%; }
    .site-footer__bottom { display: flex; justify-content: space-between; text-align: left; }
}

/* ---------- Bouton WhatsApp, identique sur toutes les pages ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 26px;
    -webkit-text-decoration: none;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
    .whatsapp-float { right: 30px; bottom: 30px; width: 60px; height: 60px; }
}

/* ---------- Boutons thème et langue (en-tête) ---------- */
.header-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    -webkit-text-decoration: none;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.header-tool:hover, .header-tool:focus { border-color: #f97316; color: #f97316; }
.header-tool i { font-size: 16px; line-height: 1; }
.theme-toggle__dark { display: none; }
html[data-theme="light"] .theme-toggle__light { display: none; }
html[data-theme="light"] .theme-toggle__dark { display: inline; }
.no-js .theme-toggle { display: none; }

/* ---------- Écran de chargement : noyau d'énergie (une seule fois par visite) ---------- */
.preloader {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #070b12;
    background: radial-gradient(circle at 50% 42%, #132033 0%, #0a0f18 45%, #05080d 100%);
    transition: opacity 0.6s ease 0.15s, visibility 0.6s ease 0.15s;
    /* Sécurité : disparaît seul au bout de 4 s même si le script ne s'exécute pas */
    animation: preloaderAutoHide 0.5s ease 4s forwards;
}
.preloader::before {
    content: "";
    position: absolute;
    top: -50%; right: -50%; bottom: -50%; left: -50%;
    background-image: linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    animation: preloaderGrid 6s linear infinite;
}
.preloader__inner { position: relative; text-align: center; transition: transform 0.6s cubic-bezier(0.6, -0.2, 0.7, 0.2), opacity 0.5s ease; }
.preloader__core { position: relative; width: 150px; height: 150px; margin: 0 auto 26px; }
.preloader__ring { position: absolute; border-radius: 50%; border: 3px solid transparent; }
.preloader__ring--1 { top: 0; right: 0; bottom: 0; left: 0; border-top-color: #f97316; border-right-color: rgba(249, 115, 22, 0.35); box-shadow: 0 0 22px rgba(249, 115, 22, 0.25); animation: preloaderSpin 1.6s linear infinite; }
.preloader__ring--2 { top: 18px; right: 18px; bottom: 18px; left: 18px; border-bottom-color: #3b82f6; border-left-color: rgba(59, 130, 246, 0.35); animation: preloaderSpin 1.1s linear infinite reverse; }
.preloader__ring--3 { top: 36px; right: 36px; bottom: 36px; left: 36px; border-top-color: rgba(255, 255, 255, 0.85); animation: preloaderSpin 2.2s linear infinite; }
.preloader__orbit { position: absolute; top: -8px; right: -8px; bottom: -8px; left: -8px; animation: preloaderSpin 3s linear infinite reverse; }
.preloader__orbit span { position: absolute; top: 0; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 12px 3px rgba(251, 191, 36, 0.7); }
.preloader__bolt { position: absolute; top: 50%; left: 50%; width: 30px; height: 42px; margin: -21px 0 0 -15px; overflow: visible; }
.preloader__bolt path { fill: rgba(249, 115, 22, 0); stroke: #f97316; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: preloaderBolt 1.8s ease-in-out infinite; }
.preloader__word { margin: 0; padding-left: 0.32em; font-family: 'Montserrat', Arial, sans-serif; font-size: 34px; font-weight: 900; letter-spacing: 0.32em; line-height: 1; }
.preloader__word span {
    display: inline-block;
    color: #ffffff;
    opacity: 0;
    background: linear-gradient(110deg, #ffffff 40%, #fdba74 50%, #ffffff 60%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: preloaderLetter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards, preloaderShine 2.4s linear 0.9s infinite;
}
.preloader__word span:nth-child(2) { animation-delay: 0.08s, 0.9s; }
.preloader__word span:nth-child(3) { animation-delay: 0.16s, 0.9s; }
.preloader__word span:nth-child(4) { animation-delay: 0.24s, 0.9s; }
.preloader__word span:nth-child(5) { animation-delay: 0.32s, 0.9s; color: #f97316; background-image: linear-gradient(110deg, #f97316 40%, #fde68a 50%, #f97316 60%); }
.preloader__text { margin: 14px 0 18px; color: #94a3b8; font-family: 'Montserrat', Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0; animation: preloaderFade 0.6s ease 0.45s forwards; }
.preloader__bar { position: relative; width: 180px; height: 3px; margin: 0 auto; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.preloader__bar span { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #f97316); animation: preloaderBar 1.1s ease-in-out infinite; }
html.is-loaded .preloader__inner { opacity: 0; transform: scale(1.35); }
html.is-loaded .preloader,
html.skip-preloader .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
html.skip-preloader .preloader,
.no-js .preloader { display: none; }
@keyframes preloaderSpin { to { transform: rotate(360deg); } }
@keyframes preloaderBolt { 0% { stroke-dashoffset: 160; fill: rgba(249, 115, 22, 0); } 45% { stroke-dashoffset: 0; fill: rgba(249, 115, 22, 0); } 60%, 80% { stroke-dashoffset: 0; fill: rgba(249, 115, 22, 1); } 100% { stroke-dashoffset: 0; fill: rgba(249, 115, 22, 0); } }
@keyframes preloaderLetter { from { opacity: 0; transform: translateY(18px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes preloaderShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes preloaderFade { to { opacity: 1; } }
@keyframes preloaderGrid { from { transform: translateY(0); } to { transform: translateY(46px); } }
@keyframes preloaderBar { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes preloaderAutoHide { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
    .preloader::before, .preloader__ring, .preloader__orbit, .preloader__bar span, .preloader__word span { animation: none; opacity: 1; }
    .preloader__bolt path { animation: none; stroke-dashoffset: 0; fill: #f97316; }
    .preloader__text { animation: none; opacity: 1; }
}

/* Bouton de langue : drapeau + code */
.header-tool.lang-switch { width: auto; padding: 0 10px 0 8px; border-radius: 999px; gap: 6px; }
.lang-flag { display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .lang-flag { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2); }
.lang-code { font-size: 11px; font-weight: 800; }
@media (max-width: 380px) { .lang-code { display: none; } .header-tool.lang-switch { padding: 0 8px; } }

/* =====================================================================
   SCÈNES ANIMÉES EN FOND DE SECTION
   Les illustrations (assets/img/anim/*.svg) sont animées en SVG : elles
   tournent seules, sans JavaScript. build.py attribue automatiquement à
   chaque section de chaque page :
     bg-scene--<objet>  illustration principale (engrenages, camions...)
     bg-tile--<motif>   motif de surface (circuit, 0 et 1)
     bg-pos--a / b      côté de l'illustration, alterné d'une section à l'autre
   Les scènes restent derrière le texte (z-index -1 dans la section).
   ===================================================================== */
.bg-scene { position: relative; isolation: isolate; }
.bg-scene::before,
.bg-scene::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
}

/* ---------- Illustration principale : dans un coin ---------- */
.bg-scene::before {
    width: 340px;
    height: 280px;
    background-size: contain;
    background-position: center;
    opacity: 0.25;
}
.bg-pos--a::before { right: 2%; bottom: 24px; }
.bg-pos--b::before { left: 2%; top: 24px; }

.bg-scene--gears::before     { background-image: url("../img/anim/gears.svg"); }
.bg-scene--computer::before  { background-image: url("../img/anim/computer.svg"); }
.bg-scene--solar::before     { background-image: url("../img/anim/solar.svg"); }
.bg-scene--gps::before       { background-image: url("../img/anim/gps.svg"); }
.bg-scene--crane::before     { background-image: url("../img/anim/crane.svg"); }
.bg-scene--network::before   { background-image: url("../img/anim/network.svg"); }
.bg-scene--training::before  { background-image: url("../img/anim/training.svg"); }
.bg-scene--team::before      { background-image: url("../img/anim/team.svg"); }
.bg-scene--broadcast::before { background-image: url("../img/anim/broadcast.svg"); }
.bg-scene--contact::before   { background-image: url("../img/anim/contact.svg"); }

/* ---------- Scènes en bande sur toute la largeur (bas de section) ---------- */
.bg-scene--powerline::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    background-position: center bottom;
    background-size: auto 100%;
    background-repeat: repeat-x;
    opacity: 0.3;
}
.bg-scene--powerline::before { height: 170px; background-image: url("../img/anim/powerline.svg"); }

/* ---------- Motif de surface : toute la section ---------- */
.bg-tile--circuit::after,
.bg-tile--binary::after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.08;
    background-repeat: repeat;
}
.bg-tile--circuit::after { background-image: url("../img/anim/circuit.svg"); background-size: 420px 300px; }
.bg-tile--binary::after  { background-image: url("../img/anim/binary.svg"); background-size: 240px 320px; opacity: 0.07; }

/* Petits écrans : illustrations plus discrètes pour ne pas gêner la lecture */
@media (max-width: 767px) {
    .bg-scene::before { width: 200px; height: 165px; opacity: 0.18; }
    .bg-scene--powerline::before { height: 110px; }
    .bg-tile--circuit::after,
    .bg-tile--binary::after { opacity: 0.06; }
}

/* Visiteurs qui ont demandé moins d'animations : pas de scènes animées */
@media (prefers-reduced-motion: reduce) {
    .bg-scene::before,
    .bg-scene::after { display: none; }
}
