/* ==========================================================================
   Annuaire Pro – CSS Principal
   ========================================================================== */

/* --- Variables ----------------------------------------------------------- */
:root {
    --c-primary-rgb:   37,99,235;
    --c-primary:       #2563eb;
    --c-primary-d:     #1d4ed8;
    --c-primary-l:     #eff6ff;
    --c-accent:        #f59e0b;
    --c-accent-d:      #d97706;
    --c-success-rgb:   16,185,129;
    --c-success:       #10b981;
    --c-danger-rgb:    239,68,68;
    --c-danger:        #ef4444;
    --c-warning-rgb:   245,158,11;
    --c-warning:       #f59e0b;
    --c-text:          #111827;
    --c-text-2:        #374151;
    --c-muted:         #6b7280;
    --c-border:        #e5e7eb;
    --c-bg:            #f9fafb;
    --c-card:          #ffffff;
    --c-header-h:      70px;
    --shadow-sm:       0 1px 3px rgba(0,0,0,.08);
    --shadow:          0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:       0 12px 40px rgba(0,0,0,.12);
    --shadow-xl:       0 24px 64px rgba(0,0,0,.14);
    --radius:          14px;
    --radius-sm:       8px;
    --radius-xs:       5px;
    --transition:      .2s cubic-bezier(.4,0,.2,1);
    --max-w:           1280px;
    --font:            -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Reset base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-d); }
ul  { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; line-height: 1.25; }
p   { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
button { cursor: pointer; border: none; background: none; }

/* --- Conteneur ----------------------------------------------------------- */
.apt-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.apt-header {
    position:   sticky;
    top:        0;
    z-index:    1000;
    background: var(--c-card);
    box-shadow: 0 1px 0 var(--c-border);
    height:     var(--c-header-h);
}

.apt-header__inner {
    display:     flex;
    align-items: center;
    gap:         2rem;
    height:      var(--c-header-h);
}

/* Logo */
.apt-header__brand { flex-shrink: 0; }
.apt-header__brand img,
.apt-header__brand svg { max-height: 40px; width: auto; }
.apt-header__logo-text {
    font-size:   1.4rem;
    font-weight: 800;
    color:       var(--c-primary);
    letter-spacing: -.02em;
}

/* Nav desktop */
.apt-nav-primary { flex: 1; }

.apt-nav__list {
    display:     flex;
    gap:         .25rem;
    align-items: center;
}

.apt-nav__list li a {
    display:       block;
    padding:       .45rem .85rem;
    font-size:     .9rem;
    font-weight:   500;
    color:         var(--c-text-2);
    border-radius: var(--radius-xs);
    transition:    background var(--transition), color var(--transition);
}

.apt-nav__list li a:hover,
.apt-nav__list li.current-menu-item > a {
    background: var(--c-primary-l);
    color:      var(--c-primary);
}

/* Actions header */
.apt-header__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Hamburger */
.apt-hamburger {
    display:    none;
    padding:    .4rem;
    color:      var(--c-text);
    border-radius: var(--radius-xs);
}

/* Menu mobile */
.apt-mobile-nav {
    display:    none;
    background: var(--c-card);
    border-top: 1px solid var(--c-border);
    padding:    1rem 0;
}

.apt-mobile-nav.is-open { display: block; }

.apt-mobile-nav__list { flex-direction: column; gap: 0; }
.apt-mobile-nav__list li a {
    display:     block;
    padding:     .75rem 1rem;
    font-size:   1rem;
    font-weight: 500;
    color:       var(--c-text);
    border-radius: var(--radius-xs);
}
.apt-mobile-nav__list li a:hover { background: var(--c-primary-l); color: var(--c-primary); }
.apt-mobile-nav__cta { display: block; margin: 1rem 1rem 0; text-align: center; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.apt-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             .4rem;
    padding:         .6rem 1.2rem;
    border-radius:   var(--radius-sm);
    font-size:       .9rem;
    font-weight:     600;
    text-decoration: none;
    transition:      all var(--transition);
    cursor:          pointer;
    border:          2px solid transparent;
    white-space:     nowrap;
    line-height:     1;
}

.apt-btn--lg  { padding: .8rem 1.75rem; font-size: 1rem; }
.apt-btn--sm  { padding: .4rem .9rem; font-size: .82rem; }
.apt-btn--full { width: 100%; justify-content: center; }

.apt-btn--primary        { background: var(--c-primary); color: #fff !important; border-color: var(--c-primary); }
.apt-btn--primary:hover  { background: var(--c-primary-d); border-color: var(--c-primary-d); }
.apt-btn--accent         { background: var(--c-accent); color: #fff !important; border-color: var(--c-accent); }
.apt-btn--accent:hover   { background: var(--c-accent-d); border-color: var(--c-accent-d); }
.apt-btn--outline        { background: transparent; color: var(--c-primary) !important; border-color: var(--c-primary); }
.apt-btn--outline:hover  { background: var(--c-primary-l); }
.apt-btn--outline-white  { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.apt-btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ==========================================================================
   HERO HOMEPAGE
   ========================================================================== */

.apt-hero {
    position:      relative;
    min-height:    560px;
    display:       flex;
    align-items:   center;
    padding:       5rem 0 4rem;
    overflow:      hidden;
}

.apt-hero__bg {
    position: absolute;
    inset:    0;
    z-index:  0;
}

.apt-hero__bg-img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.apt-hero__overlay {
    position:   absolute;
    inset:      0;
    background: var(--hero-overlay, linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(var(--c-primary-rgb),.55) 100%));
}

.apt-hero__content {
    position:   relative;
    z-index:    1;
    text-align: center;
    max-width:  820px;
    margin:     0 auto;
}

.apt-hero__title {
    font-size:   3.2rem;
    font-weight: 800;
    color:       #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}

.apt-hero__title--accent { color: var(--c-accent); }

.apt-hero__subtitle {
    font-size:     1.15rem;
    color:         rgba(255,255,255,.85);
    margin-bottom: 2.5rem;
}

/* Surcharge barre de recherche dans le hero */
.apt-hero .aep-search-wrapper {
    background:  rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    backdrop-filter: blur(16px);
}

.apt-hero .aep-sf__input,
.apt-hero .aep-sf__select {
    background: rgba(255,255,255,.9);
}

.apt-hero__stats {
    display:     flex;
    align-items: center;
    justify-content: center;
    gap:         2rem;
    margin-top:  2.5rem;
    flex-wrap:   wrap;
}

.apt-hero__stat {
    text-align:  center;
    color:       #fff;
}

.apt-hero__stat strong {
    display:     block;
    font-size:   2rem;
    font-weight: 800;
    line-height: 1;
}

.apt-hero__stat span {
    font-size: .85rem;
    opacity:   .8;
}

.apt-hero__stat-sep {
    width:      1px;
    height:     40px;
    background: rgba(255,255,255,.3);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.apt-section { padding: 4rem 0; }
.apt-section--alt { background: var(--c-bg); }

.apt-section__header {
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap:           1rem;
}

.apt-section__title {
    font-size:   1.6rem;
    font-weight: 800;
    color:       var(--c-text);
}

.apt-section__link {
    display:     inline-flex;
    align-items: center;
    gap:         .3rem;
    font-size:   .9rem;
    font-weight: 600;
    color:       var(--c-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   GRILLE CATÉGORIES HOMEPAGE
   ========================================================================== */

.apt-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.apt-cat-card {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            .6rem;
    padding:        1.5rem 1rem;
    background:     var(--c-card);
    border:         1px solid var(--c-border);
    border-radius:  var(--radius);
    text-decoration: none;
    color:          var(--c-text);
    text-align:     center;
    transition:     all var(--transition);
    box-shadow:     var(--shadow-sm);
}

.apt-cat-card:hover {
    border-color: var(--c-primary);
    box-shadow:   var(--shadow);
    transform:    translateY(-3px);
    color:        var(--c-primary);
}

.apt-cat-card__icon {
    width:           56px;
    height:          56px;
    border-radius:   14px;
    background:      var(--c-primary-l);
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      background var(--transition);
}

.apt-cat-card:hover .apt-cat-card__icon { background: var(--c-primary); }
.apt-cat-card:hover .apt-cat-card__icon img,
.apt-cat-card:hover .apt-cat-card__icon svg { filter: brightness(0) invert(1); }

.apt-cat-card__emoji { font-size: 1.6rem; }
.apt-cat-card__name  { font-size: .9rem; font-weight: 700; line-height: 1.2; }
.apt-cat-card__count { font-size: .75rem; color: var(--c-muted); }

/* ==========================================================================
   CALL TO ACTION
   ========================================================================== */

.apt-cta-section { padding: 4rem 0; }

.apt-cta-box {
    background:    linear-gradient(135deg, var(--c-primary) 0%, #1e40af 100%);
    border-radius: var(--radius);
    padding:       3.5rem 3rem;
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    gap:           2rem;
    flex-wrap:     wrap;
}

.apt-cta-box__title {
    font-size:   2rem;
    font-weight: 800;
    color:       #fff;
    margin-bottom: .5rem;
}

.apt-cta-box__text { color: rgba(255,255,255,.85); font-size: 1.05rem; }

.apt-cta-box__actions {
    display:   flex;
    gap:       .75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ==========================================================================
   HEADER ARCHIVE / FIL D'ARIANE
   ========================================================================== */

.apt-breadcrumbs-bar {
    background:  var(--c-card);
    border-bottom: 1px solid var(--c-border);
    padding:     .75rem 0;
}

.apt-breadcrumbs ol {
    display:   flex;
    flex-wrap: wrap;
    gap:       .25rem;
    align-items: center;
    padding:   0;
    margin:    0;
    list-style: none;
    font-size: .83rem;
    color:     var(--c-muted);
}

.apt-breadcrumbs li { display: flex; align-items: center; gap: .25rem; }
.apt-breadcrumbs a  { color: var(--c-muted); }
.apt-breadcrumbs a:hover { color: var(--c-primary); }
.apt-breadcrumbs span[aria-current] { color: var(--c-text); font-weight: 500; }
.apt-breadcrumbs__sep { color: var(--c-border); }

.apt-archive-header {
    background:     var(--c-card);
    border-bottom:  1px solid var(--c-border);
    padding:        2.5rem 0;
}

.apt-archive-header__title { font-size: 2rem; font-weight: 800; }
.apt-archive-header__desc  { color: var(--c-muted); margin-top: .4rem; }

.apt-archive-search {
    background:    var(--c-bg);
    padding:       1.5rem 0;
    border-bottom: 1px solid var(--c-border);
}

/* Layout archive (main + sidebar) */
.apt-archive-layout {
    display:   grid;
    grid-template-columns: 1fr 280px;
    gap:       2.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: start;
}

.apt-archive-main  { min-width: 0; }
.apt-archive-sidebar { position: sticky; top: calc(var(--c-header-h) + 1rem); }

/* Filtres actifs */
.apt-active-filters {
    display:   flex;
    flex-wrap: wrap;
    gap:       .5rem;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: .85rem;
}

.apt-active-filters__label { color: var(--c-muted); font-weight: 600; }

.apt-filter-tag {
    display:       inline-flex;
    align-items:   center;
    gap:           .35rem;
    padding:       .25rem .65rem;
    background:    var(--c-primary-l);
    color:         var(--c-primary);
    border-radius: 50px;
    font-weight:   600;
    font-size:     .78rem;
    transition:    background var(--transition);
}
.apt-filter-tag:hover { background: var(--c-primary-l); }
.apt-filter-clear { color: var(--c-muted); font-size: .8rem; text-decoration: underline; }
.apt-filter-clear:hover { color: var(--c-danger); }

/* ==========================================================================
   HERO FICHE ANNONCE / ÉVÉNEMENT
   ========================================================================== */

.apt-listing-hero,
.apt-event-hero {
    position:   relative;
    min-height: 380px;
    display:    flex;
    align-items: flex-end;
    overflow:   hidden;
}

.apt-listing-hero__cover,
.apt-event-hero__cover {
    position: absolute;
    inset:    0;
}

.apt-listing-hero__img,
.apt-event-hero__img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.apt-listing-hero__placeholder,
.apt-event-hero__placeholder {
    width:      100%;
    height:     100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.apt-listing-hero__overlay,
.apt-event-hero__overlay {
    position:   absolute;
    inset:      0;
    background: var(--hero-listing-overlay, linear-gradient(to top, rgba(15,23,42,.75) 0%, rgba(15,23,42,.15) 60%, transparent 100%));
}

.apt-listing-hero__content,
.apt-event-hero__content {
    position:      relative;
    z-index:       1;
    padding:       2rem 0 2.5rem;
}

.apt-listing-hero__badges,
.apt-event-hero__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }

.apt-listing-hero__title,
.apt-event-hero__title {
    font-size:   2.6rem;
    font-weight: 800;
    color:       #fff;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.apt-listing-hero__meta,
.apt-event-hero__meta {
    display:   flex;
    flex-wrap: wrap;
    gap:       .75rem;
    align-items: center;
}

.apt-listing-hero__region,
.apt-listing-hero__address {
    display:     inline-flex;
    align-items: center;
    gap:         .3rem;
    font-size:   .9rem;
    color:       rgba(255,255,255,.8);
}

.apt-event-hero__date,
.apt-event-hero__price {
    display:     inline-flex;
    align-items: center;
    gap:         .4rem;
    font-size:   .95rem;
    color:       rgba(255,255,255,.9);
    font-weight: 500;
}

.apt-event-hero__price { color: var(--c-accent); font-weight: 700; }
.apt-event-hero__price--free { color: #86efac; }

/* Pills statut */
.apt-status-pill {
    display:       inline-flex;
    align-items:   center;
    gap:           .35rem;
    padding:       .3rem .8rem;
    border-radius: 50px;
    font-size:     .78rem;
    font-weight:   700;
    text-transform: uppercase;
    letter-spacing: .04em;
    backdrop-filter: blur(4px);
}

.apt-status-pill--open    { background: rgba(var(--c-success-rgb),.9);  color: #fff; }
.apt-status-pill--closed  { background: rgba(var(--c-danger-rgb),.85);  color: #fff; }
.apt-status-pill--break   { background: rgba(var(--c-warning-rgb),.85); color: #fff; }

.apt-status-dot {
    width:         7px;
    height:        7px;
    border-radius: 50%;
    background:    currentColor;
    flex-shrink:   0;
}

/* Badges */
.apt-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           .3rem;
    padding:       .25rem .65rem;
    border-radius: 50px;
    font-size:     .75rem;
    font-weight:   700;
}

.apt-badge--verified { background: var(--c-primary); color: #fff; }
.apt-badge--featured { background: var(--c-accent);  color: #fff; }

/* Tags */
.apt-tag {
    display:       inline-block;
    padding:       .25rem .7rem;
    background:    var(--c-primary-l);
    color:         var(--c-primary);
    border-radius: 50px;
    font-size:     .8rem;
    font-weight:   600;
    text-decoration: none;
    transition:    background var(--transition);
}
.apt-tag:hover { background: #dbeafe; color: var(--c-primary); }

/* ==========================================================================
   LAYOUT FICHE DÉTAIL
   ========================================================================== */

.apt-listing-layout {
    display:   grid;
    grid-template-columns: 1fr 340px;
    gap:       2.5rem;
    padding:   2.5rem 0 4rem;
    align-items: start;
}

.apt-listing-main { min-width: 0; }

.apt-listing-sidebar {
    position:  sticky;
    top:       calc(var(--c-header-h) + 1rem);
    display:   flex;
    flex-direction: column;
    gap:       1.25rem;
}

/* Sections dans la fiche */
.apt-listing-section {
    background:    var(--c-card);
    border:        1px solid var(--c-border);
    border-radius: var(--radius);
    padding:       1.75rem;
    margin-bottom: 1.5rem;
    box-shadow:    var(--shadow-sm);
}

.apt-listing-section:last-child { margin-bottom: 0; }

.apt-listing-section__title {
    font-size:     1.15rem;
    font-weight:   700;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--c-border);
    color:         var(--c-text);
}

.apt-listing-content {
    font-size:   1rem;
    line-height: 1.75;
    color:       var(--c-text-2);
}

.apt-listing-content p + p { margin-top: .75rem; }

/* ==========================================================================
   GALERIE
   ========================================================================== */

.apt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}

.apt-gallery-item {
    display:       block;
    aspect-ratio:  4/3;
    overflow:      hidden;
    border-radius: var(--radius-sm);
    position:      relative;
    background:    var(--c-bg);
}

.apt-gallery-item img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.apt-gallery-item__overlay {
    position:        absolute;
    inset:           0;
    background:      rgba(0,0,0,.3);
    display:         flex;
    align-items:     center;
    justify-content: center;
    opacity:         0;
    transition:      opacity var(--transition);
}

.apt-gallery-item:hover img { transform: scale(1.06); }
.apt-gallery-item:hover .apt-gallery-item__overlay { opacity: 1; }

/* ==========================================================================
   VIDÉO YOUTUBE
   ========================================================================== */

.apt-video-wrapper { border-radius: var(--radius); overflow: hidden; }

.apt-video-thumb {
    position:      relative;
    aspect-ratio:  16/9;
    cursor:        pointer;
    background:    #000;
    border-radius: var(--radius);
    overflow:      hidden;
}

.apt-video-thumb img {
    width:       100%;
    height:      100%;
    object-fit:  cover;
    opacity:     .85;
    transition:  opacity var(--transition);
}

.apt-video-thumb:hover img { opacity: .7; }

.apt-video-thumb iframe {
    width:    100%;
    height:   100%;
    position: absolute;
    inset:    0;
    border:   none;
}

.apt-video-play {
    position:        absolute;
    top:             50%;
    left:            50%;
    transform:       translate(-50%, -50%);
    width:           70px;
    height:          70px;
    background:      var(--c-primary);
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    box-shadow:      0 8px 32px rgba(37,99,235,.4);
    transition:      transform var(--transition), background var(--transition);
}

.apt-video-play:hover { background: var(--c-primary-d); transform: translate(-50%,-50%) scale(1.1); }

/* ==========================================================================
   HORAIRES
   ========================================================================== */

.apt-hours-table { display: flex; flex-direction: column; gap: 0; }

.apt-hours-row {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding:         .65rem .85rem;
    border-radius:   var(--radius-xs);
    font-size:       .9rem;
    transition:      background var(--transition);
}

.apt-hours-row:hover { background: var(--c-bg); }

.apt-hours-row--today {
    background:  var(--c-primary-l);
    font-weight: 600;
}

.apt-hours-row__day {
    color:       var(--c-text);
    display:     flex;
    align-items: center;
    gap:         .5rem;
}

.apt-hours-today-label {
    font-size:   .72rem;
    background:  var(--c-primary);
    color:       #fff;
    padding:     .1rem .45rem;
    border-radius: 50px;
    font-weight: 700;
}

.apt-hours-row__time { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.apt-hours-break     { font-size: .8rem; color: var(--c-muted); margin-left: .5rem; }
.apt-hours-closed    { color: var(--c-danger); font-weight: 600; }

/* ==========================================================================
   SIDEBAR CARDS
   ========================================================================== */

.apt-sidebar-card {
    background:    var(--c-card);
    border:        1px solid var(--c-border);
    border-radius: var(--radius);
    padding:       1.25rem 1.4rem;
    box-shadow:    var(--shadow-sm);
}

.apt-sidebar-card__title {
    font-size:     .95rem;
    font-weight:   700;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--c-border);
    display:       flex;
    align-items:   center;
    gap:           .4rem;
}

/* Statut dans sidebar */
.apt-sidebar-status {
    display:       flex;
    align-items:   center;
    gap:           .5rem;
    font-size:     .85rem;
    font-weight:   600;
    padding:       .5rem .75rem;
    border-radius: var(--radius-xs);
    margin-bottom: .85rem;
}

.apt-sidebar-status--open   { background: rgba(var(--c-success-rgb),.12); color: var(--c-success); }
.apt-sidebar-status--closed { background: rgba(var(--c-danger-rgb),.12);  color: var(--c-danger);  }
.apt-sidebar-status--break  { background: rgba(var(--c-warning-rgb),.15); color: var(--c-warning); }

/* Liste de contact */
.apt-contact-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }

.apt-contact-item {
    display:     flex;
    align-items: flex-start;
    gap:         .55rem;
    font-size:   .875rem;
    color:       var(--c-text-2);
    line-height: 1.5;
}

.apt-contact-item svg { flex-shrink: 0; margin-top: .15rem; color: var(--c-primary); }
.apt-contact-item a   { color: var(--c-text-2); }
.apt-contact-item a:hover { color: var(--c-primary); }

/* Horaires sidebar */
.apt-sidebar-card--hours { border-left: 3px solid var(--c-primary); }
.apt-sidebar-hours-today { font-size: 1rem; font-weight: 600; color: var(--c-success); margin: 0; }

/* Sociaux sidebar */
.apt-sidebar-social { display: flex; flex-direction: column; gap: .5rem; }

.apt-social-btn {
    display:         flex;
    align-items:     center;
    gap:             .5rem;
    padding:         .5rem .85rem;
    border-radius:   var(--radius-xs);
    font-size:       .85rem;
    font-weight:     600;
    text-decoration: none;
    transition:      background var(--transition), color var(--transition);
}

.apt-social-btn--fb { background: #e7f0fd; color: #1877f2; }
.apt-social-btn--fb:hover { background: #1877f2; color: #fff !important; }
.apt-social-btn--ig { background: #fce7f3; color: #e1306c; }
.apt-social-btn--ig:hover { background: #e1306c; color: #fff !important; }
.apt-social-btn--li { background: #e7f0fa; color: #0a66c2; }
.apt-social-btn--li:hover { background: #0a66c2; color: #fff !important; }

/* ==========================================================================
   CARD ÉVÉNEMENT VENUE (single-evenement)
   ========================================================================== */

.apt-event-venue-card {
    display:       flex;
    gap:           1.25rem;
    background:    var(--c-bg);
    border-radius: var(--radius-sm);
    padding:       1.25rem;
    border:        1px solid var(--c-border);
}

.apt-event-venue-card__img {
    width:         100px;
    height:        100px;
    object-fit:    cover;
    border-radius: var(--radius-xs);
    flex-shrink:   0;
}

.apt-event-venue-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.apt-event-venue-card__address,
.apt-event-venue-card__tel {
    display:     flex;
    align-items: flex-start;
    gap:         .35rem;
    font-size:   .85rem;
    color:       var(--c-muted);
    margin:      .25rem 0;
}

/* ==========================================================================
   CARD ORGANISATEUR (single-evenement)
   ========================================================================== */

.apt-event-organizer-card {
    display:       flex;
    gap:           1.25rem;
    background:    var(--c-bg);
    border-radius: var(--radius-sm);
    padding:       1.25rem;
    border:        1px solid var(--c-border);
}

.apt-event-organizer-card__img {
    width:         100px;
    height:        100px;
    object-fit:    cover;
    object-position: center top;
    border-radius: 50%;
    flex-shrink:   0;
}

.apt-event-organizer-card__name {
    font-size:   1.05rem;
    font-weight: 700;
    margin:      0 0 .5rem;
}

.apt-event-organizer-card__info { flex: 1; min-width: 0; }

/* ==========================================================================
   SPONSORS GRID (single-evenement)
   ========================================================================== */

.apt-sponsors-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap:                   1.25rem;
}

.apt-sponsor-card {
    background:    var(--c-card);
    border:        1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding:       1.25rem 1rem 1rem;
    text-align:    center;
    position:      relative;
    transition:    box-shadow var(--transition), transform var(--transition);
}

.apt-sponsor-card:hover {
    box-shadow: var(--shadow);
    transform:  translateY(-2px);
}

.apt-sponsor-card__level {
    position:   absolute;
    top:        -.7rem;
    left:       50%;
    transform:  translateX(-50%);
    background: var(--c-accent);
    color:      #fff;
    font-size:  .68rem;
    font-weight: 700;
    padding:    .15rem .7rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.apt-sponsor-card__logo-wrap {
    height:          80px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    margin-bottom:   .75rem;
}

.apt-sponsor-card__logo-wrap img {
    max-height:  80px;
    max-width:   100%;
    width:       auto;
    height:      auto;
    object-fit:  contain;
}

.apt-sponsor-card__initials {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           64px;
    height:          64px;
    border-radius:   50%;
    background:      var(--c-primary-l);
    color:           var(--c-primary);
    font-size:       1.25rem;
    font-weight:     700;
    text-transform:  uppercase;
    margin:          0 auto;
}

.apt-sponsor-card__name {
    font-size:   .875rem;
    font-weight: 600;
    color:       var(--c-text);
    margin:      0 0 .25rem;
}

.apt-sponsor-card__link {
    font-size: .75rem;
    color:     var(--c-muted);
    word-break: break-all;
}

.apt-sponsor-card__link:hover { color: var(--c-primary); }

/* ==========================================================================
   SIDEBAR TERMES (archive)
   ========================================================================== */

.apt-sidebar-terms { display: flex; flex-direction: column; }

.apt-sidebar-terms li a {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding:         .45rem .55rem;
    border-radius:   var(--radius-xs);
    font-size:       .875rem;
    color:           var(--c-text-2);
    transition:      background var(--transition);
}

.apt-sidebar-terms li a:hover,
.apt-sidebar-terms li.is-active a {
    background: var(--c-primary-l);
    color:      var(--c-primary);
}

.apt-term-count {
    font-size:     .75rem;
    background:    var(--c-bg);
    color:         var(--c-muted);
    padding:       .1rem .4rem;
    border-radius: 50px;
    font-weight:   500;
}

/* ==========================================================================
   EVENTS LIÉS (single-annonce)
   ========================================================================== */

.apt-listing-related-events {
    margin-top:  0;
    border-left: 4px solid var(--c-primary);
}

/* ==========================================================================
   PARTAGE
   ========================================================================== */

.apt-share-buttons { display: flex; flex-direction: column; gap: .5rem; }

.apt-share-btn {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    padding:     .5rem .85rem;
    border-radius: var(--radius-xs);
    font-size:   .85rem;
    font-weight: 600;
    text-decoration: none;
    transition:  background var(--transition);
}

.apt-share-btn--fb { background: #e7f0fd; color: #1877f2; }
.apt-share-btn--fb:hover { background: #1877f2; color: #fff !important; }
.apt-share-btn--tw { background: #f0f9ff; color: #111; }
.apt-share-btn--tw:hover { background: #111; color: #fff !important; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.apt-footer { background: #0f172a; color: rgba(255,255,255,.75); margin-top: 4rem; }

.apt-footer__widgets { padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }

.apt-footer__widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.apt-footer__logo-text { font-size: 1.4rem; font-weight: 800; color: #fff; display: block; margin-bottom: .75rem; }
.apt-footer__tagline   { font-size: .9rem; opacity: .65; line-height: 1.6; }

.apt-footer__col .widget-title { color: #fff; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .85rem; }
.apt-footer__col .widget a { color: rgba(255,255,255,.7); font-size: .875rem; display: block; padding: .25rem 0; transition: color var(--transition); }
.apt-footer__col .widget a:hover { color: #fff; }

.apt-footer__minimal { padding: 2.5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.apt-footer__minimal-inner { display: flex; flex-wrap: wrap; gap: 2rem; }
.apt-footer__links-group strong { color: #fff; font-size: 1rem; display: block; margin-bottom: .75rem; }
.apt-footer__links-group nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.apt-footer__links-group a { color: rgba(255,255,255,.65); font-size: .875rem; }
.apt-footer__links-group a:hover { color: #fff; }

.apt-footer__bar { padding: 1.25rem 0; }
.apt-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.apt-footer__copy { font-size: .8rem; opacity: .5; margin: 0; }
.apt-footer__legal-list { display: flex; gap: 1rem; }
.apt-footer__legal-list a { font-size: .8rem; color: rgba(255,255,255,.45); }
.apt-footer__legal-list a:hover { color: rgba(255,255,255,.85); }

/* ==========================================================================
   PAGES BLOG / PAGE / 404
   ========================================================================== */

.apt-post-card {
    display:       grid;
    grid-template-columns: 240px 1fr;
    gap:           1.5rem;
    background:    var(--c-card);
    border:        1px solid var(--c-border);
    border-radius: var(--radius);
    overflow:      hidden;
    margin-bottom: 1.5rem;
    box-shadow:    var(--shadow-sm);
    transition:    box-shadow var(--transition);
}
.apt-post-card:hover { box-shadow: var(--shadow); }
.apt-post-card__thumb { display: block; overflow: hidden; }
.apt-post-card__img   { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.apt-post-card:hover .apt-post-card__img { transform: scale(1.04); }
.apt-post-card__body  { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: .5rem; }
.apt-post-card__meta  { font-size: .8rem; color: var(--c-muted); }
.apt-post-card__title { font-size: 1.15rem; font-weight: 700; }
.apt-post-card__title a { color: var(--c-text); }
.apt-post-card__title a:hover { color: var(--c-primary); }
.apt-post-card__excerpt { color: var(--c-muted); font-size: .9rem; }

.apt-page-title {
    font-size:     2rem;
    font-weight:   800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--c-border);
}

.apt-error-page {
    padding:    5rem 0;
    text-align: center;
}
.apt-error-code  { font-size: 8rem; font-weight: 900; color: var(--c-border); line-height: 1; display: block; }
.apt-error-title { font-size: 2rem; font-weight: 800; margin: .5rem 0; }
.apt-error-desc  { color: var(--c-muted); margin-bottom: 2rem; }
.apt-error-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .apt-listing-layout,
    .apt-archive-layout { grid-template-columns: 1fr; }
    .apt-listing-sidebar,
    .apt-archive-sidebar { position: static; }
    .apt-footer__widgets-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --c-header-h: 60px; }

    .apt-nav-primary { display: none; }
    .apt-hamburger   { display: flex; }

    .apt-hero__title { font-size: 2.2rem; }
    .apt-hero__stats { gap: 1.25rem; }
    .apt-hero__stat strong { font-size: 1.5rem; }

    .apt-listing-hero__title,
    .apt-event-hero__title { font-size: 1.8rem; }

    .apt-cats-grid { grid-template-columns: repeat(4, 1fr); }

    .apt-cta-box { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
    .apt-cta-box__actions { justify-content: center; }

    .apt-post-card { grid-template-columns: 1fr; }
    .apt-post-card__body { padding: 1.25rem; }

    .apt-footer__widgets-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .apt-hero         { min-height: 480px; padding: 4rem 0 3rem; }
    .apt-hero__title  { font-size: 1.8rem; }
    .apt-hero__stats  { flex-direction: column; gap: .75rem; }
    .apt-hero__stat-sep { display: none; }

    .apt-cats-grid { grid-template-columns: repeat(2, 1fr); }

    .apt-listing-hero__title,
    .apt-event-hero__title { font-size: 1.5rem; }

    .apt-section__header { flex-direction: column; align-items: flex-start; }
}
