/* ============================================================
   HEADER 2026 - PÉRON
   ============================================================ */
.header-2026 {

    --blue: #244bd7;
    --blue-dark: #173e80;
    --green: #27823b;
    --orange: #e77d00;
    --purple: #6934a8;

    /*
     * Header FlexStart :
     * 80px de hauteur + 5px haut + 5px bas
     */
    --menu-height: 90px;

    width: 100%;

    background: #fff;
	
	padding-top: 90px;
}


/* ============================================================
   PREMIER ÉCRAN
   ============================================================ */

.header-2026 .home-screen {

    /*
     * Le header étant fixed,
     * on réserve exactement ses 90px.
     */
    min-height: calc(100vh - var(--menu-height));

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}


/* ============================================================
   HERO
   ============================================================ */

.header-2026 .hero-2026 {

    position: relative;

    /*
     * Hauteur responsive du bandeau photo.
     */
    height: clamp(230px, 26vh, 290px);

    flex-shrink: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,.04),
            rgba(255,255,255,0)
        ),
        url('../../assets/images/mairie_spring.jpg');

    background-size: cover;

    background-position: center center;

    overflow: hidden;
}


.header-2026 .hero-inner-2026 {

    width: 100%;
    max-width: 1400px;

    height: 100%;

    margin: 0 auto;

    padding: 0 28px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
}


/* ============================================================
   BLOC BLANC HERO
   ============================================================ */

.header-2026 .hero-card-2026 {

    width: 590px;
    max-width: 100%;

    padding: 24px 32px 22px;

    box-sizing: border-box;

    background: rgba(255,255,255,.95);

    border-radius: 15px;

    box-shadow:
        0 8px 28px rgba(0,0,0,.14);
}


.header-2026 .hero-card-2026 h1 {

    margin: 0 0 7px;

    color: var(--blue-dark);

    font-size: clamp(30px, 3vw, 38px);

    line-height: 1.1;

    font-weight: 700;
}


.header-2026 .hero-card-2026 p {

    margin: 0 0 17px;

    color: #333;

    font-size: 16px;

    line-height: 1.45;
}


/* ============================================================
   BOUTONS HERO
   ============================================================ */

.header-2026 .hero-buttons-2026 {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


.header-2026 .hero-buttons-2026 a {

    height: 40px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    box-sizing: border-box;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.header-2026 .btn-blue-2026 {

    background: var(--blue);

    border: 1px solid var(--blue);

    color: #fff;
}


.header-2026 .btn-blue-2026:hover {

    background: #193bb5;

    border-color: #193bb5;

    color: #fff;
}


.header-2026 .btn-outline-2026 {

    background: rgba(255,255,255,.96);

    border: 1px solid var(--blue);

    color: var(--blue);
}


.header-2026 .btn-outline-2026:hover {

    background: #f1f4ff;

    color: #193bb5;
}


/* ============================================================
   CONTENU
   ============================================================ */

.header-2026 .home-content-2026 {

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 14px 28px 18px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    gap: 12px;

    /*
     * Important :
     * pas de flex:1 sur les blocs.
     *
     * Ils gardent leur vraie hauteur et la page peut
     * s'allonger si l'écran est trop petit.
     */
}


/* ============================================================
   LIGNE 1
   ============================================================ */

.header-2026 .top-cards-2026 {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/* ============================================================
   CARTES INFO
   ============================================================ */

.header-2026 .info-card-2026 {

    position: relative;

    min-height: 250px;

    padding: 45px 20px 18px;

    box-sizing: border-box;

    border-radius: 11px;

    overflow: hidden;

    display: flex;

    align-items: center;
}


.header-2026 .info-blue-2026 {

    background: #f0f4fc;
}


.header-2026 .info-green-2026 {

    background: #f0f7f1;
}


/* ============================================================
   TITRES DE CARTES
   ============================================================ */

.header-2026 .section-title-2026 {

    position: absolute;

    top: 14px;
    left: 62px;

    font-size: 15px;

    font-weight: 700;
}


.header-2026 .info-blue-2026 .section-title-2026 {

    color: var(--blue);
}


.header-2026 .info-green-2026 .section-title-2026 {

    color: var(--green);
}


/* ============================================================
   ICÔNES RONDES
   ============================================================ */

.header-2026 .round-icon-2026 {

    position: absolute;

    top: 10px;
    left: 18px;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff;

    font-size: 14px;
}


.header-2026 .info-blue-2026 .round-icon-2026 {

    background: #1746a2;
}


.header-2026 .info-green-2026 .round-icon-2026 {

    background: var(--green);
}


/* ============================================================
   PÉRON INFO
   ============================================================ */

.header-2026 .bulletin-2026 {

    width: 125px;

    flex-shrink: 0;

    margin-left: 22px;

    box-shadow:
        0 3px 10px rgba(0,0,0,.15);
}


.header-2026 .bulletin-2026 img {

    display: block;

    width: 100%;

    height: auto;
}


.header-2026 .info-text-2026 {

    margin-left: 22px;
}


.header-2026 .info-text-2026 h2 {

    margin: 0 0 8px;

    color: #15284b;

    font-size: 20px;

    line-height: 1.2;
}


.header-2026 .info-text-2026 p {

    margin: 0 0 12px;

    color: #555;

    font-size: 13px;

    line-height: 1.4;
}


/* ============================================================
   BOUTONS CARTES
   ============================================================ */

.header-2026 .card-button-2026 {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 17px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}


.header-2026 .blue-button-2026 {

    background: var(--blue);

    color: #fff;
}


.header-2026 .blue-button-2026:hover {

    background: #193bb5;

    color: #fff;
}


.header-2026 .green-button-2026 {

    margin-top: 7px;

    background: var(--green);

    color: #fff;
}


.header-2026 .green-button-2026:hover {

    background: #1d6c30;

    color: #fff;
}


/* ============================================================
   PROCHAIN ÉVÉNEMENT
   ============================================================ */

.header-2026 .event-content-2026 {

    flex: 1;

    min-width: 0;

    margin-left: 25px;
}


.header-2026 .event-content-2026 h2 {

    margin: 0 0 10px;

    color: #15284b;

    font-size: 20px;
}


.header-2026 .event-line-2026 {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 6px;

    color: #555;

    font-size: 13px;
}


.header-2026 .event-line-2026 i {

    flex-shrink: 0;
}


.header-2026 .event-calendar-2026 {

    width: 125px;

    margin-right: 15px;

    flex-shrink: 0;
}


.header-2026 .event-calendar-2026 img {

    display: block;

    width: 100%;

    height: auto;
}


/* ============================================================
   LIGNE 2
   ============================================================ */

.header-2026 .middle-cards-2026 {

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 12px;
}


/* ============================================================
   EMPLOIS
   ============================================================ */

.header-2026 .jobs-2026 {

    position: relative;

    min-height: 250px;

    padding: 16px 20px;

    box-sizing: border-box;

    background: #fff7ed;

    border-radius: 11px;

    overflow: hidden;
}


.header-2026 .orange-icon-2026 {

    position: absolute;

    top: 10px;
    left: 18px;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--orange);

    color: #fff;
}


.header-2026 .orange-title-2026 {

    margin-left: 48px;

    color: var(--orange);

    font-size: 15px;

    font-weight: 700;
}


.header-2026 .job-box-2026 {

    position: relative;

    margin-top: 10px;

    min-height: 120px;

    padding: 11px 14px;

    box-sizing: border-box;

    border: 1px solid #efd6b3;

    border-radius: 7px;
}


.header-2026 .job-box-2026 h3 {

    margin: 0 0 5px;

    color: #222;

    font-size: 14px;
}


.header-2026 .job-info-2026 {

    font-size: 11px;

    line-height: 1.5;
}


.header-2026 .job-description-2026 {

    margin-top: 5px;

    color: #555;

    font-size: 11px;

    line-height: 1.35;
}


.header-2026 .job-button-2026 {

    position: absolute;

    right: 12px;
    bottom: 12px;

    padding: 7px 13px;

    background: var(--orange);

    color: #fff;

    border-radius: 5px;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}


.header-2026 .job-button-2026:hover {

    background: #cf7100;

    color: #fff;
}


.header-2026 .all-jobs-2026 {

    display: block;

    margin-top: 5px;

    color: #444;

    text-align: right;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}


/* ============================================================
   ACTUALITÉS
   ============================================================ */

.header-2026 .news-2026 {

    position: relative;

    min-height: 250px;

    padding: 16px 20px;

    box-sizing: border-box;

    background: #f1f5fc;

    border-radius: 11px;

    overflow: hidden;
}


.header-2026 .news-icon-2026 {

    position: absolute;

    top: 10px;
    left: 18px;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1746a2;

    color: #fff;
}


.header-2026 .news-title-2026 {

    margin-left: 48px;

    color: var(--blue);

    font-size: 15px;

    font-weight: 700;
}


.header-2026 .news-grid-2026 {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 10px;
}


.header-2026 .news-item-2026 img {

    display: block;

    width: 100%;

    height: 70px;

    object-fit: cover;

    border-radius: 6px;
}


.header-2026 .news-date-2026 {

    margin-top: 4px;

    color: #666;

    font-size: 9px;
}


.header-2026 .news-item-2026 h3 {

    margin: 2px 0 3px;

    color: #17213c;

    font-size: 12px;

    line-height: 1.2;
}


.header-2026 .news-item-2026 a {

    color: var(--blue);

    font-size: 10px;

    font-weight: 600;

    text-decoration: none;
}


/* ============================================================
   AGENDA
   ============================================================ */

.header-2026 .agenda-2026 {

    min-height: 160px;

    padding: 9px 18px;

    box-sizing: border-box;

    background: #f7f4fb;

    border-radius: 9px;

    display: flex;

    align-items: center;
}


.header-2026 .agenda-title-2026 {

    width: 220px;

    flex-shrink: 0;

    color: var(--purple);

    font-size: 14px;

    font-weight: 700;
}


.header-2026 .agenda-events-2026 {

    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;
}


.header-2026 .agenda-event-2026 {

    flex: 1;

    min-width: 0;

    padding: 0 18px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-left: 1px solid #d7d0df;
}


.header-2026 .agenda-date-2026 {

    flex-shrink: 0;

    text-align: center;

    color: #222;

    line-height: 1;
}


.header-2026 .agenda-date-2026 strong {

    display: block;

    font-size: 19px;
}


.header-2026 .agenda-date-2026 small {

    display: block;

    margin-top: 2px;

    font-size: 8px;
}


.header-2026 .agenda-event-text-2026 {

    min-width: 0;
}


.header-2026 .agenda-event-text-2026 strong {

    display: block;

    color: #222;

    font-size: 11px;

    white-space: nowrap;
}


.header-2026 .agenda-event-text-2026 span {

    display: block;

    margin-top: 2px;

    color: #666;

    font-size: 9px;

    white-space: nowrap;
}


.header-2026 .agenda-button-2026 {

    flex-shrink: 0;

    padding: 7px 13px;

    border: 1px solid var(--purple);

    border-radius: 5px;

    color: var(--purple);

    font-size: 10px;

    font-weight: 600;

    text-decoration: none;
}


/* ============================================================
   ACCÈS RAPIDES
   ============================================================ */

.header-2026 .quick-access-2026 {

    min-height: 180px;

    padding: 9px 18px;

    box-sizing: border-box;

    background: #f1f5fc;

    border-radius: 9px;
}


.header-2026 .quick-title-2026 {

    margin-bottom: 4px;

    color: var(--blue);

    font-size: 14px;

    font-weight: 700;
}


.header-2026 .quick-grid-2026 {

    display: grid;

    grid-template-columns: repeat(8, 1fr);

    height: 145px;
}


.header-2026 .quick-item-2026 {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    border-right: 1px solid #d1d8e5;

    color: var(--blue-dark);

    text-decoration: none;

    text-align: center;
}


.header-2026 .quick-item-2026:last-child {

    border-right: none;
}


.header-2026 .quick-item-2026 i {

    font-size: 48px;
}


.header-2026 .quick-item-2026 span {

    font-size: 10px;

    font-weight: 600;
}


/* ============================================================
   ÉCRAN MOYEN
   ============================================================ */

@media (max-width: 1200px) {

    .header-2026 .hero-inner-2026,
    .header-2026 .home-content-2026 {

        padding-left: 20px;
        padding-right: 20px;
    }

    .header-2026 .bulletin-2026,
    .header-2026 .event-calendar-2026 {

        width: 105px;
    }

    .header-2026 .agenda-title-2026 {

        width: 180px;
    }
}


/* ============================================================
   ÉCRAN BAS
   ============================================================ */

@media (max-height: 800px) and (min-width: 993px) {

    .header-2026 .hero-2026 {

        height: 220px;
    }

    .header-2026 .home-content-2026 {

        padding-top: 9px;
        padding-bottom: 10px;

        gap: 8px;
    }

    .header-2026 .info-card-2026 {

        min-height: 165px;
    }

    .header-2026 .jobs-2026,
    .header-2026 .news-2026 {

        min-height: 155px;
    }

    .header-2026 .news-item-2026 img {

        height: 55px;
    }

    .header-2026 .agenda-2026 {

        min-height: 58px;
    }

    .header-2026 .quick-access-2026 {

        min-height: 82px;
    }

    .header-2026 .quick-grid-2026 {

        height: 52px;
    }
}


/* ============================================================
   TABLETTE
   ============================================================ */

@media (max-width: 992px) {

    /*
     * Sous 992px, on ne cherche plus à faire tenir
     * tout le contenu dans 100vh.
     */
    .header-2026 .home-screen {

        min-height: auto;
    }

    .header-2026 .top-cards-2026,
    .header-2026 .middle-cards-2026 {

        grid-template-columns: 1fr;
    }

    .header-2026 .info-card-2026 {

        min-height: 200px;
    }

    .header-2026 .jobs-2026,
    .header-2026 .news-2026 {

        min-height: 190px;
    }

    .header-2026 .agenda-2026 {

        display: block;

        padding: 15px;
    }

    .header-2026 .agenda-title-2026 {

        width: auto;

        margin-bottom: 12px;
    }

    .header-2026 .agenda-events-2026 {

        display: flex;
    }
}


/* ============================================================
   TABLETTE PORTRAIT
   ============================================================ */

@media (max-width: 768px) {

    .header-2026 .hero-2026 {

        height: 300px;
    }

    .header-2026 .hero-inner-2026 {

        padding: 15px;
    }

    .header-2026 .hero-card-2026 {

        width: 100%;
    }

    .header-2026 .news-grid-2026 {

        grid-template-columns: repeat(2, 1fr);
    }

    .header-2026 .agenda-events-2026 {

        display: block;
    }

    .header-2026 .agenda-event-2026 {

        padding: 10px 0;

        border-left: none;
        border-top: 1px solid #ddd;
    }

    .header-2026 .agenda-event-2026:first-child {

        border-top: none;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 576px) {

    .header-2026 .hero-2026 {

        height: 390px;
    }

    .header-2026 .hero-inner-2026 {

        align-items: flex-end;
    }

    .header-2026 .hero-card-2026 {

        padding: 20px;
    }

    .header-2026 .hero-card-2026 h1 {

        font-size: 29px;
    }

    .header-2026 .hero-card-2026 p {

        font-size: 14px;
    }

    .header-2026 .hero-buttons-2026 {

        flex-direction: column;

        gap: 7px;
    }

    .header-2026 .hero-buttons-2026 a {

        width: 100%;
    }

    .header-2026 .home-content-2026 {

        padding: 10px 12px;

        gap: 10px;
    }

    .header-2026 .bulletin-2026 {

        width: 100px;

        margin-left: 10px;
    }

    .header-2026 .info-text-2026 {

        margin-left: 15px;
    }

    .header-2026 .event-calendar-2026 {

        display: none;
    }

    .header-2026 .news-grid-2026 {

        grid-template-columns: 1fr;
    }

    .header-2026 .agenda-2026 {

        padding: 15px;
    }

    .header-2026 .quick-grid-2026 {

        grid-template-columns: repeat(2, 1fr);

        height: auto;
    }

    .header-2026 .quick-item-2026 {

        min-height: 75px;

        border-bottom: 1px solid #d1d8e5;
    }

    .header-2026 .quick-item-2026:nth-child(2n) {

        border-right: none;
    }
}


/* ============================================================
   TRÈS PETIT MOBILE
   ============================================================ */

@media (max-width: 400px) {

    .header-2026 .hero-2026 {

        height: 420px;
    }

    .header-2026 .hero-card-2026 {

        padding: 17px;
    }

    .header-2026 .hero-card-2026 h1 {

        font-size: 27px;
    }

    .header-2026 .bulletin-2026 {

        display: none;
    }

    .header-2026 .info-text-2026 {

        margin-left: 30px;
    }
}