/*
Orange: #f24a00
Yellow: #fedd5b
Blue: #0025c1
*/
.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.intro-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header__container { padding-top: 30px; }
.header__menu-button-inner { height: 1px; width: 45px; }
.logo img { max-width:220px; }
.header__menu-button-inner::after { transform: translateY(-12px); }
.header__menu-button-inner::before { transform: translateY(12px); }
.menu-panel { background: rgba(255, 255, 255, 0.95); max-width: 100%; width: 100%; }
.menu-panel__inner { width: 460px; margin: 0 50px 0 auto; text-align: left; }
.menu-panel__bottom-submenu { padding-left: 0; }
.menu-panel .menu-panel__socials { justify-content: center; }
/* état par défaut : fond sombre → logo clair */
.logo-dark { display: none; }
.menu-panel__menu-link { font-size: 30px; font-weight: 400; margin-bottom: 8px; line-height: 1.1; }
.menu-panel__inner { padding-top: 150px; }
.menu-panel__submenu-link { font-size: 17px; margin-left: 20px; }
.heading-default { padding-top: 80px; }

/* quand le header devient fixed après scroll → fond clair → logo dark */
.header.header_is_fixed .logo-light { display: none; }
.header.header_is_fixed .logo-dark  { display: inline-block; }

main { padding-top: 200px; }

.footer-default__head a::after, .header__inner a::after { height: 0; }

/* optionnel : petit fondu si tu préfères */
.site-logo { position: relative; display: inline-block; }
.logo-img { transition: opacity .2s ease; }
.header.header_is_fixed .logo-light { opacity: 0; }
.header.header_is_fixed .logo-dark  { opacity: 1; }

/* Si header_white → logo light */
.header.header_white .logo-light { display: inline-block; }
.header.header_white .logo-dark  { display: none; }

/* Si header → logo dark */
.header .logo-light { display: none; }
.header .logo-dark  { display: inline-block; }

.yellow { color: #fedd5b; }
.blue { color: #0025c1; }

.masonry__secondary-filter-button_active-blue { color: #0025c1; }
.masonry__secondary-filter-button_active-blue:after { opacity: 1; }
.masonry-large-block { border-bottom: 0; }
.masonry-large-block__item a:hover .yellow { color: #000; }
.masonry-item__image { filter: grayscale(100%) contrast(1.2); }
.news-masonry-item__date { padding-left: 0; margin-left: 0; font-size: 20px; }
.masonry-large-block__item { margin-bottom: 10px; margin-top: 0; }

.tab-section { display: none; }
.tab-section_active { display: block; }


.footer-default__head { padding-bottom: 37px; margin-bottom: 37px; }

/*Info sur :hover */
/* on s’appuie sur le wrapper déjà présent */
.masonry-item__image-wrapper {
  position: relative;
  overflow: hidden; /* utile si l’image zoome */
}

/* overlay plein cadre, non bloquant pour le clic */
.masonry-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;     /* centre vertical */
  justify-content: center; /* centre horizontal */
  padding: 12px;
  background: rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;      /* laisse l’ancre cliquable */
  z-index: 1;                /* au-dessus de l’image */
}

/* texte */
.masonry-item__caption { color: #000; font-weight: 600; line-height: 1.0; font-size: 20px; text-align: center; width: 100%; }
.masonry-item__caption span { color: #666; font-weight: 300; }
.masonry-item:hover .masonry-item__overlay, .masonry-item:focus-visible .masonry-item__overlay { opacity: 1; transform: translateY(0); }
.masonry-item__caption strong { font-size: 5rem; opacity:0.3; }

.service-block__title { font-size: 38px; }

.bg-primary { background-color: #2d2d2d !important; }
.txt-white { color: #fff !important; }
.txt-justify { text-align: justify !important; }
.txt-center { text-align: center !important; }

.fs-20 { font-size: 20px; }
.fs-21 { font-size: 21px; }
.fs-22 { font-size: 22px; }
.fs-23 { font-size: 23px; }
.fs-24 { font-size: 24px; }
.fs-25 { font-size: 25px; }
.fs-26 { font-size: 26px; }
.fs-27 { font-size: 27px; }
.fs-28 { font-size: 28px; }
.fs-29 { font-size: 29px; }
.fs-30 { font-size: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mb-70 { margin-bottom: 70px; }
.mb-80 { margin-bottom: 80px; }
.mb-90 { margin-bottom: 90px; }
.mb-100 { margin-bottom: 100px; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mt-70 { margin-top: 70px; }
.mt-80 { margin-top: 80px; }
.mt-90 { margin-top: 90px; }
.mt-100 { margin-top: 100px; }
.mx-0 { margin: 0; }
.mx-10 { margin: 10px; }
.mx-20 { margin: 20px; }
.mx-30 { margin: 30px; }
.mx-40 { margin: 40px; }
.mx-50 { margin: 50px; }
.mx-60 { margin: 60px; }
.mx-70 { margin: 70px; }
.mx-80 { margin: 80px; }
.mx-90 { margin: 90px; }
.mx-100 { margin: 100px; }

.pb-0 { padding-bottom: 0; }
.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }
.pb-40 { padding-bottom: 40px; }
.pb-50 { padding-bottom: 50px; }
.pb-60 { padding-bottom: 60px; }
.pb-70 { padding-bottom: 70px; }
.pb-80 { padding-bottom: 80px; }
.pb-90 { padding-bottom: 90px; }
.pb-100 { padding-bottom: 100px; }
.pt-0 { padding-top: 0; }
.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.pt-40 { padding-top: 40px; }
.pt-50 { padding-top: 50px; }
.pt-60 { padding-top: 60px; }
.pt-70 { padding-top: 70px; }
.pt-80 { padding-top: 80px; }
.pt-90 { padding-top: 90px; }
.pt-100 { padding-top: 100px; }
.px-0 { padding: ; }
.px-10 { padding: 10px; }
.px-20 { padding: 20px; }
.px-30 { padding: 30px; }
.px-40 { padding: 40px; }
.px-50 { padding: 50px; }
.px-60 { padding: 60px; }
.px-70 { padding: 70px; }
.px-80 { padding: 80px; }
.px-90 { padding: 90px; }
.px-100 { padding: 100px; }

/* projet-detail */
/* Hero Section */
.projet-detail-hero { min-height: 100vh; display: flex; align-items: stretch; }
.projet-detail-hero .container-fluid,
.projet-detail-hero .row { height: 100%; }
.projet-detail-hero__content { align-items: center; padding: 0 40px 80px 40px; }
.projet-detail-hero__inner { max-width: 700px; margin: 0 auto; }
.projet-detail-hero__breadcrumb { font-size: 14px; color: #999; margin-bottom: 30px; }
.breadcrumb-link { color: #666; text-decoration: none; transition: color 0.3s; }
.breadcrumb-link:hover { color: #fdc30a; }
.breadcrumb-separator { margin: 0 10px; color: #ccc; }
.breadcrumb-current { color: #333; }
.projet-detail-hero__title { font-size: 48px; font-weight: 700; font-family: 'Teko', sans-serif; color: #1a1a1a; margin-bottom: 30px; line-height: 1.2; }
.projet-detail-hero__meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #ddd; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666; }
.meta-item i { font-size: 18px; color: #fdc30a; }
.projet-detail-hero__description { font-size: 16px; line-height: 1.8; color: #444; }
.projet-detail-hero__image-col { padding: 0; }
.projet-detail-hero__image { width: 100%; height: 100%; min-height: 100vh; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Galerie photos */
.projet-detail-gallery { padding: 100px 0; background-color: #fff; }
.projet-detail-gallery__title { font-size: 36px; font-weight: 700; font-family: 'Teko', sans-serif; color: #1a1a1a; margin-bottom: 50px; text-align: center; }
.projet-detail-gallery__item { display: block; overflow: hidden; margin-bottom: 25px; position: relative; padding-top: 75%; /* Ratio 4:3 */ }
.projet-detail-gallery__image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.projet-detail-gallery__item:hover .projet-detail-gallery__image { transform: scale(1.05); }

/* Bouton retour */
.projet-detail-back { padding: 60px 0; background-color: #f8f8f8; text-align: center; }
.btn-back { display: inline-flex; align-items: center; gap: 10px; padding: 15px 40px; background-color: #1a1a1a; color: #fff; text-decoration: none; font-weight: 500; border-radius: 4px; transition: all 0.3s; }
.btn-back:hover { background-color: #fdc30a; color: #1a1a1a; transform: translateY(-2px); }
.btn-back i { font-size: 18px; }

/* Overlay jaune au survol avec lettre A en découpe */
.masonry-item__overlay-yellow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(253, 195, 10, 0.85); /* Jaune à 85% opacité */ opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.masonry-item:hover .masonry-item__overlay-yellow { opacity: 1; }

/* Lettre A en découpe (mix-blend-mode pour effet pathfinder) */
.masonry-item__overlay-letter { font-size: 120px; font-weight: 900; font-family: 'Teko', sans-serif; color: #000; mix-blend-mode: multiply; opacity: 0.3; line-height: 1;  user-select: none; }

/* Position relative pour le wrapper */
.masonry-item__image-wrapper { position: relative; overflow: hidden; }

.txt-expertises a:hover { color:#0025c1 !important; }
.txt-expertises .masonry__secondary-filter-button:hover { color: #0025c1 !important; }

.footer-default__head.blue::after { background: #0025c1; }
.blue a:hover { color: #0025c1 !important; }

/* ── EXPERTISE PAGE ── */
.ep { color: #1d1d1b; font-size: 15px; line-height: 1.8; }
.ep .ep-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #1d1d1b; margin-bottom: 6px; letter-spacing: -0.01em; }
.ep-badge { display: inline-flex; align-items: center; gap: 8px; background: #0025c1; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; border-radius: 3px; margin-bottom: 24px; }
.ep .ep-intro { font-size: 16px; line-height: 1.85; color: #333; border-left: 4px solid #0025c1; padding-left: 20px; margin-bottom: 28px; }
.ep .ep-header-img { width: 100%; height: auto; display: block; margin-bottom: 36px; }
.ep-team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 36px; }


.full-screen-block__counter { font-size: 25px; letter-spacing: 8px; }
.full-screen-block__counter-all { color: #fff; }
.full-screen-block__label { font-size: 20px; font-weight: 600; text-align: left; }
.full-screen-block__link { color: #fff; background-color: #fdc30a; padding:10px 15px; font-size: 20px; }
.full-screen-block__link::after { content: unset; }

.masonry__secondary-filter-button_active, .masonry__secondary-filter-button:hover { color: #fff; background-color: black; text-decoration: none; }
.masonry__secondary-filter-button { padding: 3px 15px; margin-right: 0; }
.masonry__secondary-filter-button::after { bottom: 0; }

@media (max-width: 767px) { .ep-team { grid-template-columns: 1fr; } }

.ep-team-card { background: #f7f8fc; border-top: 3px solid #0025c1; border-radius: 0 0 6px 6px; padding: 18px 20px; }
.ep-team-card__name { font-weight: 700; font-size: 13px; color: #0025c1; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ep-team-card__role { font-size: 13px; color: #555; line-height: 1.55; }
.ep-section { padding: 30px 0; border-top: 1px solid rgba(0,37,193,0.13); }
.ep-section:first-of-type { border-top: 0; padding-top: 0; }
.ep-section-title { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #0025c1; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ep-domains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px; }
.ep-domain-card { background: #fff; border: 1px solid rgba(0,37,193,0.15); border-radius: 6px; padding: 16px 18px; transition: box-shadow 0.2s; }
.ep-domain-card:hover { box-shadow: 0 4px 16px rgba(0,37,193,0.1); }
.ep-domain-card__title { font-weight: 700; font-size: 13px; color: #0025c1; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px; }
.ep-domain-card__text { font-size: 13px; color: #555; line-height: 1.55; }
.ep ul, .ep ol { margin: 12px 0 16px 6px; padding: 0; list-style: none; }
.ep ul li, .ep ol li { padding: 4px 0 4px 22px; position: relative; font-size: 14px; color: #444; line-height: 1.6; }
.ep ul li::before { content: '–'; position: absolute; left: 6px; color: #0025c1; font-weight: 700; }
.ep ol { counter-reset: ep-counter; }
.ep ol li { counter-increment: ep-counter; }
.ep ol li::before { content: counter(ep-counter) '.'; position: absolute; left: 0; color: #0025c1; font-weight: 700; font-size: 13px; }
.ep-geo { background: linear-gradient(135deg, #f0f3ff 0%, #f7f8fc 100%); border-radius: 6px; padding: 22px 26px; }
.ep-geo p { margin: 0 0 10px; font-size: 14px; }
.ep-geo p:last-child { margin: 0; }
.ep-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ep-step { background: #f7f8fc; border-radius: 6px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; }
.ep-step__num { background: #0025c1; color: #fff; font-size: 11px; font-weight: 800; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.ep-step__text { font-size: 13px; color: #444; line-height: 1.5; }
.ep-audiences { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ep-audience-tag { background: #fff; border: 1px solid rgba(0,37,193,0.2); color: #0025c1; font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 20px; }
.ep-hashtags { padding-top: 22px; border-top: 1px solid rgba(0,37,193,0.13); display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ep-hashtag { font-size: 11px; color: #0025c1; background: rgba(0,37,193,0.06); padding: 3px 10px; border-radius: 12px; }
.ep p { margin: 0 0 14px; }
.ep p:last-child { margin-bottom: 0; }

    /* ─── ATELIER THEMA – variante couleur jaune ─────────────────────────────── */
/* Overrides ciblés via .ep.ep--thema (double classe = priorité supérieure)   */
/* Les classes .ep-* existantes ne sont pas modifiées                         */

.ep.ep--thema .ep-intro { font-size: 16px; line-height: 1.85; color: #333; border-left: 4px solid #fedd5b; padding-left: 20px; margin-bottom: 28px; }
.ep.ep--thema .ep-team-card { border-top-color: #fdc316; }
.ep.ep--thema .ep-team-card__name { color: #7a5c00; }
.ep.ep--thema .ep-section { border-top-color: rgba(253,195,22,0.35); }
.ep.ep--thema .ep-section-title { color: #7a5c00; }
.ep.ep--thema .ep-domain-card { border-color: rgba(253,195,22,0.45); }
.ep.ep--thema .ep-domain-card:hover { box-shadow: 0 4px 16px rgba(253,195,22,0.3); }
.ep.ep--thema .ep-domain-card__title { color: #7a5c00; }
.ep.ep--thema ul li::before { color: #fdc316; }
.ep.ep--thema ol li::before { color: #7a5c00; }
.ep.ep--thema .ep-step__num { background: #fdc316; color: #3a2d00; width: 42px; height: 42px; }
.ep.ep--thema .ep-audience-tag { border-color: rgba(253,195,22,0.45); color: #7a5c00; }
.ep.ep--thema .ep-hashtags { border-top-color: rgba(253,195,22,0.35); }
.ep.ep--thema .ep-hashtag { color: #7a5c00; background: rgba(253,195,22,0.13); }
.ep.ep--thema .ep-geo { background: linear-gradient(135deg, #fffcee 0%, #fffef7 100%); }
@media (max-width: 767px) {
    .ep-domains { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 991px) {
    .projet-detail-hero__image { min-height: 60vh; }
    .projet-detail-hero__title { font-size: 36px; }
    .projet-detail-hero__content { padding: 60px 30px; }
}

@media (max-width: 767px) {
    .projet-detail-hero__title { font-size: 32px; }
    .projet-detail-gallery { padding: 60px 0; }
}

/* ───────────────────────────────────────────────────────────────
   Uniformisation des vignettes de liste (projets + actualités)
   Ratio constant 4:3 + recadrage « cover » : toutes les photos
   s'affichent au même format quelle que soit la taille du fichier
   source (corrige les vignettes trop petites, ex. Boulangerie
   Philippart). Le wrapper devient une boîte à ratio fixe ; l'image,
   l'overlay jaune et la légende au survol la remplissent en absolu.
─────────────────────────────────────────────────────────────── */
.masonry-item__image-wrapper { padding-top: 75%; }
.masonry-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Liste PROJETS : template carré 1:1. La photo recouvre le cadre depuis son
   centre (object-fit: cover + object-position: center) — quel que soit son
   ratio source, le visuel reste carré sans recadrage admin. */
#projets-grid .masonry-item__image-wrapper { padding-top: 100%; }

/* Interligne homogène des descriptions de projet + suppression des
   lignes vides résiduelles (paragraphes vides issus du contenu). */
.projet-detail-hero__description p { margin: 0 0 1.1em; }
.projet-detail-hero__description p:last-child { margin-bottom: 0; }
.projet-detail-hero__description p:empty { display: none; }
