/* ==========================================================================
   Homepage Template Styles — Mobile First
   Breakpoints: 768px (tablet) | 991px (desktop) | 1200px (large)
   ========================================================================== */

/* --- CTA : override outline (homepage uniquement) ---
   Transforme btn--yellow et btn--dark :
   - default : bg transparent + border de la couleur de l'ancien bg
   - hover   : fond rempli avec la couleur du border, texte inversé
*/

.home .btn--yellow {
    background-color: transparent;
    border-color: var(--doing-noir);
    color: var(--doing-noir) !important;
}

.home .btn--yellow:hover {
    box-shadow: inset 400px 0 0 0 var(--doing-noir);
    color: var(--doing-white) !important;
}

.home .btn--yellow::after {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.25C0.585786 5.25 0.25 5.58579 0.25 6C0.25 6.41421 0.585786 6.75 1 6.75L1 5.25ZM14.5303 6.53033C14.8232 6.23744 14.8232 5.76256 14.5303 5.46967L9.75736 0.6967C9.46447 0.403806 8.98959 0.403806 8.6967 0.6967C8.40381 0.989593 8.40381 1.46447 8.6967 1.75736L12.9393 6L8.6967 10.2426C8.4038 10.5355 8.4038 11.0104 8.6967 11.3033C8.98959 11.5962 9.46446 11.5962 9.75736 11.3033L14.5303 6.53033ZM1 6.75L14 6.75L14 5.25L1 5.25L1 6.75Z' fill='%23141816'/%3E%3C/svg%3E");
}

.home .btn--yellow:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.25C0.585786 5.25 0.25 5.58579 0.25 6C0.25 6.41421 0.585786 6.75 1 6.75L1 5.25ZM14.5303 6.53033C14.8232 6.23744 14.8232 5.76256 14.5303 5.46967L9.75736 0.6967C9.46447 0.403806 8.98959 0.403806 8.6967 0.6967C8.40381 0.989593 8.40381 1.46447 8.6967 1.75736L12.9393 6L8.6967 10.2426C8.4038 10.5355 8.4038 11.0104 8.6967 11.3033C8.98959 11.5962 9.46446 11.5962 9.75736 11.3033L14.5303 6.53033ZM1 6.75L14 6.75L14 5.25L1 5.25L1 6.75Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.home .btn--dark {
    background-color: transparent;
    border-color: #323234;
    color: #323234 !important;
}

.home .btn--dark:hover {
    box-shadow: inset 400px 0 0 0 #323234;
    color: var(--doing-cyan) !important;
}

.home .btn--dark::after {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.25C0.585786 5.25 0.25 5.58579 0.25 6C0.25 6.41421 0.585786 6.75 1 6.75L1 5.25ZM14.5303 6.53033C14.8232 6.23744 14.8232 5.76256 14.5303 5.46967L9.75736 0.6967C9.46447 0.403806 8.98959 0.403806 8.6967 0.6967C8.40381 0.989593 8.40381 1.46447 8.6967 1.75736L12.9393 6L8.6967 10.2426C8.4038 10.5355 8.4038 11.0104 8.6967 11.3033C8.98959 11.5962 9.46446 11.5962 9.75736 11.3033L14.5303 6.53033ZM1 6.75L14 6.75L14 5.25L1 5.25L1 6.75Z' fill='%23323234'/%3E%3C/svg%3E");
}

.home .btn--dark:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.25C0.585786 5.25 0.25 5.58579 0.25 6C0.25 6.41421 0.585786 6.75 1 6.75L1 5.25ZM14.5303 6.53033C14.8232 6.23744 14.8232 5.76256 14.5303 5.46967L9.75736 0.6967C9.46447 0.403806 8.98959 0.403806 8.6967 0.6967C8.40381 0.989593 8.40381 1.46447 8.6967 1.75736L12.9393 6L8.6967 10.2426C8.4038 10.5355 8.4038 11.0104 8.6967 11.3033C8.98959 11.5962 9.46446 11.5962 9.75736 11.3033L14.5303 6.53033ZM1 6.75L14 6.75L14 5.25L1 5.25L1 6.75Z' fill='%2398D2D2'/%3E%3C/svg%3E");
}

.home .site {
    padding-top: 0 !important;
}

.home .site.grid-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .site-content {
    width: 100% !important;
}

.home .inside-article {
    padding: 0 !important;
}

.home .entry-content {
    overflow-x: hidden;
}

/* --- Home Fonts --- */
.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6,
.home .gb-headline {
    font-family: 'IBM Plex Mono', monospace;
}

.home body,
.home p,
.home li,
.home a:not(.btn):not(.service-btn):not(.service-btn-mobile) {
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
    position: relative;
    font-family: "Raleway", sans-serif;
    background-color: #ffffff;
    height: 100dvh;
}

#hero:after {
    display: none !important;
}

#hero .hero-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: 80%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#hero .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 600px;
    position: relative;
}

#hero .hero-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
    height: 100%;
    max-width: 345px;
}

#hero .hero-left h1 {
    color: #323234;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 2.75px;
    max-width: 400px;
    margin: 0;
}

/* --- Hero Title Lines + Pills --- */
.hero-line-top,
.hero-line-bottom {
    display: block;
    position: relative;
}

.hero-line-top::after {
    content: 'Numérique';
    position: absolute;
    right: 1em;
    bottom: -0.3em;
    padding: 4px 18px;
    border-radius: 999px;
    background-color: rgba(236, 235, 224, 1);
    color: #323234;
    font-size: 0.35em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    transform: rotate(-8deg);
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1.6;
}

.hero-line-bottom::before {
    content: 'Responsable';
    position: absolute;
    left: -1.5em;
    top: 2.9em;
    padding: 4px 18px;
    border-radius: 999px;
    background-color: var(--doing-green);
    color: #323234;
    font-size: 0.35em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    transform: rotate(8deg);
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1.6;
}

#hero .hero-right p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--global-texte, #141816);
    margin: 0;
}

#hero .hero-cta {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    width: 100%;
    justify-content: center;
    border: 2px solid var(--doing-gold);
    color: var(--doing-noir) !important;
}

#hero .hero-cta:hover {
    box-shadow: inset 400px 0 0 0 var(--doing-green);
    border-color: var(--doing-green);
    color: var(--doing-noir) !important;
}

#hero .hero-cta::after {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.25C0.585786 5.25 0.25 5.58579 0.25 6C0.25 6.41421 0.585786 6.75 1 6.75L1 5.25ZM14.5303 6.53033C14.8232 6.23744 14.8232 5.76256 14.5303 5.46967L9.75736 0.6967C9.46447 0.403806 8.98959 0.403806 8.6967 0.6967C8.40381 0.989593 8.40381 1.46447 8.6967 1.75736L12.9393 6L8.6967 10.2426C8.4038 10.5355 8.4038 11.0104 8.6967 11.3033C8.98959 11.5962 9.46446 11.5962 9.75736 11.3033L14.5303 6.53033ZM1 6.75L14 6.75L14 5.25L1 5.25L1 6.75Z' fill='%23141816'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-banner {
    background-color: var(--doing-cyan);
    padding: 32px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.hero-banner--hidden {
    transform: translateY(300px);
}

.hero-banner--dismissed {
    transform: translateY(300px) !important;
}

.hero-banner-btn::after {
    display: none;
}

.hero-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-banner-text {
    flex: 1;
    min-width: 200px;
}

.hero-banner-title {
    font-family: 'Panchang', sans-serif !important;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    color: #323234;
    margin: 0;
}

.hero-banner-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #323234;
    margin: 4px 0 0;
}

.hero-banner-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-banner-btn {
    text-transform: uppercase;
    font-family: 'Panchang', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.hero-banner-btn:hover {
    box-shadow: inset 400px 0 0 0 var(--doing-gold) !important;
    border-color: var(--doing-gold) !important;
    color: var(--doing-noir) !important;
}

.hero-banner-close {
    background: none;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    padding: 0;
    font-family: 'Panchang', sans-serif !important;
    font-size: 15px;
    font-style: normal;
    font-weight: 500 !important;
    line-height: normal;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
}

.hero-banner-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Sections below hero
   ========================================================================== */

/* --- Section container --- */
.section-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Raison text --- */
.raison-text {
    width: 100% !important;
}

/* --- Services Section --- */
.services-section {
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
    color: #323234;
    margin: 0;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Service Card --- */
.service-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    height: 350px;
    transition: background-color 0.5s ease, box-shadow 0.4s ease;
}

.service-card--green { background-color: rgba(168, 187, 162, 1); }
.service-card--gold { background-color: rgba(244, 217, 103, 1); }
.service-card--teal { background-color: rgba(50, 50, 52, 1); }

.service-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Letter */
.service-card__shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.service-card__letter {
    position: absolute;
    top: 50%;
    transform: translateY(-43%);
    font-family: 'Poppins', sans-serif;
    font-size: 560px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    user-select: none;
    transition: color 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card--green .service-card__letter { left: 150px; }
.service-card--gold .service-card__letter { left: 90px; transform: translateY(-435px) rotate(-34deg); }
.service-card--teal .service-card__letter { left: 240px; }

.service-card--green:hover .service-card__letter { transform: translateY(-43%) translateX(-70px); }
.service-card--gold:hover .service-card__letter { transform: translateY(-435px) rotate(-34deg) translateX(-90px); }
.service-card--teal:hover .service-card__letter { transform: translateY(-43%) translateX(-70px); }

/* Content */
.service-card__content {
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 10px;
}

.service-card__title {
    font-family: 'Panchang', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #323234;
    margin: 0;
    line-height: 1.2;
    transition: color 0.5s ease;
}

.service-card__text {
    font-family: 'Panchang', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #323234;
    margin: 0;
    max-width: 195px;
    transition: color 0.5s ease;
}

.service-card--teal .service-card__title,
.service-card--teal .service-card__text {
    color: rgba(255, 255, 255, 0.8);
}


.service-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background-color: #ffffff;
    color: #323234;
    position: absolute;
    bottom: 20px;
    right: 28px;
    z-index: 2;
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.3s ease;
}

.service-card:hover .service-card__arrow {
    transform: translateX(4px);
}

/* --- Container elements section (legacy, kept for compatibility) --- */
.container-elements-section {
    padding: 0 20px;
    margin: 60px 0 !important;
    width: auto !important;
}

/* --- Raison d'etre Section --- */
.raison-section {
    padding: 60px 20px;
}

.raison-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.raison-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.raison-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 36px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    color: #323234;
    margin: 0;
}

.raison-title-accent {
    color: #ADBE96;
}

.raison-text-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.raison-text-blocks p {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    color: #323234;
    margin: 0;
}

.raison-right {
    display: flex;
    justify-content: center;
}

.raison-picto {
    position: relative;
    width: 280px;
    height: 280px;
    overflow: hidden;
	transform: scaleX(-1);  
}

.raison-picto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: url('../img/picto-doing.svg');
    mask-image: url('../img/picto-doing.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: scale(1.15) translateY(-20px);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* --- About / SEO Section --- */
.about-section {
    padding: 60px 0;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-left: 20px;
    padding-right: 20px;
}

/* -- Intro row -- */
.about-intro {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-intro__title {
    color: #323234;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

.about-intro__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-intro__text p {
    color: var(--doing-noir);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.about-intro__text a {
    color: var(--doing-noir);
    text-decoration: underline;
}

/* -- Valeurs row -- */
.about-valeurs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-valeurs__img-wrapper {
    width: 100vw;
    margin-left: -20px;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
}

.about-valeurs__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15) translateY(-20px);
    transition: transform 0.1s linear;
    will-change: transform;
}

.about-valeurs__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-valeurs__title,
.about-local__title {
    color: #323234;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.about-valeurs__content p,
.about-local__content p {
    color: var(--doing-noir);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* -- Local row -- */
.about-local {
    display: flex;
    justify-content: flex-start;
}

.about-local__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.about-local__content .btn {
    margin-top: 12px;
}

/* --- Container elements section --- */
.container-elements-section {
    padding: 0 20px;
    margin: 60px 0 !important;
    width: auto !important;
}

/* --- Rounded images --- */
.is-style-rounded img {
    border-radius: 9999px;
}

/* --- Hide helpers (mobile = default) --- */
.hide-on-mobile {
    display: none;
}

.hide-on-desktop {
    display: block;
}

.hide-on-tablet {
    display: block;
}

/* --- Mobile margin --- */
.mobile-margin {
    margin: 40px 20px !important;
}

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */
@media screen and (min-width: 768px) {

    .hide-on-mobile {
        display: block;
    }

    .hide-on-tablet {
        display: none;
    }

    .hide-on-desktop {
        display: block;
    }

    #hero .hero-grid {
        flex-direction: row;
        gap: 60px;
        align-items: center;
    }

    #hero .hero-left {
        flex: 1.2;
    }

    #hero .hero-right {
        flex: 0.8;
    }

    #hero .hero-left h1 {
        font-size: 42px;
        letter-spacing: 2.1px;
        max-width: 420px;
    }

    .hero-banner {
        padding: 61px 41px;
    }

    .hero-banner-content {
        gap: 20px;
    }

    .hero-banner-title {
        font-size: 24px;
    }

    .hero-banner-subtitle {
        font-size: 18px;
    }

    #hero .hero-cta {
        width: fit-content;
    }

    .hero-banner-actions {
        width: auto;
        justify-content: flex-start;
        gap: 30px;
    }

    .hero-banner-btn {
        font-size: 0.8rem;
    }

    .hero-banner-close {
        font-size: 18px;
    }

    .services-grid {
        flex-direction: row;
        gap: 20px;
    }

    .service-card {
        flex: 1;
        height: 420px;
    }

    .service-card--green .service-card__letter {
        left: 230px;
    }

    .services-title {
        font-size: 36px;
    }

    .raison-grid {
        flex-direction: row;
        gap: 80px;
        align-items: center;
    }

    .raison-left {
        flex: 1;
    }

    .raison-right {
        flex-shrink: 0;
    }

    .raison-picto {
        width: 350px;
        height: 350px;
    }

    /* -- About section tablet -- */
    .about-wrapper {
        gap: 80px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .about-intro {
        flex-direction: row;
        gap: 25px;
    }

    .about-intro__title {
        min-width: 612px;
        flex: 1;
        flex-shrink: 0;
        font-size: 36px;
    }

    .about-intro__text {
        flex: 1;
    }

    .about-valeurs {
        flex-direction: row;
        gap: 25px;
        align-items: flex-start;
    }

    .about-valeurs__img-wrapper {
        width: 350px;
        height: 350px;
        flex-shrink: 0;
        border-radius: 25px;
        margin-left: 0;
    }

    .about-valeurs__title,
    .about-local__title {
        font-size: 24px;
    }

    .about-local__content {
        max-width: 700px;
    }
}

/* ==========================================================================
   Desktop (991px+)
   ========================================================================== */
@media screen and (min-width: 991px) {

    #hero .hero-left h1 {
        font-size: 45px;
        letter-spacing: 2.25px;
    }

    .hide-on-desktop {
        display: none;
    }

    .hide-on-tablet {
        display: block;
    }

    /* -- About section desktop -- */
    .about-section {
        padding: 100px 0;
    }

    .about-wrapper {
        gap: 150px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .about-valeurs__img-wrapper {
        width: 612px;
        height: 612px;
    }

    .service-card {
        height: 450px;
    }

    .raison-section {
        padding: 100px 40px;
    }

    .raison-picto {
        width: 380px;
        height: 380px;
    }

    .hero-banner--hidden {
        transform: translateY(350px);
    }

    .hero-banner--dismissed {
        transform: translateY(350px) !important;
    }

}

/* ==========================================================================
   Large (1200px+)
   ========================================================================== */
@media screen and (min-width: 1200px) {

    #hero .hero-left h1 {
        font-size: 55px;
        letter-spacing: 2.75px;
        max-width: none;
    }

    .raison-picto {
        width: 420px;
        height: 420px;
    }
}