@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Pacifico&display=swap');

:root {
    --red: #ed1c24;
    --blue: #06355a;
    --dark-blue: #002c4c;
    --text: #0b2e52;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Montserrat, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: min(1480px, 94%);
    margin-inline: auto;
}

/* HERO */
.hero {
    min-height: 510px;
    position: relative;
    overflow: hidden;
    background: #fff;
}
.hero__photo {
    position: absolute;
    inset: 0 0 0 39%;
    background: url("assets/hero.jpg") center center / cover no-repeat;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255,255,255,.92) 43%, rgba(255,255,255,0) 63%);
}
.hero__content {
    position: relative;
    min-height: 510px;
    padding: 26px 0 35px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 700px;
}
.brand__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 170px;
}
.brand__phone {
    display: none;
    margin-top: 4px;
    color: #111;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.brand__phone:hover { text-decoration: underline; }
.brand__mark {
    width: 170px;
    height: 180px;
    flex: 0 0 170px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}
.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand__name {
    font-size: clamp(44px, 5vw, 76px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -3px;
    color: #050505;
}
.brand__name b { color: var(--red); }
.brand__baseline {
    margin-top: 17px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 6px;
    font-weight: 500;
}
.hero__slogan {
    position: absolute;
    top: 25px;
    right: 4%;
    color: #fff;
    font: 34px/1.22 Pacifico, cursive;
    text-align: center;
    transform: rotate(-3deg);
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.hero__intro {
    margin-top: 25px;
    max-width: 700px;
}
.hero__intro h1 {
    font-size: 25px;
    line-height: 1.22;
    font-weight: 500;
    margin: 0 0 20px;
}
.hero__intro h1 span {
    color: var(--red);
    font-weight: 900;
}
.hero__intro p {
    font-size: 24px;
    line-height: 1.27;
    margin: 0;
}
.hero__intro strong { color: #1263a5; font-weight: 800; }

/* FEATURES */
.features { background: #fff; }
.features__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr 1.08fr;
    gap: 0;
}
.feature, .remote {
    min-height: 285px;
    padding: 16px 14px 0;
    border-right: 1px solid #ccd6df;
    overflow: hidden;
}
.feature__head {
    display: flex;
    align-items: center;
    gap: 15px;
}
.number {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}
.feature h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.05;
}
.feature p {
    margin: 0 0 8px 78px;
    font-size: 15px;
    line-height: 1.2;
}
.feature img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
}
.remote {
    position: relative;
    padding-left: 15px;
}
.remote__tag {
    display: inline-block;
    padding: 9px 20px;
    background: var(--red);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    border-radius: 4px;
}
.remote h2 {
    font-size: 16px;
    line-height: 1.18;
    margin: 10px 0 8px;
    position: relative;
    z-index: 2;
}
.remote > strong {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: #0872c7;
    color: #fff;
    padding: 4px 8px;
    font-size: 19px;
}
.remote p {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.remote img {
    position: absolute;
    right: -35px;
    bottom: 0;
    width: 230px;
    height: 245px;
    object-fit: cover;
    object-position: right center;
    mix-blend-mode: multiply;
}

/* VALUES */
.values {
    background: var(--dark-blue);
    color: white;
}
.values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.55fr;
    min-height: 140px;
}
.value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-right: 1px solid rgba(255,255,255,.7);
    text-align: center;
}
.value img {
    width: 56px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 56px;
}
.value b {
    font-size: 16px;
    line-height: 1.15;
}
.values__claim {
    background: var(--red);
    clip-path: polygon(12% 0,100% 0,100% 100%,0 100%);
    display: grid;
    place-content: center;
    padding-left: 60px;
    font: 36px/1.15 Pacifico, cursive;
    transform: rotate(-1deg);
    text-align: center;
}
.values__claim strong { font-weight: 400; }

/* FOOTER */
.footer {
    background: #fff;
    padding: 18px 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1.2fr 1.15fr 1.5fr;
    align-items: center;
}
.contact {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 0 18px;
    border-right: 1px solid #273b4e;
    text-decoration: none;
}
.contact__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #fff;
    font-size: 24px;
}
.contact b {
    font-size: 29px;
    color: #050505;
}
.contact small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
}
.website b { font-size: 18px; }
.audience {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding-left: 18px;
}
.audience a {
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero { min-height: 620px; }
    .hero__content { min-height: 620px; }

    /* Photo visible sur toute la largeur de la tablette */
    .hero__photo {
        left: 0;
        opacity: 1;
        background-position: 65% center;
        background-size: cover;
    }

    /* Dégradé blanc pour conserver la lisibilité du texte */
    .hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.98) 25%,
            rgba(255,255,255,.88) 42%,
            rgba(255,255,255,.55) 58%,
            rgba(255,255,255,.18) 75%,
            rgba(255,255,255,0) 100%
        );
    }

    .hero__slogan { font-size: 26px; }
    .hero__intro { max-width: 620px; }
    .hero__intro h1, .hero__intro p { font-size: 20px; }
    .features__grid { grid-template-columns: 1fr 1fr; }
    .feature:nth-child(2) { border-right: 0; }
    .remote { border-right: 0; }
    .values__grid { grid-template-columns: 1fr 1fr; }
    .values__claim { min-height: 130px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .hero { min-height: 760px; }
    .hero__content { min-height: 760px; padding-top: 18px; }

    /* Photo nette et bien visible sur mobile */
    .hero__photo {
        left: 0;
        opacity: 1;
        background-position: 68% center;
        background-size: cover;
    }

    /* Dégradé vertical : blanc derrière le texte puis photo visible */
    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.99) 22%,
            rgba(255,255,255,.90) 40%,
            rgba(255,255,255,.65) 55%,
            rgba(255,255,255,.30) 70%,
            rgba(255,255,255,.05) 84%,
            rgba(255,255,255,0) 100%
        );
    }
    .brand {
        width: 100%;
        gap: 12px;
    }
    .brand__visual { flex: 0 0 95px; }
    .brand__mark { width: 95px; height: 105px; flex: 0 0 95px; }
    .brand__phone { display: block; font-size: 13px; margin-top: 3px; }
    .brand__name { font-size: 38px; letter-spacing: -2px; }
    .brand__baseline { font-size: 9px; letter-spacing: 2px; margin-top: 8px; }
    /* Sur mobile, le slogan est placé juste sous le logo */
    .hero__slogan {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 360px;
        margin: 20px 0 0 auto;
        font-size: 24px;
        line-height: 1.22;
        color: #111;
        text-align: center;
        transform: rotate(-3deg);
        z-index: 3;
    }

    .hero__intro {
        margin-top: 38px;
        max-width: 100%;
        position: relative;
        z-index: 2;
    }
    .hero__intro h1, .hero__intro p { font-size: 17px; }
    .features__grid,
    .values__grid,
    .footer__grid { grid-template-columns: 1fr; }
    .feature, .remote {
        border-right: 0;
        border-bottom: 1px solid #ccd6df;
    }
    .value {
        min-height: 105px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.4);
    }
    .values__claim {
        min-height: 150px;
        clip-path: none;
        padding: 20px;
        transform: none;
    }
    .contact { border-right: 0; border-bottom: 1px solid #ddd; }
    .audience { padding: 18px 0 0; flex-wrap: wrap; }
    .remote img { opacity: .45; }
}


@media (max-width: 420px) {
    .hero__slogan {
        margin-top: 16px;
        max-width: 330px;
        font-size: 21px;
    }

    .hero__intro {
        margin-top: 30px;
    }
}
