/* --- Scroll fluide pour les ancres --- */
html { scroll-behavior: smooth; }

/* --- Reset / base --- */
h1:focus { outline: none; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

/* --- Hero full screen --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}
.hero-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.hero-watermark img {
    width: min(100vw, 960px);
    opacity: 0.15;
}
.hero-header {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}
.hero-header .hero-logo { flex: 0 1 auto; min-width: 0; }
.hero-nav-menu { left: 0; right: 0; top: 100%; }
.hero-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #fff;
    text-decoration: none;
}
.hero-logo-img { height: 24px; width: auto; }
.hero-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
}
.hero-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.hero-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    background: rgba(40,44,36,0.97);
    padding: 1rem;
    gap: 0.5rem;
}
.hero-nav-menu.open { display: flex; }
.hero-nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}
.hero-nav-menu a:hover { background: rgba(255,255,255,0.08); }
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: rgba(40,44,36,0.6);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-nav:hover { background: rgba(40,44,36,0.85); }
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem 4rem;
}
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0 0 2rem;
    text-transform: uppercase;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: rgba(220,220,220,0.95);
    color: #282C24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}
.btn-cta:hover { background: #fff; transform: translateY(-1px); }

/* --- Section formules --- */
.section { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; box-sizing: border-box; }
.formules { padding-bottom: 6rem; }
.section-title { font-size: 1.75rem; margin: 0 0 0.5rem; color: #282C24; }
.section-intro { color: #555; margin: 0 0 2rem; }
.formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.formule-card {
    position: relative;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.formule-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #B2C4A1; }
.formule-reco { border-color: #B2C4A1; box-shadow: 0 4px 16px rgba(178,196,161,0.35); }
.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    background: #B2C4A1;
    color: #282C24;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}
.formule-card h3 { margin: 0 0 0.75rem; font-size: 1.25rem; color: #282C24; }
.formule-desc { color: #555; margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.formule-features { margin: 0 0 1rem; padding-left: 1.15rem; color: #555; font-size: 0.9rem; line-height: 1.6; }
.formule-features li { margin-bottom: 0.25rem; }
.formule-tarif { margin: 0 0 1.25rem; font-size: 1rem; color: #333; }
.formule-tarif strong { color: #B2C4A1; }
.btn-formule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    background: #282C24;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-formule:hover { background: #3a4036; }

/* --- Section contact --- */
.contact { background: #f8f6f3; padding-top: 2rem; }
.contact-form {
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row-full { grid-column: 1 / -1; }
.contact-form label { font-size: 0.9rem; font-weight: 500; color: #333; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 0.65rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #B2C4A1;
    box-shadow: 0 0 0 2px rgba(178,196,161,0.3);
}
.contact-form textarea {
    resize: vertical;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.btn-submit {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    background: #282C24;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #3a4036; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-status { margin: 0; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.95rem; }
.form-status-ok { background: #e6f4ea; color: #1e7e34; }
.form-status-error { background: #fde8e8; color: #c00; }

/* --- Options complémentaires (dans le bloc formules) --- */
.formules-options {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e6e3;
}
.formules-options-title { font-size: 1.2rem; margin: 0 0 0.35rem; color: #282C24; font-weight: 600; }
.formules-options-intro { color: #555; margin: 0 0 1.25rem; font-size: 0.95rem; line-height: 1.5; }
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.option-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8e6e3;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #444;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.option-chip:hover {
    border-color: #B2C4A1;
    box-shadow: 0 4px 16px rgba(178, 196, 161, 0.25);
}
.option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(178, 196, 161, 0.35);
    color: #5c6b4a;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 50%;
}
.option-icon i {
    line-height: 1;
}

/* --- Footer du site --- */
.site-footer {
    padding: 2rem 1.5rem;
    background: #282C24;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}
.site-footer-copy {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.site-footer-tagline {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}
.site-footer-social {
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}
.site-footer-social-text {
    flex: 0 0 auto;
}
.site-footer-social-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.site-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: #B2C4A1;
    text-decoration: none;
    font-size: 1.15rem;
    transition: color 0.2s, transform 0.2s;
}
.site-footer-icon:hover {
    color: #c8d4bc;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-header > a.btn-nav { display: none; }
    .hero-nav-toggle { display: flex; }
    .hero-header .hero-logo { flex: 0 0 auto; overflow: visible; }
    .hero-logo-img { height: 18px; max-width: 62vw; width: auto; object-fit: contain; object-position: left; }
}
@media (max-width: 560px) {
    .contact-form { grid-template-columns: 1fr; }
    .hero-header { padding: 1rem; }
    .btn-nav { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iT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YuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}
