  /* Conteneur global centré */
  .zone-legende {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;
    gap: 25px; /* espacement entre les items */
    margin-top: 12px;
    flex-wrap: wrap; /* passe sur plusieurs lignes si petit écran */
    font-family: Urbanist, Roboto, Arial, sans-serif;
    font-size: 14px;
  }

  /* Chaque item (pastille + texte) */
  .zone-legende-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Pastilles de couleur (zones) */
  .zone-couleur {
    display: inline-block;
    width: 18px;
    height: 12px;
    border: 1px solid transparent;
    border-radius: 3px;
  }
  .zone-couleur.fragile {
    background-color: rgba(192, 57, 43, 0.25);
    border-color: #c0392b;
  }
  .zone-couleur.correct {
    background-color: rgba(243, 156, 18, 0.25);
    border-color: #f39c12;
  }
  .zone-couleur.bon {
    background-color: rgba(26, 188, 156, 0.25);
    border-color: #1abc9c;
  }

  /* Texte coloré pour cohérence */
  .zone-texte {
    font-weight: 500;
  }
  .fragile + .zone-texte { color: #c0392b; }
  .correct + .zone-texte { color: #f39c12; }
  .bon + .zone-texte { color: #1abc9c; }
  .note-globale-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
  }
  .note-dark-green  { background: #1abc9c;  color: #1abc9c; }
  .note-light-green { background: #2ecc71;  color: #2ecc71; }
  .note-yellow      { background: #f1c40f;  color: #f1c40f; }
  .note-orange      { background: #e67e22;  color: #e67e22; }
  .note-red         { background: #e74c3c;  color: #e74c3c; }

  .note-globale-score {
    line-height: 1;
    color: #fff
  }
html, body {
            height: 100%;
            margin: 0;
        }

        body {
            font-family: Urbanist, Roboto, Arial, sans-serif;
            color: #f9fafb;
        }

        /* ---------- WRAPPER PLEIN ÉCRAN AVEC IMAGE + OVERLAY ---------- */

        .orama-fullscreen {
            position: relative;
            min-height: 100vh;
            width: 100%;
            overflow: hidden;
        }

        .orama-fullscreen::before {
            content: "";
            position: fixed;
            inset: 0;
            background-image: url("../img/image.jpg"); /* ton image pleine page */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: -2;
        }

        .orama-fullscreen::after {
            content: "";
            position: fixed;
            inset: 0;
            background-color: rgba(44, 62, 80, 0.80); /* #2c3e50 avec transparence */
            z-index: -1;
        }
        .orama-div{
          background-color: #2c3e50; /* #2c3e50 avec transparence */
        }

        /* ---------- HEADER TRANSPARENT ---------- */

        .orama-header {
            background: transparent;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10;
        }

        .orama-header .navbar-brand span {
            color: #ecf0f1;
        }

        .orama-header .nav-link,
        .orama-header .btn-outline-light {
            color: rgba(255, 255, 255, 0.6);
          	font-size:14px;
          	font-weight:600;
          	border:0px;
        }
		.orama-header .nav-link,
        .orama-header .btn-outline-light .active {
          color:#fff;
		}
        .btn-outline-light:hover {
            color: rgba(255, 255, 255, 0.40);
          	background-color:transparent;
          	border:0px;
        }
        .orama-header .nav-link:hover {
            color: #ffffff;
        }
		.dropdown-item{
        	color: rgba(0, 0, 0, 0.7) !important;
          	padding: 6px 20px !important;
          	width: 200px !important;
		}
		.dropdown-menu{
          position: absolute !important;
          padding: 20px 0 !important;
          z-index: 9999 !important;
          width: 240px !important;
          background: #fff !important;
          border-top: 3px solid #2ea3f2 !important;
          border-radius:0px !important;
		}
		.orama-center-wrapper {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5rem 1rem 2rem;
            position: relative;
            z-index: 1;
        }

        .orama-main-title {
            color: #ffffff;
            text-align: center;
            font-size: 3rem;
          	line-height: 3rem;
            font-weight: 100;
            margin-bottom: 0.5rem; /* plus compact avec le sous-titre */
            text-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
        }

       .orama-main-subtitle {
            color: #ffffff; /* meilleur contraste */
            text-align: center;
            font-size: clamp(1rem, 2vw, 1.35rem); /* plus grand et responsive */
            font-weight: 400;
            line-height: 1.6;
            max-width: 850px;
            margin: 0 auto 2.2rem;
            text-shadow: 0 6px 30px rgba(0, 0, 0, 0.60);
        }

        .orama-search-card {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            color: #f9fafb;
            max-width: 540px;
            width: 100%;
            margin: 0 auto;
          	border-radius:3px;
        }
        .orama-footer {
            background: #1f2a36;           /* légèrement plus clair que #2c3e50 */
            border-top: 1px solid rgba(236, 240, 241, 0.1);
            color: #ecf0f1;
            font-size: 0.9rem;
            position: relative;
            z-index: 999;
        }

        .orama-footer .footer-heart {
            color: #e74c3c;               /* joli rouge cœur */
            font-size: 1rem;
            vertical-align: middle;
        }

        .orama-footer a {
            color: #1abc9c;
            text-decoration: none;
        }

        .orama-footer a:hover {
            text-decoration: underline;
            color: #16a085;
        }

        .orama-logo {
            max-height: 40px;
            object-fit: contain;
        }

        .footer-orama-block {
            display: inline-block;
            text-align: right;
        }
        /* --- Bannière --- */
        .commune-banner {
            min-height: 250px;
            padding: 40px 10px;
            background-image: url("../img/fond.jpg");
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .commune-banner::after {
            content: "";
            position: absolute;
            inset: 0;
            background-color: rgba(44, 62, 80, 0.80); /* #2c3e50 avec transparence */
            z-index: 0;
        }

        .commune-title {
            font-size: 2.8rem;
            font-weight: 100;
            text-shadow: 0 0 10px rgba(0,0,0,0.6);
            z-index: 1;
        }
        /* --- Vignettes --- */
        .vignette-item {
            border-radius: 10px;
            display: flex;
            justify-content: center;
            vertical-align: middle;
            width: auto;
            z-index: 1;
        }

        /* Couleurs Oui / Non */
        .v-green {
            background-color: #1abc9c !important;
            color: white !important;
        }

        .v-grey {
            background-color: #6c757d !important;
            color: white !important;
        }

        /* Texte vignette */
        .vignette-label {
            font-size: 0.8rem;
            font-weight: 600;
            /*text-transform: capitalize;*/
            margin-left: 5px;
        }
        .card{
          background: rgba(255,255,255);
          border-radius: 1rem;
          box-shadow: 0 18px 45px rgba(255,255,255, 0.55);
          backdrop-filter: blur(8px);
          height: 100%;
        }
        .kpi{
          text-align: center;
          margin: auto;
        }
        .kpi h2{
            text-transform: initial;
        }
        h2{
          color: #1abc9c;
          text-transform:uppercase;
          font-weight: 600;
        }
        .graph h2{
            border-bottom: 2px solid #1abc9c;
            padding-bottom: 10px;
            text-transform: uppercase;
            font-weight: 400;
            font-size: 1.5rem;
            text-align: center;
        }
        .explication h4{
            font-size: 1.35rem;
            text-transform: initial;
            font-weight: 400;
            letter-spacing: 0px;
            margin-bottom: 10px;
        }
        .headline{
            background-color: #f5f5f5;
            padding: 5px;
            border-radius: 0.5rem;
            line-height: 25px;
            vertical-align: middle;
            font-weight: 600;
        }
        .headline img{
            height: 25px;
            margin-top: -5px;
            padding-right: 5px;
        }
        .titre-header {
            position: relative;
            text-align: center;
            margin-bottom: 10px;
        }

        .info-btn {
            background: #fff;
            border: 1px solid #6c757d;
            color: #6c757d;
            font-size: 0.9rem;
            padding: 4px 10px;
            border-radius: .5rem;
            transition: 0.25s;
            position: absolute;
            right: 0;
            font-weight: 600;
        }

        .info-btn:hover {
            color: #1abc9c;
            border-color: #1abc9c;
            transform: scale(1.1);
        }

        .info-btn:active {
            transform: scale(0.95);
            color: white;
        }
        h4{
          font-size: .78rem;
          text-transform: uppercase;
          color: #6c757d;
          margin-top: .25rem;
        }
        .fw-bold{
          font-size: .78rem;
          text-transform: uppercase;
          letter-spacing: .06em;
          color: #6c757d;
          margin-top: .25rem;
        }

        .orama-search-card .form-control {
            background-color: rgba(15, 23, 42, 0.3);
            border-color: #4b5563;
            color: #f9fafb;
        }
        .orama-search-card .form-control::placeholder{
            color:#cbd5f5;
        }

        .orama-search-card .form-control:focus {
            background-color: rgba(15, 23, 42, 0.95);
            border-color: #1abc9c;
            box-shadow: 0 0 0 0.15rem rgba(26, 188, 156, 0.35);
            color: #ffffff;
        }

        .orama-search-card small,
        .orama-search-card label {
            color: #cbd5f5;
        }

        .orama-form-icon {
            position: relative;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background-color: #1abc9c;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem;
        }
        .orama-form-icon.pulse-icon::after {
            content: "";
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 3px solid rgba(26, 188, 156, 0.7);
            opacity: 0;
            animation: pulse-icon-ring 2s infinite ease-out;
        }

        @keyframes pulse-icon-ring {
            0% {
                transform: scale(0.7);
                opacity: 0.9;
            }
            70% {
                transform: scale(1.4);
                opacity: 0;
            }
            100% {
                transform: scale(0.7);
                opacity: 0;
            }
        }

        .orama-form-icon img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .orama-form-title {
            text-align: center;
            margin-bottom: 0.25rem;
        }

        .orama-form-title h2 {
            font-size: 1.75rem;
            font-weight: 700;
            margin: 0;
            text-transform: initial;
        }

        .orama-form-title small {
            display: block;
            color: #fff;
          	font-size: 16px;
          	font-family: 'Urbanist',Helvetica,Arial,Lucida,sans-serif;
          	font-weight: 500;
        }

        .btn-orama {
            background-color: transparent;
            border: 2px solid #fff;
          	border-radius: 3px;
            color: #fff;
            font-weight: 500;
            font-size: 20px;
          	font-family:"Open Sans", Arial, sans-serif;
            padding: 0.3em 1em;
            min-width: 180px;
        }
        .btn-orama:hover {
            background-color: hsla(0, 0%, 100%, .2);
            color: #fff;
          	border-radius: 0px;
          	border: 2px solid transparent;
        }
        .btn-orama:disabled {
            background-color: #6b7280;
            color: #e5e7eb;
        }

        /* ---------- AUTOCOMPLETE ---------- */

        .orama-search-input {
            position: relative;
        }

        #loader {
            position: absolute;
            right: .6rem;
            top: 70%;
            transform: translateY(-50%);
            font-size: .9rem;
            color: #9ca3af;
        }

        #suggestions {
            list-style: none;
            margin: .5rem 0 0 0;
            padding: 0;
            border-radius: .6rem;
            border: 1px solid #4b5563;
            background: rgba(15, 23, 42, 0.98);
            max-height: 220px;
            overflow-y: auto;
        }

        #suggestions.hidden {
            display: none;
        }

        #suggestions li {
            padding: .35rem .6rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: .9rem;
            color: #e5e7eb;
        }

        #suggestions li:nth-child(2n) {
            background: rgba(31, 41, 55, 0.9);
        }

        #suggestions li:hover {
            background: #1abc9c;
            color: #0f172a;
        }

        #suggestions li .insee {
            font-size: .8rem;
            opacity: .75;
        }

        #message {
            font-size: .8rem;
            margin-top: .3rem;
            color: #cbd5f5;
        }

        #message.error {
            color: #fca5a5;
        }

        /* ---------- PULSES FICTIFS ---------- */

        .orama-pulses-layer {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0; /* derrière le formulaire */
        }

        .hero-pulse-point {
            position: absolute;
            width: 16px;
            height: 16px;
            border-radius: 999px;
            background: #1abc9c;
            box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.7);
            animation: pulse-dot 2.2s infinite;
        }

        .hero-pulse-point::after {
            content: "";
            position: absolute;
            inset: -8px;
            border-radius: inherit;
            border: 2px solid rgba(26, 188, 156, 0.75);
            opacity: 0;
            animation: pulse-ring 2.2s infinite;
        }

        @keyframes pulse-dot {
            0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(26,188,156,0.7); }
            70%  { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(26,188,156,0); }
            100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(26,188,156,0); }
        }

        @keyframes pulse-ring {
            0%   { transform: scale(0.7); opacity: 0.9; }
            70%  { transform: scale(1.3); opacity: 0; }
            100% { transform: scale(0.7); opacity: 0; }
        }

        .hero-pulse-tooltip {
            position: absolute;
            left: 22px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(15, 23, 42, 0.45);
            color: #e5e7eb;
            padding: .35rem .6rem;
            border-radius: .6rem;
            font-size: .75rem;
            white-space: nowrap;
            box-shadow: 0 10px 20px rgba(15, 23, 42, 0.6);
        }

        .hero-pulse-tooltip strong {
            color: #1abc9c;
        }

        .hero-pulse-tooltip small {
            color: #9ca3af;
            margin-left: .3rem;
        }

        /* Pulses moitié basse et sur les côtés (pour éviter le formulaire centré) */
        .pulse-1  { top: 60%; left: 10%; }
        .pulse-2  { top: 68%; left: 6%; }
        .pulse-3  { top: 66%; left: 80%; }
        .pulse-4  { top: 85%; left: 78%; }
        .pulse-5  { top: 50%; left: 12%; }
        .pulse-6  { top: 75%; left: 15%; }
        .pulse-7  { top: 60%; left: 85%; }
        .pulse-8  { top: 50%; left: 75%; }
        .pulse-9  { top: 85%; left: 14%; }
        .pulse-10 { top: 77%; left: 84%; }


        /* Animation générique */
        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 currentColor;
            }
            70% {
                transform: scale(1.05);
                box-shadow: 0 0 20px 15px transparent;
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 transparent;
            }
        }
        /* Activation du pulse pour toutes les classes note */
        .note-dark-green{
            animation: pulse 2.3s infinite ease-out;
            color:#1abc9c;
        }
        .note-light-green{
            animation: pulse 2.3s infinite ease-out;
            color:#2ecc71;
        }
        .note-yellow{
            animation: pulse 2.3s infinite ease-out;
            color:#f1c40f;
        }
        .note-orange{
            animation: pulse 2.3s infinite ease-out;
            color:#f39c12;
        }
        .note-red {
            animation: pulse 2.3s infinite ease-out;
            color:#e74c3c;
        }

        /* ---------- OVERLAY LOADER GLOBAL ---------- */

        #global-loader {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.90);
            backdrop-filter: blur(4px);
            display: none; /* affiché via JS */
            align-items: center;
            justify-content: center;
            z-index: 9999;
            color: #f9fafb;
        }

        #global-loader.visible {
            display: flex;
        }

        .global-loader-box {
            text-align: center;
            max-width: 320px;
            padding: 1.5rem 2rem;
            border-radius: 1rem;
            background: rgba(15, 23, 42, 0.95);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
        }

        .global-loader-logo {
            width: 80px;
            height: auto;
            margin-bottom: 1rem;
        }

        /* Container du spinner (search au centre + anneau qui tourne) */

        .global-loader-spinner {
            position: relative;
            width: 90px;
            height: 90px;
            margin: 0 auto 1rem;
        }

        .global-loader-spinner-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 4px solid rgba(26, 188, 156, 0.25);
            border-top-color: #1abc9c; /* vert */
            animation: loader-spin 1.1s linear infinite;
        }

        .global-loader-search-icon {
            position: absolute;
            inset: 17px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .global-loader-search-icon img {
            width: 34px;
            height: 34px;
            object-fit: contain;
            filter: brightness(1.1);
        }

        @keyframes loader-spin {
            0%   { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .global-loader-text {
            font-size: 0.9rem;
            color: #e5e7eb;
        }
        .logoPrincipal{
            width: auto;
            transition: all 0.4s ease-in-out;
            margin-bottom: 0;
            max-height: 43.19px;
            display: inline-block;
            float: none;
            vertical-align: middle;
            -webkit-transform: translate3d(0, 0, 0);
        }
		.hc-chart { 
          height: 500px;
		}
		@media (max-width: 992px) {
            .nav-item.dropdown:hover .dropdown-menu {
                display: block;
            }
            .nav-item.dropdown .dropdown-menu {
                margin-top: 0;
            }
            .orama-pulses-layer {
                display: none;
            }
            .logoPrincipal{
                height: 26.39px;
            }
          	header.orama-header.navbar {
              background-color: #1f2a36 !important;
            }
            header.orama-header .container-fluid {
              background-color: #1f2a36 !important;
              width: 85%;
            }
            header.orama-header .navbar-collapse {
              background-color: #1f2a36 !important;
              margin-top: 5px;
            }
          	.navbar-toggler{
              border:0px;
          	}
          	.navbar-nav {
              padding: 1rem;
            }

            .nav-link {
              color: #fff;
            }
            .nav-link:hover {
              color: #adb5bd;
            }
          	
        }
        @media (max-width: 768px) {
          	.graph.p-4 {
              padding: .25rem !important;
            }
            .hero-pulse-tooltip {
              font-size: .65rem;
            }
            .logoPrincipal{
              height: 26.39px;
            }
            .commune-title {
                font-size: 2rem;
              	margin-top: 3rem;
            }
          	.vignette-label{
              	font-weight: 400;
          	}
          	.vignette-item{
              	padding: 5px !important;
          	}
          	.vignette-item img{
              	height: 20px !important;
          	}
          	.container .row h2{
          		font-size: 1.3rem !important;
              	text-align: center;
          	}
          	.graph h2{
          		font-size: 1.2rem !important;
              	line-height: 1.2rem !important;
          	}
          	.graph h2 img{
              	height:25px;
          	}
          	.explication h4{
              font-size: 1.1rem;
              line-height: 1.1rem !important;
          	}
          	.info-btn{
            	display: none;
          	}
            .footer-orama-block {
                text-align: center;
            }
            .orama-logo {
                display: block;
                margin-left: auto;
                margin-right: auto;
            }
          	.orama-main-title{
              display:none;
          	}
			.orama-main-subtitle{
              display:none;
          	}
          	.orama-fullscreen{
              min-height: 70vh;
          	}
          	.orama-center-wrapper{
              min-height: 70vh;
          	}
          	.zone-legende{
              display:block;
              font-size:12px;
          	}
          	.zone-legende-item{
              display:block;
              text-align:center;
          	}
        }
