/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ==========================================================================
   Waters Services – Bandeaux de page (sections « Page Title Bar » Avada)
   Les photos Hero sont composées avec le sujet à droite et une moitié gauche
   claire : le texte doit rester dans cette moitié gauche.
   ========================================================================== */

/* Ordinateur : sous-titre plus lisible et limité à la zone claire de la photo. */
.fusion-tb-page-title-bar .fusion-text {
	max-width: 34em; /* environ 540 px, soit 45 % du bandeau */
	font-size: 18px;
	line-height: 1.55;
	color: #212326;
}

.fusion-tb-page-title-bar .fusion-title-heading {
	text-wrap: balance;
}

/* Tablette et mobile : titre plus petit, texte et bouton alignés à gauche,
   la partie droite de la photo reste visible pour le technicien. */
@media (max-width: 1024px) {
	.fusion-tb-page-title-bar .fusion-title,
	.fusion-tb-page-title-bar .fusion-title-heading {
		text-align: left !important;
		justify-content: flex-start !important;
	}

	.fusion-tb-page-title-bar .fusion-title-heading {
		font-size: clamp(32px, 9vw, 44px) !important;
		line-height: 1.12 !important;
	}

	.fusion-tb-page-title-bar .fusion-title {
		max-width: 72%;
	}

	.fusion-tb-page-title-bar .fusion-text {
		max-width: 60%;
		font-size: 16px;
	}

	.fusion-tb-page-title-bar .fusion-aligncenter,
	.fusion-tb-page-title-bar .fusion-button-wrapper {
		text-align: left !important;
	}

	.fusion-tb-page-title-bar .fusion-column-wrapper {
		align-items: flex-start !important;
	}
}

/* ==========================================================================
   Waters Services – Bloc « Un projet ? Parlons-en » (élément global Avada n° 201,
   classe ws-cta-projet). La photo de fond montre le technicien et les clients
   à droite : sur ordinateur, le texte et les boutons passent dans la moitié gauche.
   ========================================================================== */
@media (min-width: 1025px) {
	/* Texte aligné sur la colonne de contenu du site (1200 px). */
	.ws-cta-projet.fusion-fullwidth {
		padding-left: max(30px, calc((100% - 1200px) / 2)) !important;
		padding-right: max(30px, calc((100% - 1200px) / 2)) !important;
	}

	.ws-cta-projet .fusion-title,
	.ws-cta-projet .fusion-title-heading {
		text-align: left !important;
		justify-content: flex-start !important;
	}

	.ws-cta-projet .fusion-title {
		max-width: 660px;
	}

	.ws-cta-projet .fusion-title-heading {
		text-wrap: balance;
	}

	.ws-cta-projet .fusion-aligncenter,
	.ws-cta-projet .fusion-button-wrapper {
		text-align: left !important;
	}

	.ws-cta-projet .fusion-column-wrapper {
		align-items: flex-start !important;
	}
}

/* Tablette et mobile : sous-titre du bloc réduit (il faisait 8 lignes sur téléphone). */
@media (max-width: 1024px) {
	.ws-cta-projet h3.fusion-title-heading {
		font-size: 20px !important;
		line-height: 1.45 !important;
	}
}

/* ==========================================================================
   Waters Services – Boutons d'appel « APPELEZ : 09 81 29 59 60 » (liens tel:,
   taille par défaut : bandeau « Besoin d'un dépannage ? » des pages services,
   A propos, Contact, Services). Sur téléphone, la colonne ne laisse qu'environ
   250 px : le numéro passait sur deux lignes. Le bouton du header (petit) et
   celui du bloc « Un projet ? » (très grand) ne sont pas concernés.
   ========================================================================== */
@media (max-width: 640px) {
	.fusion-button.fusion-button-default-size[href^="tel:"] {
		padding-left: 12px;
		padding-right: 12px;
		white-space: nowrap;
	}

	/* 3.7vw : environ 13 px à 360 px et 14,5 px à 390 px, pour que le libellé
	   le plus long (« APPELEZ-NOUS : … », page Services) tienne aussi. */
	.fusion-button.fusion-button-default-size[href^="tel:"] .fusion-button-text {
		font-size: clamp(12px, 3.7vw, 16px);
		letter-spacing: 0;
		white-space: nowrap;
	}
}

/* Très petits écrans (< 360 px) : le libellé ne peut plus tenir sur une ligne ;
   on laisse le retour à la ligne plutôt qu'un bouton qui déborde du cadre. */
@media (max-width: 359px) {
	.fusion-button.fusion-button-default-size[href^="tel:"],
	.fusion-button.fusion-button-default-size[href^="tel:"] .fusion-button-text {
		white-space: normal;
	}
}

/* ==========================================================================
   Waters Services – Hero de la page d'accueil (conteneur Avada classe ws-hero,
   page 827). Ordinateur : texte à gauche (≈ 42 %), technicien au centre,
   carte « Besoin d'être rappelé ? » à droite. Tablette et mobile : image
   recadrée en haut, puis texte, bouton et carte.
   Classes : ws-hero, ws-hero-texte, ws-hero-surtitre, ws-hero-titre, ws-accent,
   ws-hero-sous-titre, ws-hero-form, ws-hero-form-titre, ws-hero-form-intro.
   ========================================================================== */

/* Texte : la colonne héritait d'un espacement droit de 31,5 % (ancienne mise
   en page) qui réduisait le texte à 360 px ; on l'annule. */
.ws-hero .ws-hero-texte {
	--awb-spacing-right-large: 0% !important;
	--awb-spacing-right-medium: 0% !important;
	--awb-spacing-left-medium: 0% !important;
}

.ws-hero .ws-hero-surtitre,
.ws-hero .ws-hero-surtitre p {
	margin: 0 0 18px;
	color: var(--awb-color5);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 1px;
}

.ws-hero .ws-accent {
	color: #e27a24; /* orange de la charte, réservé à cet accent */
}

.ws-hero .ws-hero-sous-titre {
	max-width: 520px;
	margin: 22px 0 30px;
}

.ws-hero .ws-hero-sous-titre p {
	margin: 0;
	color: var(--awb-color7);
	font-size: 19px;
	line-height: 1.6;
}

/* Carte formulaire */
.ws-hero-form > .fusion-column-wrapper {
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(20, 22, 23, 0.08), 0 2px 8px rgba(20, 22, 23, 0.04);
}

.ws-hero .ws-hero-form-intro p {
	margin: 0 0 20px;
	color: var(--awb-color6);
	font-size: 15px;
	line-height: 1.5;
}

.ws-hero-form .fusion-form .fusion-form-field {
	margin-bottom: 12px;
}

.ws-hero-form .fusion-form .fusion-form-input {
	height: 48px;
	border-radius: 8px;
}

.ws-hero-form .fusion-form .fusion-text p {
	margin: 4px 0 16px;
	font-size: 14px;
	line-height: 1.5;
}

.ws-hero-form .fusion-form-submit-field .fusion-button,
.ws-hero-form .fusion-form-submit-field button {
	width: 100%;
	justify-content: center;
}

/* Vague du bas : conservée, mais basse et discrète */
.ws-hero .fusion-section-separator {
	--awb-spacer-padding-top: 56px !important;
}

.ws-hero .fusion-section-separator svg {
	height: 56px !important;
	opacity: 0.85;
}

/* Ordinateur. La photo est calée sur la largeur de l'écran : le technicien
   occupe environ 49 % à 78 % de la largeur (mains vers 49 %, dos vers 78 %).
   Les tailles suivent donc la largeur de l'écran (vw) pour que le texte reste
   à gauche des mains et la carte à droite du dos, de 1280 à 1920 px.
   (En dessous de 1280 px, la carte recouvrirait le dos du technicien : on
   bascule sur la version empilée.) Le Hero commence sous le header global.
   Voile clair à gauche pour la lisibilité du texte. */
@media (min-width: 1280px) {
	.ws-hero.fusion-fullwidth {
		padding-top: 6vw !important; /* texte et carte juste sous le header global, au-dessus des mains du technicien */
	}

	.ws-hero.fusion-fullwidth::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(249, 249, 251, 0.9) 0%, rgba(249, 249, 251, 0.72) 36%, rgba(249, 249, 251, 0) 55%);
		pointer-events: none;
	}

	/* Contenu proportionnel à la largeur de l'écran (comme la photo), au lieu
	   de la colonne fixe de 1200 px : sur grand écran, le technicien reste
	   entre le texte et la carte. */
	.ws-hero.fusion-fullwidth > .fusion-builder-row {
		position: relative;
		z-index: 1;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 6.6vw !important;
		padding-right: 6.6vw !important;
		box-sizing: border-box;
	}

	/* Titre sur deux lignes : il peut dépasser la colonne (42 %) sur la zone
	   claire de la photo, au-dessus des mains du technicien. */
	.ws-hero .ws-hero-texte .ws-hero-titre,
	.ws-hero .ws-hero-texte .ws-hero-surtitre {
		width: 47vw;
		max-width: 900px;
	}

	.ws-hero .ws-hero-titre h1 {
		font-size: clamp(40px, 3.6vw, 60px) !important; /* 52 px à 1440 px, 2e ligne à gauche des mains */
	}

	.ws-hero .ws-hero-sous-titre {
		max-width: min(520px, 36vw);
	}

	/* Texte calé en haut (et non centré sur la hauteur de la carte). */
	.ws-hero .ws-hero-texte > .fusion-column-wrapper {
		justify-content: flex-start !important;
	}

	/* Carte étroite, poussée vers le bord droit : elle ne recouvre pas le dos du
	   technicien (qui s'arrête vers 77 % de la largeur). */
	.ws-hero .ws-hero-form {
		--awb-width-large: clamp(240px, 18vw, 320px) !important;
		margin-right: -3.5vw;
	}

	.ws-hero-form > .fusion-column-wrapper {
		padding: 28px 24px 24px !important;
	}

	.ws-hero-form .fusion-form-submit-field .fusion-button,
	.ws-hero-form .fusion-form-submit-field button {
		padding-left: 12px;
		padding-right: 12px;
		white-space: nowrap;
	}

	.ws-hero-form .fusion-form .fusion-form-input {
		height: 46px;
	}

	.ws-hero-form .fusion-form .fusion-form-field {
		margin-bottom: 10px;
	}
}

/* Petits ordinateurs, tablette et mobile (≤ 1279 px) : image recadrée sur le
   technicien en haut, puis texte, bouton et carte, sans superposition. */
@media (max-width: 1279px) {
	.ws-hero .ws-hero-texte,
	.ws-hero .ws-hero-form {
		--awb-width-large: 100% !important;
		--awb-spacing-left-large: 0% !important;
		--awb-spacing-right-large: 0% !important;
		--awb-spacing-left-medium: 0% !important;
		--awb-spacing-right-medium: 0% !important;
		--awb-spacing-left-small: 0% !important;
		--awb-spacing-right-small: 0% !important;
	}

	.ws-hero.fusion-fullwidth > .fusion-builder-row {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.ws-hero.fusion-fullwidth {
		background-image: url("../../uploads/2026/09/waters-services-hero-accueil-mobile.png") !important;
		background-size: 100% auto !important;
		background-position: 50% 0 !important;
		background-color: var(--awb-color2) !important;
		padding-top: calc(62.5vw + 28px) !important; /* image 1360 × 850 */
		padding-left: 30px !important;
		padding-right: 30px !important;
	}

	.ws-hero .ws-hero-titre h1 {
		font-size: clamp(34px, 9.2vw, 42px) !important; /* 36 px à 390 px */
		line-height: 1.1 !important;
		letter-spacing: -1px !important;
	}

	.ws-hero .ws-hero-sous-titre p {
		font-size: 17px;
	}

	.ws-hero-form > .fusion-column-wrapper {
		max-width: 560px;
		margin-top: 36px !important;
	}

	.ws-hero .fusion-section-separator {
		--awb-spacer-padding-top: 32px !important;
	}

	.ws-hero .fusion-section-separator svg {
		height: 32px !important;
	}
}

@media (max-width: 640px) {
	.ws-hero.fusion-fullwidth {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.ws-hero-texte .fusion-button {
		width: 100%;
		justify-content: center;
	}

	.ws-hero-form > .fusion-column-wrapper {
		padding: 26px 20px 22px !important;
	}
}
