.wp-contact{
    width:min(1040px,calc(100% - 40px));
    margin:50px auto 80px;
    color:#111;
}

.wp-contact *{
    box-sizing:border-box;
}

/* TITRE */

.wp-contact-head{
    margin-bottom:55px;
}

.wp-contact-head h1{
    display:inline-block;
    margin:0;
    padding:0 0 10px;
    border-bottom:2px solid #ca161a;
    font-size:26px;
    font-weight:800;
    text-transform:uppercase;
}


/* GRILLE PRINCIPALE */

.wp-contact-layout{
    display:grid;
    grid-template-columns:420px 1fr;
    grid-template-areas:
        "intro cards"
        "clock post";
    column-gap:16px;
    row-gap:24px;
    align-items:start;
}


/* INTRO À GAUCHE */

.wp-contact-intro{
    grid-area:intro;
    min-height:220px;
    padding:0 22px 0 18px;
    border-left:5px solid #ca161a;
}

.wp-contact-intro p{
    margin:0 0 25px;
    font-size:15px;
    line-height:1.65;
}

.wp-contact-intro p:last-child{
    margin-bottom:0;
}


/* MOSAÏQUE DES CARTES */

.wp-contact-cards{
    grid-area:cards;

    display:grid;
    grid-template-columns:150px 132px 200px;
    grid-template-rows:auto auto;
    gap:7px 14px;

    align-items:start;
    justify-content:start;
}

.wp-contact-card{
    display:block;
    padding:10px 10px 9px;

    background:#fff;
    color:#111;

    border-radius:4px;
    box-shadow:0 2px 10px rgba(0,0,0,.28);

    text-align:center;
    text-decoration:none;
}

.wp-contact-card:hover{
    color:#111;
    transform:translateY(-1px);
}

.wp-contact-card h2{
    margin:8px 0 8px;
    font-size:14px;
    font-weight:800;
    line-height:1.25;
    text-transform:uppercase;
}

.wp-contact-card p{
    margin:6px 0;
    font-size:12px;
    line-height:1.45;
}

.wp-contact-card a{
    color:#ca161a;
    font-weight:700;
    text-decoration:none;
}

.wp-contact-card a:hover{
    text-decoration:underline;
}


/* ICÔNES */

.wp-contact-icon{
    display:flex;
    align-items:center;
    justify-content:center;

    width:38px;
    height:38px;
    margin:0 auto;

    color:#ca161a;
    font-size:30px;
    font-weight:700;
    line-height:1;
}

.wp-contact-facebook{
    width:36px;
    height:36px;

    border-radius:50%;

    background:#ca161a;
    color:#fff;

    font-family:Arial,sans-serif;
    font-size:30px;
}


/* POSITIONNEMENT EXACT DES CARTES */

.wp-contact-cards > :nth-child(1){
    grid-column:1;
    grid-row:1 / span 2;
}

.wp-contact-cards > :nth-child(2){
    grid-column:2;
    grid-row:1 / span 2;
}

.wp-contact-email{
    grid-column:3;
    grid-row:1;
}

.wp-contact-phone{
    grid-column:3;
    grid-row:2;

    width:120px;
    justify-self:start;

    margin-left:6px;
}

.wp-contact-phone .wp-contact-icon{
    font-size:32px;
}


/* HORLOGE */

.wp-contact-clock{
    grid-area:clock;

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:115px;

    background:#ca161a;
    border-radius:4px;
}

#wp-contact-clock{
    width:130px;
    height:100px;
}


/* VOIE POSTALE */

.wp-contact-post{
    grid-area:post;

    min-height:110px;
    padding:10px 18px 12px;

    background:#fff;

    border-radius:4px;
    box-shadow:0 2px 10px rgba(0,0,0,.28);

    text-align:center;
}

.wp-contact-home{
    height:42px;

    color:#ca161a;

    font-size:2.7rem;
    font-weight:700;
    line-height:1;
}

.wp-contact-post h2{
    margin:0 0 9px;
    font-size:14px;
    font-weight:800;
    text-transform:uppercase;
}

.wp-contact-post p{
    margin:0;
    font-size:12px;
    line-height:1.45;
}


/* TABLETTE */

@media(max-width:900px){

    .wp-contact-layout{
        grid-template-columns:1fr;
        grid-template-areas:
            "intro"
            "cards"
            "clock"
            "post";
    }

    .wp-contact-intro{
        min-height:0;
    }

    .wp-contact-cards{
        grid-template-columns:repeat(2,minmax(0,1fr));
        grid-template-rows:auto;
    }

    .wp-contact-cards > :nth-child(1),
    .wp-contact-cards > :nth-child(2),
    .wp-contact-email,
    .wp-contact-phone{
        grid-column:auto;
        grid-row:auto;
        width:auto;
        margin:0;
        justify-self:stretch;
    }
}


/* MOBILE */

@media(max-width:620px){

    .wp-contact{
        width:calc(100% - 24px);
        margin-top:28px;
    }

    .wp-contact-head{
        margin-bottom:28px;
    }

    .wp-contact-head h1{
        font-size:1.2rem;
    }

    .wp-contact-cards{
        grid-template-columns:1fr;
    }

    .wp-contact-card,
    .wp-contact-phone{
        width:100%;
    }

    .wp-contact-clock{
        min-height:105px;
    }

    #wp-contact-clock{
        width:110px;
        height:90px;
    }
}

.wp-contact-phone a{
    color:#ca161a !important;
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:2px;
}

.wp-contact-phone a:hover{
    color:#a80f13 !important;
}

/* Ajustement final des textes des cartes */

.wp-contact-card h2{
    font-size:14px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    word-break:normal;
    overflow-wrap:normal;
    hyphens:none;
}

.wp-contact-card p{
    font-size:12px !important;
    line-height:1.45 !important;
    overflow-wrap:break-word;
}

.wp-contact-email{
    min-width:200px;
}

.wp-contact-email p,
.wp-contact-email a{
    font-size:12px !important;
    white-space:nowrap;
}

.wp-contact-phone{
    width:130px;
}

.wp-contact-phone h2{
    font-size:14px !important;
    white-space:nowrap;
}

.wp-contact-phone p{
    font-size:12px !important;
}

.wp-contact-cards > :nth-child(1) h2{
    font-size:14px !important;
    line-height:1.25 !important;
}

@media(max-width:900px){
    .wp-contact-email,
    .wp-contact-phone{
        width:auto;
        min-width:0;
    }

    .wp-contact-email p,
    .wp-contact-email a,
    .wp-contact-phone h2{
        white-space:normal;
    }
}
