/* =========================================================
   CROIX BLANCHE GRANDCHAMPS-DES-FONTAINES
   Feuille de style principale
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --blue: #07549a;
    --blue-dark: #063c70;
    --blue-light: #0b67b7;

    --red: #e30613;
    --red-dark: #bd000b;

    --text: #243447;
    --text-light: #667085;

    --light: #f5f8fb;
    --white: #ffffff;

    --border: #e2e8f0;

    --shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    --radius: 8px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width: min(1180px, 92%);

    margin-left: auto;
    margin-right: auto;
}


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

.site-header {

    background: var(--white);

    border-top: 1px solid #ddd;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05);

    position: relative;

    z-index: 100;
}


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

.top-header {

    background: var(--white);
}


.header-main {

    min-height: 125px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {

    display: block;

    width: 360px;

    flex-shrink: 0;
}


.brand img {

    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;
}


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

.header-links {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 13px;

    color: var(--blue);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
}

.header-links a {

    transition:
        color 0.2s ease;
}

.header-links a:hover {

    color: var(--red);
}


.social-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 27px;

    height: 27px;

    border-radius: 50%;

    background: var(--blue);

    color: #fff !important;

    font-weight: 700;

    font-size: 13px;
}

.social-link:hover {

    background: var(--red);

    color: #fff !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation {

    border-top: 1px solid #eeeeee;

    background: #fff;
}


.nav-inner {

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 30px;
}


.nav-inner > a {

    color: var(--blue);

    font-size: 15px;

    font-weight: 700;

    position: relative;

    padding: 18px 0;

    transition:
        color 0.2s ease;
}


.nav-inner > a:not(.nav-dps)::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 9px;

    width: 0;

    height: 2px;

    background: var(--red);

    transition:
        width 0.25s ease;
}


.nav-inner > a:not(.nav-dps):hover::after {

    width: 100%;
}


.nav-inner > a:hover {

    color: var(--red);
}


/* =========================================================
   BOUTON DPS DU MENU
   ========================================================= */

.nav-dps {

    background: var(--red);

    color: #fff !important;

    padding:
        12px 20px !important;

    border-radius: 4px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.nav-dps:hover {

    background: var(--red-dark);

    color: #fff !important;

    transform: translateY(-1px);
}


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

.hero {

    background:
        linear-gradient(
            120deg,
            rgba(6, 60, 112, 0.98),
            rgba(7, 84, 154, 0.93)
        );

    color: #fff;

    padding:
        90px 0;
}


.hero-content {

    min-height: 390px;

    display: flex;

    align-items: center;
}


.hero-text {

    max-width: 780px;
}


.hero-label {

    display: inline-block;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #fff;
}


.hero h1 {

    font-size: 50px;

    line-height: 1.08;

    margin:
        14px 0 20px;

    font-weight: 800;
}


.hero p {

    max-width: 720px;

    font-size: 20px;

    margin:
        0 0 30px;
}


.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


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

.btn {

    display: inline-block;

    padding:
        13px 23px;

    border-radius: 4px;

    border: 2px solid transparent;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.btn:hover {

    transform: translateY(-1px);
}


.btn-red {

    background: var(--red);

    color: #fff;
}


.btn-red:hover {

    background: var(--red-dark);

    color: #fff;
}


.btn-blue {

    background: var(--blue);

    color: #fff;
}


.btn-blue:hover {

    background: var(--blue-dark);

    color: #fff;
}


.btn-white {

    background: #fff;

    color: var(--blue);
}


.btn-white:hover {

    background: #f0f4f8;

    color: var(--blue-dark);
}


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

.section {

    padding:
        70px 0;
}


.section-light {

    background: var(--light);
}


/* =========================================================
   TITRES DE SECTION
   ========================================================= */

.section-title {

    max-width: 800px;

    margin:
        0 auto 40px;

    text-align: center;
}


.section-title span,
.section-label {

    color: var(--red);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.2px;
}


.section-title h2 {

    color: var(--blue);

    font-size: 34px;

    line-height: 1.2;

    margin:
        10px 0 15px;
}


.section-title p {

    margin: 0;

    color: var(--text-light);
}


/* =========================================================
   CARTES
   ========================================================= */

.cards {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


.card,
.news-card,
.info-box {

    background: #fff;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: var(--shadow);
}


.card {

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.08);
}


.card-icon {

    font-size: 30px;

    color: var(--red);

    margin-bottom: 10px;
}


.card h3,
.news-card h3,
.info-box h3 {

    color: var(--blue);

    margin:
        0 0 12px;

    line-height: 1.3;
}


.card p,
.news-card p {

    color: var(--text-light);
}


.card a,
.news-card a {

    color: var(--blue);

    font-weight: 700;

    display: inline-block;

    margin-top: 8px;
}


.card a:hover,
.news-card a:hover {

    color: var(--red);
}


/* =========================================================
   DEUX COLONNES
   ========================================================= */

.two-columns {

    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 50px;

    align-items: start;
}


.two-columns h2 {

    color: var(--blue);

    font-size: 35px;

    line-height: 1.2;

    margin:
        10px 0 20px;
}


.two-columns p {

    color: var(--text-light);
}


/* =========================================================
   INFO BOX
   ========================================================= */

.info-box ul {

    padding-left: 22px;

    margin:
        10px 0 0;
}


.info-box li {

    margin:
        9px 0;

    color: var(--text);
}


.identity-item {

    padding:
        13px 0;

    border-bottom:
        1px solid var(--border);
}


.identity-item:last-child {

    border-bottom: 0;
}


.identity-item strong,
.identity-item span {

    display: block;
}


.identity-item strong {

    color: var(--blue);

    margin-bottom: 2px;
}


/* =========================================================
   EN-TÊTE DES PAGES
   ========================================================= */

.page-head {

    background: var(--light);

    border-bottom:
        1px solid var(--border);

    padding:
        55px 0;
}


.page-head h1 {

    color: var(--blue);

    font-size: 43px;

    line-height: 1.15;

    margin:
        10px 0;
}


.page-head p {

    margin: 0;

    color: var(--text-light);

    max-width: 760px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {

    background: var(--blue);

    color: #fff;

    padding:
        55px 0;
}


.cta-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.cta-content > div {

    max-width: 760px;
}


.cta span {

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.2px;
}


.cta h2 {

    margin:
        8px 0;

    font-size: 34px;

    line-height: 1.2;
}


.cta p {

    margin: 0;

    color: rgba(255,255,255,.9);
}


/* =========================================================
   ACTUALITES
   ========================================================= */

.news-card {

    border-top:
        4px solid var(--blue);
}


.news-date {

    color: var(--red);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 10px;
}


/* =========================================================
   FORMULAIRES
   ========================================================= */

.form {

    max-width: 900px;

    margin:
        0 auto;
}


.form-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}


label {

    display: block;

    color: var(--blue);

    font-weight: 700;

    margin-bottom: 6px;
}


input,
select,
textarea {

    width: 100%;

    padding: 13px;

    border:
        1px solid #cfd8e3;

    border-radius: 4px;

    background: #fff;

    color: var(--text);

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


input:focus,
select:focus,
textarea:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(7,84,154,.10);
}


textarea {

    min-height: 160px;

    resize: vertical;
}


.full {

    grid-column:
        1 / -1;
}


/* =========================================================
   NOTICE
   ========================================================= */

.notice {

    max-width: 900px;

    margin:
        0 auto 25px;

    padding:
        17px 20px;

    border-left:
        4px solid var(--red);

    background:
        #fff4f4;

    color: var(--text);
}


.notice strong {

    color: var(--red);
}


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

.footer {

    background:
        var(--blue-dark);

    color: #fff;

    padding:
        50px 0 20px;
}


.footer-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 40px;
}


.footer-column h3 {

    margin:
        0 0 18px;

    font-size: 18px;
}


.footer-column p {

    color:
        rgba(255,255,255,.85);
}


.footer-column a {

    display: block;

    margin:
        8px 0;

    color:
        rgba(255,255,255,.9);
}


.footer-column a:hover {

    color: #fff;

    text-decoration: underline;
}


.footer-logo {

    width: 250px;

    max-width: 100%;

    display: block;

    margin-bottom: 18px;
}


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

.footer-social {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    border-top:
        1px solid rgba(255,255,255,.18);

    margin-top:
        35px;

    padding-top:
        25px;

    font-size: 14px;
}


.footer-social span {

    font-weight: 700;

    margin-right: 5px;
}


.footer-social a:hover {

    text-decoration: underline;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {

    border-top:
        1px solid rgba(255,255,255,.18);

    margin-top:
        25px;

    padding-top:
        18px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    font-size: 13px;
}


.copyright p {

    margin: 0;

    color:
        rgba(255,255,255,.75);
}


.footer-legal {

    display: flex;

    gap: 10px;

    align-items: center;
}


.footer-legal a {

    color:
        rgba(255,255,255,.8);
}


.footer-legal a:hover {

    color: #fff;

    text-decoration: underline;
}


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

@media (max-width: 1000px) {

    .header-main {

        flex-direction: column;

        justify-content: center;

        padding:
            20px 0;
    }


    .header-links {

        display: none;
    }


    .nav-inner {

        justify-content: center;

        flex-wrap: wrap;

        gap: 10px 22px;

        padding:
            10px 0;
    }


    .nav-inner > a {

        padding:
            8px 0;
    }


    .nav-inner > a:not(.nav-dps)::after {

        bottom: 2px;
    }


    .cards {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .two-columns {

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .hero h1 {

        font-size: 44px;
    }

}


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

@media (max-width: 650px) {

    .container {

        width: 92%;
    }


    .brand {

        width:
            min(360px, 100%);
    }


    .nav-inner {

        gap: 5px 15px;
    }


    .nav-inner > a {

        font-size: 12px;

        white-space: nowrap;
    }


    .nav-dps {

        padding:
            9px 13px !important;
    }


    .hero {

        padding:
            65px 0;
    }


    .hero-content {

        min-height:
            300px;
    }


    .hero h1 {

        font-size: 36px;
    }


    .hero p {

        font-size: 17px;
    }


    .hero-buttons {

        flex-direction: column;

        align-items:
            flex-start;
    }


    .section {

        padding:
            50px 0;
    }


    .section-title h2 {

        font-size: 29px;
    }


    .page-head {

        padding:
            45px 0;
    }


    .page-head h1 {

        font-size: 34px;
    }


    .cards {

        grid-template-columns:
            1fr;
    }


    .two-columns h2 {

        font-size: 30px;
    }


    .form-grid {

        grid-template-columns:
            1fr;
    }


    .full {

        grid-column:
            auto;
    }


    .cta-content {

        flex-direction: column;

        align-items:
            flex-start;
    }


    .cta h2 {

        font-size: 29px;
    }


    .footer-grid {

        grid-template-columns:
            1fr;
    }


    .copyright {

        flex-direction: column;

        align-items:
            flex-start;
    }


    .footer-legal {

        flex-wrap: wrap;
    }

}


/* =========================================================
   PETITS ECRANS
   ========================================================= */

@media (max-width: 420px) {

    .brand {

        width: 100%;
    }


    .nav-inner {

        justify-content:
            center;
    }


    .nav-inner > a {

        font-size: 11px;
    }


    .hero h1 {

        font-size: 31px;
    }


    .hero p {

        font-size: 16px;
    }


    .btn {

        padding:
            12px 18px;

        font-size: 14px;
    }

}