/* ============================================================
   SenCentrale — Shared Visual Enhancements
   Zero backdrop-filter · prefers-reduced-motion ready
   One HTTP request for all pages
   ============================================================ */

/* ── Fil d'ariane (back-office : tableaux de bord + admin) ───
   Généré par resources/views/components/breadcrumb.blade.php   */
.breadcrumb-nav {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6b7280;
}
.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: #c1c7cd;
}
.breadcrumb-item a {
    color: #117333;
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item span[aria-current="page"] {
    color: #374151;
    font-weight: 600;
}

/* ── Scroll-reveal (shared across all pages) ────────────────
   Usage: add class="reveal" [reveal-delay-N] to any element  */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Auth pages ─────────────────────────────────────────────
   Shared hero-gradient wrapper for login / register          */
.auth-page-wrap {
    /* --sc-header-height est défini en JS (layouts/app.blade.php) car le header est "sticky"
       et occupe donc un espace réel au-dessus : sans cette soustraction, cette carte forçait
       un scroll supplémentaire égal à la hauteur du header pour être visible. */
    min-height: calc(100vh - var(--sc-header-height, 0px));
    background: linear-gradient(160deg, #0a4a22 0%, #117333 55%, #1a9444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid pattern */
.auth-page-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Radial glow top-right */
.auth-page-wrap::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: authCardIn 0.45s ease both;
}

.auth-card--wide {
    max-width: 580px;
}

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

@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: none; }
}

.auth-card__header {
    background: linear-gradient(135deg, #117333, #1a9444);
    padding: 1.75rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.auth-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.auth-card__logo svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-card__title {
    font-size: 1.3125rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

.auth-card__body {
    padding: 1.75rem 2rem;
}

@media (max-width: 480px) {
    .auth-card__body { padding: 1.25rem 1.25rem; }
    .auth-card__header { padding: 1.25rem 1.25rem 1rem; }
}

/* Header réduit sur connexion/inscription : la recherche et les actions sont masquées
   (cf. layouts/app.blade.php), donc le logo n'a plus besoin de rester collé à gauche
   ni de laisser une pleine hauteur de header par défaut. */
.main-header--compact {
    padding: 0.25rem 1rem;
}
.main-header-content--centered {
    justify-content: center !important;
}

/* ── Register step indicator ────────────────────────────── */
.auth-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.auth-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.auth-step + .auth-step::before {
    content: '';
    position: absolute;
    left: calc(-50% + 14px);
    right: calc(50% + 14px);
    top: 13px;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.3s ease;
    z-index: 0;
}
.auth-step.done + .auth-step::before,
.auth-step.active + .auth-step::before {
    background: #117333;
}

.auth-step__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}

.auth-step.active .auth-step__dot {
    background: #117333;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(17,115,51,0.18);
}

.auth-step.done .auth-step__dot {
    background: #117333;
    color: #ffffff;
}

.auth-step__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}
.auth-step.active .auth-step__label { color: #117333; font-weight: 700; }
.auth-step.done  .auth-step__label  { color: #374151; }

@media (prefers-reduced-motion: reduce) {
    .auth-step__dot,
    .auth-step + .auth-step::before { transition: none; }
}

/* ── Password toggle SVG icon ───────────────────────────── */
.pw-toggle-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s;
    line-height: 0;
}
.pw-toggle-btn:hover { color: #117333; }
.pw-toggle-btn:focus { outline: 2px solid #117333; outline-offset: 2px; }
.pw-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Alert/flash banner ─────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.auth-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.auth-alert--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-alert--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.auth-alert--info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.auth-alert--warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ── About page brand alignment ────────────────────────── */
.about-hero {
    background: linear-gradient(145deg, #0a4a22 0%, #117333 55%, #1a9444 100%);
    padding: 3.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
}
.about-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0 0 0.6rem;
    position: relative;
}
.about-hero__sub {
    color: rgba(255,255,255,0.84);
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.65;
    position: relative;
}

/* ── Notifications page icons ───────────────────────────── */
.notif-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notif-icon-wrap--green  { background: #dcfce7; color: #15803d; }
.notif-icon-wrap--blue   { background: #dbeafe; color: #1d4ed8; }
.notif-icon-wrap--amber  { background: #fef3c7; color: #b45309; }
.notif-icon-wrap--red    { background: #fee2e2; color: #dc2626; }
.notif-icon-wrap--gray   { background: #f3f4f6; color: #6b7280; }

/* ── Date separator ────────────────────────────────────── */
.date-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.date-separator::before,
.date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Section title underline ────────────────────────────── */
.section-title-underline {
    display: inline-block;
    position: relative;
}
.section-title-underline::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    background: linear-gradient(90deg, #117333, #f1c249);
    border-radius: 999px;
    margin: 0.5rem auto 0;
}

/* ── Generic card hover lift ────────────────────────────── */
.card-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}
@media (prefers-reduced-motion: reduce) {
    .card-lift { transition: none; }
    .card-lift:hover { transform: none; }
}

/* ── Search results stagger ────────────────────────────── */
.search-stagger .property-card {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.4s ease both;
}
@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .search-stagger .property-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Assign each visible card a stagger delay via JS:
   card.style.animationDelay = (index * 0.06) + 's'          */

/* ── Category hero bands (search pages) ────────────────────
   .cat-hero--immobilier / --vehicules / --electromenager / --electronique  */
.cat-hero {
    position: relative;
    overflow: hidden;
    padding: 0.85rem 0;
    margin-bottom: 0.5rem;
}

/* Dot-grid overlay (shared) */
.cat-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Radial halo right */
.cat-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 65%);
    pointer-events: none;
}

.cat-hero--immobilier   { background: linear-gradient(140deg, #0a4a22 0%, #117333 60%, #1a9444 100%); }
.cat-hero--vehicules    { background: linear-gradient(140deg, #0f3d3e 0%, #0d7377 60%, #14b8a6 100%); }
.cat-hero--electromenager { background: linear-gradient(140deg, #78350f 0%, #b45309 60%, #d97706 100%); }
.cat-hero--electronique { background: linear-gradient(140deg, #1e1b4b 0%, #4338ca 60%, #6366f1 100%); }
.cat-hero--generic      { background: linear-gradient(140deg, #4a1d6e 0%, #7c3aed 60%, #a78bfa 100%); }

.cat-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cat-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-hero__icon svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-hero__text { flex: 1; }

.cat-hero__title {
    font-size: clamp(1.2rem, 3.5vw, 1.625rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.15);
    line-height: 1.2;
}

.cat-hero__sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.5;
}

.cat-hero__badge {
    flex-shrink: 0;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .cat-hero { padding: 0.65rem 0; }
    .cat-hero__badge { display: none; }
    .cat-hero__icon { width: 44px; height: 44px; border-radius: 12px; }
}

/* ── Footer ─────────────────────────────────────────────────
   Fond vert sombre + or comme couleur d'accent principale    */
.site-footer {
    background: #0c1f12;
    color: #d1d5db;
    margin-top: 4rem;
}

/* Barre marque */
.site-footer__brand {
    border-bottom: 1px solid rgba(241,194,73,0.18);
    padding: 1.75rem 0 1.5rem;
}

.site-footer__brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__logo {
    font-size: 1.4375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}

/* Trait or sous le logo */
.site-footer__logo::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: #f1c249;
    border-radius: 999px;
    margin-top: 0.4rem;
}

.site-footer__tagline {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.52);
    margin: 0.6rem 0 0;
}

.site-footer__email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border: 1px solid rgba(241,194,73,0.25);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.site-footer__email-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.site-footer__email-link:hover {
    color: #f1c249;
    border-color: rgba(241,194,73,0.55);
}

/* Grille de colonnes */
.site-footer__main {
    padding: 2.25rem 0 2rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

/* Titres de colonnes — or */
.site-footer__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f1c249;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(241,194,73,0.18);
}

/* Listes */
.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__list a {
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.site-footer__list a::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(241,194,73,0.4);
    flex-shrink: 0;
    transition: background 0.2s;
}
.site-footer__list a:hover {
    color: #f1c249;
}
.site-footer__list a:hover::before {
    background: #f1c249;
}

/* Colonne contact */
.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.58);
    margin-bottom: 0.6rem;
}
.site-footer__contact-item svg {
    width: 15px;
    height: 15px;
    stroke: #f1c249;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 2px;
}
.site-footer__contact-item a {
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer__contact-item a:hover { color: #f1c249; }

/* Barre du bas */
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.125rem 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}
.site-footer__bottom a {
    color: rgba(241,194,73,0.7);
    text-decoration: none;
}
.site-footer__bottom a:hover { color: #f1c249; }

@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .site-footer__brand-inner { flex-direction: column; align-items: flex-start; }
    .site-footer { margin-top: 2.5rem; }
}
@media (max-width: 400px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ── Ad slider frame ─────────────────────────────────────────
   Bordure or en haut, label épuré, indicateur clic vert      */
.ad-slider-container {
    border-top: 3px solid #f1c249 !important;
    border-radius: 0 0 12px 12px !important;
    background: #fafafa !important;
}

.ad-label-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.875rem;
}

.ad-label-wrap svg {
    width: 14px;
    height: 14px;
    stroke: #b45309;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ad-label-pill {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid rgba(245,158,11,0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

/* Indicateur clic — vert au lieu de bleu */
.ad-click-indicator {
    background: rgba(17,115,51,0.88) !important;
}

/* Dots actifs — or */
.ad-dot.active {
    background: #f1c249 !important;
    border-color: #f1c249 !important;
}
.ad-dot:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}
