/*
Theme Name: AryA (enfant de Borgholm)
Theme URI: https://www.agence-arya.fr
Description: Thème enfant du site AryA. Toutes les personnalisations du site vivent ici ; le thème parent Borgholm n'est jamais modifié. Source tenue dans le QG : poles/digital/livrables/site-arya-2027/theme-enfant/.
Author: AryA
Author URI: https://www.agence-arya.fr
Version: 1.14.2
Text Domain: borgholm
Template: borgholm
*/

/* Couleurs AryA (décision de Manuel, 2026-11-24).
   Les couleurs principales se règlent dans les options du thème (Qode Options) ;
   ces variables servent aux réglages faits dans le thème enfant. */
:root {
	--arya-rouge: #B3261E;     /* accent : boutons, mot animé, liens (remplace #f23801) */
	--arya-bordeaux: #851811;  /* couleur forte : pied de page, survols, badges (bordeaux du logo) */
	--arya-noir: #1A1614;
}

/* Logo en SVG : le thème calcule la largeur à partir de l'image ;
   un SVG sans dimensions propres tomberait à 0. On fixe les proportions du logo AryA (168 × 65). */
.qodef-header-logo-link img[src$=".svg"],
.qodef-mobile-header-logo-link img[src$=".svg"] {
	width: auto;
	height: 100%;
	aspect-ratio: 168 / 65;
}

/* Encadré AryA en fin d'article (classe posée par la rédaction). */
.encadre-arya {
	margin: 40px 0;
	padding: 24px 28px;
	background: #F7F3EF;
	border-left: 4px solid var(--arya-rouge);
}
.encadre-arya a {
	color: var(--arya-rouge);
	font-weight: 500;
}

/* Tableaux des articles : lisibles et défilables sur téléphone. */
.elementor-widget-text-editor table,
.single-post .qodef-e-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 15px;
}
.elementor-widget-text-editor th, .elementor-widget-text-editor td,
.single-post .qodef-e-content th,
.single-post .qodef-e-content td {
	border-bottom: 1px solid #DCCFC5;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.single-post .qodef-e-content th {
	border-bottom: 2px solid var(--arya-noir);
	font-weight: 600;
}
@media (max-width: 680px) {
	.single-post .qodef-e-content table {
		display: block;
		overflow-x: auto;
	}
}

/* Formulaire de devis [arya_contact]. */
.arya-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.arya-form-champ { margin: 0 0 18px; }
.arya-form-champ:has(textarea), .arya-form-rgpd, .arya-form-envoi { grid-column: 1 / -1; }
.arya-form label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--arya-noir); }
.arya-form input, .arya-form select, .arya-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #DCCFC5; background: #fff; font: inherit; color: var(--arya-noir); }
.arya-form input:focus, .arya-form select:focus, .arya-form textarea:focus { outline: 2px solid var(--arya-rouge); outline-offset: 1px; }
.arya-form select { height: auto; min-height: 48px; line-height: 1.4; appearance: auto; }
.arya-form textarea { min-height: 140px; }
.arya-form-rgpd { font-size: 13px; line-height: 1.5; color: #6b5f58; margin: 4px 0 20px; }
.arya-form-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.arya-form-merci, .arya-form-erreur { padding: 20px 24px; margin: 0 0 24px; border-left: 4px solid var(--arya-rouge); background: #F7F3EF; }
@media (max-width: 680px) { .arya-form { grid-template-columns: 1fr; } }

/* Simulateur AryA Shop [arya_simulateur]. */
.arya-simu { padding: 32px; background: #F7F3EF; border-left: 4px solid var(--arya-rouge); }
.arya-simu-champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.arya-simu-champs label { display: block; margin-bottom: 6px; font-weight: 500; }
.arya-simu-champs input { width: 100%; padding: 12px 14px; border: 1px solid #DCCFC5; background: #fff; font: inherit; }
.arya-simu-resultat { margin-top: 20px; }
.arya-simu-ligne { margin: 6px 0; font-size: 18px; }
.arya-simu-total strong { color: var(--arya-rouge); font-size: 26px; }
.arya-simu-mention { margin-top: 16px; font-size: 13px; color: #6b5f58; }
@media (max-width: 680px) { .arya-simu-champs { grid-template-columns: 1fr; } .arya-simu { padding: 22px; } }

/* Pied de page AryA (2026-11-24) : structure et style du pied de page de la démo Borgholm
   (fond noir, titres en Cormorant, étiquettes en petites capitales), aux couleurs d'AryA. */
#qodef-page-footer { background: var(--arya-noir); }
#qodef-page-footer-top-area, #qodef-page-footer-bottom-area { background: transparent; }
#qodef-page-footer-top-area { padding-top: 110px; padding-bottom: 60px; }
#qodef-page-footer-bottom-area { border-top: 1px solid rgba(255,255,255,.12); }
#qodef-page-footer, #qodef-page-footer p, #qodef-page-footer li { color: rgba(255,255,255,.72); }
#qodef-page-footer .qodef-widget-title { color: #fff; font-size: 26px; margin-bottom: 26px; }
#qodef-page-footer a { color: #fff; transition: color .2s ease; }
#qodef-page-footer a:hover { color: #E8A39D; }
#qodef-page-footer .arya-footer-label { margin: 0 0 4px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
#qodef-page-footer .arya-footer-gros { margin: 0 0 22px; font-size: 19px; }
#qodef-page-footer .arya-footer-texte { margin: 0 0 22px; font-size: 15px; line-height: 1.7; }
#qodef-page-footer .arya-footer-liens { list-style: none; margin: 0 0 22px; padding: 0; }
#qodef-page-footer .arya-footer-liens li { margin: 0 0 9px; font-size: 15px; }
#qodef-page-footer .arya-footer-bouton { display: inline-block; margin-top: 6px; padding: 14px 26px; background: var(--arya-rouge); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
#qodef-page-footer .arya-footer-bouton:hover { background: var(--arya-bordeaux); color: #fff; }
#qodef-page-footer .arya-footer-reseaux { display: flex; gap: 12px; margin: 6px 0 0; }
#qodef-page-footer .arya-footer-reseau { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 15px; }
#qodef-page-footer .arya-footer-reseau:hover { border-color: #E8A39D; }
#qodef-page-footer .arya-footer-bas { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
#qodef-page-footer .arya-footer-droite { text-align: right; }
@media (max-width: 1024px) { #qodef-page-footer .arya-footer-droite { text-align: left; } #qodef-page-footer-top-area { padding-top: 70px; } }
/* Le thème impose ses couleurs de liens dans le pied de page : on les force en clair. */
body #qodef-page-footer .widget a,
body #qodef-page-footer .widget .arya-footer-liens a { color: #fff !important; }
body #qodef-page-footer .widget a:hover { color: #E8A39D !important; }
body #qodef-page-footer .widget a.arya-footer-bouton { color: #fff !important; }
body #qodef-page-footer .widget a.arya-footer-bouton:hover { color: #fff !important; background: var(--arya-bordeaux); }
body #qodef-page-footer .widget .arya-footer-bas a { color: rgba(255,255,255,.8) !important; }
#qodef-page-footer .arya-footer-liens { margin-bottom: 30px !important; }
#qodef-page-footer .arya-footer-liens + .arya-footer-label { margin-top: 0; }

/* Barre d'appel sous le slide de l'accueil (téléphone, note Google, boutons Appeler et Devis). */
.arya-barre { margin: 0; color: rgba(255,255,255,.8); font-size: 15px; letter-spacing: .02em; }
.arya-barre a { color: #fff !important; font-weight: 600; }
.arya-barre a:hover { color: #E8A39D !important; }
.arya-bouton-clair .qodef-button.qodef-layout--outlined { color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
.arya-bouton-clair .qodef-button.qodef-layout--outlined:hover { background: #fff !important; color: var(--arya-noir) !important; }
@media (max-width: 1024px) { .arya-barre { text-align: center; margin-bottom: 16px; } }
.arya-bouton-clair .qodef-button,
.arya-bouton-clair a.qodef-button { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.6) !important; }
.arya-bouton-clair a.qodef-button:hover { background: #fff !important; color: var(--arya-noir) !important; }
.arya-bouton-clair .qodef-m-text, .arya-bouton-clair .qodef-m-icon { color: inherit !important; }

/* ===== Corrections visuelles (retours de Manuel, 2026-11-25) ===== */

/* Pied de page : même rendu sur toutes les pages (l'accueil héritait du fond clair et du logo de la démo). */
#qodef-page-footer #qodef-page-footer-top-area,
#qodef-page-footer #qodef-page-footer-bottom-area { background-color: transparent !important; }
#qodef-page-footer .qodef-footer-logo,
#qodef-page-footer .widget_borgholm_core_logo,
#qodef-page-footer-top-area .qodef-grid-item > a[href]:only-child img { display: none !important; }

/* Grilles « icône + texte » : le texte reste dans sa colonne. */
.elementor-widget-borgholm_core_icon_with_text { padding-right: 28px; box-sizing: border-box; }
.qodef-icon-with-text .qodef-m-text, .qodef-icon-with-text .qodef-m-title { max-width: 100%; overflow-wrap: break-word; }
@media (max-width: 1024px) { .elementor-widget-borgholm_core_icon_with_text { padding-right: 0; } }

/* Formulaire de devis : large, 3 colonnes, champs alignés. */
.arya-form { grid-template-columns: repeat(3, 1fr); gap: 0 28px; max-width: 1040px; margin: 0 auto; align-items: end; }
.arya-form-champ { margin-bottom: 22px; }
.arya-form label { min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arya-form-champ:has(textarea) { grid-column: 1 / -1; }
.arya-form-envoi { text-align: center; }
.arya-form input, .arya-form select { height: 50px; }
@media (max-width: 1024px) { .arya-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .arya-form { grid-template-columns: 1fr; } .arya-form label { white-space: normal; } }

/* Simulateur : libellés de même hauteur, champs alignés. */
.arya-simu-champs { align-items: end; }
.arya-simu-champs label { min-height: 2.8em; display: flex; align-items: flex-end; }
.arya-form { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
@media (max-width: 1024px) { .arya-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .arya-form { grid-template-columns: minmax(0, 1fr); } }
.elementor-widget-shortcode:has(.arya-form) { width: 100% !important; max-width: 1040px !important; margin-left: auto; margin-right: auto; }
.arya-form input, .arya-form select, .arya-form textarea { margin: 0 !important; vertical-align: top; }
.arya-form-champ { margin-bottom: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.arya-form-champ > select, .arya-form-champ > input { margin-top: 0 !important; }

/* 1.9.0 : grilles de cartes photo (page Prestations, univers) : photos de même format, titres et textes réguliers. */
.arya-cartes .qodef-image-with-text .qodef-m-image { overflow: hidden; }
.arya-cartes .qodef-image-with-text .qodef-m-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease; }
.arya-cartes .qodef-image-with-text:hover .qodef-m-image img { transform: scale(1.04); }
.arya-cartes .qodef-image-with-text .qodef-m-content { padding-top: 18px; }
.arya-cartes .qodef-image-with-text .qodef-m-title { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.arya-cartes .qodef-image-with-text .qodef-m-title a { color: inherit; }
.arya-cartes .qodef-image-with-text .qodef-m-title a:hover { color: #b3261e; }
.arya-cartes .qodef-image-with-text .qodef-m-text { margin: 0; font-size: 15px; line-height: 1.6; }
.arya-cartes .elementor-column { margin-bottom: 40px; }
@media (max-width: 767px) { .arya-cartes .elementor-column { margin-bottom: 32px; } }

/* 1.9.1 : la grille « ce que comprend la prestation » remplace les icônes de démonstration du thème
   par un filet rouge, un titre et une ligne de texte ; la méthode devient une liste numérotée. */
.arya-point { border-top: 2px solid #b3261e; padding-top: 22px; padding-right: 24px; }
.arya-point-titre { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
.arya-point-titre a { color: inherit; }
.arya-point-titre a:hover { color: #b3261e; }
.arya-point p { margin: 0; font-size: 15px; line-height: 1.6; }
.arya-points .elementor-column { margin-bottom: 44px; }
ol.arya-etapes { margin: 0; padding-left: 1.3em; }
ol.arya-etapes li { margin: 0 0 10px; padding-left: 4px; line-height: 1.6; }
ol.arya-etapes li::marker { color: #b3261e; font-weight: 600; }

/* 1.9.2 : méthode en 2 x 2 sur l'accueil ; grilles de points plus serrées sur mobile. */
.arya-grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 767px) {
	.arya-grille-2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.arya-points .elementor-column { margin-bottom: 24px; }
}

/* 1.10.0 : une signature visuelle par univers (demande de Manuel, 2026-11-25 : « les univers répètent le même gabarit »). */
.arya-marquee { overflow: hidden; }
.arya-marquee .qodef-m-text { white-space: nowrap; }

/* Artisans : gris béton, images empilées, méthode en parcours (Workflow Gallery). */
.arya-beton { background-color: #e6e4e0 !important; }
.qodef-workflow .qodef-e-workflow-image { width: 300px !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.qodef-workflow .qodef-e-workflow-image img { width: 300px; height: 400px; object-fit: cover; display: block; }

/* Commerces : beige, cartes qui défilent, méthode en frise numérotée. */
.arya-beige { background-color: #f2ece2 !important; }
.arya-etapes-ligne ol.arya-etapes,
.arya-etapes-cartes ol.arya-etapes { counter-reset: etape; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.arya-etapes-ligne ol.arya-etapes li,
.arya-etapes-cartes ol.arya-etapes li { counter-increment: etape; margin: 0; font-size: 15px; line-height: 1.6; }
.arya-etapes-ligne ol.arya-etapes li { padding: 18px 0 0; border-top: 1px solid #111; }
.arya-etapes-ligne ol.arya-etapes li::before,
.arya-etapes-cartes ol.arya-etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: "Cormorant", serif; font-size: 56px; line-height: 1; color: #b3261e; margin-bottom: 14px; }
.arya-etapes-ligne ol.arya-etapes li strong,
.arya-etapes-cartes ol.arya-etapes li strong,
.arya-etapes-fil ol.arya-etapes li strong { display: block; font-family: "Cormorant", serif; font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; color: #111; }

/* Clubs et AryA Shop : sections noires, bandeau défilant, forfait en tableau, méthode en cartes. */
.arya-noir { background-color: #111 !important; }
.arya-noir, .arya-noir p, .arya-noir .arya-point-titre, .arya-noir .arya-point-titre a { color: #fff; }
.arya-noir .arya-point p { color: rgba(255, 255, 255, .78); }
.arya-etapes-cartes ol.arya-etapes li { background: #f4f4f4; padding: 28px 24px; }
.arya-prix .qodef-pricing-table { background: #111; color: #fff; padding: 48px 40px; }
.arya-prix .qodef-pricing-table * { color: #fff; }
.arya-prix .qodef-pricing-table .qodef-button { background: #b3261e; border-color: #b3261e; }

/* Indépendants : lignes fines, onglets par profil, méthode en fil vertical. */
.arya-fines .arya-point { border-top: 1px solid #111; }
.arya-fines { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.arya-onglets .qodef-tabs .qodef-tabs-navigation li { border-bottom: 1px solid #ddd; }
.arya-onglets .qodef-tabs-content p { max-width: 760px; font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.arya-onglets .qodef-tabs-content a { color: #b3261e; text-decoration: underline; text-underline-offset: 3px; }
.arya-etapes-fil ol.arya-etapes { list-style: none; counter-reset: etape; margin: 36px 0 0; padding: 0 0 0 36px; border-left: 1px solid #111; max-width: 760px; }
.arya-etapes-fil ol.arya-etapes li { counter-increment: etape; position: relative; margin: 0 0 30px; padding: 0; line-height: 1.6; }
.arya-etapes-fil ol.arya-etapes li::before { content: counter(etape); position: absolute; left: -51px; top: 0; width: 28px; height: 28px; border: 1px solid #111; border-radius: 50%; background: #fff; font-size: 13px; line-height: 26px; text-align: center; }

@media (max-width: 1024px) {
	.arya-etapes-ligne ol.arya-etapes, .arya-etapes-cartes ol.arya-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.arya-etapes-ligne ol.arya-etapes, .arya-etapes-cartes ol.arya-etapes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.qodef-workflow .qodef-e-workflow-image { display: none; }
	.arya-prix .qodef-pricing-table { padding: 36px 24px; }
	/* Les titres du gabarit ont une largeur fixe (577 px) qui débordait de l'écran du téléphone. */
	.elementor-widget__width-initial { max-width: 100% !important; }
}

/* 1.10.2 : haut de page resserré (Manuel, 2026-11-25 : « beaucoup d'espace entre le haut et le premier encart »).
   Le thème ajoutait 130 px au-dessus du contenu, puis la première section 100 à 135 px : on garde un seul espace. */
body:not(.home) #qodef-page-inner.qodef-content-full-width { padding-top: 0 !important; }
body:not(.home) #qodef-page-inner .elementor > .elementor-section:first-child { padding-top: 56px !important; }
@media (max-width: 767px) {
	body:not(.home) #qodef-page-inner .elementor > .elementor-section:first-child { padding-top: 28px !important; }
	/* Les grands titres se coupaient au milieu d'un mot (« communicatio-n ») sur téléphone. */
	body:not(.home) h1 { font-size: 40px !important; line-height: 1.12 !important; overflow-wrap: normal; word-break: normal; }
	/* Contact : le titre et les coordonnées avant la carte. */
	body.page-id-6614 #qodef-page-inner .elementor > .elementor-section:first-child > .elementor-container { flex-direction: column-reverse; }
}

/* 1.11.2 : Contact sans carte Google intégrée (cookies tiers sans accord) : un encart « Nous trouver ». */
.arya-plan > .elementor-widget-wrap { background: #f2ece2; padding: 64px 56px !important; align-content: center; }
.arya-plan .elementor-widget-borgholm_core_button { margin-bottom: 14px; }
@media (max-width: 767px) { .arya-plan > .elementor-widget-wrap { padding: 36px 24px !important; } }

/* 1.13.0 : carte Google Maps après accord (Contact). */
.arya-carte { position: relative; min-height: var(--arya-carte-h, 700px); background: #f2ece2; }
.arya-carte iframe { display: block; width: 100%; height: var(--arya-carte-h, 700px); border: 0; }
.arya-carte-attente { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px; }
.arya-carte-attente p { margin: 0 0 14px; max-width: 420px; font-size: 15px; line-height: 1.6; }
.arya-carte-titre { font-family: "Cormorant", serif; font-size: 30px !important; line-height: 1.2 !important; font-weight: 600; color: #111; }
.arya-carte-bouton { background: #b3261e; color: #fff; border: 0; padding: 16px 30px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
.arya-carte-bouton:hover { background: #851811; }
.arya-carte-attente a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .arya-carte, .arya-carte iframe { min-height: 420px; height: 420px; } .arya-carte-attente { padding: 28px 22px; } }
