/*#region Intro Paragraph*/

.block-acf-intro p {
    font-size: 24px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 40px;
}


/*#endregion Intro Paragraph*/

/*#region Summary*/

.block-acf-summary {
    width: 100%;
    max-width: 900px;
    margin: 48px auto;
}

.block-acf-summary .summary {
    border-left: 3px solid var(--color-nav);
    padding: 4px 0 4px 20px;
}

.block-acf-summary .summary__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    opacity: 0.7;
}

.block-acf-summary .summary__list,
.block-acf-summary .summary__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: summary-counter;
}

.block-acf-summary .summary__sublist {
    margin: 6px 0 2px;
    padding-left: 22px;
}

.block-acf-summary .summary__item {
    counter-increment: summary-counter;
    padding: 5px 0;
    font-size: 16px;
    line-height: 1.5;
}

.block-acf-summary .summary__link {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: var(--color-text);
    text-decoration: none;
    transition: color .2s;
}

.block-acf-summary .summary__link::before {
    content: counters(summary-counter, ".") ".";
    font-variant-numeric: tabular-nums;
    color: var(--color-nav);
    font-weight: 600;
    flex-shrink: 0;
}

.block-acf-summary .summary__link:hover {
    color: var(--color-nav);
}

.block-acf-summary .summary__link:hover .summary__text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.block-acf-summary .summary__item--child {
    font-size: 15px;
}

/*#endregion Summary*/

/*#region title Block*/

.block-acf-title {
    max-width: 900px;
    margin: 80px auto 32px auto;
} 

.block-acf-title h2 {
    position: relative;
    font-size: 34px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}


/*#endregion title Block*/

/*#region Heading Anchor*/

.custom-heading-h2,
.custom-heading-h3 {
    scroll-margin-top: 100px;
}

.heading-anchor {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .15s;
    padding: 0;
}

.heading-anchor svg {
    width: 15px;
    height: 15px;
    fill: var(--color-text);
    opacity: .5;
    flex-shrink: 0;
    transition: fill .15s, opacity .15s;
}

.block-acf-title:hover .heading-anchor,
.block-acf-subtitle:hover .heading-anchor {
    opacity: 1;
}

.heading-anchor:hover {
    background: var(--color-grey);
}

.heading-anchor:hover svg {
    fill: var(--color-nav);
    opacity: 1;
}

.heading-anchor:active {
    transform: translateY(-50%) scale(0.92);
}

/* Tooltip */
.heading-anchor__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-text);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s, transform .15s;
}

.heading-anchor__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text);
}

.heading-anchor.is-copied .heading-anchor__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.heading-anchor.is-copied {
    opacity: 1;
    background: var(--color-nav);
    border-color: var(--color-nav);
}

.heading-anchor.is-copied svg {
    fill: var(--color-white);
    opacity: 1;
}

@media all and (max-width: 768px) {
    .heading-anchor {
        display: none;
    }
}

/*#endregion Heading Anchor*/

/*#region Subtitle Block*/

.block-acf-subtitle {
    max-width: 900px;
    margin: 48px auto 24px auto;
}

.block-acf-subtitle h3 {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    padding-left: 14px; /* espace pour la barre décorative */
    line-height: 1.3;
}

.block-acf-subtitle h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: var(--color-nav); /* ton vert doux du thème */
}

/*#endregion Subtitle Block*/

/*#region Titres natifs (core/heading) */
/* Même design que nos blocs titre, pour utiliser le bloc Titre de base.
   Les titres sont des enfants directs de .section__content (contenu d'article). */
.section--scripts .section__content > h2.wp-block-heading {
    max-width: 900px;
    margin: 80px auto 32px auto;
    position: relative;
    font-size: 34px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.section--scripts .section__content > h3.wp-block-heading {
    max-width: 900px;
    margin: 48px auto 24px auto;
    position: relative;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    padding-left: 14px;
    scroll-margin-top: 100px;
}

.section--scripts .section__content > h3.wp-block-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: var(--color-nav);
}

/* Révèle le bouton « copier le lien » au survol des titres natifs. */
.wp-block-heading:hover .heading-anchor {
    opacity: 1;
}

/*#endregion */

/*#region ListBlock*/
.block-acf-list .section__list {
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding:0 0 0 24px;
}

.block-acf-list .section__list .section__list-item {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.6;
}

.block-acf-list .section__list .section__list-item::before {
    top: 15px;
}

.block-acf-list .section__list .section__list-item p {
    margin:4px 0;
    padding:0 0 0 8px;
}

/* --- Listes natives Gutenberg (core/list) : même rendu que nos listes custom,
   pour pouvoir utiliser le bloc « Liste » de base à la place de cwp/layout-list.
   Scopé à .section (comme nos styles existants). --- */
.section ul.wp-block-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding: 0 0 0 24px;
}

.section ul.wp-block-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.7;
}

.section ul.wp-block-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-nav);
    position: absolute;
    top: 14px;
    left: 0;
}

/* Sous-listes */
.section ul.wp-block-list ul.wp-block-list {
    max-width: none;
    margin: 6px 0 0;
    padding-left: 24px;
}

.section ul.wp-block-list ul.wp-block-list li {
    font-size: 14px;
}

.section ul.wp-block-list ul.wp-block-list li::before {
    width: 4px;
    height: 4px;
    top: 10px;
}

/* Listes ordonnées natives (core/list ordered) : numérotation conservée,
   marqueur dans la couleur de la marque + même gabarit que les ul. */
.section ol.wp-block-list {
    list-style: decimal;
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding: 0 0 0 28px;
}

.section ol.wp-block-list li {
    margin-bottom: 6px;
    padding-left: 8px;
    font-size: 20px;
    line-height: 1.6;
}

.section ol.wp-block-list li::marker {
    color: var(--color-nav);
    font-weight: 600;
}

/* Sous-listes ordonnées */
.section ol.wp-block-list ol.wp-block-list {
    max-width: none;
    margin: 6px 0 0;
}

.section ol.wp-block-list ol.wp-block-list li {
    font-size: 14px;
}

/*#endregion ListBlock*/

/*#region Buttons Block*/

.block-acf-buttons {
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px; /* espace entre les boutons */
    flex-wrap: wrap;
}

.block-acf-buttons .btn {
    display: inline-block;
    padding: 12px 26px;
    background: var(--color-nav);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.25s;
    text-align: center;
}

.block-acf-buttons .btn:hover {
    background: var(--color-bold);
    text-decoration: none;
    transform: none;
}

/* Boutons natifs Gutenberg (core/buttons + core/button) : même design que .btn,
   pour utiliser les blocs Boutons de base. */
.wp-block-buttons {
    margin: 32px 0;
    gap: 16px;
    justify-content: center;
}

.wp-block-button__link {
    display: inline-block;
    padding: 12px 26px;
    background: var(--color-nav);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    transition: 0.25s;
    text-align: center;
}

.wp-block-button__link,
.wp-block-button__link:hover {
    transform: none;
}

.wp-block-button__link:hover {
    background: var(--color-bold);
    color: var(--color-white);
    text-decoration: none;
}

/*#endregion Buttons Block*/

/*#region Media & texte natif (core/media-text) */
/* Reprend le design de nos blocs « image à gauche / à droite » :
   cadre blanc + ombre, bouton loupe au survol, légende, alignement centré.
   La classe .section__image-figure + data-src-large + la loupe + la légende
   sont injectées côté serveur (filtre render_block_core/media-text) -> la
   modale de zoom existante fonctionne. */
.section--scripts .section__content .wp-block-media-text {
    margin: 32px 0;
    gap: 40px;
    align-items: center;
}

.section--scripts .section__content .wp-block-media-text__media {
    position: relative;
    background: #fff;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.section--scripts .section__content .wp-block-media-text__media img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.wp-block-media-text__media .section__image-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
    transition: linear .15s;
    border: none;
    cursor: pointer;
    padding: 0;
}

.wp-block-media-text__media .section__image-btn svg { width: 15px; opacity: .5; transition: linear .15s; }
.wp-block-media-text__media .section__image-btn svg * { fill: var(--color-text); transition: linear .15s; }
.wp-block-media-text__media:hover .section__image-btn { opacity: 1; }
.wp-block-media-text__media:hover .section__image-btn svg { opacity: 1; }
.wp-block-media-text__media:hover .section__image-btn svg * { fill: var(--color-nav); }

.section--scripts .section__content .wp-block-media-text .section__picture-caption {
    font-size: 12px;
    text-align: right;
    margin: 10px 6px 0;
    opacity: 0.7;
}

/*#endregion */

/*#region Info Block*/

.block-acf-info {
    max-width: 900px;
    margin: 32px auto;

    position: relative;
   
    padding: 28px 32px;
    border-radius: 12px;
}

/* ICON */
.block-acf-info .block-acf-info__icon {
    position: absolute;
    top: -22px;
    left: -22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.block-acf-info .block-acf-info__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--color-nav);
    flex-shrink: 0;
}

.block-acf-info{ background: rgba(188, 228, 217, .2);}
.block-acf-info[data-background="grey"] { background: var(--color-grey); }

.block-acf-info[data-background="grey"] .block-acf-info__icon svg {
    fill: var(--color-bold);
}

/* TEXT */
.block-acf-info__content p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
}

.block-acf-info__content strong {
    color: var(--color-text);
}
.block-acf-info .block-acf-info__content .block-acf-paragraph:first-child,
.block-acf-info .block-acf-info__content .block-acf-subtitle:first-child,
.block-acf-info .block-acf-info__content .block-acf-title:first-child {
margin-top:0;
}
.block-acf-info .block-acf-info__content .block-acf-paragraph:last-child p:last-child{
    margin-bottom:0;
}

/* Liste dans un cadre : plus petite (18px) que la liste normale (20px),
   et espacement titre -> liste resserré. */
.block-acf-info ul.wp-block-list {
    margin-top: 8px;
    margin-bottom: 0;
}
.block-acf-info__content p:has(+ .wp-block-list) {
    margin-bottom: 8px;
}
.block-acf-info ul.wp-block-list li {
    font-size: 18px;
}
.block-acf-info ul.wp-block-list li::before {
    top: 12px;
}

/* Bloc Boutons en dernier dans un cadre : pas de marge basse (évite le double espacement). */
.block-acf-info .wp-block-buttons:last-child {
    margin-bottom: 0;
}
/*#endregion Info Block*/

/*#region Question Block*/

.block-acf-question {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 40px auto;

    position: relative;
    background: var(--color-grey);
    padding: 28px 32px;
    border-radius: 12px;
    
}

/* ICON */
.block-acf-question__icon {
    position: absolute;
    top: -24px;
    left: -24px;

    width: 48px;
    height: 48px;
    background: url('/wp-content/uploads/question.png') center center no-repeat;
    background-size: contain;

}

/* TEXT */
.block-acf-question__content p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
}

.block-acf-question__content strong {
    color: var(--color-bold);
}

/*#endregion Question Block*/

/*#region Gallery Block*/

.block-acf-gallery {
    position: relative;
    margin: 40px auto;
    width: 100%;
}

.gallery__wrapper {

    overflow: hidden;
    padding: 32px 25px;
}

.gallery__track {
    display: flex;
    gap: 16px;
}

.gallery__item {
    flex: 0 0 calc(50% - 8px); /* 2 images visibles */
    text-align: center;
    display: none;
}

.gallery__item.is-active {
    display: block;
}

.gallery__image {
    overflow: hidden;
}

.gallery__item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.gallery__item figcaption {
    font-size: 15px;
    text-align: center;
    margin: 16px 8px 0 8px;
}

/* BUTTONS */
.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 24px;
    color: var(--color-nav);
    transition: 0.25s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__btn svg {
    width: 10px;
}

.gallery__btn--next svg {
    transform-origin: center center;
    transform: rotate(180deg);
}

.gallery__btn svg * {
    fill: var(--color-border);
}

.gallery__btn:hover {
    border-color: var(--color-nav);
}

.gallery__btn:hover svg * {
    fill: var(--color-nav);
}

.gallery__btn--prev {
    left: 0;
}

.gallery__btn--next {
    right: 0;
}

.block-acf-gallery[data-count="2"] .gallery__btn {
    display: none;
}

@media all and (max-width:768px){
    .block-acf-gallery[data-count="2"] .gallery__btn {
        display: block;
    }
    .gallery__item{
        flex:0 0 100%;
    }
}


/*#endregion Gallery Block*/

/*#region Tags Block*/

.block-acf-tags {
    margin: 60px 0 40px;
}

.block-acf-tags .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.block-acf-tags .tag {
    background: #f7f7f7;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    display: inline-block;
    cursor: default;
    white-space: nowrap;
}

.block-acf-tags .tag:hover {
    background: var(--color-bold);
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
}

/*#endregion Tags Block*/

/*#region Big Slider Block*/

.block-acf-big-slider {
    margin: 40px auto;
    width: 100%;
}

.big-slider {
    position: relative;
}

.big-slider__container {
    overflow: hidden;
}

.big-slider__track {
    display: flex;
    transition: transform .35s ease;
    gap: 16px;
}

.big-slider__slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.big-slider__slide.is-active {
    display: block;
}

.big-slider__image {
    overflow: hidden;
}

.big-slider__slide img {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

/* Slider avec une seule image : pas de crop, on respecte ses proportions */
.block-acf-big-slider[data-count="1"] .big-slider__slide img {
    aspect-ratio: auto;
    object-fit: contain;
}

/* Caption */
.big-slider__caption {
    font-size: 15px;
    text-align: center;
    margin: 16px 8px 0 8px;
    text-decoration: underline;
}

/* Buttons */
.big-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 24px;
    color: var(--color-nav);
    transition: 0.25s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.big-slider__btn svg {
    width: 10px;
}

.big-slider__btn--next svg {
    transform-origin: center center;
    transform: rotate(180deg);
}

.big-slider__btn svg * {
    fill: var(--color-border);
}

.big-slider__btn:hover {
    border-color: var(--color-nav);
}

.big-slider__btn:hover svg * {
    fill: var(--color-nav);
}

.big-slider__btn--prev {
    left: -20px;
}

.big-slider__btn--next {
    right: -20px;
}


/*#endregion Big Slider Block*/


.acf-block-tags .tags-list {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.acf-block-tags .tags-list .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--color-grey);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
    line-height: 38px;
    border: 1px solid transparent;
    color: var(--color-text);
}

.acf-block-tags .tags-list .tag__icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.acf-block-tags .tags-list .tag__hash {
    font-weight: 700;
    font-size: 14px;
    opacity: .8;
}


.acf-block-share {
    padding:150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap:16px;
}
.acf-block-share .share__background{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}
.acf-block-share .share__background::after{
    content:'';
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    background:rgba(0,0,0,.1);
}
.acf-block-share .share__background img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block; 
}
.acf-block-share .share__title {
    color:var(--color-white);
    font-size:34px;
    font-weight:600;
    line-height:1.3
}
.acf-block-share .share__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:32Px;
}
.acf-block-share .share__socials  .share__social {
    color:var(--color-white);
    font-weight:400;
    font-size:20px;
}
.acf-block-share .share__socials  .share__social:hover {
    color:var(--color-bold)
}

/*#region Table Block*/

.block-acf-table {
    width: 100%;
    margin: 40px auto;
    overflow-x: auto;
}

.block-acf-table .acf-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
}

.block-acf-table .acf-table__head th {
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px;
    background: var(--color-nav);
    color: var(--color-white);
    border-bottom: 2px solid var(--color-nav);
}

.block-acf-table .acf-table__body td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.block-acf-table .acf-table__body td,
.block-acf-table .acf-table__body td p,
.block-acf-table .acf-table__body td a,
.block-acf-table .acf-table__body td ul li {
    font-size: 16px;
    line-height: 1.5;
}

.block-acf-table .acf-table__body tr:last-child td {
    border-bottom: none;
}

.block-acf-table .acf-table__body tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.025);
}

.block-acf-table .acf-table__body td ul {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.block-acf-table .acf-table__body td ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.block-acf-table .acf-table__body td ul li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-nav);
}

.block-acf-table .acf-table__body td ul li:last-child {
    margin-bottom: 0;
}

@media all and (max-width: 768px) {
    .block-acf-table {
        overflow-x: visible;
    }

    .block-acf-table .acf-table,
    .block-acf-table .acf-table__body,
    .block-acf-table .acf-table__body tr,
    .block-acf-table .acf-table__body td {
        display: block;
        width: 100%;
    }

    .block-acf-table .acf-table__head {
        display: none;
    }

    .block-acf-table .acf-table__body tr {
        position: relative;
        margin-bottom: 16px;
        padding: 18px 20px 18px 24px;
        border-radius: 10px;
        background: var(--color-grey);
        overflow: hidden;
    }

    .block-acf-table .acf-table__body tr::before {
        content: '';
        position: absolute;
        top: 18px;
        bottom: 18px;
        left: 0;
        width: 3px;
        border-radius: 0 2px 2px 0;
        background: var(--color-nav);
    }

    .block-acf-table .acf-table__body tr:last-child {
        margin-bottom: 0;
    }

    .block-acf-table .acf-table__body tr:nth-child(even) td {
        background: transparent;
    }

    .block-acf-table .acf-table__body td {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
        border: none;
    }

    .block-acf-table .acf-table__body td:first-child {
        padding-top: 0;
    }

    .block-acf-table .acf-table__body td:last-child {
        padding-bottom: 0;
    }

    .block-acf-table .acf-table__body td + td {
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    .block-acf-table .acf-table__body td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-nav);
        line-height: 1.4;
    }

    .block-acf-table .acf-table__body td[data-label=""]::before {
        display: none;
    }

    .block-acf-table .acf-table__body td > *:not(ul) {
        margin: 0;
    }

    .block-acf-table .acf-table__body td > *:first-of-type {
        margin-top: 2px;
    }

    .block-acf-table .acf-table__body td ul {
        margin: 6px 0 0;
    }

    .block-acf-table .acf-table__body td ul li {
        font-size: 15px;
    }
}

/* --- Tableaux natifs Gutenberg (core/table) : même design que nos tableaux,
   pour utiliser le bloc Tableau de base. Le data-label (responsive mobile) est
   injecté côté serveur par le filtre render_block_core/table. --- */
.wp-block-table {
    width: 100%;
    margin: 40px auto;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
}

.wp-block-table thead {
    border-bottom: none !important;
}

.wp-block-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px;
    background: var(--color-nav);
    color: var(--color-white);
    border: none !important;
}

.wp-block-table tbody td {
    padding: 14px 16px;
    border: none !important;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.5;
}

.wp-block-table tbody tr:last-child td {
    border-bottom: none;
}

.wp-block-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.025);
}

/* Surcharge du fond core sur les lignes impaires (style « rayé »). */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: transparent;
}

.wp-block-table tbody td ul {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.wp-block-table tbody td ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.wp-block-table tbody td ul li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-nav);
}

@media all and (max-width: 768px) {
    .wp-block-table {
        overflow-x: visible;
    }

    .wp-block-table table,
    .wp-block-table tbody,
    .wp-block-table tbody tr,
    .wp-block-table tbody td {
        display: block;
        width: 100%;
    }

    .wp-block-table thead {
        display: none;
    }

    .wp-block-table tbody tr {
        position: relative;
        margin-bottom: 16px;
        padding: 18px 20px 18px 24px;
        border-radius: 10px;
        background: var(--color-grey);
        overflow: hidden;
    }

    .wp-block-table tbody tr::before {
        content: '';
        position: absolute;
        top: 18px;
        bottom: 18px;
        left: 0;
        width: 3px;
        border-radius: 0 2px 2px 0;
        background: var(--color-nav);
    }

    .wp-block-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .wp-block-table tbody tr:nth-child(even) td {
        background: transparent;
    }

    .wp-block-table tbody td {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
        border: none;
    }

    .wp-block-table tbody td:first-child {
        padding-top: 0;
    }

    .wp-block-table tbody td:last-child {
        padding-bottom: 0;
    }

    .wp-block-table tbody td + td {
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    .wp-block-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-nav);
        line-height: 1.4;
    }

    .wp-block-table tbody td[data-label=""]::before,
    .wp-block-table tbody td:not([data-label])::before {
        display: none;
    }

    .wp-block-table tbody td > *:not(ul) {
        margin: 0;
    }
}

/*#endregion Table Block*/