/*
Theme Name: Palatin Habitat
Theme URI: https://palatinhabitat.fr/
Author: Osis Conseil
Description: Thème du site Palatin Habitat : estimation de travaux en Île-de-France. Thème par blocs, couleurs bleu et or Palatin, police Inter hébergée localement, conçu pour l'extension Palatin Leads.
Version: 1.1.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: palatin-habitat
*/

/* Compléments que theme.json ne couvre pas */
.pl-entete { position: sticky; top: 0; z-index: 50; }
.admin-bar .pl-entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .pl-entete { top: 46px; } }
.pl-entete .wp-block-navigation a { text-decoration: none; }
.pl-entete .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }
.pl-logo img { display: block; height: 44px; width: auto; }
.pl-carte { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; height: 100%; }
.pl-carte:hover { border-color: var(--wp--preset--color--gold) !important; box-shadow: 0 6px 18px rgba(11, 28, 55, .08); transform: translateY(-2px); }
.pl-carte a { text-decoration: none; }
.pl-carte a::after { content: ""; position: absolute; inset: 0; }
.pl-carte { position: relative; }
.pl-etape-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); font-weight: 700; }
.pl-coche li { list-style: none; position: relative; padding-left: 26px; margin-bottom: 6px; }
.pl-coche { padding-left: 0; }
.pl-coche li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--wp--preset--color--gold); border-bottom: 2px solid var(--wp--preset--color--gold); transform: rotate(-45deg); }
.pl-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 16px 0; }
.pl-faq .wp-block-details summary { font-weight: 600; cursor: pointer; color: var(--wp--preset--color--navy); }
.pl-faq .wp-block-details p { margin-top: 10px; color: var(--wp--preset--color--muted); }
.pl-pied a { text-decoration: none; }
.pl-pied a:hover { text-decoration: underline; }
.is-style-pl-contour .wp-block-button__link { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .6) !important; }
.is-style-pl-contour .wp-block-button__link:hover { border-color: var(--wp--preset--color--gold) !important; }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }
@media (max-width: 600px) {
	.pl-logo img { height: 34px; }
	.pl-entete .wp-block-button__link { padding: 9px 12px; font-size: .9rem; }
}
/* Pages Palatin : l'extension gère ses marges */
.pl-contenu-palatin > #pl-root, .entry-content > #pl-root { margin-top: 0; }
/* Le contenu des pages Palatin (estimateur, annuaire, guides…) utilise toute la largeur disponible */
.is-layout-constrained > #pl-root { max-width: none !important; }

/* ---------- 1.0.2 : en-tête ---------- */
.pl-entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--wp--style--global--wide-size, 1180px); margin: 0 auto; width: 100%; }
.pl-entete__nav { display: flex; align-items: center; gap: 26px; }
.pl-entete__lien { color: var(--wp--preset--color--navy); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pl-entete__lien:hover { color: var(--wp--preset--color--gold); }
.pl-btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; padding: 15px 26px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.pl-btn svg { flex: 0 0 auto; }
.pl-btn--or { background: linear-gradient(180deg, #CF9F5B, var(--wp--preset--color--gold)); color: var(--wp--preset--color--navy) !important; box-shadow: 0 6px 18px rgba(189, 139, 72, .28); }
.pl-btn--or:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(189, 139, 72, .38); }
.pl-btn--contour { border: 1.5px solid rgba(255, 255, 255, .75); color: #fff !important; background: rgba(11, 28, 55, .25); }
.pl-btn--contour:hover { border-color: var(--wp--preset--color--gold); }
.pl-btn--petit { padding: 10px 18px; font-size: .95rem; box-shadow: none; }
@media (max-width: 760px) {
	.pl-entete__partenaire { display: none; }
	.pl-entete__nav { gap: 14px; }
	.pl-entete__moi span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pl-entete__moi { width: 38px; height: 38px; justify-content: center; border: 1.5px solid var(--wp--preset--color--line); border-radius: 50%; }
	.pl-btn--petit { padding: 9px 12px; font-size: .88rem; gap: 7px; }
}
@media (max-width: 400px) { .pl-btn--petit svg { display: none; } }

/* ---------- 1.0.2 : accroche de la page d'accueil ---------- */
.pl-hero { position: relative; background: var(--wp--preset--color--navy); color: #fff; overflow: hidden; border-bottom: 3px solid var(--wp--preset--color--gold); }
.pl-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background-size: cover; background-position: 70% center; }
.pl-hero__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--wp--preset--color--navy) 0%, rgba(11, 28, 55, .82) 22%, rgba(11, 28, 55, .25) 55%, rgba(11, 28, 55, 0) 80%); }
.pl-hero__contenu { position: relative; max-width: var(--wp--style--global--wide-size, 1180px); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--wp--style--root--padding-right, 24px); box-sizing: border-box; }
.pl-hero__contenu > * { max-width: 660px; }
.pl-hero__kicker { display: flex; align-items: center; gap: 16px; color: var(--wp--preset--color--gold); font-weight: 700; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
.pl-hero__kicker::after { content: ""; height: 1px; width: 90px; background: var(--wp--preset--color--gold); }
.pl-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 22px; }
.pl-hero h1 span { color: var(--wp--preset--color--gold); }
.pl-hero__texte { color: #DCE3EF; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; margin: 0 0 30px; }
.pl-hero__atouts { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 0; }
.pl-hero__atouts li { display: flex; align-items: center; gap: 12px; padding: 4px 22px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; color: #DCE3EF; line-height: 1.35; }
.pl-hero__atouts li:first-child { padding-left: 0; border-left: 0; }
.pl-hero__atouts strong { display: block; color: #fff; font-weight: 600; }
.pl-hero__actions { display: flex; flex-wrap: wrap; gap: 18px; }
.pl-hero__actions .pl-btn { font-size: 1.05rem; padding: 17px 30px; }
@media (max-width: 900px) {
	.pl-hero__photo { width: 100%; opacity: .35; }
	.pl-hero__photo::before { background: linear-gradient(180deg, rgba(11, 28, 55, .55), var(--wp--preset--color--navy) 85%); }
}
@media (max-width: 600px) {
	.pl-hero__atouts { flex-direction: column; gap: 12px; }
	.pl-hero__atouts li { border-left: 0; padding: 0; }
	.pl-hero__actions .pl-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) { .pl-hero__kicker { font-size: .78rem; } .pl-hero__kicker::after { display: none; } }
