/* ==========================================================================
   equipecle.com — composants sur mesure
   La palette, la typographie, les boutons, l'en-tête et le pied de page
   sont gérés par le système global Avada (Global Colors + Typography Sets).
   Ce fichier ne contient que les composants propres au site.
   Jetons : var(--awb-color1..8) · Blanc #FFF · Anthracite #1C1C1C · Doré #C9A14A
   ========================================================================== */

/* --- Logo SVG d'en-tête ------------------------------------------------- */

.fusion-header .fusion-logo img,
.fusion-header .fusion-standard-logo {
  max-height: 84px !important;
  width: auto;
}

/* --- Logo typographique (en attendant le logo final) ------------------- */

.ec-logo-texte {
  display: inline-block;
  line-height: 1.1;
  text-decoration: none;
}
.ec-logo-texte .ec-logo-nom {
  font-family: var(--awb-typography1-font-family);
  font-weight: 800;
  font-size: 22px;
  color: var(--awb-color8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ec-logo-texte .ec-logo-nom .ec-cle { color: var(--awb-color4); }
.ec-logo-texte .ec-logo-agence {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #003da5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- Accents ------------------------------------------------------------ */

.ec-filet-dore {
  width: 64px;
  height: 3px;
  background: var(--awb-color4);
  border: none;
  margin: 18px auto;
}
.ec-filet-dore--gauche { margin-left: 0; }

.ec-surtitre {
  font-family: var(--awb-typography5-font-family);
  font-weight: 700;
  font-size: var(--awb-typography5-font-size);
  letter-spacing: var(--awb-typography5-letter-spacing);
  text-transform: uppercase;
  color: var(--awb-color4);
}

/* --- Boutons spécifiques ------------------------------------------------- */

.fusion-button.ec-btn-or,
.fusion-button.ec-btn-or:visited {
  background: var(--awb-color4);
  color: var(--awb-color8);
  border: 1px solid var(--awb-color4);
  font-family: var(--awb-typography1-font-family);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.fusion-button.ec-btn-or:hover {
  background: transparent;
  color: var(--awb-color4);
  border-color: var(--awb-color4);
}

.fusion-button.ec-btn-contour,
.fusion-button.ec-btn-contour:visited {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-family: var(--awb-typography1-font-family);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.fusion-button.ec-btn-contour:hover {
  background: #ffffff;
  color: var(--awb-color8);
}

/* --- Sections sombres ----------------------------------------------------- */

.ec-section-sombre h1,
.ec-section-sombre h2,
.ec-section-sombre h3 { color: #ffffff; }
.ec-section-sombre p { color: #d9d9d9; }

/* --- Cartes ---------------------------------------------------------------- */

.ec-carte {
  background: var(--awb-color1);
  border: 1px solid var(--awb-color3);
  border-top: 3px solid var(--awb-color4);
  padding: 36px 30px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ec-carte:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(28, 28, 28, 0.10);
}

/* --- Étapes numérotées ------------------------------------------------------ */

.ec-etape-numero {
  font-family: var(--awb-typography1-font-family);
  font-weight: 800;
  font-size: 44px;
  color: var(--awb-color4);
  line-height: 1;
}

/* --- Bandeau conformité (courtier + agence) --------------------------------- */

.ec-signature-conformite {
  font-size: 14px;
  color: #bdbdbd;
  letter-spacing: 0.04em;
}
.ec-signature-conformite strong { color: #ffffff; }

/* --- Témoignages -------------------------------------------------------------- */

.ec-temoignage {
  background: var(--awb-color1);
  border-left: 3px solid var(--awb-color4);
  padding: 28px 30px;
  font-style: italic;
  color: var(--awb-color6);
}
.ec-temoignage cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--awb-typography1-font-family);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--awb-color8);
}

/* --- Formulaire Contact Form 7 ------------------------------------------------ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--awb-color3);
  background: var(--awb-color1);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--awb-color8);
  border-radius: 2px;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--awb-color4);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
}
.wpcf7 label {
  font-family: var(--awb-typography1-font-family);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--awb-color8);
}
.wpcf7 .wpcf7-submit {
  background: var(--awb-color4);
  color: var(--awb-color8);
  border: none;
  border-radius: 6px;
  padding: 15px 42px;
  font-family: var(--awb-typography1-font-family);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}
.wpcf7 .wpcf7-submit:hover { background: var(--awb-color5); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin-left: 0; }
.wpcf7 .wpcf7-acceptance label {
  text-transform: none;
  font-family: var(--awb-typography4-font-family);
  font-weight: 400;
  font-size: 13px;
  color: var(--awb-color6);
}

/* --- Pied de page : titres dorés --------------------------------------------- */

.fusion-footer-widget-area .widget-title {
  color: var(--awb-color4);
  font-family: var(--awb-typography1-font-family);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Section pré-pied de page : outils gratuits ------------------------------ */

.ec-prefooter {
  background: var(--awb-color2);
  border-top: 3px solid var(--awb-color4);
  padding: 64px 30px;
}
.ec-prefooter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.ec-prefooter-intro h2 {
  font-size: 28px;
  margin: 6px 0 16px;
}
.ec-prefooter-intro ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.ec-prefooter-intro li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--awb-color6);
}
.ec-prefooter-intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 3px;
  background: var(--awb-color4);
}
.ec-prefooter-note {
  font-size: 13px;
  color: var(--awb-color6);
}

/* Grille du formulaire de documents — plusieurs colonnes,
   adaptée à la largeur de son conteneur (pas de l'écran) */
.wpcf7 { container-type: inline-size; }
.ec-form-grille-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
}
@container (max-width: 660px) {
  .ec-form-grille-docs { grid-template-columns: 1fr; }
  .ec-form-grille-docs .ec-fg-large { grid-column: span 1; }
}
/* Page du test : le formulaire vit dans une demi-colonne — 2 colonnes max */
.page-id-85 .ec-form-grille-docs { grid-template-columns: repeat(2, 1fr); }
.page-id-85 .ec-form-grille-docs .ec-fg-large { grid-column: span 2; }
.ec-form-grille-docs .ec-fg-large { grid-column: span 3; }
.ec-form-grille-docs .ec-fg-pleine { grid-column: 1 / -1; }
.ec-form-grille-docs label {
  display: block;
  margin-bottom: 5px;
}
.ec-form-grille-docs .wpcf7-form-control-wrap { display: block; }
.ec-form-grille-docs .wpcf7-submit { width: auto; }
/* Les groupes conditionnels s'insèrent dans la grille sans casser les colonnes */
.ec-form-grille-docs .wpcf7cf-hidden { display: none !important; }
.ec-form-grille-docs [data-class="wpcf7cf_group"] { display: contents; }

@media (max-width: 980px) {
  .ec-prefooter-inner { grid-template-columns: 1fr; gap: 28px; }
  .ec-form-grille-docs { grid-template-columns: repeat(2, 1fr); }
  .ec-form-grille-docs .ec-fg-large { grid-column: span 2; }
}
@media (max-width: 640px) {
  .ec-form-grille-docs { grid-template-columns: 1fr; }
  .ec-form-grille-docs .ec-fg-large { grid-column: span 1; }
}

/* --- Formulaire sur fond sombre (section accueil) ----------------------------- */

.ec-form-sombre .wpcf7 label { color: #ffffff; }
.ec-form-sombre .wpcf7 .wpcf7-acceptance label { color: #d9d9d9; }
.ec-form-sombre .wpcf7 .wpcf7-acceptance a { color: var(--awb-color4); }

/* Formulaires Avada (Fusion Forms) */
.ec-form-sombre .fusion-form-field label,
.ec-form-sombre .fusion-form-field .fusion-form-checkbox label {
  color: #ffffff;
}
.ec-form-sombre .fusion-form-consent-field label,
.ec-form-sombre .fusion-form-consent-field .fusion-form-input-with-label {
  color: #d9d9d9;
}
.fusion-form .fusion-button,
.fusion-form button[type="submit"] {
  background: var(--awb-color4);
  color: var(--awb-color8);
  border-radius: 6px;
  font-family: var(--awb-typography1-font-family);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fusion-form-field-hidden { display: none; }

/* --- Bouton flottant « Outils gratuits » --------------------------------------- */

.ec-flottant {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99990;
  background: var(--awb-color4);
  color: var(--awb-color8) !important;
  font-family: var(--awb-typography1-font-family);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ec-flottant-pulse 2.6s ease-in-out infinite;
}
.ec-flottant:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(28, 28, 28, 0.45);
  color: var(--awb-color8);
}
@keyframes ec-flottant-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(28, 28, 28, 0.35), 0 0 0 0 rgba(201, 161, 74, 0.55); }
  50%      { box-shadow: 0 10px 28px rgba(28, 28, 28, 0.35), 0 0 0 12px rgba(201, 161, 74, 0); }
}
@media (max-width: 640px) {
  .ec-flottant span { display: none; }
  .ec-flottant { left: 14px; bottom: 14px; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-flottant { animation: none; }
}

/* --- Réactivité ------------------------------------------------------------------ */

@media (max-width: 800px) {
  .fusion-title h1 { font-size: 34px !important; }
  .ec-etape-numero { font-size: 34px; }
  .ec-carte { padding: 28px 22px; }
}

/* Lien d'avis Google (pied de page / coordonnées) */
.ec-avis-google a {
	color: var(--awb-color5, #c9a14a);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.ec-avis-google a:hover {
	opacity: 0.8;
}

/* Calculateur (taxe de bienvenue, etc.) */
.ec-calc {
	max-width: 640px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e7e2d8;
	border-radius: 10px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(28,28,28,0.06);
}
.ec-calc-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
	color: #1c1c1c;
}
.ec-calc-input {
	display: flex;
	align-items: center;
	border: 2px solid #1c1c1c;
	border-radius: 8px;
	overflow: hidden;
}
.ec-calc-dollar {
	padding: 0 16px;
	font-weight: 700;
	color: #c9a14a;
	font-size: 20px;
}
.ec-calc-input input {
	flex: 1;
	border: 0;
	padding: 14px 16px 14px 0;
	font-size: 22px;
	font-weight: 600;
	outline: none;
	color: #1c1c1c;
	background: transparent;
}
.ec-calc-btn {
	width: 100%;
	margin-top: 18px;
	background: #c9a14a;
	color: #1c1c1c;
	border: 0;
	border-radius: 8px;
	padding: 15px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background 0.2s;
}
.ec-calc-btn:hover { background: #b68f3c; }
.ec-calc-result { margin-top: 26px; }
.ec-calc-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #1c1c1c;
	border-radius: 8px;
	padding: 22px;
	color: #ffffff;
	text-align: center;
}
.ec-calc-total span { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.ec-calc-total strong { font-size: 40px; color: #c9a14a; line-height: 1.1; margin-top: 6px; }
.ec-calc-detail { width: 100%; border-collapse: collapse; margin-top: 18px; }
.ec-calc-detail td { padding: 10px 4px; border-bottom: 1px solid #eee; font-size: 15px; }
.ec-calc-detail td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.ec-calc-note { margin-top: 16px; font-size: 14px; color: #555; }
.ec-calc-cta {
	display: block;
	text-align: center;
	margin-top: 18px;
	background: #1c1c1c;
	color: #ffffff !important;
	border-radius: 8px;
	padding: 14px;
	font-weight: 600;
	text-decoration: none;
}
.ec-calc-cta:hover { background: #333; }
.ec-calc-legal { margin-top: 20px; font-size: 12.5px; color: #8a8a8a; line-height: 1.5; }

/* Numéro de téléphone cliquable dans le héros */
.ec-hero-tel {
	font-size: 18px;
	color: #ffffff;
	margin-top: 4px;
}
.ec-hero-tel a {
	color: #c9a14a;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid rgba(201,161,74,0.5);
}
.ec-hero-tel a:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* Coordonnées complètes au pied de page */
.ec-footer-nap a { color: inherit; text-decoration: none; }
.ec-footer-nap a:hover { color: #c9a14a; }

/* Sélecteur de municipalité du calculateur */
.ec-calc-select {
	border: 2px solid #1c1c1c;
	border-radius: 8px;
	overflow: hidden;
}
.ec-calc-select select {
	width: 100%;
	border: 0;
	padding: 13px 16px;
	font-size: 17px;
	font-weight: 600;
	color: #1c1c1c;
	background: transparent;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23c9a14a%22%20d%3D%22M6%208L0%200h12z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.ec-calc-field + .ec-calc-field { margin-top: 16px; }

/* Suffixe d'unité (%) dans le calculateur */
.ec-calc-unit {
	padding: 0 16px;
	font-weight: 700;
	color: #c9a14a;
	font-size: 20px;
}
.ec-calc-input input { padding-left: 16px; }
.ec-calc-input .ec-calc-dollar + input { padding-left: 0; }

/* Calculateur hypothécaire — indices, boîte comptant, avertissement */
.ec-calc-hint {
	margin: 8px 2px 0;
	font-size: 13.5px;
	color: #8a6d1f;
}
.ec-calc-comptant {
	margin-top: 18px;
	background: #f5f3ef;
	border: 1px solid #e7e2d8;
	border-left: 4px solid #c9a14a;
	border-radius: 8px;
	padding: 18px 20px;
}
.ec-comptant-titre {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #555;
	font-weight: 700;
}
.ec-comptant-montant {
	font-size: 28px;
	font-weight: 700;
	color: #1c1c1c;
	margin: 4px 0 6px;
}
.ec-comptant-detail {
	font-size: 13.5px;
	color: #555;
	line-height: 1.5;
}
.ec-calc-warn {
	background: #fbf3f2;
	border-left: 4px solid #b3402f;
	padding: 12px 14px;
	border-radius: 6px;
	color: #7a2a1f;
}

/* --- Section vidéos (pages piliers) --------------------------------------- */
.ec-video-liste {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	margin: 8px 0;
}
.ec-video-carte {
	background: var(--awb-color1);
	border: 1px solid var(--awb-color3);
	border-bottom: 3px solid var(--awb-color4);
	padding-bottom: 18px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.ec-video-carte:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(28, 28, 28, 0.10);
}
.ec-video-carte img { width: 100%; height: auto; display: block; }
.ec-video-carte h3 {
	margin: 14px 18px 4px;
	font-size: 18px;
	line-height: 1.35;
	font-family: var(--awb-typography1-font-family);
}
.ec-video-carte h3 a { color: var(--awb-color8); }
.ec-video-carte p { margin: 0 18px 8px; }
.ec-video-duree {
	font-family: var(--awb-typography5-font-family, 'Montserrat', sans-serif);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--awb-color4);
}
/* Padding du texte des cartes vidéo — Avada écrase les marges latérales,
   donc on passe par du padding (non écrasé) + spécificité renforcée.
   L'image reste pleine largeur (exclue via :has). */
.ec-video-liste .ec-video-carte h3,
.ec-video-liste .ec-video-carte p {
	padding-left: 18px;
	padding-right: 18px;
	box-sizing: border-box;
}
.ec-video-liste .ec-video-carte p:has(img),
.ec-video-liste .ec-video-carte p:has(> a > img) {
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 800px) { .ec-video-liste { grid-template-columns: 1fr; } }

/* --- Mention d'avatar IA, sous le lecteur (pages piliers) ----------------- */
/* Doit se LIRE sans écraser la réponse qui suit : plus petite, discrète,
   mais pas gris-sur-gris — une mention illisible ne remplit pas son office. */
.ec-mention-ia {
	font-size: 13px;
	line-height: 1.6;
	color: #555;
	background: rgba(201, 161, 74, 0.06);
	border-left: 3px solid var(--awb-color4);
	padding: 14px 18px;
	margin: 0 0 26px;
	border-radius: 0 4px 4px 0;
}
.ec-mention-ia strong { color: var(--awb-color8); }

/* -------------------------------------------------------------------------
 * Sélecteur de langue dans le menu (globe FontAwesome + FR/EN/ES)
 * ---------------------------------------------------------------------- */
.ec-lang-switch > a .fa-globe { margin-right: 6px; }
.ec-lang-switch .ec-lang-cur { font-weight: 600; letter-spacing: .04em; }
.ec-lang-menu { min-width: 150px; }
.ec-lang-menu .ec-lang-item.current-lang > a { font-weight: 700; color: #c9a14a; }
/* Menu mobile Avada : afficher le code de langue courant à côté du globe */
.fusion-mobile-nav-holder .ec-lang-switch > a .ec-lang-cur { display: inline; }
