/* CS Install SA — compléments spécifiques WordPress (au-dessus de app.css) */

/* Menu principal (wp_nav_menu produit ul>li>a) */
.nav .cs-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav .cs-menu li { position: relative; }
.nav .cs-menu a { padding: 9px 14px; border-radius: var(--r-full); font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.nav .cs-menu a:hover, .nav .cs-menu .current-menu-item > a { color: var(--blue-700); background: var(--blue-50); }

/* Polylang switcher */
.lang ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang li a { color: oklch(0.85 0.03 256); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); text-transform: uppercase; }
.lang .current-lang a { background: #fff; color: var(--blue-800); }

/* Menu mobile (overlay) */
.cs-mobilemenu { position: fixed; inset: 0; z-index: 100; background: oklch(0.2 0.04 262 / 0.4); backdrop-filter: blur(4px); }
.cs-mobilemenu[hidden] { display: none; }
.cs-mm-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); }
.cs-mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cs-mm-panel .cs-mm-links { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cs-mm-panel .cs-mm-links a { display: block; padding: 13px 12px; border-radius: 12px; font-weight: 600; font-size: 17px; color: var(--ink); }
.cs-mm-panel .cs-mm-links a:hover, .cs-mm-panel .current-menu-item > a { color: var(--blue-700); background: var(--blue-50); }
.cs-mm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.cs-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--blue-800); background: var(--blue-50); }

/* Footer — listes de liens (loops PHP) */
.footer .footer-col-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* Before / after */
.ba-tag { position: absolute; top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; color: #fff; }
.ba-tag-l { left: 12px; background: oklch(0.25 0.03 260 / 0.78); }
.ba-tag-r { right: 12px; background: var(--blue-700); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 8px oklch(0.2 0.04 260 / 0.4); }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--blue-700); font-size: 18px; font-weight: 700; }

/* Contact Form 7 — habillage aux styles du thème */
.wpcf7 form { display: flex; flex-direction: column; gap: 16px; }
.wpcf7 label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.wpcf7 .cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select, .wpcf7 input[type=file] {
	width: 100%; padding: 13px 15px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-100); }
.wpcf7 input[type=submit] { background: var(--blue-600); color: #fff; border: none; font-weight: 600; font-size: 16px; padding: 16px 28px; border-radius: var(--r-full); cursor: pointer; box-shadow: var(--shadow-blue); width: 100%; }
.wpcf7 input[type=submit]:hover { background: var(--blue-700); }
@container app (max-width: 720px) { .wpcf7 .cs-row { grid-template-columns: 1fr; } }

/* Sélecteur de langue (Polylang) — nettoyage du rendu */
.lang ul, .lang li { list-style: none !important; margin: 0; padding: 0; }
.lang li { display: inline-flex; }
.lang li::marker { content: ""; }
.lang img { display: none; } /* masque les petits drapeaux Polylang */
.lang a, .lang .pll-parent-menu-item > a { color: oklch(0.85 0.03 256); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); text-transform: uppercase; text-decoration: none; }
.lang .current-lang > a, .lang .current-lang a { background: #fff; color: var(--blue-800); }

/* Mobile : alléger l'en-tête (logo + burger), le reste est dans la barre du bas */
@container app (max-width: 720px) { .header-cta a.btn-primary { display: none; } }
