/* === Annonce page === */

/* Reset common.css "section p, div { padding-left: 1em }" */
.fv5 div, .fv5 p { padding-left: 0; }

/* --- Hero image --- */
.ann-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--ex-shadow-md);
}
.ann-hero img {
    display: block;
    width: 100%;
}
.ann-type-float {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.92);
    color: var(--ex-green-800);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* --- Type badge inline (no image) --- */
.ann-type-inline {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--ex-green-100);
    color: var(--ex-green-800);
    margin-bottom: 0.5rem;
}

/* --- Header / title --- */
.ann-head {
    margin-bottom: 2rem;
}
.ann-head h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.6rem;
    color: var(--ex-stone-900);
}
.ann-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--ex-stone-600);
}
.ann-meta-org a {
    font-weight: 600;
}
.ann-meta-sep {
    display: none;
}
.ann-meta-dates {
    color: var(--ex-stone-500);
}

/* --- Description text --- */
.ann-desc {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--ex-stone-700);
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ann-desc p { margin: 0.6rem 0; }
.ann-desc h1, .ann-desc h2, .ann-desc h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ex-stone-800);
    margin: 1.2rem 0 0.4rem;
}
.ann-desc ul, .ann-desc ol { padding-left: 1.5rem; }
.ann-desc a { color: var(--ex-link); }

/* --- Map --- */
.ann-map {
    height: 240px;
    border-radius: 10px;
    margin-top: 0.75rem;
    border: 1px solid var(--ex-stone-200);
}

/* --- Sidebar address --- */
.ann-adresse {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ex-stone-700);
}

/* --- Sidebar org --- */
.ann-org-name {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    font-weight: 600;
}
.ann-org-name a {
    text-decoration: none;
}
.ann-org-name a:hover {
    text-decoration: underline;
}
.ann-org-link {
    font-size: 0.82rem;
    font-weight: 500;
}

/* === Layout B : Card unique centree === */

.ann-card-single {
    max-width: 52rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--ex-shadow-md);
    overflow: hidden;
}
.ann-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(135deg, var(--ex-green-50), var(--ex-stone-50));
    border-bottom: 1px solid var(--ex-stone-100);
}
.ann-card-dates {
    font-size: 0.82rem;
    color: var(--ex-stone-500);
    font-weight: 500;
}
.ann-card-single > h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
    padding: 1.4rem 1.8rem 0.4rem;
    color: var(--ex-stone-900);
}
.ann-card-single > .ann-card-org {
    padding: 0 1.8rem 1rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--ex-stone-600);
}
.ann-card-single > .ann-card-org a {
    font-weight: 600;
}
.ann-card-img {
    padding: 0 1.8rem;
    margin-bottom: 1.2rem;
}
.ann-card-img img {
    display: block;
    width: 100%;
    border-radius: 12px;
}
.ann-card-section {
    padding: 0.8rem 1.8rem 1rem;
}
.ann-card-section h2 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ex-stone-400);
    margin: 0 0 0.6rem;
}
.ann-card-organiser .ann-org-name {
    margin: 0 0 0.2rem;
}
.ann-map-inline {
    height: 220px;
    border-radius: 10px;
    margin-top: 0.75rem;
    border: 1px solid var(--ex-stone-200);
}
.ann-card-actions {
    display: flex;
    gap: 0.6rem;
    padding: 1rem 1.8rem 1.6rem;
    border-top: 1px solid var(--ex-stone-100);
    margin-top: 0.5rem;
}
.ann-card-actions .btn {
    flex: 1;
    text-align: center;
}

/* === Layout C : Split hero + sidebar === */

.ann-split-head {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.ann-split-img {
    flex-shrink: 0;
    width: 260px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ex-shadow-md);
}
.ann-split-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ann-split-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}
.ann-split-info .ann-type-inline {
    align-self: flex-start;
}
.ann-split-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0.4rem 0 0.6rem;
    color: var(--ex-stone-900);
}

/* --- Sidebar date --- */
.ann-date-main {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ex-stone-800);
    margin: 0 0 0.2rem;
}
.ann-date-time {
    font-size: 0.85rem;
    color: var(--ex-stone-600);
    margin: 0.15rem 0 0;
}
.ann-cal-wrap {
    margin-top: 0.75rem;
}
.ann-cal-wrap--inline {
    margin-top: 0;
    flex: 1;
}
.ann-cal-options {
    margin-top: 0.4rem;
    border: 1px solid var(--ex-stone-200, #e7e5e4);
    border-radius: 8px;
    overflow: hidden;
}
.ann-cal-opt {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ex-stone-700, #44403c);
    text-decoration: none;
    transition: background 0.12s;
}
.ann-cal-opt:hover {
    background: var(--ex-green-50, #fffbeb);
    color: var(--ex-green-800, #92400e);
}
.ann-cal-opt + .ann-cal-opt {
    border-top: 1px solid var(--ex-stone-100, #f5f5f4);
}

/* --- Annonces proches --- */
.ann-proches {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ex-stone-200);
}
.ann-proches h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ex-stone-800);
    margin: 0 0 1.2rem;
}
.ann-proches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.ann-proche-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ex-stone-200);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ann-proche-card:hover {
    border-color: var(--ex-green-300);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ann-proche-card, .ann-proche-card:hover {
    text-decoration: none;
}
.ann-proche-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.fv5 .ann-proche-body {
    padding: 1rem 1.1rem 1.1rem;
}
.fv5 .ann-proche-body p {
    padding-left: 0;
}
.ann-proche-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--ex-green-100);
    color: var(--ex-green-800);
    margin-bottom: 0.25rem;
}
.ann-proche-body h3 {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ex-stone-800);
    line-height: 1.35;
}
.ann-proche-orga {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    color: var(--ex-stone-500);
}
.ann-proche-dates {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    color: var(--ex-stone-400);
}
.ann-proche-ville {
    margin: 0;
    font-size: 0.75rem;
    color: var(--ex-stone-500);
}

/* --- Mobile --- */
@media (max-width: 968px) {
    .ann-hero img {
        max-height: none;
    }
    .ann-head h1 {
        font-size: 1.4rem;
    }
    .ann-map {
        height: 200px;
    }
    .ann-split-head {
        flex-direction: column;
        gap: 1rem;
    }
    .ann-split-img {
        width: 100%;
        height: 240px;
    }
    .ann-split-info {
        min-height: auto;
    }
    .ann-split-info h1 {
        font-size: 1.4rem;
    }
}
@media (max-width: 480px) {
    .ann-hero {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    .ann-hero img {
        max-height: none;
    }
    .ann-head h1 {
        font-size: 1.2rem;
    }
    .ann-head {
        margin-bottom: 1.25rem;
    }
    .ann-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 1rem 1.2rem;
    }
    .ann-card-single > h1 {
        font-size: 1.3rem;
        padding: 1rem 1.2rem 0.3rem;
    }
    .ann-card-single > .ann-card-org {
        padding: 0 1.2rem 0.8rem;
    }
    .ann-card-img {
        padding: 0 1.2rem;
    }
    .ann-card-section {
        padding: 0.6rem 1.2rem 0.8rem;
    }
    .ann-card-actions {
        flex-direction: column;
        padding: 0.8rem 1.2rem 1.2rem;
    }
    .ann-split-img {
        height: 180px;
        border-radius: 10px;
    }
}

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
    .ann-card-single {
        background: var(--ex-stone-50);
        box-shadow: none;
        border: 1px solid var(--ex-stone-200);
    }
    .ann-card-top {
        background: var(--ex-stone-100);
        border-color: var(--ex-stone-200);
    }
    .ann-type-float {
        background: rgba(30,30,30,0.88);
        color: var(--ex-green-300);
    }
    .ann-type-inline {
        background: var(--ex-stone-100);
        color: var(--ex-green-400);
    }
    .ann-card-actions {
        border-color: var(--ex-stone-200);
    }
    .ann-map, .ann-map-inline {
        border-color: var(--ex-stone-200);
    }
    .ann-proches {
        border-color: var(--ex-stone-200);
    }
    .ann-proche-card {
        background: var(--ex-stone-50);
        border-color: var(--ex-stone-200);
    }
    .ann-proche-card:hover {
        border-color: var(--ex-green-400);
    }
    .ann-proche-type {
        background: var(--ex-stone-100);
        color: var(--ex-green-400);
    }
}
