/* ==========================================================================
   Équipe Clé — 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 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); }

/* --- 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; }
}
