/* Overrides specific to the WordPress version of the site.
   The bulk of the design lives in original-full.css (ported as-is from V2). */

/* Flag emojis (🇫🇷 etc.) fall back to plain "FR"/"GB"/"IT" letters on
   Windows, which duplicated the text label next to them. CSS-only flags
   render identically on every OS. */
.lang-flag {
	display: inline-block;
	width: 18px;
	height: 13px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	vertical-align: middle;
}
.lang-flag.flag-fr {
	background: linear-gradient(to right, #002395 0 33%, #fff 33% 66%, #ED2939 66% 100%);
}
.lang-flag.flag-it {
	background: linear-gradient(to right, #009246 0 33%, #fff 33% 66%, #CE2B37 66% 100%);
}
/* The language switcher now renders real <a> links (pll_the_languages())
   instead of decorative <button>s, so it needs the underline reset back. */
.lang-option,
.mobile-lang-btn {
	text-decoration: none;
}
.lang-flag.flag-gb {
	/* Built from filled polygons/rects rather than thin strokes — at this
	   icon's small size, hairline strokes anti-aliased into a blurry mess.
	   Solid shapes with straight edges stay crisp and read as a real flag
	   even at 18px. */
	background-color: #012169;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2060%2036'%3E%3Crect%20width='60'%20height='36'%20fill='%23012169'/%3E%3Cpolygon%20points='0,0%2010,0%2060,32%2060,36%2050,36%200,4'%20fill='%23fff'/%3E%3Cpolygon%20points='50,0%2060,0%2060,4%2010,36%200,36%200,32'%20fill='%23fff'/%3E%3Cpolygon%20points='0,0%205,0%2060,34%2060,36%2055,36%200,2'%20fill='%23C8102E'/%3E%3Cpolygon%20points='55,0%2060,0%2060,2%205,36%200,36%200,34'%20fill='%23C8102E'/%3E%3Crect%20x='24'%20width='12'%20height='36'%20fill='%23fff'/%3E%3Crect%20y='12'%20width='60'%20height='12'%20fill='%23fff'/%3E%3Crect%20x='26.5'%20width='7'%20height='36'%20fill='%23C8102E'/%3E%3Crect%20y='14.5'%20width='60'%20height='7'%20fill='%23C8102E'/%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
}

/* Google requires this badge visible UNLESS the required disclosure text
   ("Ce site est protégé par reCAPTCHA...") appears elsewhere on the site —
   it already does, in Mentions légales and Politique de cookies. */
.grecaptcha-badge {
	visibility: hidden !important;
}

/* The old theme's companion plugin (TRX Addons) injects its own floating
   "scroll to top" button site-wide, independent of the active theme. It
   overlaps our own .back-to-top button, so hide it while V2 is active. */
.trx_addons_scroll_to_top {
	display: none !important;
}

.hamburger.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
	opacity: 0;
}
.hamburger.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* "Leave a Google review" CTA button under the testimonials, ported from V1 */
.testimonials-cta {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}
.google-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--white);
	border: 1px solid var(--gray-light);
	border-radius: 14px;
	padding: 1.2rem 2.2rem;
	text-decoration: none;
	box-shadow: var(--shadow-soft);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.google-btn:hover {
	border-color: var(--azur);
	box-shadow: var(--shadow-glass);
	transform: translateY(-2px);
}
.google-icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}
.google-text-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--gray-mid);
	font-weight: 500;
	font-family: var(--font-b);
}
.google-text-main {
	font-size: 20px;
	font-weight: 500;
	color: var(--ink);
	font-family: var(--font-d);
}
@media (max-width: 600px) {
	.google-btn {
		padding: 1rem 1.6rem;
	}
	.google-text-main {
		font-size: 16px;
	}
}

/* Styling for content added through the native WordPress editor (Actualités
   posts) — paragraphs, headings, images, captions and PDF/file download
   links, none of which have rules in the original ported stylesheet. */
.actualite-content p {
	margin-bottom: 1.4rem;
}
.actualite-content h2 {
	font-family: var(--font-d);
	font-size: 28px;
	font-weight: 500;
	color: var(--ink);
	margin: 2.2rem 0 1rem;
}
.actualite-content h3 {
	font-family: var(--font-d);
	font-size: 22px;
	font-weight: 500;
	color: var(--ink);
	margin: 1.8rem 0 0.8rem;
}
.actualite-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 1.5rem 0;
}
.actualite-content figure {
	margin: 1.5rem 0;
}
.actualite-content figcaption {
	font-size: 13px;
	color: var(--gray-mid);
	text-align: center;
	margin-top: 0.5rem;
}
.actualite-content ul,
.actualite-content ol {
	margin: 0 0 1.4rem 1.4rem;
}
.actualite-content a {
	color: var(--azur);
}
/* WordPress "File" block (used to attach a PDF) */
.actualite-content .wp-block-file {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--gray-bg, #f5f8fb);
	border: 1px solid var(--gray-light);
	border-radius: 10px;
	padding: 1rem 1.4rem;
	margin: 1.5rem 0;
}
.actualite-content .wp-block-file a:first-child {
	font-weight: 600;
	text-decoration: none;
}
.actualite-content .wp-block-file__button {
	background: var(--azur);
	color: var(--white) !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none !important;
	margin-left: auto;
}

/* Contact Form 7 ("Demandez une étude !") — the form itself keeps its
   original 2017 fields/questions, only restyled here to match the V2
   glass-card look used elsewhere on the site. */
.contact-form-wrap {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;
	padding: 2.5rem;
	box-shadow: var(--shadow-glass);
}
.contact-form-wrap .form-title {
	font-family: var(--font-d);
	font-size: 28px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 1.5rem;
}
.contact-form-wrap .sc_form_label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--ink-soft);
	font-weight: 600;
	margin: 1.2rem 0 0.5rem;
}
.contact-form-wrap .sc_form_label:first-child {
	margin-top: 0;
}
.contact-form-wrap .sc_form_details > p {
	margin-bottom: 0.8rem;
}
/* Prénom/Nom and Email/Téléphone paired side-by-side, per the requested design */
.contact-form-wrap .sc_form_row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.contact-form-wrap .sc_form_row .sc_form_field {
	margin-bottom: 0;
}
.contact-form-wrap select,
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
	background: rgba(255, 255, 255, 0.8);
	border: 1.5px solid rgba(0, 119, 182, 0.15);
	border-radius: 12px;
	padding: 0.9rem 1rem;
	font-size: 16px;
	font-family: var(--font-b);
	color: var(--ink);
	outline: none;
	transition: all 0.25s;
	width: 100%;
	margin-bottom: 0.9rem;
}
.contact-form-wrap textarea {
	min-height: 130px;
	resize: vertical;
}
.contact-form-wrap select:focus,
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
	border-color: var(--azur);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}
.contact-form-wrap .sc_form_field {
	margin-bottom: 0;
}
@media (max-width: 640px) {
	.contact-form-wrap .sc_form_row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
.contact-form-wrap .wpcf7-acceptance {
	display: block;
	margin: 1.2rem 0 0.8rem;
	font-size: 14px;
	color: var(--gray-mid);
}
.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}
.contact-form-wrap .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.contact-form-wrap .wpcf7-acceptance input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}
.contact-form-wrap .sc_form_field_button {
	margin-top: 0.5rem;
	font-size: 13px;
	color: var(--gray-mid);
	line-height: 1.5;
}
.contact-form-wrap input[type="submit"] {
	background: var(--gradient-azur);
	color: var(--white);
	padding: 1.1rem 2rem;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 119, 182, 0.3);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	margin-top: 1rem;
	width: 100%;
}
.contact-form-wrap input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 119, 182, 0.42);
}
.contact-form-wrap .wpcf7-spinner {
	margin-left: 0.5rem;
}
.contact-form-wrap .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: -0.6rem;
	margin-bottom: 0.6rem;
}
.contact-form-wrap .wpcf7-response-output {
	border-radius: 12px !important;
	margin: 1.5rem 0 0 !important;
	font-size: 14px;
}

/* Body text (intro paragraphs + questions list) on the 19 service pages and
   legal pages — was the site's grey body-text color (--gray-mid), requested
   darker/black for readability. */
/* !important is required here: the intro paragraph on each of the 19 pages
   carries its own inline color:var(--gray-mid) baked into post_content
   (data-i18n="detail_para_N"), which otherwise wins over this rule. */
.inner-page p, .inner-page li, .legal-page p, .legal-page li {
	color: var(--gray-dark) !important;
}

/* "Sujets liés" internal-linking block on the 19 service pages. */
.related-topic-link {
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.related-topic-link:hover {
	background: var(--azur);
	border-color: var(--azur);
	color: var(--white) !important;
}
