/* =========================================================================
 * Perez Axel (Bricks) — corrections de compatibilité + styles des pages Bricks
 * Le CSS de base de Bricks est dans @layer bricks : ces règles (hors layer)
 * passent devant, et les règles à classe de main.css restent prioritaires.
 * ========================================================================= */

/* 1. Bricks fixe html à 62.5 % (1rem = 10px) : retour au 16px du navigateur. */
html { font-size: 100%; }

/* 2. Paragraphes et titres comme sur l'ancien thème (marges navigateur, interligne hérité du body : 1.6). */
p { margin: 1em 0; }
h1, h2, h3, h4, h5, h6 { line-height: inherit; }

/* 3. Citations : on annule le style Bricks (retour au rendu navigateur). */
blockquote { margin: 1em 40px; padding-left: 0; font-size: inherit; }
blockquote cite { display: inline; font-size: inherit; font-style: italic; text-transform: none; }

/* 4. Logo du header / footer : alignement d'origine. */
.pa-brand__mark, .pa-brand__mark img { vertical-align: baseline; }

/* 5. Bricks ajoute son propre lien d'évitement : on garde uniquement celui du thème. */
.skip-link:not(.pa-skip) { display: none; }

/* 6. Automatic.css : on garde l'interligne et les marges de listes du site d'origine. */
/* « html body » : plus fort que le « p, li » d'ACSS, mais moins fort que toute règle à classe. */
html body p, html body li { line-height: inherit; }
.pa-prose ul, .pa-prose ol { margin-block: 1em; }

/* 7. Composants des pages Bricks (règles contextuelles, non portées par une classe seule). */
.pa-section--dark .pa-eyebrow { color: var(--pa-sand); }
.pa-section--dark .pa-h2 { color: var(--pa-ivory); }
.pa-section--dark .pa-text, .pa-section--dark .pa-lead { color: var(--pa-mint); }
.pa-section--white .pa-card--alt { background: #fff; }
.pa-band .pa-h3 { font-size: 22px; }
.pa-grid > * { width: auto; min-width: 0; }
.pa-actions > * { width: auto; }

/* 8. Icônes des cartes (élément Icône Bricks dans un bloc .pa-icon). */
:is(.brxe-block, .brxe-div).pa-icon { width: 56px; display: flex; height: 56px; border-radius: 16px; background: var(--pa-green); align-items: center; justify-content: center; flex-shrink: 0; }
.pa-icon i { font-size: 24px; color: var(--pa-ivory); line-height: 1; }
.pa-icon svg { width: 26px; height: 26px; fill: var(--pa-ivory); }

/* 9. Pastille de localisation et encadré « note » : pictos en CSS (aucun SVG à éditer). */
.pa-chip { width: fit-content; margin: 0; }
.pa-chip::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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain; }
.brxe-div.pa-note, .brxe-block.pa-note { flex-direction: row; }
.pa-note::before { content: ""; width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; background: var(--pa-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") no-repeat center / contain; }

/* 10. Coordonnées (page Contact) : pastille blanche 44px + picto en CSS, portés par le <li> (classes pa-ci--*). */
.pa-contactlist li.pa-ci { position: relative; padding-left: 58px; min-height: 44px; }
.pa-contactlist li.pa-ci::before { content: ""; position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 999px; background: #fff; }
.pa-contactlist li.pa-ci::after { content: ""; position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--pa-green); -webkit-mask: var(--pa-ci-icon) no-repeat center / contain; mask: var(--pa-ci-icon) no-repeat center / contain; }
.pa-ci--mail { --pa-ci-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.pa-ci--in { --pa-ci-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E"); }
.pa-ci--map { --pa-ci-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.pa-ci--time { --pa-ci-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

/* 11. Mise en page Elementor -> Bricks (règles .e-con.pa-* de main.css transposées). */
/* Dans Elementor, chaque widget prend toute la largeur de son conteneur : on garde ce comportement. */
:is(.brxe-container, .brxe-block):not(.pa-grid) > :is(.brxe-div, .brxe-heading, .brxe-text-basic) { align-self: stretch; }
:is(.brxe-block, .brxe-div).pa-grid { display: grid; gap: 24px; align-items: start; }
:is(.brxe-block, .brxe-div).pa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
:is(.brxe-block, .brxe-div).pa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.brxe-block, .brxe-div).pa-grid--7-5 { grid-template-columns: 7fr 5fr; column-gap: 64px; align-items: center; }
:is(.brxe-block, .brxe-div).pa-grid--5-7 { grid-template-columns: 5fr 7fr; column-gap: 64px; }
:is(.brxe-block, .brxe-div).pa-grid--6-6 { grid-template-columns: 1fr 1fr; column-gap: 64px; }
:is(.brxe-block, .brxe-div).pa-grid--4-8 { grid-template-columns: 4fr 7fr; column-gap: 80px; }
:is(.brxe-block, .brxe-div).pa-grid--top { align-items: start; }
@media (max-width: 1023px) {
  :is(.brxe-block, .brxe-div).pa-grid--3 { grid-template-columns: 1fr; }
  :is(.brxe-block, .brxe-div):is(.pa-grid--7-5, .pa-grid--5-7, .pa-grid--6-6, .pa-grid--4-8, .pa-grid--2) { grid-template-columns: 1fr; row-gap: 40px; }
}
.pa-stack.pa-stack--tight.brxe-block { gap: 14px; }
html body .pa-btn.brxe-button { letter-spacing: normal; }

/* 12. Ancien « kit » Elementor (post-6.css), retiré avec Elementor le 20/11/2026 : paragraphes sans marge basse. */
.pa-v2:where(:has(#brx-content)) p { margin-block-end: 0; }

/* Barre de contact mobile (fond blanc, placée dans le pied de page) : la règle « .pa-footer a » (texte ivoire) rendait le bouton « Appeler » illisible. */
.pa-footer .pa-mobilebar .pa-button--outline { color: var(--pa-ink) !important; }
.pa-footer .pa-mobilebar .pa-button--outline:hover,
.pa-footer .pa-mobilebar .pa-button--outline:focus-visible { color: #fff !important; }
