/*
Theme Name: Rezoaa
Description: Thème léger de rezoaa.org, qui remplace MyListing, son thème enfant et les modèles Elementor. L'annuaire vit dans le plugin rezoaa-annuaire.
Author: Pixlab
Version: 0.1.0
Requires PHP: 8.1
Text Domain: rezoaa
*/

/* Roboto, hébergée dans le thème : aucune requête vers Google */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(assets/fonts/roboto-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(assets/fonts/roboto-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-weight: 600; font-display: swap; src: url(assets/fonts/roboto-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(assets/fonts/roboto-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(assets/fonts/roboto-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(assets/fonts/roboto-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --bleu: #1C5C9C; --bleu-titre: #2F5B97; --rose: #E26291; --rose-fort: #DB447B; --ciel: #4BB3F3; --fond: #F6F8FE; --encre: #111; --gris: #6B6E7A; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 16px/1.6 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--bleu); }
.rz-evitement { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: 10px 16px; background: #fff; }
.rz-evitement:focus { left: 10px; top: 10px; }

/* En-tête */
.rz-entete { position: relative; z-index: 100; background: var(--fond); }
.rz-entete__barre { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 100px; padding: 10px 40px 10px 60px; }
.rz-entete__menu { justify-self: start; display: inline-flex; padding: 6px; border: 0; background: none; color: var(--bleu); cursor: pointer; }
.rz-entete__logo img { display: block; width: 193px; }
.rz-entete__droite { justify-self: end; display: flex; align-items: center; gap: 8px 18px; }
.rz-entete__bouton { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 24px; border-radius: 50px; background: var(--bleu); color: #fff; font-weight: 500; text-decoration: none; white-space: nowrap; }
.rz-entete__icone { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bleu); color: #fff; }
.rz-entete__bouton:hover, .rz-entete__icone:hover { filter: brightness(1.15); color: #fff; }

/* Menu en panneau (<dialog>) */
.rz-panneau { margin: 0; width: min(340px, 88vw); max-width: none; height: 100dvh; max-height: none; padding: 24px; border: 0; background: #fff; box-shadow: 4px 0 24px rgba(0, 0, 0, .18); }
.rz-panneau::backdrop { background: rgba(10, 30, 60, .35); }
.rz-panneau__fermer { display: block; margin-left: auto; padding: 6px; border: 0; background: none; color: var(--bleu); cursor: pointer; }
.rz-panneau ul { list-style: none; margin: 12px 0 0; padding: 0; }
.rz-panneau a { display: block; padding: 12px 4px; border-bottom: 1px solid #E8EBF2; color: var(--encre); font-weight: 500; text-decoration: none; }
.rz-panneau a:hover, .rz-panneau .current-menu-item > a { color: var(--bleu); }

/* Pied */
.rz-pied { background: var(--bleu); padding: 20px; }
.rz-pied ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; margin: 0; padding: 0; }
.rz-pied a { color: #fff; font-weight: 500; text-decoration: none; }
.rz-pied a:hover { text-decoration: underline; }

/* Pages simples */
.rz-page { max-width: 800px; margin: 0 auto; padding: 50px 20px 80px; }
.rz-page__titre { margin: 0 0 40px; font-size: 36px; font-weight: 700; line-height: 1.2; color: #222; }
.rz-page__corps { padding: 40px 20px 30px; background: #fff; border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .07); font-size: 15px; line-height: 1.6; color: #222; }
.rz-page__corps > :last-child { margin-bottom: 0; }
.rz-page__corps h1:not(.rz-page__titre) { font-size: 34px; line-height: 1.2; }
.rz-page__corps h2 { font-size: 28px; line-height: 1.25; }

/* Accueil (blocs WordPress, classes posées par scripts/preparer-base.php) */
/* Mêmes réglages que la section Elementor de la prod : fond en taille réelle, depuis le haut à gauche. */
.rz-accueil-hero { background: #F6F8FE url("/fond-sympa.svg") repeat 0 0 / auto; padding: 90px 20px 200px; text-align: center; }
.rz-accueil-hero h1 { max-width: 1140px; margin: 0 auto 20px; color: var(--bleu-titre); font-size: 44px; font-weight: 600; line-height: 1.2; }
.rz-accueil-hero > p { max-width: 800px; margin: 0 auto 70px; font-size: 22px; font-weight: 500; line-height: 1.4; color: #000; }
.rz-accueil-hero .rz-r--bloc { max-width: 1040px; margin: 0 auto; box-sizing: border-box; }
.rz-accueil-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; max-width: 1140px; margin: 40px auto 0; padding: 0 20px; }
.rz-accueil-carte { display: flex; flex-direction: column; margin: 0; background: #fff; }
.rz-accueil-carte .wp-block-image { margin: 0; }
.rz-accueil-carte img { display: block; width: 100%; height: 260px; object-fit: cover; }
.rz-accueil-carte--contenue img { object-fit: contain; }
.rz-accueil-carte h4 { margin: 20px 10px 10px; font-size: 18px; font-weight: 600; text-align: center; color: #000; }
.rz-accueil-carte p { margin: 0 10px 10px; padding: 0 0 4px; font-size: 14px; line-height: 1.5; color: #555; }
.rz-accueil-carte p a { color: inherit; }
.rz-accueil-carte .wp-block-buttons { justify-content: center; margin: auto 10px 16px; }
.wp-block-button__link.wp-element-button { display: inline-block; border-radius: 3px; padding: 11px 24px; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.wp-block-button__link:hover { filter: brightness(1.08); }
.rz-b-rose .wp-block-button__link { background: var(--rose); }
.rz-b-rose-fort .wp-block-button__link { background: var(--rose-fort); }
.rz-b-ciel .wp-block-button__link { background: var(--ciel); }
.rz-accueil-asso { max-width: 1140px; margin: 60px auto 0; padding: 0 20px 50px; text-align: center; }
.rz-accueil-asso h2 { margin: 0 0 20px; font-size: 36px; font-weight: 600; line-height: 1.2; color: #080808; }
.rz-accueil-asso .wp-block-image img { width: 600px; max-width: 100%; }
.rz-accueil-asso__texte { max-width: 650px; margin: 40px auto 20px; padding: 20px; background: var(--rose-fort); color: #fff; font-size: 14px; line-height: 1.5; text-align: left; }
.rz-accueil-asso__texte p { margin: 0 0 10px; }
.rz-accueil-asso__texte p:last-child { margin: 0; }
.rz-accueil-asso .wp-block-buttons { flex-direction: column; align-items: center; gap: 14px; }
@media (max-width: 900px) {
	.rz-accueil-cartes { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
	.rz-accueil-hero { padding: 24px 12px 70px; }
	.rz-accueil-hero h1 { font-size: 30px; }
	.rz-accueil-hero > p { font-size: 18px; }
	.rz-accueil-asso h2 { font-size: 26px; }
}
@media (max-width: 767px) {
	.rz-entete__barre { padding: 8px 12px; min-height: 76px; grid-template-columns: auto auto 1fr; }
	.rz-entete__barre { padding: 8px 10px; gap: 8px; }
	.rz-entete__logo img { width: 100px; height: auto; }
	.rz-entete__bouton { min-height: 32px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
	.rz-entete__icone { width: 30px; height: 30px; }
	.rz-entete__droite { gap: 6px; }
	.rz-page { padding: 20px 12px 40px; }
	.rz-page__titre { font-size: 26px; margin-bottom: 20px; }
	.rz-page__corps { padding: 20px; }
}

/* Formulaire de dépôt (Gravity Forms) */
.rz-referencer { max-width: 760px; margin: 0 auto; }
.rz-referencer .gform_wrapper .gform_fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.rz-referencer .gfield_label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--encre); }
.rz-referencer .gfield_required { margin-left: 4px; color: #d00; font-size: 13px; font-weight: 500; }
.rz-referencer .gfield_description { margin: 6px 0 0; padding: 0; font-size: 13px; line-height: 1.4; color: var(--gris); }
.rz-referencer input[type="text"], .rz-referencer input[type="email"], .rz-referencer input[type="tel"], .rz-referencer input[type="url"], .rz-referencer select, .rz-referencer textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #CDD3DF; border-radius: 6px; background: #fff; color: var(--encre); font: inherit; font-size: 15px; }
.rz-referencer textarea { height: 96px; min-height: 96px; resize: vertical; }
.rz-referencer input:focus, .rz-referencer select:focus, .rz-referencer textarea:focus { outline: 2px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
.rz-referencer .gfield_checkbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.rz-referencer .gchoice { display: flex; align-items: center; gap: 10px; }
.rz-referencer .gchoice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--bleu); }
.rz-referencer .gchoice label { font-size: 14px; line-height: 1.3; cursor: pointer; }
.rz-referencer .gform_footer { margin-top: 28px; padding: 0; }
.rz-referencer .gform_button.button, .rz-referencer input[type="submit"].gform_button { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 24px; border: 1px solid var(--bleu); border-radius: 6px; background: var(--bleu); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.rz-referencer .gform_button.button:hover { filter: brightness(1.15); }
.rz-referencer .gfield_error input, .rz-referencer .gfield_error select, .rz-referencer .gfield_error textarea { border-color: #d00; }
.rz-referencer .validation_message, .rz-referencer .gform_validation_errors { color: #b00; font-size: 13px; }
@media (max-width: 767px) { .rz-referencer .gfield_checkbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) { .rz-entete__bouton { display: none; } }
