/* DG Header v1.0.0 — Cabinet Dr Gherieb */

.dg-hd,
.dg-oc {
	--dg-navy: #1A2B48;
	--dg-blue: #305BA4;
	--dg-cyan: #54BECF;
	--dg-text: #434751;
	--dg-line: #E8EDF4;
	--dg-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--dg-font-ar: "Almarai", "Cairo", system-ui, sans-serif;
	box-sizing: border-box;
	font-family: var(--dg-font);
}
.dg-hd[dir="rtl"],
.dg-oc[dir="rtl"],
.dg-hd [lang="ar"],
.dg-oc [lang="ar"] { font-family: var(--dg-font-ar); }
.dg-hd [lang="fr"],
.dg-oc [lang="fr"] { font-family: var(--dg-font); }
.dg-hd *,
.dg-oc * { box-sizing: border-box; }

/* ---------- Barre ---------- */
.dg-hd {
	--dg-h: 84px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	height: var(--dg-h);
	background: #fff;
	box-shadow: 0 1px 0 rgba(26, 43, 72, .08);
	transition: height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.dg-hd.is-scrolled {
	--dg-h: 70px;
	box-shadow: 0 6px 24px rgba(26, 43, 72, .10);
}
/* Mode transparent (accueil) : dégradé sombre pour garantir la lisibilité du logo et du menu */
.dg-hd.is-transparent:not(.is-scrolled) {
	background: linear-gradient(to bottom, rgba(26, 43, 72, .65) 0%, rgba(26, 43, 72, 0) 100%);
	box-shadow: none;
}
body.admin-bar .dg-hd { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dg-hd { top: 46px; } }

body.dg-hd-offset { padding-top: 84px; }

.dg-hd__bar {
	max-width: 1280px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}

/* ---------- Logo ---------- */
.dg-hd .dg-hd__logo {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 180px;
	line-height: 0;
}
.dg-hd .dg-hd__img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	transition: opacity .3s ease;
}
.dg-hd .dg-hd__img--light {
	position: absolute;
	inset: 0;
	opacity: 0;
}
.dg-hd .dg-hd__img--filter { filter: brightness(0) invert(1); }
.dg-hd.is-transparent:not(.is-scrolled) .dg-hd__img--dark { opacity: 0; }
.dg-hd.is-transparent:not(.is-scrolled) .dg-hd__img--light { opacity: 1; }

/* ---------- Menu desktop ---------- */
.dg-hd__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}
.dg-hd .dg-hd__menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dg-hd .dg-hd__menu li { margin: 0; padding: 0; }
.dg-hd a.dg-hd__link {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--dg-navy);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.dg-hd a.dg-hd__link:hover,
.dg-hd a.dg-hd__link:focus-visible { background: rgba(48, 91, 164, .08); color: var(--dg-blue); }
.dg-hd a.dg-hd__link.is-active { background: rgba(48, 91, 164, .10); color: var(--dg-blue); }

.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__link { color: #fff; }
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__link:hover,
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__link.is-active { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Actions ---------- */
.dg-hd__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}
/* Test d'éligibilité : bouton secondaire (contour cyan), le RDV reste l'action principale */
.dg-hd a.dg-hd__test {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10.5px 18px;
	border: 1.5px solid var(--dg-cyan);
	border-radius: 8px;
	background: transparent;
	color: var(--dg-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.dg-hd a.dg-hd__test::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dg-cyan);
	flex: none;
}
.dg-hd a.dg-hd__test:hover,
.dg-hd a.dg-hd__test:focus-visible { background: rgba(84, 190, 207, .14); color: var(--dg-navy); }
.dg-hd a.dg-hd__test:focus-visible,
.dg-hd a.dg-hd__cta:focus-visible { outline: 2px solid var(--dg-cyan); outline-offset: 2px; }

.dg-hd a.dg-hd__cta {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--dg-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease;
}
.dg-hd a.dg-hd__cta:hover { background: var(--dg-blue); color: #fff; }

.dg-hd a.dg-hd__lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(26, 43, 72, .2);
	border-radius: 8px;
	color: var(--dg-navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.dg-hd a.dg-hd__lang:hover { border-color: var(--dg-blue); color: var(--dg-blue); }

.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__test { color: #fff; border-color: rgba(255, 255, 255, .55); }
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__test:hover,
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__test:focus-visible { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__cta { background: var(--dg-cyan); color: var(--dg-navy); }
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__cta:hover { background: #fff; }
.dg-hd.is-transparent:not(.is-scrolled) a.dg-hd__lang { border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ---------- Burger (reset complet des styles boutons globaux Elementor) ---------- */
.dg-hd button.dg-hd__burger {
	all: unset;
	box-sizing: border-box;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	cursor: pointer;
}
.dg-hd button.dg-hd__burger:focus-visible { outline: 2px solid var(--dg-cyan); outline-offset: 2px; }
.dg-hd button.dg-hd__burger span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--dg-navy);
}
.dg-hd.is-transparent:not(.is-scrolled) button.dg-hd__burger span { background: #fff; }

/* ---------- Breakpoints ---------- */
/* Écrans moyens : on resserre pour garder le bouton test sans chevauchement */
@media (max-width: 1365px) {
	.dg-hd__bar { gap: 16px; }
	.dg-hd .dg-hd__menu { gap: 0; }
	.dg-hd a.dg-hd__link { padding: 10px 10px; font-size: 14.5px; }
	.dg-hd__actions { gap: 8px; }
	.dg-hd a.dg-hd__test { padding: 10.5px 14px; font-size: 14.5px; }
	.dg-hd a.dg-hd__cta { padding: 12px 16px; font-size: 14.5px; }
}
@media (max-width: 1199px) {
	.dg-hd a.dg-hd__test { display: none; }
	.dg-hd a.dg-hd__link { padding: 10px; font-size: 14px; }
	.dg-hd__bar { gap: 16px; }
}

@media (max-width: 1023px) {
	.dg-hd { --dg-h: 68px; }
	.dg-hd.is-scrolled { --dg-h: 60px; }
	body.dg-hd-offset { padding-top: 68px; }

	.dg-hd__bar { padding: 0 16px; justify-content: space-between; }
	.dg-hd .dg-hd__logo { width: 140px; }
	.dg-hd__nav,
	.dg-hd a.dg-hd__cta { display: none; }
	.dg-hd__actions { gap: 8px; margin-inline-start: auto; }
	.dg-hd button.dg-hd__burger { display: flex; }
}

/* ---------- Off-canvas ---------- */
.dg-oc {
	position: fixed;
	inset: 0;
	z-index: 9995;
	overflow: hidden; /* le panneau fermé ne crée jamais de scroll horizontal */
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .35s;
}
.dg-oc.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}
.dg-oc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 43, 72, .55);
	opacity: 0;
	transition: opacity .35s ease;
}
.dg-oc.is-open .dg-oc__backdrop { opacity: 1; }

.dg-oc__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	width: min(360px, 86vw);
	padding: 16px 24px 24px;
	background: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.dg-oc[dir="rtl"] .dg-oc__panel { transform: translateX(-100%); }
.dg-oc.is-open .dg-oc__panel { transform: none; }

.dg-oc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--dg-line);
}
.dg-oc .dg-oc__logo { display: block; width: 150px; line-height: 0; }
.dg-oc .dg-oc__logo img { display: block; width: 100%; max-width: none; height: auto; }

.dg-oc button.dg-oc__close {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	color: var(--dg-navy);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.dg-oc button.dg-oc__close:hover { background: rgba(48, 91, 164, .08); }
.dg-oc button.dg-oc__close:focus-visible { outline: 2px solid var(--dg-cyan); outline-offset: 2px; }

.dg-oc .dg-oc__menu { margin: 8px 0 0; padding: 0; list-style: none; }
.dg-oc .dg-oc__menu li { margin: 0; padding: 0; }
.dg-oc a.dg-oc__link {
	display: block;
	padding: 15px 0;
	border-bottom: 1px solid var(--dg-line);
	color: var(--dg-navy);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}
.dg-oc a.dg-oc__link:hover,
.dg-oc a.dg-oc__link.is-active { color: var(--dg-blue); }

.dg-oc__ctas { display: grid; gap: 10px; margin-top: 24px; }
.dg-oc a.dg-oc__btn {
	display: block;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.dg-oc a.dg-oc__btn--primary { background: var(--dg-navy); color: #fff; }
.dg-oc a.dg-oc__btn--primary:hover { background: var(--dg-blue); color: #fff; }
.dg-oc a.dg-oc__btn--ghost { border: 1.5px solid var(--dg-cyan); color: var(--dg-navy); }
.dg-oc a.dg-oc__btn--ghost:hover { background: rgba(84, 190, 207, .12); }

.dg-oc__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 24px;
}
.dg-oc a.dg-oc__lang,
.dg-oc a.dg-oc__tel {
	color: var(--dg-navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.dg-oc a.dg-oc__lang {
	padding: 8px 14px;
	border: 1px solid rgba(26, 43, 72, .2);
	border-radius: 8px;
}
.dg-oc a.dg-oc__tel { color: var(--dg-blue); }

html.dg-oc-lock,
html.dg-oc-lock body { overflow: hidden; }

@media (min-width: 1024px) {
	.dg-oc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dg-hd,
	.dg-oc__panel,
	.dg-oc__backdrop,
	.dg-hd .dg-hd__img { transition: none; }
}

/* ---------- Masque le header natif du thème (Hello Elementor) ---------- */
body.dg-has-hd #site-header,
body.dg-has-hd header.site-header:not(.dg-hd) { display: none !important; }
body.dg-has-hd #site-footer,
body.dg-has-hd footer.site-footer:not(.dg-ft) { display: none !important; }

/* =================================================================
 * Footer
 * ================================================================= */
.dg-ft {
	--dg-navy: #1A2B48;
	--dg-blue: #305BA4;
	--dg-cyan: #54BECF;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	background: var(--dg-navy);
	color: rgba(255, 255, 255, .72);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.6;
}
.dg-ft[dir="rtl"] { font-family: "Almarai", "Cairo", system-ui, sans-serif; }
.dg-ft [lang="fr"] { font-family: "Inter", system-ui, sans-serif; }
.dg-ft *, .dg-ft *::before, .dg-ft *::after { box-sizing: border-box; }
.dg-ft p { margin: 0; }
.dg-ft a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

.dg-ft__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 72px 24px 48px;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
}

/* Marque */
.dg-ft .dg-ft__logo { display: block; width: 190px; line-height: 0; }
.dg-ft .dg-ft__logo img { display: block; width: 100%; max-width: none; height: auto; }
.dg-ft .dg-ft__img--filter { filter: brightness(0) invert(1); }
.dg-ft__about { margin-top: 20px !important; max-width: 340px; }

.dg-ft__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dg-ft a.dg-ft__btn {
	display: inline-block;
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.dg-ft a.dg-ft__btn--primary { background: var(--dg-cyan); color: var(--dg-navy); }
.dg-ft a.dg-ft__btn--primary:hover { background: #fff; color: var(--dg-navy); }
.dg-ft a.dg-ft__btn--ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.dg-ft a.dg-ft__btn--ghost:hover { border-color: var(--dg-cyan); color: var(--dg-cyan); }

.dg-ft__socials { display: flex; gap: 10px; margin-top: 24px; }
.dg-ft a.dg-ft__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
}
.dg-ft a.dg-ft__social:hover { background: var(--dg-cyan); color: var(--dg-navy); }

/* Colonnes */
.dg-ft__title {
	margin-bottom: 18px !important;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}
.dg-ft .dg-ft__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dg-ft .dg-ft__list li { margin: 0; padding: 0; }
.dg-ft a.dg-ft__link:hover { color: var(--dg-cyan); }
.dg-ft__contact a.dg-ft__link { color: #fff; font-weight: 600; }
.dg-ft__address,
.dg-ft__hours { font-size: 14px; }
.dg-ft__address { margin-top: 6px !important; }

/* Barre basse */
.dg-ft__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.dg-ft__bottom-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
}
.dg-ft__legal { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-ft__bottom a:hover { color: var(--dg-cyan); }
.dg-ft__credit a { color: rgba(255, 255, 255, .8); font-weight: 600; }

@media (max-width: 1023px) {
	.dg-ft__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; padding: 56px 24px 40px; }
	.dg-ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.dg-ft__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 16px 32px; }
	.dg-ft__bottom-inner { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
	.dg-ft a.dg-ft__btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Logo arabe (plus haut : ratio 3,9 contre 5,7 pour le FR) ---------- */
.dg-hd[dir="rtl"] .dg-hd__logo { width: 160px; }
.dg-oc[dir="rtl"] .dg-oc__logo { width: 140px; }
.dg-ft[dir="rtl"] .dg-ft__logo { width: 170px; }
@media (max-width: 1023px) {
	.dg-hd[dir="rtl"] .dg-hd__logo { width: 124px; }
	.dg-hd a.dg-hd__lang { padding: 0 10px; font-size: 13.5px; }
}
