/*
Theme Name: Dijon Actualités
Theme URI: https://dijon-actualites.fr
Author: Damien
Description: Thème d'actualités inspiré de franceinfo pour Dijon Actualités
Version: 2.4.0
Text Domain: dijon-actualites
*/

/* --- Footer --- */

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

@keyframes sfGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(208,2,27,.35); }
    50%      { box-shadow: 0 0 12px rgba(208,2,27,.7); }
}

.site-footer {
    background-color: #000000;
    color: #c5bfb3;
    margin-top: 40px;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Separator ── */
.sf-separator {
    height: 1px;
    background: rgb(255 255 255);
    max-width: 1328px;
    margin: 0 auto;
    padding: 0 56px;
}

/* ── Social row ── */
.sf-social {
    max-width: 1328px;
    margin: 0 auto;
    padding: 24px 56px;
    display: flex;
    align-items: center;
    gap: 0;
    animation: sfFadeUp .5s ease both;
}

.sf-social__sep {
    flex: 1;
    height: 1px;
    background: rgb(255 255 255);
}

.sf-social__list {
    list-style: none;
    margin: 0;
    padding: 0 32px;
    display: flex;
    gap: 16px;
}

.sf-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: background .25s, color .25s, transform .25s, border-color .25s, box-shadow .25s;
}

.sf-social__btn svg {
    display: block;
}

.sf-social__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(255,255,255,.12);
}

.sf-social__btn--fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.sf-social__btn--x:hover   { background: #000;    border-color: #555;    color: #fff; }
.sf-social__btn--ig:hover  { background: #e4405f; border-color: #e4405f; color: #fff; }
.sf-social__btn--yt:hover  { background: #ff0000; border-color: #ff0000; color: #fff; }
.sf-social__btn--tt:hover  { background: #010101; border-color: #444;    color: #fff; }
.sf-social__btn--gn:hover  { background: #4285f4; border-color: #4285f4; color: #fff; }

/* ── Bottom nav — 4-column grid ── */
.sf-bottom {
    max-width: 1328px;
    margin: 0 auto;
    padding: 40px 56px 32px;
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr 1fr;
    gap: 0 48px;
    animation: sfFadeUp .6s .1s ease both;
}

/* Column base — NO vertical separators (matching franceinfo) */
.sf-bottom__col {
    padding: 0;
}

/* Col 1 — brand */
.sf-bottom__col--brand {
    padding-left: 0;
}

.sf-bottom__logo {
    margin-bottom: 28px;
}

.sf-bottom__logo-link {
    display: inline-block;
    transition: opacity .25s;
}

.sf-bottom__logo-link:hover { opacity: .75; }

.sf-bottom__logo-link img {
    height: 24px;
    width: auto;
}

/* Directs list */
.sf-bottom__directs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-bottom__directs .menu-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    transition: color .2s, transform .2s;
}

/* Direct icons: SVG data URIs */
.sf-bottom__directs .menu-item a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 1st direct: broadcast/live icon (circle with waves) */
.sf-bottom__directs .menu-item:nth-child(1) a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2' fill='%23ffffff'/%3E%3Cpath d='M16.24 7.76a6 6 0 0 1 0 8.49'/%3E%3Cpath d='M7.76 16.24a6 6 0 0 1 0-8.49'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3Cpath d='M4.93 19.07a10 10 0 0 1 0-14.14'/%3E%3C/svg%3E");
}

.menu-item-recap__icon {
    color: #fff;
}

/* Masque l'icône TV pour La Récap (icône journal déjà dans le label) */
.sf-bottom__directs .menu-item.menu-item-recap a::before {
    display: none !important;
}

/* 3rd direct: headphones/radio outlined */
.sf-bottom__directs .menu-item:nth-child(3) a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E");
}

.sf-bottom__directs .menu-item a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Col 2 — services */
.sf-bottom__services-title {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 16px;
    letter-spacing: 0;
}

.sf-bottom__services-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-bottom__services-cards .menu-item {
    list-style: none;
}

.sf-bottom__services-cards .menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}

.sf-bottom__services-cards .menu-item a:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: #fff;
    transform: translateY(-1px);
}

/* Service card icons — colored rounded badges like franceinfo */
.sf-bottom__services-cards .menu-item a::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* weather icon — blue badge with white cloud */
.sf-bottom__services-cards .menu-item:nth-child(1) a::before {
    background-color: #4a90d9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff' stroke='none'%3E%3Cpath d='M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9z'/%3E%3C/svg%3E");
}

/* traffic/info icon — amber/orange badge with white car */
.sf-bottom__services-cards .menu-item:nth-child(2) a::before {
    background-color: #e8a838;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 16H9m10 0h3v-3.15a1 1 0 0 0-.84-.99L16 11l-2.7-3.6a1 1 0 0 0-.8-.4H5.24a2 2 0 0 0-1.8 1.1l-.8 1.63A6 6 0 0 0 2 12.42V16h2'/%3E%3Ccircle cx='6.5' cy='16.5' r='2.5'/%3E%3Ccircle cx='16.5' cy='16.5' r='2.5'/%3E%3C/svg%3E");
}

/* newspaper icon — green badge */
.sf-bottom__services-cards .menu-item:nth-child(3) a::before {
    background-color: #5a9e6f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0'/%3E%3Cpath d='M2 6h4'/%3E%3Cpath d='M10 6h8'/%3E%3Cpath d='M10 10h8'/%3E%3Cpath d='M10 14h4'/%3E%3C/svg%3E");
}

/* target icon — purple badge */
.sf-bottom__services-cards .menu-item:nth-child(4) a::before {
    background-color: #7c5cbf;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}

/* Cols 3 & 4 — links */
.sf-bottom__col--links {
    display: flex;
    flex-direction: column;
}

.sf-bottom__links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-bottom__links-list .menu-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s, text-decoration .2s;
    display: block;
    padding: 3px 0;
}

.sf-bottom__links-list .menu-item a:hover {
    color: #696969;
    text-decoration: underline;
}

/* ── Copyright ── */
.sf-copy {
    max-width: 1328px;
    margin: 0 auto;
    padding: 16px 56px 24px;
    border-top: 1px solid rgb(255 255 255);
}

.sf-copy p {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
}

/* ── Screen reader only ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .sf-social { padding: 20px 32px; }
    .sf-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 28px 32px;
        padding: 32px 32px 24px;
    }
}

@media (max-width: 640px) {
    .sf-social { padding: 16px; }
    .sf-social__list { gap: 10px; padding: 0 16px; }
    .sf-social__btn { width: 42px; height: 42px; }

    .sf-bottom {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px 16px;
    }
    .sf-bottom__col + .sf-bottom__col {
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,.06);
    }
    .sf-separator { padding: 0 16px; }
    .sf-copy { padding: 12px 16px 16px; }
}
