/* ===== Dara : site en pleine largeur ===== */

/* 1. Conteneur principal du site */
.site,
.no-sidebar .site,
.no-sidebar.page-template-full-width-page .site,
.no-sidebar.page-template-grid-page .site,
.no-sidebar.home.page .site {
	max-width: 100%;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* 2. Zones de contenu : on retire les largeurs maximales */
.content-area,
.content-wrapper .content-area,
.no-sidebar .content-wrapper .content-area {
	max-width: none;
}

/* 3. Modèle « pleine largeur » : on retire les marges de 13 % */
.content-wrapper.full-width.without-featured-image {
	margin-left: 0;
	margin-right: 0;
}
.content-wrapper.full-width.with-featured-image {
	margin-left: 0;
	margin-right: 0;
}

/* 4. Fond uni, pour ne jamais voir de bande grise sur les côtés */
body {
	background: #fff;
}

/* Image sous le menu : pleine largeur, SANS recadrage */
.entry-thumbnail,
.post-thumbnail,
.hero-content-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
}

.entry-thumbnail img,
.post-thumbnail img,
.hero-content img {
    display: block;
    width: 100%;
    height: auto;        /* la hauteur s'adapte aux proportions de l'image */
    object-fit: contain; /* l'image entière est visible */
}

/* Pas de hauteur imposée : on laisse l'image à sa hauteur naturelle */
@media screen and (min-width: 1000px) {
    .entry-thumbnail,
    .post-thumbnail {
        height: auto;
    }
    .no-sidebar .post-thumbnail {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Crédit photo uniquement sous l'image mise en avant de l'accueil */
.home .entry-thumbnail,
.home .post-thumbnail {
    position: relative;
    overflow: visible;
}

.home .entry-thumbnail::before,
.home .post-thumbnail::before {
    content: "© Arnaud Späni";
    position: absolute;
    top: 100%;
    right: 5px;
    z-index: 10;
    color: #777;
    font-size: 11px;
    font-weight: normal;
    background: transparent;
    text-shadow: none;
    padding-top: 4px;
    pointer-events: none;
}

/* Crédit plus petit sur mobile */
@media screen and (max-width: 767px) {
    .home .entry-thumbnail::before,
    .home .post-thumbnail::before {
        font-size: 5.5px;
    }
}
/* Réduction des images des blocs Médias et texte sur PC */
@media screen and (min-width: 1024px) {

    .page-id-410 .wp-block-media-text__media,
    .page-id-2306 .wp-block-media-text__media,
    .page-id-419 .wp-block-media-text__media,
    .page-id-431 .wp-block-media-text__media,
    .page-id-449 .wp-block-media-text__media {
        transform: scale(0.6667);
        transform-origin: center;
    }

}