/* Variables et fond de page définis dans common/style.css */

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.sf-header {
    background: rgba(248, 238, 219, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(126, 35, 24, 0.15);
    box-shadow: 0 6px 18px rgba(26, 18, 14, 0.06);
}

.navbar {
    padding: 0.8rem 0;
}

.navbar-toggler {
    border-color: rgba(126, 35, 24, 0.35);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28126,35,24,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sf-logo {
    font-family: 'Rye', serif;
    font-size: 1.9rem;
    color: #fff;
    background: linear-gradient(180deg, #b13d2d 0%, #8f2d21 100%);
    border: 2px solid #742215;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 18px rgba(86, 30, 18, 0.15);
}

.sf-logo:hover,
.sf-logo:focus {
    color: #fff;
}

.navbar-nav {
    gap: 0.4rem;
}

.navbar .nav-link {
    color: var(--sf-ink);
    font-weight: 600;
    padding: 0.7rem 1rem;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--sf-red-dark);
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.3rem;
    height: 3px;
    border-radius: 999px;
    background: var(--sf-red);
}

.sf-btn {
    border-radius: 14px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sf-btn:hover {
    transform: translateY(-2px);
}

.sf-btn-lg {
    padding: 1rem 1.45rem;
}

.sf-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--sf-red-soft) 0%, var(--sf-red) 100%);
    box-shadow: 0 10px 22px rgba(160, 50, 35, 0.25);
}

.sf-btn-primary:hover,
.sf-btn-primary:focus {
    color: #fff;
    background: linear-gradient(180deg, #b74131 0%, #8d2a1e 100%);
}

.sf-btn-secondary {
    color: #fff;
    background: linear-gradient(180deg, #244b6e 0%, var(--sf-blue) 100%);
    box-shadow: 0 10px 22px rgba(22, 51, 77, 0.22);
}

.sf-btn-secondary:hover,
.sf-btn-secondary:focus {
    color: #fff;
}

.sf-btn-light {
    background: #fffaf1;
    color: var(--sf-red-dark);
    border: 1px solid rgba(126, 35, 24, 0.18);
}

.sf-btn-light:hover,
.sf-btn-light:focus {
    color: var(--sf-red-dark);
}

.sf-hero-section {
    position: relative;
}

.sf-search-card,
.sf-step-card,
.sf-dual-card,
.sf-category-card,
.sf-listing-card,
.sf-final-cta-card {
    background: linear-gradient(180deg, rgba(255, 251, 241, 0.98) 0%, rgba(246, 235, 212, 0.98) 100%);
    border: 2px solid rgba(202, 168, 123, 0.7);
    box-shadow: var(--sf-shadow);
}

/* La hero card a ses propres styles (background = image vintage) */
.sf-hero-card {
    border: 2px solid rgba(202, 168, 123, 0.7);
    box-shadow: var(--sf-shadow);
}

.sf-hero-card {
    padding: 1.75rem 0 0 2.5rem;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.sf-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(215, 170, 87, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(22, 51, 77, 0.08), transparent 30%);
    pointer-events: none;
}

.sf-eyebrow,
.sf-section-kicker,
.sf-final-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--sf-red);
}

.sf-hero-title,
.sf-section-title,
.sf-final-cta-card h2,
.sf-dual-card h2,
.sf-step-card h3,
.sf-category-card h3,
.sf-listing-card h3,
.sf-footer h3,
.sf-footer-brand {
    font-family: 'Rye', serif;
}

.sf-hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    line-height: 1.1;
    margin: 0.4rem 0 0;
}

.sf-hero-title span {
    color: var(--sf-red);
}

.sf-hero-text {
    font-size: 1.08rem;
    color: var(--sf-muted);
    max-width: 40rem;
}

.sf-hero-features {
    margin-top: 1rem;
}

.sf-feature-mini {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    text-align: center;
    height: 100%;
}

.sf-feature-mini i {
    display: block;
    color: var(--sf-red);
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.sf-feature-mini span {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sf-ink);
}

.sf-hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.sf-hero-visual img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(48, 28, 21, 0.16));
}

/* Badges réassurance hero */
.sf-hero-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0 1.1rem;
}

.sf-hero-badges li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sf-ink);
}

.sf-hero-badges li i {
    color: var(--sf-red);
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Colonne texte sur fond image — léger backdrop pour assurer la lisibilité */
.sf-hero-text-col {
    position: relative;
    z-index: 1;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

/* Nom de marque hero */
.sf-hero-brand {
    font-family: 'Rye', serif;
    font-size: 2rem;
    color: var(--sf-red);
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.sf-search-card {
    border-radius: 24px;
    padding: 1.35rem;
}

.form-label {
    font-weight: 700;
    color: var(--sf-ink);
}

.form-control,
.form-select,
.input-group-text {
    min-height: 52px;
    border-radius: 14px;
    border-color: rgba(202, 168, 123, 0.8);
    background: rgba(255,255,255,0.86);
}

.input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    background: rgba(255,255,255,0.86);
}

.sf-section-title-wrap {
    max-width: 52rem;
    margin-inline: auto;
}

.sf-section-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.sf-step-card {
    border-radius: 24px;
    padding: 2rem 1.7rem 1.7rem;
    position: relative;
    overflow: visible; /* laisse le badge déborder */
    text-align: center;
}

/* Badge numéro centré, à cheval sur la bordure du haut */
.sf-step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sf-red-soft) 0%, var(--sf-red) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rye', serif;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(160, 50, 35, 0.25);
    z-index: 2;
}

/* Icône centrée, sans fond ni bordure */
.sf-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1rem;
}

.sf-step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.sf-step-card p {
    margin-bottom: 0;
    color: var(--sf-muted);
}

.sf-dual-card {
    border-radius: 26px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.sf-dual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}

.sf-dual-card-red::before {
    background: radial-gradient(circle at left center, var(--sf-red) 0%, transparent 58%);
}

.sf-dual-card-blue::before {
    background: radial-gradient(circle at right center, var(--sf-blue) 0%, transparent 58%);
}

.sf-dual-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(202, 168, 123, 0.5);
}

.sf-dual-card h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.sf-dual-card p {
    color: var(--sf-muted);
    max-width: 32rem;
}

.sf-category-card {
    border-radius: 24px;
    text-align: center;
    padding: 1.5rem 1rem;
}

.sf-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--sf-red);
    margin-bottom: 0.75rem;
    /* pas de background ni de border — l'icône flotte sans carré */
}

.sf-category-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
}

.sf-category-card p {
    color: var(--sf-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.sf-listing-card {
    border-radius: 24px;
    padding: 1.4rem;
    position: relative;
}

.sf-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.sf-badge-blue { background: #3266a8; }
.sf-badge-green { background: #4c8b42; }
.sf-badge-purple { background: #7c55ad; }

.sf-listing-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    margin-bottom: 1rem;
}

.sf-listing-text {
    flex: 1;
    min-width: 0;
}

.sf-listing-cta {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(202, 168, 123, 0.4);
}

.sf-listing-thumb {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex: 0 0 88px;
    border: 3px solid rgba(202, 168, 123, 0.55);
    box-shadow: 0 8px 16px rgba(40, 28, 22, 0.08);
}


.sf-listing-thumb-icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
    mix-blend-mode: multiply;
}

.sf-listing-thumb-icon-bi {
    font-size: 2.2rem;
    color: var(--sf-red);
    flex-shrink: 0;
}

.sf-pin-icon {
    color: var(--sf-muted);
    font-size: 0.85rem;
}

.sf-listing-cats {
    font-size: 0.85rem;
    color: var(--sf-muted);
}

.sf-listing-card {
    display: flex;
    flex-direction: column;
}

.sf-listing-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.sf-listing-card p {
    color: var(--sf-muted);
}

.sf-budget {
    font-weight: 800;
}

.sf-budget-blue { color: #3266a8; }
.sf-budget-green { color: #4c8b42; }
.sf-budget-purple { color: #7c55ad; }

.sf-btn-outline {
    border: 1px solid rgba(126, 35, 24, 0.28);
    color: var(--sf-red-dark);
    background: rgba(255,255,255,0.78);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
}

.sf-btn-outline:hover {
    background: #fff;
    color: var(--sf-red-dark);
}

.sf-link-more {
    color: var(--sf-red);
    font-weight: 800;
}

.sf-final-cta-card {
    border-radius: 30px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.sf-final-cta-card::before,
.sf-final-cta-card::after {
    content: "✦";
    position: absolute;
    top: 1.4rem;
    font-size: 1.5rem;
    color: rgba(215, 170, 87, 0.8);
}

.sf-final-cta-card::before {
    left: 1.25rem;
}

.sf-final-cta-card::after {
    right: 1.25rem;
}

.sf-final-cta-card h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    margin: 0.45rem 0 0.85rem;
}

.sf-final-cta-card p {
    font-size: 1.08rem;
    color: var(--sf-muted);
    max-width: 46rem;
    margin: 0 auto;
}

.sf-footer {
    background: linear-gradient(180deg, var(--sf-blue) 0%, var(--sf-blue-dark) 100%);
    color: rgba(255,255,255,0.92);
}

.sf-footer-brand {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.sf-footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sf-footer-text,
.sf-footer li,
.sf-footer a,
.sf-footer-bottom {
    color: rgba(255,255,255,0.82);
}

.sf-footer ul {
    display: grid;
    gap: 0.55rem;
}

.sf-footer a:hover {
    color: #fff;
}

.sf-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(202, 168, 123, 0.3);
    transition: background 0.2s;
}

.sf-socials a:hover {
    background: rgba(202, 168, 123, 0.25);
}

.sf-social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 991.98px) {
    .sf-logo {
        font-size: 1.55rem;
        padding: 0.5rem 1rem;
    }

    .sf-hero-card,
    .sf-search-card,
    .sf-dual-card,
    .sf-final-cta-card {
        padding: 1.4rem;
    }

    .navbar .nav-link.active::after,
    .navbar .nav-link:hover::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    /* Hero compact sur mobile */
    .sf-hero-card {
        padding: 1rem 0.75rem 0 1rem;
    }
    .sf-hero-brand { font-size: 1.25rem; }
    .sf-eyebrow { font-size: 0.72rem; }
    .sf-hero-title { font-size: 1.15rem; }
    .sf-hero-badges { display: none; } /* trop étroit — masqué */
    .sf-hero-visual img { max-height: 160px; }

    /* Dual cards côte à côte sur mobile : compact */
    .sf-dual-card { padding: 0.85rem 0.75rem; }
    .sf-dual-card h2 { font-size: 1rem; }
    .sf-dual-card p { display: none; } /* trop étroit — masqué */
    .sf-dual-card-img { display: none; } /* icône cachée sur mobile */
    .sf-dual-card .btn { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
}

@media (max-width: 575.98px) {
    .sf-section-title,
    .sf-final-cta-card h2 {
        font-size: 1.8rem;
    }

    .sf-listing-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* V2 - ajustements intégration */
.sf-category-card {
    color: var(--sf-ink);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sf-category-card:hover,
.sf-category-card:focus {
    color: var(--sf-ink);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(48, 28, 21, 0.14);
}

.sf-note-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255, 250, 241, 0.88);
    border: 1px dashed rgba(160, 50, 35, 0.35);
    border-radius: 18px;
    padding: 1rem 1.15rem;
    color: var(--sf-muted);
}

/* Navbar et body background désormais dans common/style.css — plus d'overrides nécessaires ici */

.sf-note-card i {
    color: var(--sf-red);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* ── Icônes PNG custom ───────────────────────────────────────────────────── */

/*
 * mix-blend-mode: multiply — fond blanc/crème du PNG se fond dans le fond de page
 * Les wrappers (.sf-step-icon, .sf-category-icon) n'ont AUCUN background
 * pour que la fusion s'opère directement contre la card.
 */
.sf-mini-icon-img,
.sf-step-icon-img,
.sf-dual-icon-img,
.sf-category-icon-img,
.sf-btn-icon,
.sf-title-sep {
    mix-blend-mode: multiply;
}

/* Petites icônes réassurance (hero features) */
.sf-mini-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.45rem;
}

/* Icônes étapes — flottantes, sans fond */
.sf-step-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

/* Icônes blocs CTA dual */
.sf-dual-icon-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

/* Icônes catégories */
.sf-category-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
}

/* Icônes boutons */
.sf-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

/* Layout dual card : 2/3 texte + 1/3 icône */
.sf-dual-card-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.sf-dual-card-text {
    flex: 2;
}

.sf-dual-card-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Séparateur décoratif sous les titres de section */
.sf-title-sep {
    display: block;
    width: 220px;
    max-width: 80%;
    margin: 0.5rem auto 1.5rem;
    opacity: 0.85;
}

/* Emblème déco CTA final */
.sf-cta-deco {
    font-size: 2.5rem;
    color: var(--sf-gold);
    display: block;
    opacity: 0.85;
}

/* Brand texte footer */
.sf-footer-brand {
    font-family: 'Rye', serif;
    font-size: 1.6rem;
    color: var(--sf-gold);
    margin-bottom: 0.25rem;
}
