/* A3 Solutions & Services — compléments au theme.json */

/* ---------- Barre haute & en-tête ---------- */
.a3-topbar p { margin: 0; }
.a3-topbar a { color: inherit; text-decoration: none; }
.a3-topbar a:hover { text-decoration: underline; }
.a3-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--filet); }
body.admin-bar .a3-header { top: 32px; }
.a3-brand { gap: 0.75rem !important; }
.a3-brand figure { margin: 0; }
.a3-brand__name { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.a3-brand__main { font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; font-size: 1.15rem; color: var(--wp--preset--color--bordeaux); letter-spacing: 0.01em; }
.a3-brand__sub { font-family: var(--wp--preset--font-family--inter); font-weight: 600; font-size: 0.7rem; color: var(--wp--preset--color--gris); letter-spacing: 0.12em; margin-top: 0.2rem; }
.a3-nav a { text-decoration: none; }
.a3-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--bordeaux); }
.a3-nav .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--filet) !important; border-top: 3px solid var(--wp--preset--color--dore) !important; padding: 0.4rem 0 !important; min-width: 250px !important; }
.a3-nav .wp-block-navigation__submenu-container a { padding: 0.5rem 1rem !important; }

@media (max-width: 1100px) {
	.a3-topbar .wp-block-group > p:first-child { display: none; }
	.a3-header__cta { display: none !important; }
}
@media (max-width: 600px) {
	.a3-brand__main { font-size: 0.95rem; }
	.a3-brand__seal img { width: 46px !important; height: 46px !important; }
	body.admin-bar .a3-header { top: 0; }
}

/* ---------- Typo utilitaires ---------- */
.a3-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--wp--preset--color--bordeaux);
	display: inline-flex; align-items: center; gap: 0.6rem;
}
.a3-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--wp--preset--color--dore); }
.a3-eyebrow--light { color: var(--wp--preset--color--dore-clair); }
.a3-lead { font-size: 1.2rem; line-height: 1.6; color: var(--wp--preset--color--gris); }
.has-bordeaux-background-color .a3-lead, .a3-hero .a3-lead { color: rgba(255,255,255,.86); }
.a3-muted-light, .a3-muted-light a { color: rgba(255,255,255,.72); }
.a3-footer a { color: inherit; text-decoration: none; }
.a3-footer a:hover { color: var(--wp--preset--color--dore); }
.a3-footer-list { list-style: none; padding-left: 0; }
.a3-footer-list li { margin-bottom: 0.45rem; }

/* ---------- Bandeau de page ---------- */
.a3-page-hero { position: relative; overflow: hidden; }
.a3-page-hero::after,
.a3-hero::after {
	content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
	width: 420px; height: 420px; border-radius: 50%;
	border: 2px solid rgba(212,168,72,.35); box-shadow: 0 0 0 26px rgba(212,168,72,.08), 0 0 0 60px rgba(212,168,72,.05);
	pointer-events: none;
}
.a3-page-hero h1 { margin-top: 0.4rem; }
.a3-page-hero > * { position: relative; z-index: 1; }

/* ---------- Héro d'accueil ---------- */
.a3-hero { position: relative; overflow: hidden; }
.a3-hero > * { position: relative; z-index: 1; }
.a3-hero h1 { color: #fff; }
.a3-hero h1 em { font-style: normal; color: var(--wp--preset--color--dore); }
.a3-hero::after { width: 620px; height: 620px; right: -160px; }
.a3-hero__seal img { filter: drop-shadow(0 18px 40px rgba(0,0,0,.25)); }

/* ---------- Boutons secondaires ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.a3-btn-light.is-style-outline > .wp-block-button__link { color: #fff; }
.a3-btn-light.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.1); }

/* ---------- Cartes ---------- */
.a3-card {
	background: #fff; border: 1px solid var(--wp--preset--color--filet); border-radius: 6px;
	border-top: 3px solid var(--wp--preset--color--dore);
	transition: box-shadow .2s ease, transform .2s ease; height: 100%;
}
.a3-card:hover { box-shadow: 0 14px 34px rgba(122,31,53,.10); transform: translateY(-2px); }
.a3-card h3 { margin-top: 0.25rem; }
.a3-card h3 a { text-decoration: none; color: inherit; }
.a3-card .a3-card__link a { font-weight: 600; text-decoration: none; }
.a3-card .a3-card__link a::after { content: " →"; }
.a3-card__num {
	font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; font-size: 0.85rem;
	color: var(--wp--preset--color--dore); letter-spacing: .1em;
}
.wp-block-columns.a3-cards > .wp-block-column { display: flex; }
.wp-block-columns.a3-cards > .wp-block-column > .a3-card { flex: 1; }

/* ---------- Étapes (méthode) ---------- */
.a3-steps { counter-reset: a3step; list-style: none; padding-left: 0; }
.a3-steps > li {
	counter-increment: a3step; position: relative; padding: 0 0 1.6rem 4rem; margin: 0;
	border-left: 2px solid var(--wp--preset--color--filet); margin-left: 1.25rem;
}
.a3-steps > li:last-child { border-left-color: transparent; }
.a3-steps > li::before {
	content: counter(a3step); position: absolute; left: -1.3rem; top: -0.2rem;
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	background: var(--wp--preset--color--bordeaux); color: #fff; border: 2px solid var(--wp--preset--color--dore);
	font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.a3-steps > li strong { display: block; font-family: var(--wp--preset--font-family--space-grotesk); color: var(--wp--preset--color--bordeaux); font-size: 1.15rem; margin-bottom: .2rem; }

/* ---------- Listes à puces dorées ---------- */
.a3-check { list-style: none; padding-left: 0; }
.a3-check li { position: relative; padding-left: 1.8rem; margin-bottom: 0.6rem; }
.a3-check li::before {
	content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem;
	border-radius: 50%; background: var(--wp--preset--color--dore); box-shadow: 0 0 0 3px var(--wp--preset--color--dore-clair);
}

/* ---------- Encadrés ---------- */
.a3-note { border-left: 4px solid var(--wp--preset--color--dore); background: var(--wp--preset--color--creme); border-radius: 0 6px 6px 0; }
.a3-note p { margin: 0; }
.a3-todo { border: 2px dashed var(--wp--preset--color--dore); background: #FFFBF0; border-radius: 6px; color: #6b5310; font-size: .95rem; }
.a3-todo p { margin: 0; }

/* ---------- Bandeau d'appel à l'action ---------- */
.a3-cta { border-radius: 8px; position: relative; overflow: hidden; }
.a3-cta h2 { color: #fff; }
.a3-cta h2 + p { color: rgba(255,255,255,.86); }

/* ---------- FAQ ---------- */
.wp-block-details summary { font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; color: var(--wp--preset--color--bordeaux); cursor: pointer; font-size: 1.1rem; }
.wp-block-details > *:not(summary) { margin-top: .6rem; }

/* ---------- Tableaux ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--bordeaux); text-align: left; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--wp--preset--color--filet); padding: .65rem .8rem; }

/* ---------- Formulaires (Contact Form 7 / WPForms / Fluent Forms) ---------- */
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
.wpcf7 select, .wpcf7 textarea,
.wpforms-field input, .wpforms-field select, .wpforms-field textarea {
	width: 100%; box-sizing: border-box; padding: .7rem .85rem; border: 1px solid #d8cccd; border-radius: 4px; font: inherit; background: #fff;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--dore); border-color: var(--wp--preset--color--bordeaux); }
.wpcf7 label { font-weight: 600; font-size: .95rem; display: block; }
.wpcf7 input[type=submit] {
	background: var(--wp--preset--color--bordeaux); color: #fff; border: 0; border-radius: 4px;
	padding: .85rem 1.6rem; font-weight: 600; cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--bordeaux-fonce); }

@media (max-width: 781px) {
	.a3-hero__seal img { width: 200px !important; }
	.a3-hero::after { display: none; }
}

/* Encadré « À compléter » dans lequel un formulaire a été inséré :
   le cadre et la consigne disparaissent, seul le formulaire reste. */
.a3-todo:has(.wpcf7, .wpforms-container, form) {
	border: 0 !important; background: none !important; padding: 0 !important; color: inherit;
}
.a3-todo:has(.wpcf7, .wpforms-container, form) > p:first-child { display: none; }
.wpcf7 input, .wpcf7 select, .wpcf7 textarea { max-width: 100%; box-sizing: border-box; }
.wpcf7 fieldset { border: 0; padding: 0; margin: 0; }
.wpcf7 legend { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.wpcf7 .wpcf7-list-item { margin: 0 1rem 0 0; }

/* ---------- Orientation (page Contact) ---------- */
.a3-orientation { margin-bottom: var(--wp--preset--spacing--50); }
.a3-orientation__intro { font-size: 1.05rem; }
.a3-orientation .a3-card__num { letter-spacing: .04em; }
.wp-block-columns:not(.a3-cards) .a3-card { height: auto; }

/* ---------- Sélecteur de langue ---------- */
.a3-langs { white-space: nowrap; }
.a3-lang { font-weight: 600; letter-spacing: .04em; }
.a3-lang.is-current { color: var(--wp--preset--color--dore); }
