/* SEIA · Vérification de contrat — styles du formulaire et du résultat.
   Repris tel quel de la maquette validée (site/styles.css, partie « Vérification du contrat
   d'assurance »), puis adapté au balisage des blocs WordPress en fin de fichier.
   Chargé seulement sur les pages qui contiennent le code court [seia_verification]. */

/* ---------- Vérification du contrat d'assurance (proposition, page urgence) ---------- */

.assurance .lien { grid-column: 2; justify-self: start; margin: 12px 0 0; }
.bandeau-assurance a { color: var(--marine); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.verif {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.surtitre {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--marine);
  font-size: 14.5px;
  font-weight: 500;
}
.surtitre .badge-icone { width: 32px; height: 32px; }
.surtitre .badge-icone svg { width: 17px; height: 17px; }
.verif-texte h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; }
.verif-texte > p:not(.surtitre) { margin-top: 18px; max-width: 30em; }
.verif-points { margin-top: 26px; display: grid; gap: 12px; }
.verif-points li { display: flex; align-items: center; gap: 12px; color: var(--texte-fonce); font-size: 15.5px; line-height: 1.5; }
.depot-photo svg { width: 20px; height: 20px; }
.verif-points svg, .verif-confidentiel svg, .conditions svg, .resultat-bloc h4 svg, .verif-type svg, .verdict svg, .depot-icone svg, .depot-photo svg, .depot-retirer svg {
  flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.verif-points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--teinte); color: var(--marine); stroke-width: 2.4; }
.verif-texte > .verif-confidentiel { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 13.5px; line-height: 1.5; }
.verif-confidentiel svg { width: 18px; height: 18px; color: var(--marine); }

/* Formulaire */
.verif-carte {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-forte);
}
.verif-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.verif-type legend { grid-column: 1 / -1; float: left; width: 100%; margin-bottom: 10px; padding: 0; color: var(--texte-fonce); font-size: 14px; font-weight: 500; }
.verif-type label { position: relative; cursor: pointer; }
.verif-type input { position: absolute; opacity: 0; pointer-events: none; }
.verif-type span {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--trait);
  border-radius: var(--rayon);
  color: var(--texte-fonce);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.verif-type svg { width: 20px; height: 20px; color: var(--marine); }
.verif-type label:hover span { border-color: #C5CEDA; }
.verif-type input:checked + span { border-color: var(--marine); background: var(--teinte); color: var(--marine); }
.verif-type input:focus-visible + span { outline: 2px solid var(--marine); outline-offset: 2px; }

.depot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 28px 20px 26px;
  border: 1.5px dashed #C5CEDA;
  border-radius: var(--rayon-carte);
  background: var(--fond);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.depot:hover, .depot:focus-within { border-color: var(--marine); background: var(--teinte); }
.depot input, .depot-photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.depot-icone { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--blanc); color: var(--marine); box-shadow: var(--ombre); }
.depot-icone svg { width: 24px; height: 24px; }
.depot strong { color: var(--marine); font-size: 16px; font-weight: 500; }
.depot-aide { font-size: 13px; line-height: 1.5; }
.depot-photo { position: relative; display: none; width: 100%; }
.depot-fichiers:empty { display: none; }
.depot-fichiers { display: grid; gap: 6px; font-size: 13.5px; color: var(--texte-fonce); }
.depot-fichiers li { display: flex; align-items: center; gap: 6px; padding: 2px 2px 2px 12px; border-radius: 4px; background: var(--teinte); }
.depot-fichier-nom { flex: 1; min-width: 0; padding: 6px 0; overflow-wrap: anywhere; }
.depot-retirer { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--marine); cursor: pointer; }
.depot-retirer:hover { background: var(--blanc); }
.depot-retirer:focus-visible { outline: 2px solid var(--marine); outline-offset: -2px; }
.depot-retirer svg { width: 16px; height: 16px; stroke-width: 2.2; }
.verif-astuce { margin-top: -6px; font-size: 13px; line-height: 1.55; }
.verif-erreur { margin-top: -6px; color: #9B2C2C; font-size: 13.5px; font-weight: 500; }
.verif-carte > .bouton { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.verif-avertissement { font-size: 12.5px; line-height: 1.55; }
.verif-carte > .verif-avertissement { margin-top: -4px; text-align: center; }

/* Pendant l'analyse */
.verif-attente {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.verif-attente[hidden], .verif-resultat[hidden] { display: none; }
.verif-roue { flex: none; width: 44px; height: 44px; border: 3px solid var(--teinte); border-top-color: var(--marine); border-radius: 50%; animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.verif-attente-titre { color: var(--marine); font-size: 17px; font-weight: 500; }
.verif-etapes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; font-size: 13.5px; }
.verif-etapes li { color: #9AA1A8; transition: color 0.3s; }
.verif-etapes li.en-cours { color: var(--marine); font-weight: 500; }
.verif-etapes li.fait { color: var(--texte-fonce); }
.verif-etapes li.fait::before { content: "✓ "; color: #1E6B43; }
.verif-en-cours .verif-carte { opacity: 0.55; pointer-events: none; }

/* Résultat */
.verif-resultat {
  margin-top: 40px;
  padding: clamp(24px, 3.6vw, 40px);
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-forte);
  scroll-margin-top: 110px;
}
.verif-resultat:focus { outline: none; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.verdict svg { width: 20px; height: 20px; }
.verdict-oui { background: #E6F4EC; color: #1E6B43; }
.verdict-conditions { background: #FFF3DC; color: #8A5A00; }
.verdict-non { background: #F7E9E9; color: #9B2C2C; }
.resultat-tete h3 { margin-top: 16px; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.3; max-width: 34em; }
.resultat-document { margin-top: 8px; font-size: 13.5px; }
.resultat-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.resultat-bloc { padding: 22px 24px; border: 1px solid var(--trait); border-radius: var(--rayon-carte); }
.resultat-large { grid-column: 1 / -1; }
.resultat-bloc h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--marine); font-size: 15px; font-weight: 500; }
.resultat-bloc h4 svg { width: 20px; height: 20px; }
.resultat-bloc p { font-size: 14.5px; line-height: 1.65; color: var(--texte-fonce); }
.resultat-fort { color: var(--marine) !important; font-weight: 500; font-size: 16px !important; }
.resultat-montant { color: var(--marine) !important; font-size: 28px !important; font-weight: 700; line-height: 1.2 !important; margin-bottom: 4px; }
.resultat-bloc .resultat-source { margin-top: 10px; font-size: 13px; color: var(--texte); }
.conditions { display: grid; gap: 12px; }
.conditions li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.6; color: var(--texte-fonce); }
.conditions svg { width: 20px; height: 20px; margin-top: 2px; color: #1E6B43; stroke-width: 2.2; }
.conditions strong { color: var(--marine); font-weight: 500; }
.condition-attention { padding: 14px 16px; border-radius: var(--rayon); background: #FFF3DC; }
.condition-attention svg { color: #8A5A00; }
.resultat-demarche { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--marine); border-radius: var(--rayon-carte); }
.resultat-demarche + .resultat-grille { margin-top: 16px; }
.resultat-demarche h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--marine); font-size: 16px; font-weight: 500; }
.resultat-demarche h4 svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resultat-demarche p { font-size: 15px; line-height: 1.65; color: var(--texte-fonce); }
.resultat-estimation { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 20px 24px; border-radius: var(--rayon-carte); background: var(--teinte); }
.resultat-estimation .badge-icone { background: var(--blanc); }
.resultat-estimation p { font-size: 15px; line-height: 1.65; color: var(--texte-fonce); }
.resultat-estimation strong { color: var(--marine); font-weight: 500; }
.verif-resultat > .verif-avertissement { margin-top: 20px; }
.resultat-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.resultat-actions .bouton { border: 0; cursor: pointer; font-family: inherit; }

@media (max-width: 880px) {
  .verif { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .depot-photo { height: auto; min-height: 52px; padding: 12px 18px; white-space: normal; text-align: center; }
  .verif-texte > .verif-confidentiel { margin-top: 22px; }
  .depot-photo { display: inline-flex; }
  .depot { padding: 22px 16px; }
  .verif-attente { margin-top: 24px; padding: 22px 20px; gap: 18px; }
  .verif-etapes { display: grid; gap: 2px; }
  .verif-resultat { margin-top: 24px; }
  .resultat-grille { grid-template-columns: 1fr; gap: 12px; }
  .resultat-bloc { padding: 18px; }
  .resultat-estimation { align-items: flex-start; padding: 18px; gap: 14px; }
  .resultat-demarche { padding: 18px; }
  .resultat-actions .bouton { width: 100%; }
}
@media (max-width: 400px) {
  .verif-type { grid-template-columns: 1fr; }
}

/* ---------- Adaptations WordPress ---------- */

/* Pictogrammes en pseudo-éléments : les blocs de liste et de paragraphe n'acceptent pas de SVG. */
.surtitre.a-icone::before { width: 32px; height: 32px; }
.verif-points li:not(:has(svg))::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052042' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.verif-confidentiel:not(:has(svg))::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.verif > p:empty { display: none; }

/* Mode essai (service fermé aux visiteurs) */
.verif-essai { margin: 0; padding: 8px 12px; border-radius: 4px; background: #FFF3DC; color: #8A5A00; font-size: 12.5px; font-weight: 500; line-height: 1.5; }

/* Attente et résultat réels */
.verif-attente-note { margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
.resultat-remarque { margin-top: 20px; max-width: 46em; color: var(--texte-fonce); font-size: 15px; line-height: 1.65; }
