/* ==========================================================================
   Prévaction Services conseils — habillage graphique
   Version 2.4.0 (compatible Elementor)

   ORGANISATION DU FICHIER
   1. Jetons de design (couleurs, mesures)
   2. Base + typographie
   3. En-tête et pied de page (fournis par le thème)
   4. Boutons
   5. Classes « pv-* » à coller dans Elementor (onglet Avancé > Classes CSS)
   6. Contact Form 7
   ========================================================================== */

/* 1. ---------------------------------------------------------------- Jetons */
:root {
	--bg: #0a0a09;
	--bg-alt: #131311;
	--bg-card: #17170f;
	--line: #2c2a20;
	--gold: #c9a24b;
	--gold-bright: #e6c876;
	--red: #8a1f1f;
	--red-bright: #a92a2a;
	--ivory: #efe9db;
	--muted: #9a9484;
	--radius: 2px;
	--max: 1180px;
}

/* 2. ------------------------------------------------------------ Base */
html { scroll-behavior: smooth; }

body.pv-body {
	background: var(--bg);
	color: var(--ivory);
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	margin: 0;
}

.pv-body img { max-width: 100%; height: auto; display: block; }
.pv-body a { color: inherit; text-decoration: none; }

/* Titres : Cinzel partout, y compris dans les widgets Elementor. */
.pv-body h1, .pv-body h2, .pv-body h3, .pv-body h4,
.pv-body .elementor-heading-title,
.pv-body .elementor-widget-text-editor h1,
.pv-body .elementor-widget-text-editor h2,
.pv-body .elementor-widget-text-editor h3,
.pv-body .elementor-widget-text-editor h4 {
	font-family: 'Cinzel', serif;
	letter-spacing: 0.02em;
	font-weight: 600;
	color: var(--ivory);
	margin: 0;
}

.pv-body .elementor-widget-text-editor,
.pv-body .elementor-widget-text-editor p {
	font-family: 'Inter', sans-serif;
	color: var(--muted);
}
.pv-body .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.pv-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--gold); color: #100f0a; padding: 12px 20px;
}
.pv-skip:focus { left: 0; }

.pv-body :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Décale le contenu sous l'en-tête fixe (sauf sur la page vierge). */
.pv-body .pv-main { padding-top: 79px; }
.pv-body--vide .pv-main { padding-top: 0; }

/* 3. -------------------------------------------------- En-tête / pied de page */
.pv-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: rgba(10, 10, 9, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.pv-header .nav {
	max-width: var(--max); margin: 0 auto; padding: 16px 32px;
	display: flex; align-items: center; justify-content: space-between;
}
.pv-header .brand { display: flex; align-items: center; gap: 12px; }
/* Hauteur pilotée par le Personnaliseur (voir prevaction_inline_styles()).
   La valeur ci-dessous n'est qu'un repli. */
.pv-header .brand img { height: 38px; width: auto; }
.brand-text { font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: 0.08em; line-height: 1.2; }
.brand-text span {
	display: block; font-family: 'Inter', sans-serif; font-size: 10px;
	letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
	font-weight: 500; margin-top: 2px;
}

/* Menu WordPress (Apparence > Menus) */
.pv-menu { display: flex; gap: 36px; align-items: center; list-style: none; margin: 0; padding: 0; }
.pv-menu a {
	font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--ivory); font-weight: 500; padding: 4px 0; display: inline-block;
}
.pv-menu a:hover, .pv-menu .current-menu-item > a { color: var(--gold); }

.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

/* Menu centré dans l'en-tête.
   De 960 à 1099 px : centré dans l'espace libre entre le logo et le bouton.
   À partir de 1100 px : centré sur la largeur réelle de l'en-tête. */
@media (min-width: 960px) {
	.pv-header .nav { position: relative; }
	.pv-header .brand { flex: 0 0 auto; }
	.pv-header nav.links { flex: 1 1 auto; display: flex; justify-content: center; }
	.pv-header .nav-cta { flex: 0 0 auto; }
}
@media (min-width: 1100px) {
	.pv-header nav.links {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		flex: 0 0 auto;
	}
}

.burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { width: 24px; height: 2px; background: var(--gold); }
@media (min-width: 960px) { .burger { display: none; } }
@media (max-width: 959px) { .pv-header nav.links { display: none; } }

.mobile-panel { display: none; background: var(--bg-alt); border-top: 1px solid var(--line); }
.mobile-panel.open { display: block; }
.mobile-panel .pv-menu { flex-direction: column; gap: 0; align-items: stretch; }
.mobile-panel .pv-menu a {
	display: block; padding: 16px 32px; border-bottom: 1px solid var(--line);
	font-size: 14px; letter-spacing: 0.08em;
}

.pv-footer { padding: 50px 0 34px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.08em; color: var(--muted); }
.footer-links .pv-menu { gap: 26px; }
.footer-links .pv-menu a { font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.footer-links .pv-menu a:hover { color: var(--gold); }
.copyright { margin-top: 26px; font-size: 12.5px; color: #5f5b4f; text-align: center; }

/* 4. ------------------------------------------------------------ Boutons */
.pv-body .btn,
.pv-body .pv-btn .elementor-button {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 30px;
	font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
	letter-spacing: 0.06em; text-transform: uppercase;
	border-radius: var(--radius); cursor: pointer;
	transition: all .25s ease; border: 1px solid transparent;
}
.pv-body .btn-primary,
.pv-body .pv-btn-primary .elementor-button { background: var(--gold); color: #100f0a; }
.pv-body .btn-primary:hover,
.pv-body .pv-btn-primary .elementor-button:hover { background: var(--gold-bright); color: #100f0a; transform: translateY(-2px); }
.pv-body .btn-ghost,
.pv-body .pv-btn-ghost .elementor-button { background: transparent; border-color: var(--line); color: var(--ivory); }
.pv-body .btn-ghost:hover,
.pv-body .pv-btn-ghost .elementor-button:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* 5. ============================================================
      Classes à coller dans Elementor
      (sélectionner l'élément > onglet Avancé > Classes CSS)
      ============================================================ */

/* --- Surtitre doré avec filet ------------------------------------ */
.pv-eyebrow .elementor-heading-title,
.pv-body .pv-eyebrow p {
	font-family: 'Inter', sans-serif;
	text-transform: uppercase; letter-spacing: 0.28em;
	font-size: 12px; color: var(--gold); font-weight: 600;
	display: inline-flex; align-items: center; gap: 10px;
}
.pv-eyebrow .elementor-heading-title::before,
.pv-body .pv-eyebrow p::before {
	content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block;
}

/* --- Échelle typographique ---------------------------------------- */
.pv-h1 .elementor-heading-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; }
.pv-h1 .elementor-heading-title em { color: var(--gold); font-style: normal; }
.pv-h2 .elementor-heading-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; }
.pv-h3 .elementor-heading-title { font-size: 20px; line-height: 1.3; }

.pv-body .pv-lead, .pv-body .pv-lead p { font-size: 18px; color: var(--muted); }
.pv-body .pv-small, .pv-body .pv-small p { font-size: 14.5px; color: var(--muted); }

/* --- Devise « Anticiper / Agir / Protéger » ------------------------ */
.pv-body .pv-motto, .pv-body .pv-motto p {
	font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.1em; color: var(--gold);
}
.pv-body .pv-motto span {
	display: block; font-family: 'Inter', sans-serif; letter-spacing: 0.02em;
	color: var(--muted); font-size: 13px; margin-top: 6px;
}
.pv-motto-row { border-top: 1px solid var(--line); }

/* --- Cartes de service (à poser sur une COLONNE) ------------------ */
.elementor-column.pv-card > .elementor-widget-wrap,
.pv-card.e-con,
.pv-card:not(.elementor-column):not(.e-con) {
	background: var(--bg-card);
	border: 1px solid var(--line);
	padding: 44px 40px;
	position: relative;
	transition: background .25s ease;
}
.elementor-column.pv-card > .elementor-widget-wrap:hover,
.pv-card.e-con:hover { background: #1c1c12; }
.elementor-column.pv-card > .elementor-widget-wrap::before,
.pv-card.e-con::before {
	content: ""; position: absolute; top: 18px; left: 18px; width: 14px; height: 14px;
	border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); opacity: .7;
}
.elementor-column.pv-card > .elementor-widget-wrap::after,
.pv-card.e-con::after {
	content: ""; position: absolute; bottom: 18px; right: 18px; width: 14px; height: 14px;
	border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); opacity: .7;
}
.pv-num .elementor-heading-title {
	font-family: 'Cinzel', serif; color: var(--red-bright);
	font-size: 13px; letter-spacing: 0.15em; font-weight: 500;
}

/* --- Étapes de la démarche (à poser sur une COLONNE) -------------- */
.elementor-column.pv-step > .elementor-widget-wrap,
.pv-step.e-con,
.pv-step:not(.elementor-column):not(.e-con) {
	background: var(--bg-card); border: 1px solid var(--line); padding: 30px 26px;
}
.pv-stage .elementor-heading-title {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border: 1px solid var(--gold);
	color: var(--gold); font-family: 'Cinzel', serif; font-size: 13px;
}

/* --- Citation ----------------------------------------------------- */
.pv-body .pv-quote blockquote { margin: 0; border-left: 2px solid var(--gold); padding: 0 0 0 28px; }
.pv-body .pv-quote { border-left: 0; }
.pv-body .pv-quote p {
	font-family: 'Cinzel', serif; font-size: 22px; line-height: 1.5; color: var(--ivory);
}
.pv-body .pv-quote cite, .pv-body .pv-quote .src {
	display: block; margin-top: 16px; font-family: 'Inter', sans-serif; font-style: normal;
	font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
}

/* --- Arguments « Pourquoi nous » ---------------------------------- */
.pv-body .pv-reason {
	position: relative; padding: 22px 0 22px 40px; border-bottom: 1px solid var(--line);
}
.pv-body .pv-reason::before {
	content: "—"; position: absolute; left: 0; top: 24px;
	color: var(--red-bright); font-family: 'Cinzel', serif; font-size: 15px;
}
.pv-body .pv-reason h4 { font-size: 16.5px; margin-bottom: 6px; }
.pv-body .pv-reason p { color: var(--muted); font-size: 14.5px; }
.pv-body .elementor-widget:last-child .pv-reason { border-bottom: none; }

/* --- Bloc partenaire (à poser sur une SECTION INTERNE) ------------ */
.pv-partner-box.elementor-section > .elementor-container,
.pv-partner-box.e-con {
	background: var(--bg-card); border: 1px solid var(--line); padding: 48px;
}
.pv-partner-logo img { background: #fff; padding: 22px; border: 1px solid var(--line); width: 100%; }

/* --- Coordonnées -------------------------------------------------- */
.pv-body .pv-contact-item {
	display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line);
}
.pv-body .elementor-widget:last-child .pv-contact-item { border-bottom: 1px solid var(--line); }
.pv-body .pv-contact-item .lbl {
	font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.12em;
	color: var(--gold); width: 110px; flex-shrink: 0; padding-top: 2px;
}
.pv-body .pv-contact-item .val { font-size: 14.5px; color: var(--ivory); }
.pv-body .pv-contact-item .val a { color: var(--ivory); border-bottom: 1px solid var(--line); }
.pv-body .pv-contact-item .val a:hover { color: var(--gold); border-color: var(--gold); }

/* --- Diagramme signature (bouclier) ------------------------------- */
.pv-shield svg { width: 100%; max-width: 420px; margin: 0 auto; }
.pv-shield .pulse-dot { animation: pv-pulse 2.6s ease-in-out infinite; }
@keyframes pv-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.pv-shield .dash-route { stroke-dasharray: 6 7; animation: pv-dash 22s linear infinite; }
@keyframes pv-dash { to { stroke-dashoffset: -260; } }

/* --- Apparition au défilement (optionnel) -------------------------
   Le masquage n'est actif que si le JavaScript a pu ajouter la classe
   « pv-js » : sans script, le contenu reste visible. */
.pv-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.pv-js .reveal.in { opacity: 1; transform: translateY(0); }

/* Dans l'éditeur Elementor, jamais d'animation : le contenu doit être
   visible en permanence pour être modifiable. */
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal.in {
	opacity: 1 !important; transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.pv-body *, .pv-body *::before, .pv-body *::after {
		animation: none !important; transition: none !important;
	}
	.pv-js .reveal { opacity: 1; transform: none; }
}

/* 6. --------------------------------------------------- Contact Form 7 */
.cf7-wrap .wpcf7-form { background: var(--bg-card); border: 1px solid var(--line); padding: 40px; }
.cf7-wrap .wpcf7-form p { margin: 0 0 20px; }
.cf7-wrap .wpcf7-form label {
	display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--muted); margin-bottom: 8px; font-family: 'Inter', sans-serif;
}
.cf7-wrap .wpcf7-form input[type="text"],
.cf7-wrap .wpcf7-form input[type="email"],
.cf7-wrap .wpcf7-form input[type="tel"],
.cf7-wrap .wpcf7-form select,
.cf7-wrap .wpcf7-form textarea {
	width: 100%; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ivory);
	padding: 13px 14px; font-family: 'Inter', sans-serif; font-size: 14.5px; border-radius: var(--radius);
}
.cf7-wrap .wpcf7-form input:focus,
.cf7-wrap .wpcf7-form select:focus,
.cf7-wrap .wpcf7-form textarea:focus { outline: none; border-color: var(--gold); }
.cf7-wrap .wpcf7-form textarea { min-height: 110px; resize: vertical; }
.cf7-wrap .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .cf7-wrap .row2 { grid-template-columns: 1fr; } }
.cf7-wrap .wpcf7-form input[type="submit"] {
	width: 100%; margin-top: 6px; background: var(--gold); color: #100f0a; border: none;
	padding: 16px 30px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
	letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius); cursor: pointer;
	transition: all .25s ease;
}
.cf7-wrap .wpcf7-form input[type="submit"]:hover { background: var(--gold-bright); transform: translateY(-2px); }
.cf7-wrap .wpcf7-form input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cf7-wrap .wpcf7-not-valid-tip { color: var(--red-bright); font-size: 13px; margin-top: 6px; }
.cf7-wrap .wpcf7-response-output {
	border: 1px solid var(--gold) !important; color: var(--ivory); margin-top: 20px !important;
	padding: 14px 16px !important; border-radius: var(--radius); font-size: 14px;
}
.cf7-wrap .wpcf7-spinner { filter: invert(1); }

/* --------------------------------------------------- Éditeur Elementor */
/* Dans l'éditeur, l'en-tête fixe masquerait le haut de la page. */
body.elementor-editor-active .pv-header { position: absolute; }
