/* Compléments WordPress au CSS de la maquette (dms-2026) */

/* Barre d'administration : l'en-tête collant passe dessous */
.admin-bar header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar header { top: 0; } }

/* Texte réservé aux lecteurs d'écran */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff; clip: auto !important; clip-path: none; color: #163a52;
    display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px;
    width: auto; z-index: 100000; font-weight: 700;
}

/* Pagination des listes */
.pagination { margin-top: 44px; text-align: center; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px;
    border: 1px solid rgba(22,58,82,0.15); background: #fff;
    color: #163a52; font-weight: 600; text-decoration: none;
}
.pagination .page-numbers.current { background: #163a52; border-color: #163a52; color: #fff; }
.pagination a.page-numbers:hover { border-color: #163a52; }

/* Contenus de l'éditeur */
.prose img, .article img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: #6b7a86; margin-top: 6px; }
.article ul, .article ol { margin: 0 0 16px 20px; color: var(--text-grey); }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article h3 { font-size: 18px; margin: 26px 0 10px; }

/* Vignette sans image dans les cartes d'intervention */
.intervention-img:empty, .intervention-img .no-thumb { min-height: 180px; background: #e8eef2; }

/* Page 404 / aucun résultat */
.empty-state { text-align: center; padding: 40px 0; }
.empty-state .hero-buttons { justify-content: center; margin-top: 26px; }

/* =========================================================
   Contenus en blocs Gutenberg (version éditable)
   ========================================================= */

/* Les blocs n'ajoutent pas de marges : la maquette gère les espacements */
.wp-block-image, .wp-block-buttons, .wp-block-group, .wp-block-list, figure { margin: 0; }
.wp-block-image img { height: auto; }
.feature-img.wp-block-image img { height: 100%; }
.wp-block-group.feature-img { padding: 0; }

/* Utilitaires remplaçant les styles en ligne de la maquette */
.mb-0 { margin-bottom: 0 !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-36 { margin-bottom: 36px !important; }
.mt-26 { margin-top: 26px !important; }
.mt-28 { margin-top: 28px !important; }
.fond-creme { background: var(--cream) !important; }
.fond-blanc { background: #fff !important; }

/* Boutons : styles « Plein », « Contour », « Clair » (bloc Bouton) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-buttons.cta-center { justify-content: center; }
.wp-block-button .wp-block-button__link {
    display: inline-flex; align-items: center; gap: 8px; height: auto;
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4;
    padding: 15px 30px; border-radius: 30px; text-decoration: none;
    background: var(--green-btn); color: #fff; border: 1.5px solid var(--green-btn);
    transition: background 0.25s ease, color 0.25s ease;
}
.wp-block-button .wp-block-button__link:hover { background: var(--green-btn-dark); color: #fff; }
.wp-block-button.is-style-dms-outline .wp-block-button__link { background: transparent; color: var(--green-btn); }
.wp-block-button.is-style-dms-outline .wp-block-button__link:hover { background: var(--green-btn); color: #fff; }
.wp-block-button.is-style-dms-light .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
.wp-block-button.is-style-dms-light .wp-block-button__link:hover { background: #fff; color: var(--navy); }
.section-head .wp-block-button .wp-block-button__link { padding: 11px 22px; }
.section-head .wp-block-buttons { margin-bottom: 16px; }
.wp-block-button.btn-tel .wp-block-button__link::before {
    content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.5 21 3 13.5 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.5 21 3 13.5 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Icônes (classe ic-xxx, voir icons.css) */
.atout[class*="ic-"]::before,
.profil[class*="ic-"]::before {
    content: ""; display: flex; border-radius: 50%;
    background: var(--cream-alt) var(--dms-icone) center / 22px no-repeat;
}
.atout[class*="ic-"]::before { width: 46px; height: 46px; margin-bottom: 16px; }
.profil[class*="ic-"]::before { width: 62px; height: 62px; margin: 0 auto 14px; background-size: 30px; }
.contact-line[class*="ic-"]::before {
    content: ""; width: 18px; height: 18px; flex-shrink: 0;
    background: var(--dms-icone) center / contain no-repeat;
}

/* Liste « Notre savoir-faire » : la pastille passe en CSS */
p.prestation-item::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%;
    background: var(--teal); flex-shrink: 0;
}

/* Paragraphes devenus blocs à la place de div/span */
p.eyebrow { display: block; }
.review-head > .wp-block-group { min-width: 0; }
.join-form-champs { display: block; }


/* Aelexa 28/10/2026 : groupes « container » centres (le reset .wp-block-group annulait margin auto) */
.wp-block-group.container { margin-left: auto; margin-right: auto; }

/* Aelexa 28/10/2026 : textes justifies et introductions des bandeaux sur toute la largeur (ecrans >= 768 px) */
@media (min-width: 768px) {
    main p, .page-hero p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
    .page-hero .lead { max-width: none; }
    main :is(.slogan, .reviews-summary, .profil, .dropzone, .empty-state, .photo-thumb) p,
    main p.has-text-align-center, main .has-text-align-center p { text-align: center; }
}

/* Aelexa 28/10/2026 : pas d'espacement automatique WordPress (24 px) sur les elements des grilles, sauf le premier */
.wp-block-group:is(.prestations-grid, .atouts-grid, .steps-grid, .profils-grid, .contact-grid, .reviews-layout, .feature) > * { margin-block-start: 0; }

/* Aelexa 28/10/2026 : une ligne d'espace entre le texte et les cartes, et entre le slogan et les boutons */
p + .prestations-grid { margin-top: 24px; }
.slogan + .cta-center { margin-top: 28px; }
