/*
Theme Name: AG Creative Child
Theme URI: https://www.metalleriecalamine.fr
Description: Thème enfant Hello Elementor - AG Creative
Author: Ambre Gravot
Author URI: https://www.metalleriecalamine.fr
Template: hello-elementor
Version: 1.0
Text Domain: agcreative-child
*/

/* =========================
   STYLES GLOBAUX
========================= */

/* =========================================================
   MENU RESPONSIVE METALLERIE CALAMINE
========================================================= */

.agc-nav {
	position: relative;
	width: 100%;
}

/* Reset anti-Elementor */
.agc-nav button,
.agc-nav a {
	box-shadow: none !important;
	outline: none;
}

.agc-nav ul,
.agc-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agc-nav .sub-menu {
	display: none;
}

/* =========================
   DESKTOP
========================= */
.agc-nav__desktop {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.agc-menu--desktop {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 54px;
}

.agc-menu--desktop > li {
	position: relative;
}

.agc-menu--desktop > li > a {
	display: inline-block;
	text-decoration: none;
	font-size: 17px;
	line-height: 1.2;
	font-weight: 400;
	color: #596579;
	padding: 0 0 10px;
	transition: color 0.25s ease;
}

.agc-menu--desktop > li.current-menu-item > a,
.agc-menu--desktop > li.current_page_item > a,
.agc-menu--desktop > li.current-menu-ancestor > a {
	color: #111111;
}

.agc-menu--desktop > li.current-menu-item > a::after,
.agc-menu--desktop > li.current_page_item > a::after,
.agc-menu--desktop > li.current-menu-ancestor > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: #111111;
}

/* =========================
   BURGER MOBILE
========================= */
.agc-nav__toggle {
	display: none !important;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 44px !important;
	height: 44px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.agc-nav__toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #111111;
	border-radius: 2px;
}

/* =========================
   OVERLAY
========================= */
.agc-nav__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 9998;
}

.agc-nav__overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* =========================
   PANNEAU MOBILE
========================= */
.agc-nav__panel {
	position: fixed;
	top: 0;
	left: 0;
	width: min(88vw, 390px);
	height: 100vh;
	background: #f5f5f5;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	box-shadow: 10px 0 30px rgba(0,0,0,0.12);
}

.agc-nav__panel.is-open {
	transform: translateX(0);
}

body.agc-menu-open {
	overflow: hidden;
}

/* =========================
   HEADER MOBILE
========================= */
.agc-nav__panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 20px;
	border-bottom: 1px solid #dddddd;
	gap: 16px;
}

.agc-nav__logo {
	display: flex;
	align-items: center;
}

.agc-nav__logo img {
	max-height: 42px;
	width: auto;
	display: block;
}

.agc-nav__logo a {
	text-decoration: none;
	color: #111111;
	font-size: 18px;
}

.agc-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	border: 0 !important;
	background: transparent !important;
	color: #111111 !important;
	font-size: 28px;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
	border-radius: 0 !important;
	appearance: none;
	-webkit-appearance: none;
}

/* =========================
   MENU MOBILE
========================= */
.agc-nav__panel-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 24px;
}

.agc-menu--mobile {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.agc-menu--mobile > li {
	position: relative;
}

.agc-menu--mobile > li > a {
	display: inline-block;
	text-decoration: none;
	font-size: 20px;
	line-height: 1.5;
	color: #596579;
	padding: 4px 0 4px 18px;
}

.agc-menu--mobile > li.current-menu-item > a,
.agc-menu--mobile > li.current_page_item > a,
.agc-menu--mobile > li.current-menu-ancestor > a {
	color: #111111;
	font-weight: 600;
}

.agc-menu--mobile > li.current-menu-item::before,
.agc-menu--mobile > li.current_page_item::before,
.agc-menu--mobile > li.current-menu-ancestor::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 3px;
	height: 28px;
	background: #111111;
	border-radius: 2px;
}

/* =========================
   FOOTER MOBILE
========================= */
.agc-nav__panel-footer {
	padding: 20px 24px 24px;
	border-top: 1px solid #dddddd;
}

.agc-nav__cta {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	background: #000000;
	color: #ffffff;
	padding: 15px 20px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 500;
	border-radius: 0;
}
.agc-nav__logo {
	display: flex;
	align-items: center;
}

.agc-nav__logo img {
	max-height: 50px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
	.agc-nav__desktop {
		display: none;
	}

	.agc-nav__toggle {
		display: inline-flex !important;
	}
}

@media (min-width: 1025px) {
	.agc-nav__toggle,
	.agc-nav__overlay,
	.agc-nav__panel {
		display: none !important;
	}
}

/* =========================
   BOUTONS BISEAUTÉS
========================= */

/* Base */
.btn-biseau .elementor-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 84px;
    padding: 0 42px;

    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;

    border: none;
    border-radius: 0;
    text-decoration: none;

    /* Effet biseau */
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);

    transition: all 0.3s ease;
    cursor: pointer;
}

/* Texte */
.btn-biseau .elementor-button-text {
    position: relative;
    z-index: 2;
}

/* Icône */
.btn-biseau .elementor-button-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}
/* Transition fluide */
.btn-biseau .elementor-button {
    transition: all 0.3s ease, clip-path 0.3s ease;
}

/* Hover : biseau plus prononcé */
.btn-biseau .elementor-button:hover {
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
/* =========================
   VARIANTES
========================= */

/* Bouton foncé */
.btn-biseau-dark .elementor-button {
    background: #5a5a66;
    color: #ffffff;
}

/* Bouton clair */
.btn-biseau-light .elementor-button {
    background: #ffffff;
    color: #a86c4d;
}

/* =========================
   HOVER
========================= */

.btn-biseau-dark .elementor-button:hover {
    background: #4b4b56;
    transform: translateY(-2px);
}

.btn-biseau-light .elementor-button:hover {
    background: #f7f3f0;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767px) {
    .btn-biseau .elementor-button {
        min-height: 68px;
        padding: 0 28px;
        font-size: 15px;
        gap: 10px;
    }
}