/*
 * Pages services, communes et zone (tools/build-pages.mjs).
 * Aucune nouvelle charte : couleurs, polices, ombres et rayons du thème Soft Ideal
 * (rouge #E71D27, noir #101010, gris #27282A, fond clair #f2f6f9, texte #696969,
 * Mulish pour les titres, Inter pour le texte). Les titres de section réutilisent
 * les widgets Elementor de l'accueil ; ce fichier ne pose que la grille et les blocs de contenu.
 */
.svc-page { overflow-x: clip; }
.svc-sec { padding: 5em 0; }
.svc-white { background: #fff; }
.svc-grey { background: #f2f6f9; }
.svc-wrap { width: min(1260px, calc(100% - 40px)); margin: 0 auto; }
.svc-head { max-width: 820px; margin: 0 auto 3em; text-align: center; }
.svc-head .elementor-widget { width: 100%; }
.svc-head .elementor-widget-container { width: 100%; }
.svc-body > * + * { margin-top: 2.75em !important; }
.svc-body { min-width: 0; }

/* Texte */
.svc-text { max-width: 760px; }
.svc-text > * + * { margin-top: 1em !important; }
.svc-page .svc-text h3 { font-family: "Mulish", sans-serif; font-size: 24px; line-height: 1.3; font-weight: 800; color: #27282a; margin: 0; }
.svc-text p, .svc-callout p, .svc-card p, .svc-step p { font-family: "Inter", sans-serif; font-size: 16px; line-height: 1.7; color: #696969; margin: 0; }
.svc-page .svc-text a, .svc-page .svc-callout a, .svc-page .svc-card p a, .svc-page .svc-table a, .svc-page .svc-head a { color: #e71d27; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.svc-text strong, .svc-callout strong, .svc-card strong, .svc-table strong { color: #27282a; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { position: relative; padding: 6px 0 6px 24px; font-family: "Inter", sans-serif; font-size: 15px; line-height: 1.6; font-weight: 600; color: #27282a; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px; background: #e71d27; }

/* Deux colonnes */
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.svc-col { min-width: 0; }
.svc-col > * + * { margin-top: 1.5em !important; }
.svc-cols--reverse > .svc-col:first-child { order: 2; }

/* Cartes (même rendu que les icon-box du thème) */
.svc-cards { display: grid; gap: 30px; }
.svc-cols-1 { grid-template-columns: minmax(0, 1fr); }
.svc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: 3px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); min-width: 0; text-decoration: none; }
.svc-card > * + * { margin-top: 14px !important; }
.svc-card__icon { font-size: 44px; line-height: 1; color: #e71d27; }
.svc-page h3.svc-card__title { font-family: "Mulish", sans-serif; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: 0; color: #27282a; margin: 14px 0 0; overflow-wrap: anywhere; }
.svc-card .svc-list { text-align: left; align-self: stretch; border-top: 1px solid #e6e6e6; padding-top: 12px; }
.svc-card__more { margin-top: auto; padding-top: 6px; font-family: "Inter", sans-serif; font-size: 15px; font-weight: 600; color: #e71d27; }
.svc-card--link { transition: transform 0.3s, box-shadow 0.3s; }
.svc-card--link:hover { transform: translateY(-4px); box-shadow: 0 34px 64px rgba(0, 0, 0, 0.14); }

/* Étapes */
.svc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.svc-steps > .svc-step { flex: 0 1 calc((100% - 90px) / 4); }
.svc-step { background: #fff; border-radius: 3px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); min-width: 0; }
.svc-step__num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #e71d27; color: #fff; font-family: "Mulish", sans-serif; font-size: 22px; font-weight: 800; }
.svc-page h3.svc-step__title { font-family: "Mulish", sans-serif; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: 0; color: #27282a; margin: 14px 0 0; }
.svc-step__title + p { margin-top: 10px; }

/* Tableau (en-tête noir comme le comparatif de l'accueil) */
.svc-table { min-width: 0; }
.svc-table__wrap { overflow-x: auto; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); -webkit-overflow-scrolling: touch; }
.svc-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-family: "Inter", sans-serif; font-size: 15px; text-align: left; margin: 0; }
.svc-table thead th { background: #101010; color: #fff; padding: 16px 20px; font-weight: 700; }
.svc-table th, .svc-table td { padding: 15px 20px; border-bottom: 1px solid #ececec; vertical-align: top; color: #4a4a4a; line-height: 1.55; }
.svc-table tbody th { background: #fafbfc; color: #27282a; font-weight: 700; width: 22%; }
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: 0; }
.svc-table__wrap:focus-visible { outline: 3px solid #e71d27; outline-offset: 2px; }
.svc-note { font-family: "Inter", sans-serif; font-size: 14px; line-height: 1.6; color: #696969; margin: 14px 0 0; }
.svc-source { font-family: "Inter", sans-serif; font-size: 13px; line-height: 1.5; color: #5c5c5c; margin: 10px 0 0; font-style: italic; }

/* Encadré À retenir */
.svc-callout { background: #fff; border-left: 5px solid #e71d27; border-radius: 3px; padding: 24px 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); }
.svc-callout > * + * { margin-top: 10px !important; }
.svc-grey .svc-callout { background: #fff; }
.svc-white .svc-callout { background: #f2f6f9; box-shadow: none; }
.svc-page p.svc-callout__title { font-family: "Mulish", sans-serif !important; font-size: 18px !important; font-weight: 800 !important; color: #27282a !important; }
.svc-callout__title i { color: #e71d27; margin-right: 6px; }
.svc-callout--warn { border-left-color: #101010; }

/* Chiffres sourcés */
.svc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.svc-fact { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 3px; padding: 28px 28px 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); border-top: 4px solid #e71d27; min-width: 0; }
.svc-fact__value { font-family: "Mulish", sans-serif; font-size: 40px; line-height: 1.1; font-weight: 800; color: #27282a; letter-spacing: -1px; overflow-wrap: anywhere; }
.svc-fact__label { font-family: "Inter", sans-serif; font-size: 16px; line-height: 1.5; color: #4a4a4a; }
.svc-fact__source { font-family: "Inter", sans-serif; font-size: 13px; line-height: 1.5; color: #5c5c5c; font-style: italic; margin-top: auto; padding-top: 6px; }

/* Visuels (le contenu interne vient de public/clone/pages/visuals.css) */
.svc-visual { min-width: 0; max-width: 100%; }
.svc-visual svg, .svc-visual img { max-width: 100%; height: auto; }
.svc-visual--pending { border: 2px dashed #c9d2d9; padding: 48px 24px; text-align: center; color: #5c5c5c; font-family: "Inter", sans-serif; font-size: 14px; background: #fff; }

/* Boutons */
.svc-cta > p { font-family: "Inter", sans-serif; font-size: 16px; color: #27282a; font-weight: 600; margin: 0 0 14px; }
.svc-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.svc-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; background: #e71d27; color: #fff !important; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; padding: 15px 28px; border: 2px solid #e71d27; border-radius: 3px; text-decoration: none; transition: background 0.3s, color 0.3s; }
.svc-btn:hover { background: #101010; border-color: #101010; }
.svc-btn i { margin-right: 8px; }
.svc-btn--ghost { background: transparent; color: #e71d27 !important; }
.svc-btn--ghost:hover { background: #e71d27; border-color: #e71d27; color: #fff !important; }
.svc-btn--ghost-light { color: #fff !important; border-color: #fff; background: transparent; }
.svc-btn--ghost-light:hover { background: #fff; border-color: #fff; color: #27282a !important; }

/* Bandeau d'appel sombre (section 3d66bfeb) */
.svc-band .svc-cta__btns { justify-content: center; margin-top: 28px; }
.svc-band .elementor-widget-container { text-align: center; }
.svc-band .elementor-widget { width: 100%; }
.svc-band .elementor-widget-text-editor .elementor-widget-container { max-width: 720px; margin: 0 auto; width: 100%; }

/* FAQ : deux colonnes d'accordéons du thème */
.svc-faq { margin: 0 -10px; }
.svc-faq .elementor-container { display: flex; gap: 0 30px; max-width: none; width: 100%; padding: 0; }
.svc-faq .elementor-column { min-width: 0; }

/* Mobile et tablette */
@media (max-width: 1024px) {
  .svc-sec { padding: 4em 0; }
  .svc-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .svc-cols--reverse > .svc-col:first-child { order: 0; }
  .svc-cols-3, .svc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-steps > .svc-step { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 767px) {
  .svc-sec { padding: 3.25em 0; }
  .svc-head { margin-bottom: 2em; }
  .svc-cols-2, .svc-cols-3, .svc-cols-4 { grid-template-columns: minmax(0, 1fr); }
  .svc-card, .svc-step { padding: 26px 22px; }
  .svc-cards, .svc-facts, .svc-steps { gap: 20px; }
  .svc-steps > .svc-step { flex-basis: 100%; }
  .svc-callout { padding: 20px 20px; }
  .svc-fact__value { font-size: 34px; }
  .svc-faq .elementor-container { flex-direction: column; }
  .svc-faq .elementor-column { width: 100%; }
  .svc-cta__btns .svc-btn { width: 100%; }
  .svc-page .svc-text h3 { font-size: 21px; }
}

/* Bandeau de titre : le H1 reprend exactement le rendu du H2 du bandeau « Services » du thème,
   et le sous-titre celui du H5 (variables de typographie du kit Elementor). */
.svc-page .elementor-element-1328f92 h1.elementor-heading-title {
  font-family: var(--e-global-typography-5d167aa-font-family), Sans-serif;
  font-size: var(--e-global-typography-5d167aa-font-size);
  font-weight: var(--e-global-typography-5d167aa-font-weight);
  line-height: var(--e-global-typography-5d167aa-line-height);
  letter-spacing: var(--e-global-typography-5d167aa-letter-spacing);
}
.svc-page .elementor-element-b15b12f p.elementor-heading-title {
  font-family: var(--e-global-typography-7044a64-font-family), Sans-serif;
  font-size: var(--e-global-typography-7044a64-font-size);
  font-weight: var(--e-global-typography-7044a64-font-weight);
  line-height: var(--e-global-typography-7044a64-line-height);
  color: var(--e-global-color-secondary);
  margin: 0;
}
/* Boutons : priorité sur .elementor-button du kit */
.svc-page a.svc-btn { background: #e71d27; color: #fff !important; border: 2px solid #e71d27; }
.svc-page a.svc-btn:hover { background: #101010; border-color: #101010; color: #fff !important; }
.svc-page a.svc-btn--ghost { background: transparent; color: #e71d27 !important; }
.svc-page a.svc-btn--ghost:hover { background: #e71d27; border-color: #e71d27; color: #fff !important; }
.svc-page a.svc-btn--ghost-light { background: transparent; color: #fff !important; border-color: #fff; }
.svc-page a.svc-btn--ghost-light:hover { background: #fff; border-color: #fff; color: #27282a !important; }

/* Sur fond blanc, un filet léger remplace le contraste du fond gris */
.svc-white .svc-card, .svc-white .svc-step, .svc-white .svc-fact { border: 1px solid #e3e9ee; }
.svc-white .svc-fact { border-top: 4px solid #e71d27; }

/* Les visuels de la bibliothèque (.vz) ont leur propre marge : on laisse le gabarit gérer l'espacement */
.svc-visual > .vz { margin: 0; }

/* Mobile : les tableaux s'empilent (une carte par ligne, libellé de colonne devant chaque valeur) */
@media (max-width: 767px) {
  .svc-table table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; min-width: 0; }
  .svc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .svc-table tbody tr { border-bottom: 6px solid #f2f6f9; }
  .svc-table tbody tr:last-child { border-bottom: 0; }
  .svc-page .svc-table tbody th { width: 100%; background: #101010 !important; color: #fff !important; padding: 12px 16px; border: 0; }
  .svc-page .svc-table tbody td { background: #fff !important; }
  .svc-table td { padding: 10px 16px; border-bottom: 1px solid #ececec; }
  .svc-table td::before { content: attr(data-label); display: block; font-family: "Mulish", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #e71d27; margin-bottom: 2px; }
  .svc-table td:last-child { border-bottom: 0; }
}
