/*
 * Fiche visa 2026 (fiche-visa.php). Chargée APRÈS accueil.css, qui porte les polices, les couleurs, l'en-tête et le
 * pied de page communs. Téléphone d'abord.
 *
 * accueil.css remet à zéro les marges des paragraphes et les puces des listes (.vc-corps p, ul) : c'est juste pour
 * l'accueil, faux pour le texte d'une fiche. Le texte rédigé (.vc-fiche__texte) retrouve donc ses marges et ses puces.
 */

/* --- le haut : sable, sans photo ------------------------------------------------ */
.vc-fiche__tete {
	background: var(--vc-sable);
	border-bottom: 1px solid #E6DED3;
	padding: 12px 0 16px;
}
.vc-fiche__ariane { font-size: 13px; color: var(--vc-gris-clair); }
.vc-fiche__ariane a { color: var(--vc-gris); }
.vc-fiche__ariane span[aria-current] { color: var(--vc-gris-clair); }
.vc-fiche__titre-ligne { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.vc-fiche__drapeau { width: 36px; height: auto; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(23, 22, 26, 0.08); }
.vc-fiche__titre { font-size: 26px; font-weight: 800; line-height: 1.12; }
.vc-fiche__faits {
	display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px;
	font-size: 14px; color: #4F4C53;
}
.vc-fiche__faits li { position: relative; }
.vc-fiche__faits li + li::before {
	content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #B9B2A8;
}
.vc-fiche__fait-discret { color: var(--vc-gris-clair); }

/* --- la commande : le parcours du plugin, posé tel quel ------------------------- */
.vc-fiche__commande { padding-top: 16px; padding-bottom: 8px; }
.vc-fiche__commande .vc-parc { margin-bottom: 24px; }
/* Le parcours et le sélecteur cachent leurs blocs par l'attribut hidden. Sous l'ancien thème, Bootstrap le rendait
   absolu ; ici, une règle « display: grid » du parcours (pied du récapitulatif) l'emportait : « Dont TVA 0 € »
   s'affichait avant tout choix. */
.vc-corps [hidden] { display: none !important; }
/* Le parcours a été dessiné sous l'ancien thème, qui donnait leurs marges et leurs puces aux listes : on rend ici
   ce que la remise à zéro de l'accueil lui retire, sans toucher à sa feuille. */
.vc-fiche__commande .vc-parc p { margin: 0 0 .75rem; }
.vc-fiche__commande .vc-parc h3,
.vc-fiche__commande .vc-parc h4,
.vc-fiche__commande .vc-parc .vc-parc__h { font-family: var(--vc-titre); }
.vc-fiche__commande .vc-parc input,
.vc-fiche__commande .vc-parc select,
.vc-fiche__commande .vc-parc button,
.vc-fiche__commande .vc-parc textarea { font-family: var(--vc-texte); }
/* les avis de WooCommerce (« Votre panier… », refus) au-dessus du parcours */
.vc-fiche__commande .woocommerce-notices-wrapper:empty { display: none; }
.vc-fiche__commande .woocommerce-error,
.vc-fiche__commande .woocommerce-message,
.vc-fiche__commande .woocommerce-info {
	list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 10px;
	background: var(--vc-sable); border-left: 3px solid var(--vc-rouge);
}

/* --- le texte, les pièces, les liens --------------------------------------------- */
.vc-fiche__infos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 8px; padding-bottom: 40px; }
.vc-fiche__section { padding-top: 24px; border-top: 1px solid var(--vc-filet); }
.vc-fiche__section + .vc-fiche__section { margin-top: 24px; }
.vc-fiche__h2 { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 14px !important; }

/* Le menu d'ancres, au-dessus des sections (sur ordinateur, le sommaire de la colonne de droite le remplace) */
.vc-fiche__ancres ul { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-corps .vc-fiche__ancres a {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
	border: 1px solid #E0D7CB; border-radius: 999px; background: var(--vc-blanc);
	color: var(--vc-noir); font-size: 14px; font-weight: 600;
}
.vc-corps .vc-fiche__ancres a:hover { border-color: var(--vc-noir); text-decoration: none; }
.vc-fiche__ancres + .vc-fiche__section { margin-top: 20px; }

/* Les sections repliables : le titre est la question, une flèche dit qu'on peut ouvrir. Ouvertes sur ordinateur,
   refermées sur téléphone par le script du gabarit. */
.vc-fiche__resume { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vc-fiche__resume::-webkit-details-marker { display: none; }
.vc-fiche__resume .vc-fiche__h2 { margin-bottom: 0 !important; }
.vc-fiche__resume::after {
	content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
	border-right: 2px solid var(--vc-rouge); border-bottom: 2px solid var(--vc-rouge);
	transform: rotate(45deg); transition: transform .15s;
}
.vc-fiche__repli[open] > .vc-fiche__resume::after { transform: rotate(-135deg); }
.vc-fiche__repli[open] > .vc-fiche__resume { margin-bottom: 14px; }
.vc-fiche__resume:focus-visible { outline: 3px solid var(--vc-rouge); outline-offset: 4px; border-radius: 4px; }
.vc-fiche__repli:not([open]) { padding-bottom: 4px; }

/* « Comment se passe votre demande ? » : quatre étapes numérotées */
.vc-fiche__etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 12px; }
.vc-fiche__etapes li {
	counter-increment: etape; position: relative; padding: 14px 16px 14px 58px;
	border: 1px solid var(--vc-filet); border-radius: 12px; background: var(--vc-blanc);
}
.vc-fiche__etapes li::before {
	content: counter(etape); position: absolute; left: 16px; top: 14px;
	width: 28px; height: 28px; border-radius: 50%; background: var(--vc-noir); color: var(--vc-blanc);
	display: flex; align-items: center; justify-content: center; font-family: var(--vc-titre); font-weight: 800; font-size: 14px;
}
.vc-fiche__etapes strong { display: block; font-family: var(--vc-titre); font-size: 16px; }
.vc-fiche__etapes span { display: block; margin-top: 2px; color: var(--vc-gris); font-size: 15px; }
.vc-fiche__h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px !important; }
.vc-fiche__chapo { color: var(--vc-gris); margin-bottom: 16px !important; }

.vc-fiche__texte { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.vc-fiche__texte p { margin: 0 0 14px; }
.vc-fiche__texte ul { list-style: disc; padding-left: 1.3em; margin: 0 0 14px; }
.vc-fiche__texte ol { padding-left: 1.4em; margin: 0 0 14px; }
.vc-fiche__texte li { margin-bottom: 4px; }
.vc-fiche__texte h2 { font-size: 19px; font-weight: 800; margin: 26px 0 10px; }
.vc-fiche__texte h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.vc-fiche__texte h4 { font-family: var(--vc-titre); font-size: 16px; margin: 18px 0 6px; }
/* l'ancien thème centrait les titres et les cellules : on ne garde rien de centré */
.vc-fiche__texte, .vc-fiche__texte * { text-align: left !important; }
/* Les textes collés depuis Word ou WPBakery portent des polices en dur (Times, Arial : 8 passages sur Dubaï) :
   le texte reprend la police du site, les intertitres celle des titres. */
.vc-fiche__texte *, .vc-fiche__texte font { font-family: inherit !important; }
.vc-fiche__texte h1, .vc-fiche__texte h2, .vc-fiche__texte h3, .vc-fiche__texte h4,
.vc-fiche__texte h1 *, .vc-fiche__texte h2 *, .vc-fiche__texte h3 *, .vc-fiche__texte h4 * { font-family: var(--vc-titre) !important; }
.vc-fiche__texte table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; display: block; overflow-x: auto; }
.vc-fiche__texte th, .vc-fiche__texte td { border: 1px solid var(--vc-filet); padding: 8px 10px; vertical-align: top; }
.vc-fiche__texte th { background: var(--vc-sable); }
.vc-fiche__texte img { height: auto; }
.vc-fiche__texte iframe { max-width: 100%; }

.vc-fiche__pieces { padding: 16px 18px 4px; border: 1px solid var(--vc-filet); border-radius: 12px; background: var(--vc-blanc); }
.vc-fiche__pieces + .vc-fiche__pieces { margin-top: 12px; }
.vc-fiche__telecharger { margin-top: 14px; font-weight: 600; }

.vc-fiche__specimen { margin: 8px 0 16px; }
.vc-fiche__specimen img { display: block; height: auto; border: 1px solid var(--vc-filet); border-radius: 8px; }
.vc-fiche__legende { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 15px; }
.vc-fiche__legende-num {
	display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px;
	border-radius: 50%; background: var(--vc-noir); color: var(--vc-blanc); font-size: 12px; font-weight: 700;
}

/* la colonne de côté (sous le texte sur téléphone) */
.vc-fiche__cote { display: grid; gap: 14px; align-content: start; }
.vc-fiche__boite { padding: 16px 18px; border: 1px solid var(--vc-filet); border-radius: 12px; background: var(--vc-blanc); }
.vc-fiche__boite--sable { background: var(--vc-sable); border-color: #E6DED3; }
.vc-fiche__boite-titre { font-family: var(--vc-titre); font-weight: 700; font-size: 15px; margin-bottom: 8px !important; }
.vc-fiche__sommaire li, .vc-fiche__voisins li { padding: 5px 0; border-top: 1px solid var(--vc-filet-clair); font-size: 15px; }
.vc-fiche__sommaire li:first-child, .vc-fiche__voisins li:first-child { border-top: 0; }
.vc-fiche__tel { font-family: var(--vc-titre); font-size: 20px; font-weight: 800; }
.vc-fiche__tel a { color: var(--vc-noir); }
.vc-fiche__adresse { margin-top: 4px !important; font-size: 14px; color: var(--vc-gris); }
/* sur téléphone, le sommaire ne sert à rien sous le texte qu'il résume */
.vc-fiche__cote nav.vc-fiche__boite { display: none; }

/* --- les fiches liées ------------------------------------------------------------ */
.vc-fiche__liees { padding: 32px 0 40px; background: var(--vc-sable); border-top: 1px solid #E6DED3; }
.vc-fiche__jetons { display: flex; flex-wrap: wrap; gap: 9px; }
.vc-fiche__jeton {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
	border: 1px solid #E0D7CB; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--vc-blanc);
}
.vc-corps a.vc-fiche__jeton { color: var(--vc-noir); }
.vc-corps a.vc-fiche__jeton:hover { border-color: var(--vc-noir); text-decoration: none; }

/* Sur téléphone, l'étape 1 doit tenir dans le premier écran (décision : titre et étape 1 visibles d'emblée).
   Mesuré le 09/11 à 375 × 812 : le fil des sept étapes prenait quatre lignes et poussait « Continuer » à 844 px.
   Il tient ici sur une ligne : les numéros, et l'intitulé de la seule étape en cours. Le téléphone quitte les
   faits : il est déjà dans la barre noire du haut. Rien n'est changé dans la feuille du plugin. */
@media (max-width: 759px) {
	.vc-fiche__faits { font-size: 13px; gap: 2px 14px; margin-top: 8px; }
	.vc-fiche__faits .vc-fiche__fait-tel { display: none; }
	.vc-fiche__faits li + li::before { display: none; }
	.vc-fiche__commande { padding-top: 12px; }
	.vc-fiche__commande .vc-parc { padding: 14px; }
	.vc-fiche__commande .vc-parc__fil { gap: 6px; }
	.vc-fiche__commande .vc-parc__jalon:not(.vc-parc__jalon--ici) { padding: .25rem; }
	.vc-fiche__commande .vc-parc__jalon:not(.vc-parc__jalon--ici) .vc-parc__titre { display: none; }
}

@media (min-width: 760px) {
	.vc-fiche__titre { font-size: 32px; }
	.vc-fiche__drapeau { width: 42px; }
	.vc-fiche__tete { padding: 14px 0 20px; }
}

@media (min-width: 1000px) {
	.vc-fiche__titre { font-size: 38px; }
	.vc-fiche__commande { padding-top: 22px; }
	.vc-fiche__infos { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
	.vc-fiche__article { max-width: 780px; }
	/* align-self : sans lui, la colonne s'étire sur toute la hauteur du texte et ne « colle » jamais */
	.vc-fiche__cote { position: sticky; top: 20px; align-self: start; padding-top: 28px; }
	.vc-fiche__cote nav.vc-fiche__boite { display: block; }
	.vc-fiche__ancres { display: none; }
	.vc-fiche__ancres + .vc-fiche__section { margin-top: 0; }
	.vc-fiche__etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vc-fiche__h2 { font-size: 26px; }
}

.vc-fiche__sag { padding-top: 24px; border-top: 1px solid var(--vc-filet); }
.vc-fiche__sag iframe { display: block; width: 100%; border: 0; }
