/*
Theme Name:   Gabriela Teixeira – Avocate
Theme URI:    https://gteixeira-avocat.fr
Description:  Thème enfant GeneratePress. Gère la charte (couleurs, typos), le header et le footer. Le contenu des pages est construit avec Elementor.
Author:       Hors-Champ Studio
Author URI:   https://horschampstudio.com
Template:     generatepress
Version:      2.2.1
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gteixeira
*/

/* ==========================================================================
   1. Polices (hébergées dans le thème, aucun appel à Google)
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-latin-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-900-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/cormorant-latin-300-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: italic;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/cormorant-latin-300-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/cormorant-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/cormorant-latin-500-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-latin-700-italic.woff2") format("woff2");
}

/* ==========================================================================
   2. Variables – charte graphique (juin 2026)
   Les couleurs de marque peuvent être ajustées dans
   Apparence > Personnaliser > Cabinet – Couleurs.
   ========================================================================== */

:root {
	/* Couleurs de la charte */
	--gt-cherry: #73131f;  /* Intense Cherry */
	--gt-jasmine: #f5fbef; /* Jasmine */
	--gt-gold: #c29844;    /* Gold – approximation de la texture or */
	--gt-coffee: #002642;  /* Coffee Bean */
	--gt-surface: #f5fbef; /* Fond clair neutre (header, sous-menus) */
	--gt-white: #ffffff;

	/* Rôles */
	--gt-text: var(--gt-coffee);
	--gt-accent: var(--gt-cherry);
	--gt-accent-text: var(--gt-white);
	--gt-footer-bg: var(--gt-cherry);
	--gt-footer-text: var(--gt-jasmine);
	--gt-gold-gradient: linear-gradient(135deg, #e6c983 0%, #c9a45c 45%, #9e7a3a 100%);

	/* Typographies de la charte */
	--gt-font-display: "Cormorant", Garamond, Georgia, "Times New Roman", serif; /* Gros titres */
	--gt-font-title: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; /* Titres (Black) */
	--gt-font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;  /* Texte courant */

	/* Mise en page */
	--gt-container: 1440px;
	--gt-edge: clamp(1rem, 2.5vw, 2.25rem);
	--gt-header-top: clamp(0.75rem, 2vw, 1.5rem);
	--gt-bar-h: 60px;
	--gt-logo-h: 76px;  /* logo complet (header, en haut de page) */
	--gt-mark-h: 48px;  /* monogramme (header au scroll, mobile) */
	--gt-header-space: calc(var(--gt-header-top) * 2 + max(var(--gt-bar-h), var(--gt-logo-h))); /* utilisé par le menu mobile */
	--gt-radius: 15px;
	--gt-header-bg: var(--gt-white);
	--gt-shadow: 0 8px 24px rgba(0, 38, 66, 0.08); /* ombre portée du header */
	--gt-transition: 0.25s ease;
}

/* ==========================================================================
   3. Base & typographie globale (s'applique aussi au contenu Elementor)
   ========================================================================== */

body,
button,
input,
select,
textarea {
	font-family: var(--gt-font-body);
}

body {
	color: var(--gt-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2 {
	font-family: var(--gt-font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
}

h3,
h4,
h5,
h6 {
	font-family: var(--gt-font-title);
	font-weight: 900;
}

/* Les titres ne coupent jamais un mot en plein milieu */
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: normal;
	word-break: normal;
}

/* Tailles de texte – laptop / iPad (≤ 1024px) / mobile (≤ 767px),
   mêmes points de rupture qu'Elementor */
h1,
h2 {
	font-size: 2em;
}

p {
	font-size: 1em;
}

@media (max-width: 1024px) {
	h1,
	h2 {
		font-size: 2em;
	}
}

@media (max-width: 767px) {
	h1,
	h2 {
		font-size: 1.5em;
	}

	p {
		font-size: 0.9em;
	}
}

::selection {
	background: var(--gt-jasmine);
	color: var(--gt-coffee);
}

:focus-visible {
	outline: 2px solid var(--gt-cherry);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

.gt-header,
.gt-header *,
.gt-footer,
.gt-footer * {
	box-sizing: border-box;
}

.gt-icon {
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
}

.gt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--gt-accent);
	border-radius: 999px;
	background: var(--gt-accent);
	color: var(--gt-accent-text);
	font-family: var(--gt-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--gt-transition), color var(--gt-transition);
}

.gt-button:hover,
.gt-button:focus-visible {
	background: var(--gt-jasmine); /* #f5fbef : reste lisible sur fond complexe */
	color: var(--gt-accent);
}

/* ==========================================================================
   4. Header
   Logo à gauche, navigation dans une barre arrondie flottante à droite.
   ========================================================================== */

.gt-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	pointer-events: none; /* seuls le logo et la barre captent les clics */
}

.admin-bar .gt-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .gt-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .gt-header {
		position: absolute;
	}
}

.gt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--gt-container);
	margin-inline: auto;
	padding: var(--gt-header-top) var(--gt-edge);
}

/* ---------- Logo ---------- */

.gt-brand {
	position: relative;
	z-index: 2;
	pointer-events: auto;
	border-radius: 999px;
	transition: background-color var(--gt-transition), padding var(--gt-transition), box-shadow var(--gt-transition);
}

.gt-brand__link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--gt-bar-h);
	color: var(--gt-text);
	text-decoration: none;
}

.gt-brand__link:hover {
	color: var(--gt-text);
}

.gt-brand__logo {
	display: block;
	width: auto;
	max-width: none;
	height: var(--gt-logo-h);
}

/* Logos SVG du thème (couleur = currentColor) */
.gt-logo {
	display: block;
}

.gt-logo svg {
	display: block;
	width: auto;
	height: 100%;
}

.gt-logo--full {
	height: var(--gt-logo-h);
}

.gt-logo--mark {
	display: none;
	height: var(--gt-mark-h);
}

/* Au scroll, le logo passe dans une pastille pour rester lisible */
.gt-header.is-scrolled .gt-brand {
	padding-inline: 1.5rem;
	background: var(--gt-header-bg);
	box-shadow: var(--gt-shadow);
}

/* Au scroll : le monogramme remplace le logo complet, dans une pastille ronde */
.gt-header.is-scrolled .gt-brand:has(.gt-logo--mark) {
	padding: calc((var(--gt-bar-h) - var(--gt-mark-h)) / 2);
	border-radius: 50%;
}

.gt-header.is-scrolled .gt-brand:has(.gt-logo--mark) .gt-brand__link {
	min-height: 0;
}

.gt-header.is-scrolled .gt-logo--full {
	display: none;
}

.gt-header.is-scrolled .gt-logo--mark {
	display: block;
}

/* ---------- Barre de navigation ---------- */

.gt-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--gt-bar-h);
	padding: 0 0.625rem 0 1.25rem;
	border-radius: 999px;
	background: var(--gt-header-bg);
	box-shadow: var(--gt-shadow);
	color: var(--gt-text);
	pointer-events: auto;
}

.gt-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gt-nav__list li {
	position: relative;
	margin: 0;
}

.gt-nav__list a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.gt-nav__list > li > a {
	padding: 0.4rem 0.875rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	line-height: 1.3;
}

/* Survol : uniquement au passage de la souris ou à la navigation clavier.
   :focus-within restait actif après un clic, d'où l'effet « bloqué ». */
.gt-nav__list > li > a:hover,
.gt-nav__list > li > a:focus-visible,
.gt-nav__list > li:hover > a {
	background: color-mix(in srgb, var(--gt-coffee) 8%, transparent);
	color: inherit;
}

/* Page en cours : texte cerise, sans fond (distinct du survol) */
.gt-nav__list > .current-menu-item > a,
.gt-nav__list > .current-menu-ancestor > a {
	color: var(--gt-cherry);
}

/* Sous-menus */
.gt-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 0.9rem);
	left: 0;
	z-index: 5;
	min-width: 260px;
	margin: 0;
	padding: 1.25rem 1.5rem;
	list-style: none;
	border-radius: var(--gt-radius);
	background: var(--gt-header-bg);
	box-shadow: var(--gt-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.4rem);
	transition: opacity var(--gt-transition), transform var(--gt-transition), visibility var(--gt-transition);
}

/* Pont invisible entre l'élément et son sous-menu */
.gt-nav__list .sub-menu::before {
	content: "";
	position: absolute;
	top: -1rem;
	right: 0;
	left: 0;
	height: 1rem;
}

.gt-nav__list li:hover > .sub-menu,
.gt-nav__list li:has(:focus-visible) > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gt-nav__list .sub-menu a {
	padding: 0.3rem 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

.gt-nav__list .sub-menu a:hover,
.gt-nav__list .sub-menu .current-menu-item > a {
	color: var(--gt-cherry);
}

.gt-nav__extra {
	display: none;
}

.gt-nav__empty-link {
	font-size: 0.8125rem;
	opacity: 0.7;
}

.gt-bar__cta {
	min-height: 40px;
}

/* ---------- Bouton menu (mobile) ---------- */

.gt-menu-toggle {
	display: none;
}

/* ---------- Header superposé à un visuel (option par page) ---------- */

.gt-header-overlay .gt-header:not(.is-scrolled):not(.is-open) .gt-brand__link {
	color: var(--gt-white);
}

/* ---------- Mobile & tablette ---------- */

@media (max-width: 1080px) {
	.gt-bar {
		gap: 0.75rem;
		padding: 0 0.5rem;
	}

	.gt-menu-toggle {
		position: relative;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		gap: 0.75rem;
		min-height: 44px;
		padding: 0 0.875rem;
		border: 0;
		border-radius: 999px;
		background: none;
		color: inherit;
		font-family: var(--gt-font-body);
		font-size: 0.9375rem;
		cursor: pointer;
	}

	.gt-menu-toggle:hover,
	.gt-menu-toggle:focus-visible {
		background: color-mix(in srgb, var(--gt-coffee) 8%, transparent);
		color: inherit;
	}

	.gt-burger {
		display: inline-flex;
		flex-direction: column;
		gap: 5px;
		width: 20px;
	}

	.gt-burger__bar {
		display: block;
		height: 1.5px;
		background: currentColor;
		transition: transform var(--gt-transition), opacity var(--gt-transition);
	}

	.gt-menu-toggle[aria-expanded="true"] .gt-burger__bar:nth-child(1) {
		transform: translateY(6.5px) rotate(45deg);
	}

	.gt-menu-toggle[aria-expanded="true"] .gt-burger__bar:nth-child(2) {
		opacity: 0;
	}

	.gt-menu-toggle[aria-expanded="true"] .gt-burger__bar:nth-child(3) {
		transform: translateY(-6.5px) rotate(-45deg);
	}

	.gt-bar__cta {
		position: relative;
		z-index: 2;
	}

	/* Panneau plein écran */
	.gt-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		gap: 2.5rem;
		overflow-y: auto;
		padding: calc(var(--gt-header-space) + 1.5rem) var(--gt-edge) 3rem;
		background: var(--gt-surface);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--gt-transition), visibility var(--gt-transition);
	}

	.gt-nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.gt-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.gt-nav__list > li {
		border-bottom: 1px solid color-mix(in srgb, var(--gt-coffee) 12%, transparent);
	}

	.gt-nav__list > li > a {
		padding: 1rem 0;
		border-radius: 0;
		font-family: var(--gt-font-display);
		font-size: clamp(1.5rem, 6vw, 2rem);
		line-height: 1.2;
	}

	.gt-nav__list > li > a:hover,
	.gt-nav__list > li > a:focus-visible,
	.gt-nav__list > li:hover > a {
		background: none;
	}

	.gt-nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 1rem;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.gt-nav__list .sub-menu::before {
		display: none;
	}

	.gt-nav__list .sub-menu a {
		font-size: 1rem;
	}

	.gt-nav__extra {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		font-size: 1rem;
	}

	.gt-nav__extra a:not(.gt-button) {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		color: inherit;
		text-decoration: none;
	}

	.gt-nav__extra .gt-button {
		margin-top: 0.75rem;
	}

	body.gt-nav-open {
		overflow: hidden;
	}
}

@media (max-width: 600px) {
	:root {
		--gt-bar-h: 52px;
		--gt-mark-h: 44px;
		--gt-logo-h: 44px;
		--gt-header-space: calc(var(--gt-header-top) * 2 + max(var(--gt-bar-h), var(--gt-logo-h)));
	}

	.gt-logo--full {
		display: none;
	}

	.gt-logo--mark {
		display: block;
	}

	.gt-header.is-scrolled .gt-brand:has(.gt-logo--mark) {
		padding: 4px;
	}

	.gt-bar__cta {
		display: none;
	}

	.gt-brand__name {
		font-size: 1.0625rem;
	}

	.gt-menu-toggle__label {
		display: none;
	}
}

/* ==========================================================================
   5. Footer
   ========================================================================== */

.gt-footer {
	background: var(--gt-footer-bg);
	color: var(--gt-footer-text);
	font-size: 1rem;
	line-height: 1.6;
}

.gt-footer a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color var(--gt-transition);
}

.gt-footer a:hover,
.gt-footer a:focus-visible {
	color: inherit;
	text-decoration-color: currentColor;
}

.gt-footer p,
.gt-footer address {
	margin: 0;
}

.gt-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gt-footer li {
	margin: 0 0 0.4rem;
}

.gt-footer__inner {
	display: grid;
	grid-template-columns: minmax(180px, 1.6fr) repeat(auto-fit, minmax(160px, 1fr));
	gap: 2.5rem var(--gt-edge);
	max-width: var(--gt-container);
	margin-inline: auto;
	padding: clamp(3rem, 5vw, 4rem) var(--gt-edge) clamp(3rem, 6vw, 5rem);
}

.gt-footer__brand .gt-brand__logo,
.gt-footer__brand .gt-logo--full {
	height: clamp(80px, 9vw, 112px);
}

.gt-footer__brand .gt-brand__link,
.gt-footer__brand .gt-brand__link:hover {
	min-height: 0;
	color: inherit;
	text-decoration: none;
}

.gt-footer__title {
	margin-bottom: 1rem !important;
	font-family: var(--gt-font-title);
	font-size: 0.9375rem;
	font-weight: 900;
}

.gt-footer__contact > * + * {
	margin-top: 0.4rem;
}

.gt-footer address {
	font-style: normal;
}

.gt-footer__hours {
	margin-top: 0.9rem !important;
}

.gt-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	max-width: var(--gt-container);
	margin-inline: auto;
	padding: 1.25rem var(--gt-edge) 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--gt-footer-text) 18%, transparent);
	font-size: 0.8125rem;
}

@media (max-width: 900px) {
	.gt-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gt-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.gt-footer__inner {
		grid-template-columns: 1fr;
	}

	.gt-footer__bottom-inner {
		flex-direction: column;
	}
}

/* ==========================================================================
   6. Pages Elementor
   GeneratePress ne contraint plus la largeur ni les marges : Elementor gère tout.
   ========================================================================== */

.gt-builder .site.grid-container {
	max-width: none;
}

.gt-builder .site-content {
	display: block;
	padding: 0;
}

.gt-builder .content-area {
	width: 100%;
}

.gt-builder .site-main {
	margin: 0 !important;
}

.gt-builder .site-main > article {
	margin-bottom: 0;
}

.gt-builder .inside-article {
	padding: 0;
	background: none;
}

.gt-builder .entry-content:not(:first-child) {
	margin-top: 0;
}
