/* ====================================================================
   Iliade — Réalisations · front

   S'appuie exclusivement sur les design tokens du thème (tokens.css) :
   --brand, --accent, --ink, --muted, --line, --radius, --shadow…
   Chaque variable a une valeur de repli, pour que le rendu reste correct
   même si la feuille de tokens venait à ne pas être chargée.
   ==================================================================== */

.ilr-single,
.ilr-archive,
.ilr-inject,
.ilr-proches {
    --ilr-brand: var(--brand, #2b6a44);
    --ilr-brand-600: var(--brand-600, #1f4d31);
    --ilr-brand-soft: var(--brand-soft, #eaf5ee);
    --ilr-ink: var(--ink, #0f172a);
    --ilr-muted: var(--muted, #64748b);
    --ilr-line: var(--line, #e5e7eb);
    --ilr-bg-soft: var(--bg-soft, #f6f7f6);
    --ilr-radius: var(--radius, 16px);
    --ilr-radius-sm: var(--radius-sm, 10px);
    --ilr-radius-pill: var(--radius-pill, 999px);
    --ilr-shadow: var(--shadow, 0 10px 28px rgba(0, 0, 0, .06));
    --ilr-shadow-md: var(--shadow-md, 0 12px 28px rgba(0, 0, 0, .10));
    --ilr-container: var(--container-narrow, 1200px);
}

/* ====================================================================
   FICHE — bandeau
   ==================================================================== */
.ilr-title-plain {
    margin: 0 0 22px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}

/* ====================================================================
   FICHE — repères
   ==================================================================== */
.ilr-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin: 26px 0;
    background: var(--ilr-line);
    border: 1px solid var(--ilr-line);
    border-radius: var(--ilr-radius);
    overflow: hidden;
}

.ilr-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #fff;
}

.ilr-fact__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ilr-muted);
    font-weight: 700;
}

.ilr-fact__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ilr-ink);
    line-height: 1.3;
}

a.ilr-fact__value {
    color: var(--ilr-brand);
    text-decoration: none;
}

a.ilr-fact__value:hover {
    text-decoration: underline;
}

/* ====================================================================
   FICHE — contraintes du jour
   ==================================================================== */
.ilr-defis {
    margin: 34px 0;
    padding: 22px 24px;
    background: var(--ilr-brand-soft);
    border-radius: var(--ilr-radius);
    border-left: 4px solid var(--ilr-brand);
}

.ilr-defis__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.ilr-defis__body p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.ilr-defis__body p:last-child {
    margin-bottom: 0;
}

/* ====================================================================
   FICHE — éléments du décor
   ==================================================================== */
.ilr-produits {
    margin: 40px 0;
}

.ilr-produits__title {
    margin: 0 0 6px;
    font-size: clamp(21px, 2.6vw, 27px);
    line-height: 1.25;
}

.ilr-produits__lead {
    margin: 0 0 20px;
    color: var(--ilr-muted);
    line-height: 1.65;
}

.ilr-produits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.ilr-prod-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ilr-line);
    border-radius: var(--ilr-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ilr-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ilr-shadow-md);
}

.ilr-prod-card__visual {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--ilr-bg-soft);
    overflow: hidden;
}

.ilr-prod-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ilr-prod-card:hover .ilr-prod-card__visual img {
    transform: scale(1.05);
}

.ilr-prod-card__qty {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: var(--ilr-radius-pill);
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ilr-prod-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px 16px;
}

.ilr-prod-card__title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.ilr-prod-card__note {
    font-size: 12.5px;
    color: var(--ilr-muted);
    line-height: 1.45;
}

.ilr-prod-card__price {
    margin-top: 2px;
    font-weight: 700;
    color: var(--ilr-brand);
    font-size: 14px;
}

/* ====================================================================
   FICHE — témoignage
   ==================================================================== */
.ilr-temoignage {
    margin: 38px 0;
    padding: 26px 28px;
    border-radius: var(--ilr-radius);
    background: var(--ilr-bg-soft);
    position: relative;
}

.ilr-temoignage::before {
    content: "“";
    position: absolute;
    top: -6px;
    left: 18px;
    font-size: 72px;
    line-height: 1;
    color: var(--ilr-brand);
    opacity: .18;
    font-family: Georgia, serif;
}

.ilr-temoignage blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 17px;
    line-height: 1.72;
    font-style: italic;
    color: var(--ilr-ink);
}

.ilr-temoignage blockquote p {
    margin: 0 0 10px;
}

.ilr-temoignage blockquote p:last-child {
    margin-bottom: 0;
}

.ilr-temoignage figcaption {
    margin-top: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ilr-muted);
}

/* ====================================================================
   FICHE — crédits
   ==================================================================== */
.ilr-credits {
    margin: 34px 0;
    padding-top: 24px;
    border-top: 1px solid var(--ilr-line);
}

.ilr-credits__title {
    margin: 0 0 14px;
    font-size: 19px;
}

.ilr-credits__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 20px;
}

.ilr-credits__list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ilr-credits__role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ilr-muted);
    font-weight: 700;
}

.ilr-credits__list a {
    color: var(--ilr-brand);
    font-weight: 600;
    text-decoration: none;
}

.ilr-credits__list a:hover {
    text-decoration: underline;
}

/* ====================================================================
   COLONNE LATÉRALE
   ==================================================================== */
.ilr-card-lieu__nom {
    margin: 6px 0 2px;
    font-weight: 700;
    font-size: 16px;
}

.ilr-card-lieu__adresse,
.ilr-card-lieu__note {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--ilr-muted);
    line-height: 1.55;
}

.ilr-card-lieu__link,
.ilr-card-more {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ilr-brand);
    text-decoration: none;
}

.ilr-card-lieu__link:hover,
.ilr-card-more:hover {
    text-decoration: underline;
}

.ilr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.ilr-tag-pill {
    padding: 5px 12px;
    border-radius: var(--ilr-radius-pill);
    background: var(--ilr-bg-soft);
    border: 1px solid var(--ilr-line);
    font-size: 12.5px;
    color: var(--ilr-ink);
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.ilr-tag-pill:hover {
    background: var(--ilr-brand-soft);
    border-color: var(--ilr-brand);
}

.ilr-card-cta p {
    margin: 8px 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ilr-muted);
}

/* ====================================================================
   BOUTONS
   ==================================================================== */
.ilr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--ilr-radius-pill);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.ilr-btn + .ilr-btn {
    margin-top: 8px;
}

.ilr-btn--primary {
    background: var(--ilr-brand);
    color: #fff;
}

.ilr-btn--primary:hover {
    background: var(--ilr-brand-600);
    color: #fff;
    transform: translateY(-1px);
}

.ilr-btn--ghost {
    background: transparent;
    color: var(--ilr-ink);
    border-color: var(--ilr-line);
}

.ilr-btn--ghost:hover {
    border-color: var(--ilr-brand);
    color: var(--ilr-brand);
}

.ilr-card-cta .ilr-btn {
    width: 100%;
}

/* ====================================================================
   CARTE RÉALISATION — partagée archive / proches / blocs injectés
   ==================================================================== */
.ilr-card-real {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ilr-line);
    border-radius: var(--ilr-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .28s ease, box-shadow .28s ease;
}

.ilr-card-real:hover {
    transform: translateY(-5px);
    box-shadow: var(--ilr-shadow-md);
}

.ilr-card-real__visual {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: var(--ilr-bg-soft);
    overflow: hidden;
}

.ilr-card-real--lg .ilr-card-real__visual {
    aspect-ratio: 4 / 3;
}

.ilr-card-real__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}

.ilr-card-real:hover .ilr-card-real__visual img {
    transform: scale(1.05);
}

.ilr-card-real__distance,
.ilr-card-real__budget {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: var(--ilr-radius-pill);
    background: rgba(255, 255, 255, .94);
    color: var(--ilr-ink);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}

.ilr-card-real__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 17px 18px;
}

.ilr-card-real__sub {
    font-size: 12px;
    color: var(--ilr-muted);
    font-weight: 600;
    letter-spacing: .02em;
}

.ilr-card-real__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ilr-ink);
}

.ilr-card-real__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ilr-card-real__facts span {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--ilr-radius-pill);
    background: var(--ilr-bg-soft);
    color: var(--ilr-muted);
    font-weight: 600;
}

/* ====================================================================
   BLOC « RÉALISATIONS PROCHES »
   ==================================================================== */
.ilr-proches {
    width: var(--pageWrap, 100%);
    max-width: var(--container, 1400px);
    margin: 60px auto;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    .ilr-proches { padding-inline: var(--gutter, 20px); }
}

.ilr-proches__head {
    text-align: center;
    margin-bottom: 30px;
}

.ilr-proches__eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--ilr-brand);
    margin-bottom: 8px;
}

.ilr-proches__title {
    margin: 0 0 10px;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.22;
}

.ilr-proches__lead {
    margin: 0 auto;
    max-width: 620px;
    color: var(--ilr-muted);
    line-height: 1.65;
}

.ilr-proches__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.ilr-proches__more {
    text-align: center;
    margin-top: 26px;
}

.ilr-proches__more a {
    font-weight: 700;
    color: var(--ilr-brand);
    text-decoration: none;
}

.ilr-proches__more a:hover {
    text-decoration: underline;
}

/* ====================================================================
   BLOCS INJECTÉS (fiche produit, fiche lieu, shortcode)
   ==================================================================== */
.ilr-inject {
    margin: 46px 0 10px;
    padding-top: 30px;
    border-top: 1px solid var(--ilr-line);
    clear: both;
}

.ilr-inject__title {
    margin: 0 0 8px;
    font-size: clamp(21px, 2.6vw, 27px);
    line-height: 1.25;
}

.ilr-inject__lead {
    margin: 0 0 20px;
    color: var(--ilr-muted);
    line-height: 1.65;
    max-width: 70ch;
}

.ilr-inject__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ====================================================================
   ARCHIVE
   ==================================================================== */
/* Même gabarit que .wpz-wrap et que le header : le contenu s'aligne
   exactement sur la barre de navigation, comme sur toutes les pages. */
.ilr-archive {
    width: var(--pageWrap, 100%);
    max-width: var(--container, 1400px);
    margin: 0 auto;
    padding: 34px 0 60px;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    .ilr-archive { padding-inline: var(--gutter, 20px); }
}

.ilr-archive__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.ilr-archive__eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--ilr-brand);
    margin-bottom: 10px;
}

.ilr-archive__title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4.4vw, 44px);
    line-height: 1.12;
}

.ilr-archive__lead {
    margin: 0;
    color: var(--ilr-muted);
    font-size: 17px;
    line-height: 1.68;
}


.ilr-archive__count {
    margin: 0 0 18px;
    color: var(--ilr-muted);
    font-size: 14px;
}

.ilr-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.ilr-archive__empty {
    padding: 46px 20px;
    text-align: center;
    color: var(--ilr-muted);
    background: var(--ilr-bg-soft);
    border-radius: var(--ilr-radius);
}

/* ---- Pagination ---- */
.ilr-pagination {
    margin-top: 38px;
}

.ilr-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ilr-pagination a,
.ilr-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border-radius: var(--ilr-radius-sm);
    border: 1px solid var(--ilr-line);
    background: #fff;
    text-decoration: none;
    color: var(--ilr-ink);
    font-weight: 600;
}

.ilr-pagination a:hover {
    border-color: var(--ilr-brand);
    color: var(--ilr-brand);
}

.ilr-pagination .current {
    background: var(--ilr-brand);
    border-color: var(--ilr-brand);
    color: #fff;
}

/* ---- CTA de bas de page ---- */
.ilr-cta-block {
    margin-top: 58px;
    padding: 42px 28px;
    text-align: center;
    background: var(--ilr-brand-soft);
    border-radius: var(--ilr-radius);
}

.ilr-cta-block h2 {
    margin: 0 0 12px;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.25;
}

.ilr-cta-block p {
    margin: 0 auto 22px;
    max-width: 620px;
    color: var(--ilr-muted);
    line-height: 1.68;
}

.ilr-cta-block__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ilr-cta-block__buttons .ilr-btn + .ilr-btn {
    margin-top: 0;
}

.ilr-cta-block__note {
    margin-top: 18px !important;
    font-size: 13px;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 782px) {
    .ilr-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Nombre impair de repères : le dernier occupe toute la largeur, sinon
       la case restante laisse voir le fond de grille comme un trou gris. */
    .ilr-facts .ilr-fact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Seuil calé sur la largeur réellement disponible dans la colonne de
       contenu (≈ 311 px sur un écran de 390) : à 160 px la grille retombait
       à une seule colonne et gâchait la moitié de l'espace. */
    .ilr-produits__grid,
    .ilr-inject__grid,
    .ilr-proches__grid,
    .ilr-archive__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    /* Le texte des cartes se resserre en conséquence. */
    .ilr-prod-card__body,
    .ilr-card-real__body {
        padding: 11px 12px 13px;
    }

    .ilr-prod-card__title { font-size: 14px; }
    .ilr-card-real__title { font-size: 15px; }

    .ilr-filtres {
        margin-inline: calc(var(--gutter, 20px) * -1);
        padding-inline: var(--gutter, 20px);
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .ilr-filtres::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {

    .ilr-card-real,
    .ilr-prod-card,
    .ilr-card-real__visual img,
    .ilr-prod-card__visual img,
    .ilr-btn {
        transition: none;
    }

    .ilr-card-real:hover,
    .ilr-prod-card:hover {
        transform: none;
    }
}

/* ====================================================================
   CARROUSEL DE GALERIE — filet de sécurité

   Le carrousel est celui du thème (`wpz_render_post_gallery_carousel`),
   et sa mise en forme vient de `wpz-carousel-nav.css`. Cette feuille est
   bien enfilée sur nos pages, mais l'optimiseur (WP-Optimize) ne l'inline
   pas systématiquement : les chevrons retombent alors sur un rectangle
   plein, faute de masque appliqué.

   On redéclare donc ici, SCOPÉES à nos pages, les seules règles dont le
   rendu dépend. Même géométrie, même couleur, même comportement — aucun
   changement visuel, seulement une garantie.
   ==================================================================== */

.ilr-single .wpz-gal__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0;
    border: 1px solid var(--ilr-brand);
    border-radius: 999px;
    background: #fff;
    color: var(--ilr-brand);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    transition: background .2s ease;
}

.ilr-single .wpz-gal__btn:hover {
    background: var(--ilr-brand-soft);
}

.ilr-single .wpz-gal__btn::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 9px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    border: 0;
}

.ilr-single .wpz-gal__btn--next::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ilr-single .wpz-gal__btn--prev::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M8 2l-6 6 6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M8 2l-6 6 6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Le bandeau de la galerie reprend la typographie de nos autres titres. */
.ilr-single .wpz-gal__head span {
    font-weight: 700;
    color: var(--ilr-ink);
}


/* ====================================================================
   FILTRES — pastilles
   Remplacent les listes déroulantes : chaque famille de prestation est
   visible d'un coup d'œil, avec son nombre réel de réalisations.
   ==================================================================== */
.ilr-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 26px;
}

.ilr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--ilr-radius-pill);
    border: 1px solid var(--ilr-line);
    background: #fff;
    color: var(--ilr-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.ilr-chip:hover {
    border-color: var(--ilr-brand);
    color: var(--ilr-brand);
}

.ilr-chip.is-active {
    background: var(--ilr-brand);
    border-color: var(--ilr-brand);
    color: #fff;
}

.ilr-chip__n {
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--ilr-radius-pill);
    background: var(--ilr-bg-soft);
    color: var(--ilr-muted);
}

.ilr-chip.is-active .ilr-chip__n {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* Badge « Brouillon » — visible des seuls rédacteurs connectés. */
.ilr-card-real__statut {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: var(--ilr-radius-pill);
    background: #b45309;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .18);
}
