/*
 * Wobi - Couche responsive (novembre 2026).
 * Chargee en dernier, sur tout le site. Ne change ni contenu ni couleurs :
 * tailles tactiles, lisibilite mobile, tablette, grands ecrans, formulaires.
 * Pour revenir en arriere : retirer le module responsive.php de wobi-core.
 *
 * Paliers : 320-479 mobile | 480-767 grand mobile | 768-1024 tablette
 *           1025-1599 ordinateur | 1600+ grand ecran | 2400+ QHD/4K
 */

/* ---------- Partout ---------- */

/* Un mot trop long passe a la ligne au lieu de deborder de sa boite */
body h1, body h2, body h3, body h4,
body .elementor-heading-title { overflow-wrap: break-word; }
body .v2-filigrane .elementor-heading-title { overflow-wrap: normal; }

/* Focus visible au clavier */
body a:focus-visible,
body button:focus-visible,
body .elementor-button:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
	outline: 2px solid var(--v2-orange, #F26A1B);
	outline-offset: 2px;
}

/* Pas de reflet d'appui gris sur mobile, le retour visuel est gere par les styles */
body a, body button { -webkit-tap-highlight-color: transparent; }

/* Liens d'action sur les supports tactiles (pas de survol) */
@media (hover: none) {
	body .v2-footer__liens a:hover .elementor-icon-list-text { transform: none; }
}

/* ---------- Ordinateur : cartes Services de l'accueil ---------- */
/* 4 cartes de 179 px dans 792 px : titres coupes ("promotionnelles").
   Grille 2 x 2 : images plus grandes, titres entiers. */
@media (min-width: 1025px) {
	body.home .v2-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
body .v2-svc__titre .elementor-heading-title { hyphens: auto; -webkit-hyphens: auto; }

/* ---------- Ecrans tactiles et fenetres etroites (< 1200 px) ---------- */
@media (max-width: 1199px) {

	/* Cibles tactiles : 44 px minimum */
	body .v2-header .elementskit-menu-hamburger {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	body .v2-search .ekit_navsearch-button {
		width: 44px !important;
		height: 44px !important;
		margin: 0 !important;
		display: inline-grid !important;
		place-items: center;
	}

	body .v2-footer__liens .elementor-icon-list-item > a {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	body .v2-social .elementor-social-icon { width: 44px; height: 44px; }

	body .v2-btn--fleche .elementor-button {
		min-width: 44px;
		min-height: 44px;
		display: inline-grid;
		place-items: center;
	}

	body .wobi-rea__lien,
	body .v2-footer__legal a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	body a[href^="tel:"]:not(p a),
	body a[href^="mailto:"]:not(p a),
	body a[href*="wa.me/"]:not(.wobi-flot):not(p a) {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	/* Cartes realisations : toute la carte est cliquable */
	body .wobi-rea__carte { position: relative; }
	body .wobi-rea__titre a::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		border-radius: inherit;
	}

	/* Puces des carrousels : zone d'appui elargie sans changer leur dessin */
	body .swiper-pagination-bullet { position: relative; }
	body .swiper-pagination-bullet::after {
		content: "";
		position: absolute;
		inset: -14px -8px;
	}

	/* Case a cocher RGPD du formulaire */
	body .formlayer-gdpr-wrap { display: flex; gap: 12px; align-items: flex-start; }
	body .formlayer-gdpr-wrap input[type="checkbox"] {
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		margin: 2px 0 0;
		accent-color: var(--v2-orange, #F26A1B);
	}
	body .formlayer-gdpr-label { cursor: pointer; }
}

/* ---------- Tablette (768 - 1024) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
	/* Longueur de ligne confortable (65-75 caracteres) */
	body .v2-texte p,
	body p.e-paragraph-base,
	body .wobi-prose p,
	body .wobi-prose li { max-width: 68ch; }

	/* En-tete compact */
	body .v2-header .e-con.v2-header__droite { padding: 0 !important; }
}

/* ---------- Mobile (< 768) ---------- */
@media (max-width: 767px) {

	/* Petits libelles en capitales : 13 px minimum */
	body .v2-eyebrow .elementor-heading-title,
	body .v2-footer__titre .elementor-heading-title,
	body .v2-badge__txt .elementor-heading-title,
	body .v2-impcard__label .elementor-heading-title,
	body [class*="eyebrow"] .elementor-heading-title,
	body .wobi-actu__cat,
	body .wobi-actu__meta { font-size: 13px !important; }

	/* En-tete compact : 92 px -> 68 px, et encore plus fin en defilant */
	body .v2-header .e-con.v2-header__droite { padding: 0 !important; }
	body .e-con.v2-header {
		--padding-top: 8px !important;
		--padding-bottom: 8px !important;
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}
	body.wobi-defile .e-con.v2-header {
		--padding-top: 4px !important;
		--padding-bottom: 4px !important;
		padding-top: 4px !important;
		padding-bottom: 4px !important;
	}

	/* Boutons pleine largeur dans les formulaires */
	body .formlayer-submit-btn { width: 100%; min-height: 52px; }
}

/* Tres petits ecrans (< 375) : grands titres ramenes a l'echelle */
@media (max-width: 374px) {
	body h1, body .elementor-widget-heading h1.elementor-heading-title { font-size: 34px !important; }
	body h2, body .elementor-widget-heading h2.elementor-heading-title { font-size: 27px !important; }
	body .e-con.v2-header { margin-left: 8px !important; margin-right: 8px !important; --width: calc(100% - 16px) !important; width: calc(100% - 16px) !important; max-width: calc(100% - 16px) !important; }
}

/* ---------- Formulaires : jamais de zoom force sur iPhone ---------- */
@media (max-width: 1024px) {
	body .formlayer-input,
	body input[type="text"],
	body input[type="email"],
	body input[type="tel"],
	body input[type="search"],
	body select,
	body textarea { font-size: 16px !important; }
	body .formlayer-input { min-height: 48px; }
	/* Le champ actif ne se cache pas sous l'en-tete fixe */
	body input, body select, body textarea { scroll-margin-top: 110px; scroll-margin-bottom: 24px; }
}

/* ---------- Paysage sur telephone : encoche / Dynamic Island ---------- */
@media (max-width: 1024px) and (orientation: landscape) {
	body .e-con.v2-header {
		margin-left: max(16px, env(safe-area-inset-left)) !important;
		margin-right: max(16px, env(safe-area-inset-right)) !important;
		--width: calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right))) !important;
		width: calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right))) !important;
		max-width: none !important;
	}
	body .e-con.e-parent > .e-con-inner,
	body .e-con.e-parent.e-con-full {
		padding-left: max(var(--padding-left, 0px), env(safe-area-inset-left));
		padding-right: max(var(--padding-right, 0px), env(safe-area-inset-right));
	}
	body .wobi-flot--whatsapp { left: max(16px, env(safe-area-inset-left)); }
	body .wobi-flot--haut { right: max(16px, env(safe-area-inset-right)); }
}

/* ---------- Pages de texte (mentions, confidentialite) ---------- */
body .wobi-prose p,
body .wobi-prose li { max-width: 72ch; }

/* ---------- Grands ecrans ---------- */
/* L'en-tete suit la largeur du contenu au lieu de s'etirer a 85 % */
@media (min-width: 1600px) {
	body .e-con.v2-header {
		--width: min(85%, calc(var(--wobi-contenu, 1200px) + 64px)) !important;
		width: min(85%, calc(var(--wobi-contenu, 1200px) + 64px)) !important;
	}
}
@media (min-width: 1920px) {
	body { --wobi-contenu: 1320px; }
	body .e-con.e-con-boxed > .e-con-inner { max-width: 1320px; }
	body .v2-sec { padding: 112px 0; }
}
@media (min-width: 2400px) {
	body { --wobi-contenu: 1480px; }
	body .e-con.e-con-boxed > .e-con-inner { max-width: 1480px; }
	body p { font-size: 17px; }
	body h1 { font-size: 70px; }
	body h2 { font-size: 52px; }
	body .v2-sec { padding: 128px 0; }
}
@media (min-width: 3200px) {
	body { --wobi-contenu: 1720px; }
	body .e-con.e-con-boxed > .e-con-inner { max-width: 1720px; }
	body p { font-size: 19px; }
	body h1 { font-size: 82px; }
	body h2 { font-size: 60px; }
	body h3 { font-size: 26px; }
	body .v2-sec { padding: 150px 0; }
}

/* ---------- Mouvement reduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
}

/* ---------- Complements apres controle (8 nov.) ---------- */

/* Longueur de ligne des textes courants */
body .wobi-prose p,
body .wobi-prose li { max-width: 65ch !important; }
body .wobi-article__texte > p,
body .wobi-article__texte > ul,
body .wobi-article__texte > ol { max-width: 70ch; }
body .wobi-quote p { max-width: 62ch; }
body .v2-agence__col .v2-texte p,
body .wobi-fiche__corps p { max-width: 64ch; }
@media (min-width: 768px) and (max-width: 1024px) {
	body p.e-paragraph-base,
	body .wobi-actu__extrait { max-width: 62ch !important; }
}

/* Libelles : jamais sous 12,5 px */
body .v2-impcard__label .elementor-heading-title { font-size: 12.5px !important; }
@media (max-width: 767px) {
	body .wobi-mission__label .elementor-heading-title,
	body .wobi-sf-entete__surtitre,
	body .wobi-sf-entete__surtitre a { font-size: 13px !important; }
}

@media (max-width: 1199px) {
	/* Icones reseaux sociaux : 44 px (Elementor impose 38 px par widget) */
	body .v2-social .elementor-social-icon {
		width: 44px !important;
		height: 44px !important;
		--icon-padding: .7em;
	}
	body .formlayer-gdpr-wrap input[type="checkbox"] { height: 24px !important; min-height: 24px; }

	/* Fil d'Ariane, liens de rubrique, "Toutes les actualites" : zone d'appui
	   agrandie sans decaler la mise en page */
	body .wobi-fil a,
	body .wobi-sf-entete__surtitre a,
	body .wobi-article__suite-tete a {
		display: inline-block;
		padding: 12px 0;
		margin: -12px 0;
	}
	body .wobi-actu__cat { display: inline-flex; align-items: center; min-height: 40px; }

	/* Cartes services : toute la carte est cliquable */
	body .wobi-sf-carte { position: relative; }
	body .wobi-sf-carte__titre a::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
	}

	/* Points du carrousel des actualites */
	body .wobi-carrousel__points button { position: relative; }
	body .wobi-carrousel__points button::after {
		content: "";
		position: absolute;
		inset: -18px -6px;
	}
}
