/* ==============================
   UTILITAIRES SECTION
   ============================== */

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0d5091;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-tag::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #0d5091;
    flex-shrink: 0;
}

.section-title {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* ==============================
   CADRE COMMUN DES IMAGES
   ============================== */

.hero__image-wrapper,
.atelier__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border-bottom: 6px solid #0d5091;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ==============================
   BADGE OUVERT / FERMÉ
   ============================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background-color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.status-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge__label {
    font-weight: 600;
}

.status-badge__detail {
    color: #777;
}

.status-badge--open .status-badge__dot {
    background-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.status-badge--open .status-badge__label {
    color: #15803d;
}

.status-badge--closed .status-badge__dot {
    background-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.status-badge--closed .status-badge__label {
    color: #b91c1c;
}

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

.hero {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero__title {
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__desc {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* ==============================
   L'ATELIER
   ============================== */

.atelier {
    padding: 80px 0;
    background-color: #ffffff;
}

.atelier__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Image à gauche, texte à droite (l'ordre du DOM reste texte puis image) */
.atelier__image-wrapper {
    order: 1;
}

.atelier__content {
    order: 2;
}

.atelier__text {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.atelier__image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* ==============================
   NOS SAVOIR-FAIRE
   ============================== */

.savoir-faire {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.savoir-faire__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.savoir-faire__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.savoir-faire__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #444;
    cursor: default;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.savoir-faire__item:hover,
.savoir-faire__item.is-active {
    background-color: #e8f0fb;
    color: #0d5091;
}

.savoir-faire__bullet {
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background-color: #c9d2dd;
    flex-shrink: 0;
    transition:
        background-color 0.2s,
        height 0.2s;
}

.savoir-faire__item:hover .savoir-faire__bullet,
.savoir-faire__item.is-active .savoir-faire__bullet {
    height: 26px;
    background-color: #0d5091;
}

/*
   Ce wrapper ne peut pas être en overflow: hidden,
   sinon les équerres décoratives seraient rognées.
   L'arrondi est donc porté par l'image elle-même.
*/
.savoir-faire__image-wrapper {
    position: relative;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(13, 80, 145, 0.18);
}

.savoir-faire__image-wrapper::before,
.savoir-faire__image-wrapper::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid #0d5091;
}

.savoir-faire__image-wrapper::before {
    top: -14px;
    left: -14px;
    border-right: none;
    border-bottom: none;
}

.savoir-faire__image-wrapper::after {
    right: -14px;
    bottom: -14px;
    border-top: none;
    border-left: none;
}

.savoir-faire__image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

/* ==============================
   NOS RÉALISATIONS
   ============================== */

.realisations {
    padding: 80px 0;
    background-color: #ffffff;
}

.realisations__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.realisations__header .section-title {
    margin-bottom: 0;
}

.realisations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.realisations__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.realisations__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.realisations__img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.realisations__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.realisations__card:hover .realisations__img {
    transform: scale(1.05);
}

.realisations__img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

a.realisations__card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.realisations__card-body {
    padding: 16px;
}

.realisations__card-title {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.realisations__card-desc {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

/* ==============================
   BANDEAU CONTACT
   ============================== */

.contact-cta {
    background-color: #0d5091;
    padding: 60px 0;
}

.contact-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-cta__title {
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-cta__sub {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-cta__actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn--outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.btn--outline-white:hover {
    background-color: #ffffff;
    color: #0d5091;
}

.btn--white {
    background-color: #ffffff;
    color: #0d5091;
    border: 2px solid #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.btn--white:hover {
    background-color: transparent;
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .hero__grid,
    .atelier__grid,
    .savoir-faire__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Sur une seule colonne, le titre repasse avant l'image */
    .atelier__content {
        order: 1;
    }

    .atelier__image-wrapper {
        order: 2;
    }

    .hero__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 22px;
    }

    .realisations__header {
        align-items: flex-start;
    }

    .realisations__grid {
        grid-template-columns: 1fr;
    }

    .contact-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn--outline-white,
    .btn--white {
        text-align: center;
    }

    .hero__image,
    .atelier__image {
        height: 240px;
    }
}

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

@media (max-width: 640px) {
    .hero,
    .atelier,
    .savoir-faire,
    .realisations {
        padding: 56px 0;
    }

    /*
       Le détail des horaires peut occuper deux lignes : l'arrondi
       en gélule devient alors disgracieux, et la pastille doit
       s'aligner sur la première ligne plutôt qu'au centre du bloc.
    */
    .status-badge {
        align-items: flex-start;
        border-radius: 12px;
        padding: 8px 14px;
    }

    .status-badge__dot {
        margin-top: 5px;
    }

    /* Boutons pleine largeur : deux tailles différentes côte à côte
       ou empilées donnent un rendu bancal */
    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .realisations__header .btn {
        width: 100%;
        text-align: center;
    }

    .savoir-faire__item {
        font-size: 14px;
        padding: 10px 14px;
    }

    .savoir-faire__image {
        height: 260px;
    }

    /* Équerres resserrées pour ne pas déborder du container */
    .savoir-faire__image-wrapper::before,
    .savoir-faire__image-wrapper::after {
        width: 24px;
        height: 24px;
    }

    .savoir-faire__image-wrapper::before {
        top: -8px;
        left: -8px;
    }

    .savoir-faire__image-wrapper::after {
        right: -8px;
        bottom: -8px;
    }

    .contact-cta__title {
        font-size: 22px;
    }
}
