/* Affichage mobile vertical pour les cartes favorites et historiques */
.saved-idea-card-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .saved-idea-card-mobile {
        padding: 10px 4vw 18px;
        gap: 12px;
        box-shadow: none;
    }
    .saved-idea-card-mobile .saved-idea-visual {
        width: 100%;
        margin-bottom: 8px;
        border-radius: 12px;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(240,242,245,0.6), rgba(224,229,236,0.6));
    }
    .saved-idea-card-mobile .saved-idea-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
        opacity: 0;
        transform: scale(1.02);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .saved-idea-card-mobile .saved-idea-image.loaded {
        opacity: 1;
        transform: scale(1);
    }
    .saved-idea-card-mobile .idea-image-attr {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin: 8px 0 12px;
    }
    .saved-idea-card-mobile .saved-idea-actions {
        gap: 8px;
        margin-top: 10px;
    }
    .saved-idea-card-mobile .btn {
        width: 100%;
        font-size: 1em;
        padding: 11px 0;
        border-radius: 10px;
        justify-content: center;
    }
}

.saved-idea-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.saved-idea-shop {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.saved-idea-shop-label {
    font-weight: 600;
}

.saved-idea-shop .shop-select {
    min-width: 190px;
    flex: 1 1 180px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 10px 44px 10px 16px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.saved-idea-shop .btn {
    flex: 1 1 auto;
}

@media (max-width: 600px) {
    .saved-idea-shop {
        flex-direction: column;
        align-items: stretch;
    }
    .saved-idea-shop .btn {
        width: 100%;
        /* Harmonisation avec la page principale */
        font-size: 0.98em;
        padding: 10px 12px;
        border-radius: 10px;
        min-height: 44px;
    }
    .saved-idea-shop .shop-select {
        width: 100%;
        /* Harmonisation avec la page principale */
        font-size: 0.96em;
        padding: 8px 32px 8px 12px;
        border-radius: 10px;
        height: 40px; /* Forcer une hauteur compacte proche de la page principale */
        line-height: 1.2;
    }
    .saved-idea-shop-label {
        /* Légère réduction pour s'aligner visuellement avec le label de la page principale */
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
}
#summary:empty {
    display: none !important;
}

.empty-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    gap: 18px;
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}
.empty-animated .empty-text {
    font-size: 1.08rem;
    color: var(--text-muted);
    text-align: center;
}
.giftbox-anim {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}
.giftbox-box {
    width: 64px;
    height: 36px;
    background: linear-gradient(135deg, #f7c873 60%, #f9e7b2 100%);
    border-radius: 0 0 12px 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 16px 0 rgba(30,143,110,0.10);
}
.giftbox-lid {
    width: 64px;
    height: 20px;
    background: linear-gradient(135deg, #f7c873 60%, #f9e7b2 100%);
    border-radius: 8px 8px 8px 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    animation: giftLid 2.2s infinite cubic-bezier(.4,0,.2,1);
    transform-origin: bottom center;
}
.giftbox-ribbon {
    width: 12px;
    height: 36px;
    background: #e85d04;
    border-radius: 6px;
    position: absolute;
    left: 26px;
    bottom: 0;
    z-index: 3;
}
@keyframes giftLid {
    0%, 90%, 100% { transform: rotate(-6deg); }
    10% { transform: rotate(-18deg); }
    20% { transform: rotate(-6deg); }
    30% { transform: rotate(-12deg); }
    40% { transform: rotate(-6deg); }
    50% { transform: rotate(-24deg); }
    60% { transform: rotate(-6deg); }
    70% { transform: rotate(-18deg); }
    80% { transform: rotate(-6deg); }
}
#summary:empty {
    display: none !important;
}
/* Masquer les pubs tant qu'elles ne sont pas chargées */
.ad-container {
    display: none !important;
}
/* Astérisque obligatoire */
.required-asterisk {
    color: #b42318;
    font-weight: bold;
    margin-left: 2px;
    font-size: 1.1em;
}

/* Espace entre résultats et formulaire */
#summary {
    margin-top: 0;
}
/* Améliorations mobile globales */
@media (max-width: 600px) {
    body {
        font-size: 1.04em;
        padding: 0;
    }
    .page {
        padding: 16px 4vw 118px;
        gap: 18px;
    }
    .site-header h1 {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }
    .hero-text h1 {
        font-size: 1.3rem;
    }
    .lead {
        font-size: 1em;
        margin-top: 6px;
    }
    .form-card {
        padding: 10px 4vw 18px;
        gap: 12px;
        box-shadow: none;
    }
    .field label {
        font-size: 1em;
        margin-bottom: 2px;
    }
    .field input,
    .field select,
    .field textarea {
        font-size: 1em;
        padding: 11px 10px;
        border-radius: 10px;
    }
    .dropdown-btn {
        font-size: 1em;
        padding: 11px 10px;
        border-radius: 10px;
    }
    .dropdown-list {
        font-size: 1em;
        border-radius: 10px;
        max-height: 180px;
    }
    .dropdown-list label {
        padding: 7px 10px;
        font-size: 1em;
    }
    .actions {
        flex-direction: column;
        gap: 8px;
    }
    .btn {
        width: 100%;
        font-size: 1em;
        padding: 11px 0;
        border-radius: 10px;
        justify-content: center;
    }
    .idea-selector {
        padding: 20px 16px;
        gap: 16px;
    }
    .idea-card {
        padding: 14px 16px;
        border-radius: 16px;
        gap: 14px;
    }
    .idea-detail-header h2 {
        font-size: 1.2rem;
        margin: 12px 0 4px;
    }
}
/* Dropdown multisélection moderne */
.dropdown-multiselect {
    position: relative;
    margin-bottom: 12px;
}
.dropdown-multiselect label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.dropdown-btn:after {
    content: "▼";
    font-size: 1.1em;
    color: var(--text-muted);
    margin-left: 8px;
}
.dropdown-btn[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    z-index: 1000;
    padding: 10px 0;
    animation: fadeIn 0.25s;
    max-height: 320px;
    overflow-y: auto;
}
.dropdown-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s;
}
.dropdown-list label:hover {
    background: var(--primary-soft);
}
.dropdown-list input[type="checkbox"] {
    accent-color: var(--primary);
    width: 22px;
    height: 22px;
    margin-right: 6px;
}
@media (max-width: 600px) {
    .dropdown-list {
        max-height: 220px;
        font-size: 0.98em;
    }
    .dropdown-btn {
        font-size: 0.98em;
        padding: 12px 12px;
    }
}
.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 12px auto 0;
    padding: 8px 16px;
    background: var(--bg-soft);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 12px;
    z-index: 950;
    transform: translateY(0);
    transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, box-shadow 0.3s ease;
}
.site-nav__link {
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 18px;
    transition: background var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-nav__link::before {
    content: attr(data-icon);
    font-size: 1rem;
    line-height: 1;
}
.site-nav__link:hover { color: var(--text); background: var(--bg-muted); }
.site-nav__link--active { color: var(--text); background: var(--primary-soft); box-shadow: var(--shadow-sm); }

.site-nav--collapsed {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 601px) {
    .site-nav--collapsed {
        transform: translateY(calc(-100% - 24px));
    }
}

@media (max-width: 600px) {
    .site-nav--collapsed {
        transform: translateY(calc(100% + 32px));
    }
}

.site-nav-toggle {
    position: fixed;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: var(--text-invert);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(15, 47, 34, 0.24);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1), box-shadow 0.32s ease, background 0.32s ease, color 0.32s ease;
}

.site-nav-toggle::before {
    content: "\2212";
    font-size: 1.45rem;
    line-height: 1;
    transform: translateY(-1px);
}

.site-nav-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 38px rgba(15, 47, 34, 0.28);
}

.site-nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 143, 110, 0.35);
}

.site-nav-toggle[aria-expanded="false"] {
    background: rgba(30, 143, 110, 0.12);
    color: var(--primary);
    box-shadow: 0 12px 26px rgba(15, 47, 34, 0.16);
}

.site-nav-toggle[aria-expanded="false"]::before {
    content: "\2630";
    font-size: 1.35rem;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .site-nav-toggle {
        bottom: calc(18px + 72px);
        right: 26px;
    }
}

@media (min-width: 601px) {
    .site-nav-toggle {
        top: 15px;
        right: 84px;
    }
}

html[data-theme="dark"] .site-nav-toggle {
    background: rgba(99, 210, 161, 0.9);
    color: #06281b;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .site-nav-toggle[aria-expanded="false"] {
    background: rgba(99, 210, 161, 0.16);
    color: rgba(205, 241, 227, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.site-footer {
    width: 100%;
    margin-top: auto;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 47, 34, 0.06);
}

.site-footer__content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 32px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.site-footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.site-footer__links a:hover {
    color: var(--text);
}

.site-footer__contact a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.site-footer__contact a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* Loader animé central */
.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px;
    min-height: 220px;
}

#summary.loader-full {
    padding: 0;
    overflow: hidden;
}

#summary.loader-full .loader-container {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: inherit;
    align-items: stretch;
}

.loader-card {
    position: relative;
    width: min(420px, 100%);
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.32));
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
    padding: 32px 28px;
    box-shadow: 0 28px 60px rgba(15, 47, 34, 0.16);
    overflow: hidden;
}

#summary.loader-full .loader-card {
    width: 100%;
    margin: 0;
    min-height: 100%;
    border-radius: inherit;
}

@media (max-width: 768px) {
    #summary.loader-full {
        margin-left: -22px;
        margin-right: -22px;
        width: calc(100% + 44px);
        border-radius: 0;
    }

    #summary.loader-full .loader-card {
        border-radius: 0;
    }
}

.loader-card::before,
.loader-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(30,143,110,0.42), transparent 72%);
    filter: blur(0.5px);
    opacity: 0.6;
    animation: loaderGlow 6s ease-in-out infinite;
}

.loader-card::before { width: 160px; height: 160px; top: -60px; right: -40px; animation-delay: -1.8s; }
.loader-card::after { width: 200px; height: 200px; bottom: -80px; left: -60px; }

.loader-gift {
    position: relative;
    width: 84px;
    height: 82px;
    margin: 0 auto 18px;
}

.loader-gift-box,
.loader-gift-lid {
    position: absolute;
    left: 0;
    width: 84px;
    border-radius: 16px;
}

.loader-gift-box {
    bottom: 0;
    height: 54px;
    background: linear-gradient(145deg, #f7c873 45%, #f9e7b2 100%);
    box-shadow: 0 18px 34px rgba(232, 93, 4, 0.24);
}

.loader-gift-lid {
    top: 0;
    height: 28px;
    background: linear-gradient(135deg, #ffa94d 20%, #ff7a45 100%);
    transform-origin: center bottom;
    animation: loaderGiftLid 2.6s cubic-bezier(.42,0,.25,1) infinite;
}

.loader-gift-ribbon {
    position: absolute;
    top: 0;
    left: 40px;
    width: 8px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e85d04, #f48c06);
    box-shadow: 0 0 12px rgba(232, 93, 4, 0.35);
}

.loader-gift-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loader-gift-stars span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #fef9c3;
    opacity: 0;
    animation: loaderSparkle 2.4s ease-in-out infinite;
}

.loader-gift-stars span:nth-child(1) { top: -12px; left: 12px; animation-delay: 0s; }
.loader-gift-stars span:nth-child(2) { top: -18px; right: 20px; animation-delay: .6s; }
.loader-gift-stars span:nth-child(3) { bottom: 4px; right: -6px; animation-delay: 1.2s; }

.loader-title {
    text-align: center;
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.loader-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.loader-progress {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.loader-progress-bar {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(120deg, rgba(30,143,110,0.95), rgba(30,143,110,0.55));
    animation: loaderProgress 2.35s cubic-bezier(.45,0,.25,1) infinite;
}

@keyframes loaderProgress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(-10%); }
    100% { transform: translateX(100%); }
}

@keyframes loaderGiftLid {
    0%, 20%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-16deg) translateY(-2px); }
    14% { transform: rotate(6deg); }
    18% { transform: rotate(-6deg); }
}

@keyframes loaderSparkle {
    0%, 100% { opacity: 0; transform: scale(0.6) translateY(0); }
    40% { opacity: 1; transform: scale(1) translateY(-6px); }
    70% { opacity: 0; transform: scale(0.4) translateY(-12px); }
}

@keyframes loaderGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.12); }
}

html[data-theme="dark"] .loader-card {
    background: linear-gradient(145deg, rgba(18, 26, 24, 0.92), rgba(18, 26, 24, 0.72));
    border: 1px solid rgba(99, 210, 161, 0.18);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .loader-card::before,
html[data-theme="dark"] .loader-card::after {
    background: radial-gradient(circle at center, rgba(99, 210, 161, 0.32), transparent 72%);
}

html[data-theme="dark"] .loader-gift-box {
    background: linear-gradient(145deg, rgba(99, 210, 161, 0.85) 45%, rgba(137, 231, 187, 0.85) 100%);
    box-shadow: 0 18px 34px rgba(9, 28, 20, 0.35);
}

html[data-theme="dark"] .loader-gift-lid {
    background: linear-gradient(135deg, rgba(137, 231, 187, 0.95) 20%, rgba(99, 210, 161, 0.95) 100%);
}

html[data-theme="dark"] .loader-gift-ribbon {
    background: linear-gradient(180deg, #f48c06, #ffb347);
    box-shadow: 0 0 14px rgba(244, 140, 6, 0.38);
}

html[data-theme="dark"] .loader-gift-stars span {
    background: rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] .loader-progress {
    background: rgba(62, 87, 79, 0.55);
}

html[data-theme="dark"] .loader-progress-bar {
    background: linear-gradient(120deg, rgba(99, 210, 161, 0.95), rgba(137, 231, 187, 0.55));
}

/* Animations modernes et satisfaisantes */
.fade-in {
    animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(32px) scale(0.98); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.03); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .fade-in {
        animation: fadeInMobile 0.6s cubic-bezier(.4,0,.2,1);
    }
}

@keyframes fadeInMobile {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.pop {
    animation: pop 0.38s cubic-bezier(.4,0,.2,1);
}
@keyframes pop {
    0% { transform: scale(0.92); opacity: 0.7; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Pubs Google AdSense - centralisé */
.ad-banner, .ad-square-generation {
    margin: 18px 0 12px 0;
    text-align: center;
    animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
    transition: box-shadow 0.22s, transform 0.18s;
    box-shadow: 0 2px 16px 0 rgba(30,143,110,0.07);
    border-radius: 14px;
    background: var(--bg-soft);
}
.ad-banner-top { margin-bottom: 18px; }
.ad-banner-bottom { margin-top: 18px; }
.ad-square-generation { margin: 18px auto 12px auto; max-width: 350px; }
.ad-hide-until-loaded { display: none !important; }
@media (max-width: 600px) {
    .ad-banner, .ad-square-generation { margin: 10px 0; }
    .ad-banner-top, .ad-banner-bottom { margin: 10px 0; }
}

* { box-sizing: border-box; }

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 64px;
    gap: 32px;
}

.site-header { max-width: 900px; text-align: center; }
.site-header h1 { font-size: 1.75rem; margin: 0; font-family: 'Playfair Display', serif; }
.site-header h2 { font-size: 1rem; color: var(--text-muted); margin: 10px 0 0; }

.hero {
    width: 100%;
    max-width: 1050px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.hero-text { flex: 1; text-align: left; }
.hero-text h1 { font-size: 2.2rem; color: var(--text); margin: 0; }
.lead { margin-top: 10px; color: var(--text-muted); }

.hero-deco {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, var(--primary-soft), var(--primary));
    box-shadow: var(--shadow-md);
    transform: rotate(8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroBounce 3.6s ease-in-out infinite;
}

.hero-deco .logo-img {
    width: 78%;
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25));
    animation: logoHop 3.6s ease-in-out infinite;
}

@keyframes heroBounce {
    0%, 100% { transform: rotate(8deg) translateY(0) scale(1); }
    30% { transform: rotate(6deg) translateY(-8px) scale(1.04); }
    60% { transform: rotate(9deg) translateY(4px) scale(0.98); }
}

@keyframes logoHop {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-10px) scale(1.05); }
    55% { transform: translateY(3px) scale(0.98); }
}

.content {
        width: 100%;
        max-width: 1100px;
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 38px;
        align-items: flex-start;
    }

.form-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-column-gap: 24px;
    grid-row-gap: 26px;
}

.form-note-obligatoire {
    margin-top: 24px;
    font-size: 0.95rem;
    text-align: left;
}

@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }
    #summary {
        margin-top: 24px;
    }
}

.content.single-card {
    grid-template-columns: 1fr;
    max-width: 780px;
}

.card {
    padding: 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px) saturate(120%);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

 .form-card {
    padding: 30px clamp(20px, 3vw, 36px) 34px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(243,248,246,0.75));
    border: 1px solid rgba(213, 223, 218, 0.9);
    box-shadow: 0 35px 70px rgba(9, 28, 20, 0.22);
 }

 html[data-theme="dark"] .form-card {
    background: rgba(18, 24, 27, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 40px 80px rgba(8, 15, 23, 0.55);
 }
@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 30px;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 26px;
    }
}

 .form-intro {
    grid-column: 1 / -1;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(128, 220, 168, 0.25), rgba(226, 249, 241, 0.9));
    color: var(--text);
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(99, 210, 161, 0.4);
    box-shadow: 0 18px 40px rgba(15, 47, 34, 0.18);
 }

 html[data-theme="dark"] .form-intro {
    background: linear-gradient(120deg, rgba(58,181,138,0.18), rgba(23,66,55,0.3));
    border: 1px solid rgba(99,210,161,0.35);
    box-shadow: 0 20px 45px rgba(15, 47, 34, 0.35);
 }

.form-intro__badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.form-intro__text { display: flex; flex-direction: column; gap: 4px; }
.form-intro__title { margin: 0; font-size: 1.15rem; font-weight: 600; }
.form-intro__subtitle { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(15, 47, 34, 0.14);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    grid-column: 1 / -1;
    position: relative;
}

.field:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 210, 161, 0.45);
    box-shadow: 0 24px 52px rgba(15, 47, 34, 0.2);
}

.field.dropdown-open {
    z-index: 1200;
}

.field--half { grid-column: span 2; }
.field--wide { grid-column: 1 / -1; }
.field--stack { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.field-split__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field label { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.96rem;
    color: var(--text);
    background: var(--bg-soft);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.form-actions { grid-column: 1 / -1; }

.actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.actions .btn {
    flex: 1 1 320px;
    font-size: 1.02rem;
}
a.btn { text-decoration: none; }

@keyframes button-press {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(1px) scale(0.985); }
    100% { transform: translateY(0) scale(1); }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: var(--text-invert);
    box-shadow: 0 14px 30px rgba(30, 143, 110, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.35), transparent 60%);
    opacity: 0;
    transform: translateX(-120%) skewX(-16deg);
    transition: opacity 0.45s ease, transform 0.65s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 38px rgba(30, 143, 110, 0.22);
}

.btn:hover::before {
    opacity: 0.55;
    transform: translateX(120%) skewX(-16deg);
}

.btn:active {
    animation: button-press 320ms ease;
    box-shadow: 0 8px 22px rgba(30, 143, 110, 0.18);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(30,143,110,0.12), rgba(30,143,110,0.04));
    color: var(--primary);
    border: 1px solid rgba(30,143,110,0.25);
    box-shadow: 0 12px 26px rgba(30,143,110,0.12);
}

.btn-secondary:hover {
    box-shadow: 0 16px 32px rgba(30,143,110,0.16);
}

.btn-tertiary {
    background: rgba(30,143,110,0.08);
    color: var(--primary);
    border: 1px solid rgba(30,143,110,0.18);
    border-radius: 12px;
    padding: 12px 22px;
}

.btn-tertiary:hover {
    box-shadow: 0 14px 26px rgba(30,143,110,0.16);
}

.btn-brand {
    box-shadow: 0 16px 32px rgba(15, 47, 34, 0.18);
}

.btn-brand:hover {
    box-shadow: 0 22px 38px rgba(15, 47, 34, 0.22);
}

.btn-brand:active {
    animation: button-press 300ms ease;
}

.btn-brand-amazon {
    background: linear-gradient(135deg, #ffb347, #ff9900);
    color: #111317;
}

.btn-brand-fnac {
    background: linear-gradient(135deg, #ffda3d, #ffb400);
    color: #1d1200;
}

.btn-brand-cdiscount {
    background: linear-gradient(135deg, #ff6f00, #ff3b30);
    color: #ffffff;
}

.btn-brand-google {
    background: linear-gradient(135deg, #4285f4, #0b57d0);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(11, 87, 208, 0.26);
}

.btn-brand-neutral {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(100, 116, 139, 0.25));
    color: var(--text);
    box-shadow: 0 10px 22px rgba(15, 47, 34, 0.14);
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.btn-brand-neutral:disabled {
    opacity: 0.7;
    box-shadow: none;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(15, 47, 34, 0.18);
}

.btn-icon svg {
    width: 72%;
    height: 72%;
}

.btn-icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.btn-icon-amazon,
.btn-icon-fnac,
.btn-icon-cdiscount,
.btn-icon-google {
    background: #ffffff;
}

.btn-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

.idea-detail-search {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.idea-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.idea-detail-actions .btn {
    padding: 12px 18px;
}

.idea-detail-actions .btn-tertiary {
    background: rgba(30,143,110,0.08);
    color: var(--primary);
    border-radius: 12px;
    padding: 12px 18px;
}

.idea-detail-actions .btn-tertiary:hover {
    background: rgba(30,143,110,0.14);
}

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.favorite-toggle .favorite-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.idea-detail-search-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.shop-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 48px 12px 18px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
    background: var(--bg-soft) url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgMUw2IDdMMTEgMSIgIHN0cm9rZT0iIzc0Nzk4MSIgc3Rya2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==') no-repeat right 16px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.shop-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.idea-detail-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.idea-detail-search-note {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.92rem;
}

.btn.loading::before {
    opacity: 0;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: rgba(255,255,255,0.95);
    display: inline-block;
    opacity: 0;
    transform: scale(0.85);
}

.btn.loading .btn-spinner { opacity: 1; animation: spin 1s linear infinite; transform: scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }

.meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; }
.result-ideas { display: flex; flex-direction: column; gap: 14px; }
.idea { transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.idea:hover { transform: translateY(-2px); }

.idea-selector {
    position: relative;
    padding: 28px 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 28px 60px rgba(15, 47, 34, 0.14);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

#summary .idea-selector {
    margin: -22px;
    width: calc(100% + 44px);
    border-radius: inherit;
}

@media (max-width: 768px) {
    #summary .idea-selector {
        margin: -22px;
        width: calc(100% + 44px);
        border-radius: 0;
    }
}

.idea-selector::after {
    content: "";
    position: absolute;
    inset: -60px -40px auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at center, rgba(30,143,110,0.22), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    transform: translateY(-10px);
}

.idea-selector-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.idea-selector-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.idea-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.idea-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.idea-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 4px;
}

.idea-slide .idea-card {
    width: min(420px, 100%);
}

.idea-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.idea-slider-controls.is-disabled {
    display: none;
}

.idea-slider-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.idea-slider-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.idea-slider-btn svg {
    pointer-events: none;
}

.idea-slider-btn:hover {
    background: var(--primary-soft);
    color: var(--text-invert);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.idea-slider-btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.idea-slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 20px;
}

.idea-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.idea-slider-dot.is-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.idea-slider-dot:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.idea-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 240px;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    appearance: none;
    font: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.idea-card.fade-in {
    animation: fade-in-scale 0.5s cubic-bezier(.4,0,.2,1);
}

@keyframes fade-in-scale {
    0% { opacity: 0; transform: scale(0.96) translateY(14px); }
    60% { opacity: 1; transform: scale(1.02) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
    .idea-card.fade-in {
        animation: fade-in-mobile 0.5s cubic-bezier(.4,0,.2,1);
    }
}

@keyframes fade-in-mobile {
    0% { opacity: 0; transform: scale(0.98) translateY(14px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.idea-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 143, 110, 0.4);
}

.idea-card:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.idea-card.is-active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(30,143,110,0.12), rgba(30,143,110,0.05));
    box-shadow: 0 22px 44px rgba(30, 143, 110, 0.16);
}

.idea-card-indicator {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    margin-bottom: 20px;
}

.idea-card-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.idea-card:hover .idea-card-indicator { transform: translateY(-2px); }

.idea-card.is-active .idea-card-indicator {
    border-color: rgba(30, 143, 110, 0.6);
    background: rgba(30, 143, 110, 0.08);
}

.idea-card.is-active .idea-card-indicator-dot {
    background: var(--primary);
    transform: scale(1.2);
}

.idea-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.idea-card-suptitle {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.idea-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.42;
}

.idea-card-description {
    font-size: 0.94rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.45;
}

.idea-card-cta {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--transition-fast), color var(--transition-fast);
    margin-top: 22px;
}

.idea-card-cta::after {
    content: "\203A";
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.idea-card:hover .idea-card-cta::after,
.idea-card.is-active .idea-card-cta::after {
    transform: translateX(6px);
}

html[data-theme="dark"] .idea-selector {
    background: linear-gradient(135deg, rgba(20, 30, 28, 0.92), rgba(20, 30, 28, 0.62));
    border-color: rgba(99, 210, 161, 0.2);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .idea-selector::after {
    background: radial-gradient(circle at center, rgba(99, 210, 161, 0.18), transparent 72%);
    opacity: 0.45;
}

html[data-theme="dark"] .idea-slider-btn {
    background: rgba(18, 26, 24, 0.85);
    border-color: rgba(62, 87, 79, 0.9);
    color: var(--text);
}

html[data-theme="dark"] .idea-slider-btn:hover {
    background: rgba(99, 210, 161, 0.18);
    color: var(--text);
    border-color: var(--primary);
}

html[data-theme="dark"] .idea-slider-dot {
    background: rgba(62, 87, 79, 0.55);
    border-color: rgba(62, 87, 79, 0.85);
}

html[data-theme="dark"] .idea-slider-dot.is-active {
    background: var(--primary);
    border-color: var(--primary);
}

html[data-theme="dark"] .idea-card {
    background: rgba(18, 26, 24, 0.85);
    border-color: rgba(62, 87, 79, 0.8);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .idea-card:hover {
    border-color: rgba(99, 210, 161, 0.35);
}

html[data-theme="dark"] .idea-card.is-active {
    background: linear-gradient(135deg, rgba(99, 210, 161, 0.22), rgba(18, 119, 94, 0.14));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .idea-card-indicator {
    border-color: rgba(62, 87, 79, 0.9);
}

html[data-theme="dark"] .idea-card-indicator-dot {
    background: rgba(99, 210, 161, 0.45);
}

html[data-theme="dark"] .idea-card.is-active .idea-card-indicator-dot {
    background: var(--primary);
}

html[data-theme="dark"] .idea-card-cta {
    color: var(--primary-soft);
}

@media (max-width: 768px) {
    .idea-selector {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .idea-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .idea-slider::-webkit-scrollbar {
        display: none;
    }

    .idea-slider-track {
        gap: 0;
        width: auto;
    }

    .idea-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 12px 0;
        scroll-snap-align: center;
    }

    .idea-slide .idea-card {
        width: 88%;
        max-width: 380px;
        margin: 0 auto;
        padding: 18px;
        min-height: 0;
    }

    .idea-card-title {
        font-size: 1.08rem;
    }

    .idea-card-description {
        font-size: 0.9rem;
    }

    .idea-card-cta {
        font-size: 1.06rem;
    }

    .idea-slider-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .idea-slider-nav {
        width: 100%;
        justify-content: space-between;
    }

    .idea-slider-dots {
        order: -1;
    }
}

@media (max-width: 560px) {
    .idea-selector {
        padding: 20px 14px;
        gap: 18px;
    }

    .idea-selector-header h3 {
        font-size: 1.35rem;
    }

    .idea-selector-header p {
        font-size: 0.88rem;
    }

    .idea-slider {
        margin: 0;
    }

    .idea-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px 0;
    }

    .idea-slide .idea-card {
        width: 90%;
        max-width: 340px;
        margin: 0 auto;
        padding: 16px;
        border-radius: 16px;
    }

    .idea-card-indicator {
        width: 34px;
        height: 34px;
        margin-bottom: 14px;
    }

    .idea-card-suptitle {
        font-size: 0.72rem;
    }

    .idea-card-title {
        font-size: 1rem;
    }

    .idea-card-description {
        font-size: 0.85rem;
    }

    .idea-card-cta {
        font-size: 1.02rem;
        margin-top: 16px;
    }

    .idea-slider-btn {
        width: 40px;
        height: 40px;
    }

    .idea-slider-dots {
        gap: 8px;
    }
}

.idea-detail { animation: fadeIn 0.45s ease; display: flex; flex-direction: column; gap: 10px; }

.idea-detail-header h2 {
    font-size: 2rem;
    margin: 18px 0 6px;
    color: var(--text);
}

.idea-detail-visual {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240,242,245,0.6), rgba(224,229,236,0.6));
    max-height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.idea-detail-visual img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.idea-detail-visual img.loaded {
    opacity: 1;
    transform: scale(1);
}

.idea-image-attr {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
}

.idea-image-attr a {
    color: inherit;
    text-decoration: underline;
}

.saved-idea-visual {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240,242,245,0.6), rgba(224,229,236,0.6));
    margin-bottom: 8px;
}

.saved-idea-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.saved-idea-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.muted-note { color: var(--text-muted); font-size: 0.9rem; }
.muted { color: var(--text-muted); }
.error { color: #b42318; background: rgba(180,35,24,0.08); border: 1px solid rgba(180,35,24,0.28); padding: 12px; border-radius: var(--radius-md); }

.theme-toggle { position: fixed; top: 12px; right: 12px; z-index: 1000; }
.theme-toggle-btn { padding: 8px 11px; font-size: 1.1rem; }

label[for] { font-weight: 600; }

@media (max-width: 980px) {
    .content { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; }
    .hero-text { text-align: center; }
    .hero-deco { display: none; }
}

@media (max-width: 600px) {
    .form-card { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; gap: 22px; }
    .field,
    .field--half,
    .field--wide { grid-column: 1 / -1; }
    .field--stack { grid-template-columns: 1fr; }
    .form-intro { flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
    .actions { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
    .actions .btn { width: auto; min-width: 0; flex: 1 1 0; padding: 10px 0; font-size: 0.95rem; }
    .idea-detail-search { flex-direction: column; gap: 12px; }
    .idea-detail-search-control { width: 100%; }
    .idea-detail-search-actions { width: 100%; }
    .idea-detail-search-actions .btn { flex: 1 1 100%; width: 100%; }
    .site-nav {
        position: fixed;
        inset: auto 16px 18px;
        width: calc(100% - 32px);
        padding: 10px 14px;
        gap: 8px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: 0 18px 38px rgba(15, 47, 34, 0.16);
        flex-wrap: nowrap;
        justify-content: space-between;
        backdrop-filter: blur(18px);
        margin: 0 auto;
    }
    .site-nav__link {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 6px 4px;
        border-radius: 16px;
        font-size: 0.72rem;
        font-weight: 600;
        gap: 4px;
        color: var(--text-muted);
    }
    .site-nav__link::before {
        content: attr(data-icon);
        font-size: 1.2rem;
        line-height: 1;
    }
    .site-nav__link--active {
        color: var(--text);
        background: rgba(30, 143, 110, 0.12);
        box-shadow: 0 10px 20px rgba(30, 143, 110, 0.15);
        transform: translateY(-4px);
    }
    .site-nav__link:hover {
        background: rgba(30, 143, 110, 0.14);
        color: var(--text);
    }
    html[data-theme="dark"] .site-nav {
        background: rgba(18, 26, 24, 0.9);
        border-color: rgba(62, 87, 79, 0.55);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    }
    html[data-theme="dark"] .site-nav__link {
        color: rgba(226, 233, 229, 0.82);
    }
    html[data-theme="dark"] .site-nav__link--active {
        background: rgba(99, 210, 161, 0.18);
        color: var(--text);
        box-shadow: 0 12px 26px rgba(99, 210, 161, 0.24);
    }
}

@media (max-width: 600px) {
    .idea-detail-visual {
        max-height: 240px;
    }
    .idea-detail-visual img {
        max-height: 240px;
    }
    .saved-idea-image {
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}


