/*
Theme Name: L'Intelligence
Theme URI:
Description: Thème enfant personnalisé du site L'Intelligence
Author: L'Intelligence
Author URI:
Template: generatepress
Version: 1.0
*/

/* =========================================================
   1. VARIABLES — IDENTITÉ VISUELLE
========================================================= */

:root {

    /* Couleurs principales */
    --li-navy: #081B33;
    --li-blue: #1769AA;
    --li-blue-light: #EAF3F8;

    /* Fonds */
    --li-white: #FFFFFF;
    --li-background: #F7F8FA;

    /* Textes */
    --li-text: #17212B;
    --li-muted: #66717D;

    /* Alerte */
    --li-red: #C6283D;

    /* Bordures */
    --li-border: #DCE2E8;

    /* Ombres */
    --li-shadow: 0 4px 18px rgba(8, 27, 51, 0.08);

    /* Rayons */
    --li-radius: 4px;

    /* Largeur générale */
    --li-container: 1280px;

}


/* =========================================================
   2. RÉINITIALISATION DE BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--li-background);
    color: var(--li-text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}

/* =========================================================
   3. CONTENEUR GLOBAL
========================================================= */

.li-container {
    width: 100%;
    max-width: var(--li-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* =========================================================
   4. LIENS
========================================================= */

a {
    color: var(--li-blue);
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

a:hover {
    color: var(--li-navy);
}

/* =========================================================
   5. TITRES
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--li-text);
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================================
   6. BOUTONS GÉNÉRAUX
========================================================= */

button,
input[type="submit"],
input[type="button"] {
    font-family: inherit;
    cursor: pointer;
}

/* =========================================================
   7. IMAGES
========================================================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   8. HEADER — BASE
========================================================= */

.li-header {
    width: 100%;
}

.li-header-main {
    background: var(--li-navy);
    color: var(--li-white);
}

/* =========================================================
   9. MENU — BASE
========================================================= */

.li-navigation {
    background: var(--li-white);
    border-bottom: 3px solid var(--li-blue);
    box-shadow:
        0 2px 8px rgba(8, 27, 51, 0.06);
}

/* =========================================================
   10. CONTENU PRINCIPAL
========================================================= */

.site-content {
    background: var(--li-background);
}

/* =========================================================
   11. CARTES
========================================================= */
.li-card {
    background: var(--li-white);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    overflow: hidden;
    box-shadow: var(--li-shadow);
}

/* =========================================================
   12. ÉTIQUETTES DE CATÉGORIE
========================================================= */

.li-category {
    display: inline-block;
    color: var(--li-blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* =========================================================
   13. DERNIÈRE MINUTE / URGENT
========================================================= */

.li-breaking {
    color: var(--li-red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* =========================================================
   14. SÉPARATEUR ÉDITORIAL
========================================================= */

.li-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.li-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--li-border);
}

/* =========================================================
   15. FOCUS
========================================================= */

:focus-visible {
    outline: 3px solid rgba(23, 105, 170, 0.35);
    outline-offset: 3px;
}

/* =========================================================
   16. ACCESSIBILITÉ
========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   17. RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 900px) {
    .li-container {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* =========================================================
   18. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {
    .li-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    body {
        font-size: 15px;
    }
}


/* =========================================================
   19. PETITS ÉCRANS
========================================================= */

@media (max-width: 400px) {
    .li-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}



/* =========================================================
   L'INTELLIGENCE — HEADER
========================================================= */


/* ---------------------------------------------------------
   HEADER PRINCIPAL
--------------------------------------------------------- */

.li-header-main {
    background: var(--li-navy);
    color: var(--li-white);
    padding: 22px 0;
}


.li-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


/* ---------------------------------------------------------
   LOGO
--------------------------------------------------------- */

.li-branding {
    display: flex;
    align-items: center;
}


.li-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}


.li-logo-link:hover {
    text-decoration: none;
}


/* Logo WordPress */

.li-logo-link .custom-logo-link {
    display: flex;
    align-items: center;
}


.li-logo-link .custom-logo {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 72px;
    height: auto;
}


/* Logo texte de secours */

.li-logo-text {
    color: var(--li-white);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}


/* ---------------------------------------------------------
   OUTILS HEADER
--------------------------------------------------------- */

.li-header-tools {
    display: flex;
    align-items: center;
    gap: 25px;
}


/* ---------------------------------------------------------
   SLOGAN
--------------------------------------------------------- */

.li-tagline {
    display: flex;
    align-items: center;
    gap: 8px;

    color: rgba(255, 255, 255, 0.90);

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 0.3px;
}


.li-tagline span:not(:last-child)::after {
    content: ",";
    margin-left: 2px;
}


/* ---------------------------------------------------------
   RÉSEAUX SOCIAUX
--------------------------------------------------------- */

.li-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}


.li-social {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;

    color: var(--li-white);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.li-social:hover {
    background: var(--li-blue);
    border-color: var(--li-blue);
    color: var(--li-white);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   BOUTON RECHERCHE
--------------------------------------------------------- */

.li-search-toggle {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;

    background: transparent;

    color: var(--li-white);

    font-size: 19px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


.li-search-toggle:hover {
    background: var(--li-blue);
    border-color: var(--li-blue);
}


/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */

.li-navigation {
    background: var(--li-white);

    border-bottom: 3px solid var(--li-blue);

    box-shadow:
        0 2px 8px rgba(8, 27, 51, 0.07);
}


.li-navigation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ---------------------------------------------------------
   MENU
--------------------------------------------------------- */

.li-menu {
    display: flex;

    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;
}


.li-menu > li > a {

    display: block;

    padding: 15px 17px;

    color: var(--li-text);

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .25px;

    text-decoration: none;

    transition:
        color .2s ease,
        background-color .2s ease;
}


.li-menu > li > a:hover {

    background: var(--li-blue-light);

    color: var(--li-blue);

}


/* MENU ACTIF */

.li-menu > li.current-menu-item > a,
.li-menu > li.current-menu-ancestor > a {

    color: var(--li-blue);

    border-bottom: 3px solid var(--li-blue);

}


/* ---------------------------------------------------------
   RECHERCHE
--------------------------------------------------------- */

.li-search {
    display: flex;
    align-items: center;
}


.li-search form {

    display: flex;

    align-items: center;

    margin: 0;

}


.li-search input {

    width: 170px;

    height: 36px;

    padding: 0 12px;

    border: 1px solid var(--li-border);

    border-right: none;

    border-radius: 3px 0 0 3px;

    background: var(--li-white);

    color: var(--li-text);

    font-size: 13px;

    outline: none;
}


.li-search input:focus {

    border-color: var(--li-blue);

}


.li-search button {

    height: 36px;

    width: 40px;

    padding: 0;

    border: none;

    border-radius: 0 3px 3px 0;

    background: var(--li-blue);

    color: var(--li-white);

    cursor: pointer;

}


.li-search button:hover {

    background: var(--li-navy);

}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 900px) {

    .li-header-inner {

        gap: 20px;

    }


    .li-logo-link .custom-logo {

        max-width: 210px;

        max-height: 60px;

    }


    .li-tagline {

        display: none;

    }


    .li-search input {

        width: 130px;

    }


    .li-menu > li > a {

        padding: 14px 11px;

        font-size: 12px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .li-header-main {

        padding: 16px 0;

    }


    .li-header-inner {

        flex-direction: column;

        align-items: center;

        gap: 15px;

    }


    .li-logo-link .custom-logo {

        max-width: 220px;

        max-height: 55px;

    }


    .li-header-tools {

        width: 100%;

        justify-content: center;

        gap: 15px;

    }


    .li-navigation-inner {

        display: block;

    }


    .li-menu {

        width: 100%;

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;

    }


    .li-menu::-webkit-scrollbar {

        display: none;

    }


    .li-menu > li {

        flex: 0 0 auto;

    }


    .li-menu > li > a {

        padding: 13px 12px;

        font-size: 11px;

        white-space: nowrap;

    }


    .li-search {

        display: none;

    }

}



/* =========================================================
   L'INTELLIGENCE — PAGE D'ACCUEIL
========================================================= */


/* ---------------------------------------------------------
   BANDEAU DERNIÈRE MINUTE
--------------------------------------------------------- */

.li-breaking-bar {
    background: var(--li-white);
    border-bottom: 1px solid var(--li-border);
}


.li-breaking-inner {
    display: flex;
    align-items: center;
    min-height: 42px;
}


.li-breaking-label {
    flex: 0 0 auto;

    padding: 6px 12px;

    background: var(--li-red);

    color: var(--li-white);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .6px;
}


.li-breaking-news {
    padding-left: 16px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.li-breaking-news a {
    color: var(--li-text);

    font-size: 13px;
    font-weight: 600;
}


.li-breaking-news a:hover {
    color: var(--li-blue);
}


/* ---------------------------------------------------------
   ESPACEMENT SECTIONS
--------------------------------------------------------- */

.li-hero,
.li-news-section,
.li-most-read {
    padding: 42px 0;
}


/* ---------------------------------------------------------
   TITRES DE SECTIONS
--------------------------------------------------------- */

.li-section-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 24px;
}


.li-section-heading h1,
.li-section-heading h2 {
    margin: 0;

    color: var(--li-text);

    font-size: 25px;
    font-weight: 800;

    line-height: 1.2;
}


.li-section-heading span {
    flex: 1;

    height: 2px;

    background: var(--li-blue);
}


.li-see-all {
    margin-left: auto;

    color: var(--li-blue);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   UNE
--------------------------------------------------------- */

.li-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 20px;
}


.li-card {
    background: var(--li-white);

    border: 1px solid var(--li-border);

    border-radius: var(--li-radius);

    overflow: hidden;

    box-shadow: var(--li-shadow);
}


.li-article-image {
    display: block;

    overflow: hidden;

    background: var(--li-navy);
}


.li-hero-main .li-article-image {
    height: 360px;
}


.li-hero-secondary .li-article-image {
    height: 190px;
}


.li-article-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}


.li-card:hover .li-article-image img {
    transform: scale(1.035);
}


/* ---------------------------------------------------------
   CONTENU ARTICLES
--------------------------------------------------------- */

.li-article-content {
    padding: 18px;
}


.li-article-content h2 {
    margin: 8px 0 12px;

    font-size: 27px;

    line-height: 1.18;
}


.li-article-content h3 {
    margin: 8px 0 10px;

    font-size: 18px;

    line-height: 1.3;
}


.li-article-content h2 a,
.li-article-content h3 a {
    color: var(--li-text);
}


.li-article-content h2 a:hover,
.li-article-content h3 a:hover {
    color: var(--li-blue);
}


.li-excerpt {
    margin: 0 0 14px;

    color: var(--li-muted);

    font-size: 14px;
}


/* ---------------------------------------------------------
   META
--------------------------------------------------------- */

.li-meta {
    color: var(--li-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .4px;
}


/* ---------------------------------------------------------
   GRILLE DES RUBRIQUES
--------------------------------------------------------- */

.li-news-section:nth-of-type(even) {
    background: var(--li-white);
}


.li-news-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.li-news-card {
    background: var(--li-white);

    border: 1px solid var(--li-border);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.li-news-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--li-shadow);
}


.li-news-image {
    display: block;

    height: 180px;

    overflow: hidden;

    background: var(--li-navy);
}


.li-news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}


.li-news-card:hover .li-news-image img {
    transform: scale(1.04);
}


.li-news-content {
    padding: 15px;
}


.li-news-content h3 {
    margin: 7px 0 12px;

    font-size: 17px;

    line-height: 1.3;
}


.li-news-content h3 a {
    color: var(--li-text);
}


.li-news-content h3 a:hover {
    color: var(--li-blue);
}


/* ---------------------------------------------------------
   IMAGE PAR DÉFAUT
--------------------------------------------------------- */

.li-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--li-navy);

    color: var(--li-white);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* ---------------------------------------------------------
   LES PLUS LUS
--------------------------------------------------------- */

.li-most-read {
    background: var(--li-white);

    border-top: 1px solid var(--li-border);
}


.li-most-read-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 0;
}


.li-most-read-item {
    display: flex;

    gap: 14px;

    padding: 18px;

    border-right: 1px solid var(--li-border);
}


.li-most-read-item:last-child {
    border-right: none;
}


.li-most-read-number {
    color: var(--li-blue);

    font-size: 32px;

    font-weight: 800;

    line-height: 1;
}


.li-most-read-item h3 {
    margin: 6px 0 0;

    font-size: 15px;

    line-height: 1.3;
}


.li-most-read-item h3 a {
    color: var(--li-text);
}


.li-most-read-item h3 a:hover {
    color: var(--li-blue);
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1000px) {

    .li-hero-grid {
        grid-template-columns: 1fr 1fr;
    }


    .li-hero-main {
        grid-column: 1 / -1;
    }


    .li-news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .li-most-read-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .li-most-read-item {
        border-bottom: 1px solid var(--li-border);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .li-hero,
    .li-news-section,
    .li-most-read {
        padding: 30px 0;
    }


    .li-section-heading h1,
    .li-section-heading h2 {
        font-size: 21px;
    }


    .li-hero-grid {
        display: block;
    }


    .li-hero-main,
    .li-hero-secondary {
        margin-bottom: 18px;
    }


    .li-hero-main .li-article-image {
        height: 240px;
    }


    .li-hero-secondary .li-article-image {
        height: 190px;
    }


    .li-article-content h2 {
        font-size: 23px;
    }


    .li-news-grid {
        grid-template-columns: 1fr;
    }


    .li-news-image {
        height: 220px;
    }


    .li-most-read-grid {
        grid-template-columns: 1fr;
    }


    .li-most-read-item {
        border-right: none;
    }


    .li-breaking-news {
        max-width: 70vw;
    }

}