:root {
    --primary-color: #2352a4;
    --secondary-color: #009FE3;
    --thirdary-color: #00FFDA;
}
@font-face {
    font-family: "Jura";
    font-display: swap;
    src: url('/fonts/jura/jura-Regular.woff') format('woff'),
         url('/fonts/jura/Jura-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "VDSYSFont";
    src: url('/fonts/ethnocentric/ethnocentric.otf') format('opentype');
    font-display: swap;
    font-weight: 400; 
    font-style: normal;
}
.loading-overlay {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    background-color: white;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ----------- MESSAGE ----------- */
.loading-message {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}
.vdsys-loader {
    font-family: "VDSYSFont", sans-serif;
    display: flex;
    gap: 12px;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--primary-color);
}

.vdsys-loader span {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.5s ease forwards infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

h1:focus {
    outline: none;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Jura", sans-serif;
    max-width: 100%;
}
.layout-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-root main {
    flex: 1;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6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OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox .form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ================= TOPBAR + HEADER ================= */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: white;
    color: var(--primary-color);
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

.topbar {
    background: #182a4e;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.topbar-item i {
    color: var(--thirdary-color);
    margin-right: 6px;
}

.topbar-links {
    display: flex;
    gap: 18px;
}

.topbar-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar-links a:hover {
    color: var(--thirdary-color);
}

.topbar-links i {
    margin-right: 5px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.header-container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    padding: 8px 16px;
    background-color: var(--primary-color) !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-header {
    background-color: var(--primary-color);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.logo-header {
    width: 210px;
    max-width: 100%;
    transition: transform 0.25s ease;
}

.logo-header:hover {
    transform: scale(1.03);
}

.navbar-brand {
    font-weight: 600;
    white-space: normal;
}

.site-header .draws {
    opacity: 0.9;
}

.nav-link {
    color: white;
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--thirdary-color);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: white;
    font-weight: 700;
}

.logout-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
}

.cart-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    margin-left: 8px;
    padding: 0.4rem 1rem !important;
    position: relative;
}

.cart-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cart-nav::after {
    display: none;
}

.cart-nav i {
    font-size: 1.1rem;
}
.draws-bloc{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.draw-bloc{
    display: flex;
    margin: auto;
    flex-direction: column;
    align-items: center;
}
.draw-bloc img{
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}
.fade-in.delay-0 {
    animation-delay: 0s;
}
.fade-in.delay-1 {
    animation-delay: 1s;
}
.fade-in.delay-2 {
    animation-delay: 2s;
}

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

.row{
    align-items: baseline;
}
.badge-notif {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-size: 0.75rem;
    font-weight: bold;
}
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* ou remplace par un ratio adapté à ton coffret */
    max-width: 500px;
    margin: auto;
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: white;
}

/* ================= FOOTER ================= */
.site-footer {
    margin-top: 2rem;
    background: #f6f8fb;
    border-top: 3px solid var(--primary-color);
    font-size: 0.92rem;
    color: #444;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    padding: 32px 20px 20px;
}

.footer-col h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-col address {
    font-style: normal;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col i {
    color: var(--primary-color);
    width: 18px;
}

.footer-about p {
    margin: 12px 0;
}

.footer-logo {
    width: 150px;
}

.footer-linkedin i {
    color: #0077b5;
    transition: color 0.3s;
    width: auto;
}

.footer-linkedin:hover i {
    color: #005582;
}

.footer-certifs .certif-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.footer-certifs .certif-banner img {
    height: 62px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.footer-certifs .certif-banner a:hover img {
    transform: scale(1.08);
}

.footer-certif-text {
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom {
    border-top: 1px solid rgba(35, 82, 164, 0.15);
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: #777;
}
.clickable-card:hover {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}
.card-img-top:hover {
    margin: 10px 0 10px 0;
    transform: scale(1.3);
    transition: all 0.2s ease-in-out;
}
.nomenclature {
    white-space: pre-line;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
}
.solar-map-bloc{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.solar-map{
    width: 100%;
}
.fa-question-circle {
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
}

/* ================= PAGE D'ACCUEIL ================= */
.home-hero {
    padding: 3.5rem 1rem 2rem;
    background: linear-gradient(180deg, rgba(35, 82, 164, 0.06), transparent);
}

.home-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--primary-color);
    max-width: 900px;
    margin: 0 auto 1rem;
}

.hero-highlight {
    color: var(--secondary-color);
}

.home-hero .lead {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(35, 82, 164, 0.25);
    border-radius: 30px;
    padding: 7px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    margin: 2.5rem 0 0.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #555;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 1rem;
}

.home-product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgba(35, 82, 164, 0.15);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(35, 82, 164, 0.18);
}

.home-product-img {
    background: #f6f8fb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 190px;
    padding: 14px;
}

.home-product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.home-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    text-align: center;
}

.home-product-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.home-product-body p {
    font-size: 0.9rem;
    color: #555;
}

.home-product-price {
    margin-top: auto;
    color: var(--primary-color) !important;
    font-size: 1rem !important;
}

.home-product-body .btn {
    margin-top: 8px;
}

.home-steps {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0 2.5rem;
    margin-top: 2.5rem;
}

.home-steps .section-title {
    color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.step-number {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-why {
    padding-bottom: 2.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.why-card {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(35, 82, 164, 0.15);
    border-radius: 16px;
    background: white;
}

.why-card i {
    font-size: 1.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.why-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

.home-contact-banner {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f6f8fb;
    border: 1px solid rgba(35, 82, 164, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
}

.home-contact-banner p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.home-contact-banner .btn {
    margin-left: 8px;
}

/* ================= CHIFFRES CLÉS ================= */
.home-stats {
    background: #f6f8fb;
    border-top: 1px solid rgba(35, 82, 164, 0.12);
    border-bottom: 1px solid rgba(35, 82, 164, 0.12);
    padding: 28px 0;
    margin-top: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-item span {
    color: #555;
    font-size: 0.95rem;
}

/* ================= FAQ ================= */
.home-faq {
    max-width: 860px;
    padding-bottom: 2.5rem;
}

.faq-list {
    margin-top: 1.2rem;
}

.faq-item {
    border: 1px solid rgba(35, 82, 164, 0.15);
    border-radius: 12px;
    margin-bottom: 10px;
    background: white;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    position: relative;
    padding-right: 42px;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--secondary-color);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    background: #f6f8fb;
}

.faq-item[open] summary {
    background: #f6f8fb;
    border-bottom: 1px solid rgba(35, 82, 164, 0.12);
}

.faq-item p {
    padding: 14px 18px;
    margin: 0;
    color: #555;
    line-height: 1.65;
}

/* ================= POLISH GLOBAL ================= */
.btn {
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary:hover {
    background-color: #1b4183;
    border-color: #1b4183;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(35, 82, 164, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.breadcrumb a {
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .home-contact-banner {
        flex-direction: column;
        text-align: center;
    }

    .home-contact-banner .btn {
        margin: 4px;
    }
}

/* ================= PANIER ================= */
.basket-total-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f6f8fb;
    border: 1px solid rgba(35, 82, 164, 0.2);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 8px;
}

.basket-total-banner span {
    display: block;
    font-size: 0.9rem;
    color: #555;
}

.basket-total-banner strong {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.basket-reassurance {
    color: #26b050;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.basket-item-price {
    margin: 6px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.basket-item-price small {
    font-weight: normal;
    color: #777;
}

.basket-item-subtotal {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.basket-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.basket-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.basket-empty i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.basket-empty h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.basket-empty p {
    color: #555;
    max-width: 480px;
    margin: 0.5rem auto 1.5rem;
}

.basket-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ================= 404 / ERREUR ================= */
.notfound-bloc {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.notfound-bloc h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.notfound-bloc h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.notfound-bloc p {
    color: #555;
}

.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.notfound-contact {
    font-size: 0.95rem;
}