/* Style.css */

/* Font Face for Roboto Regular */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
        url('../fonts/Roboto-Regular.woff') format('woff'),
        url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Roboto Bold */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
        url('../fonts/Roboto-Bold.woff') format('woff'),
        url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Font Face for Roboto Black */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Black.woff2') format('woff2'),
        url('../fonts/Roboto-Black.woff') format('woff'),
        url('../fonts/Roboto-Black.ttf') format('truetype');
    font-weight: 900; /* Typically, 900 is used for Black weight */
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    --font-family: 'Roboto', sans-serif;
}

/* Reset Styles */
html, body, div, span, iframe, small, strong, center,
h1, h2, h3, h4, h5, h6, p, a, blockquote,
table, caption, tbody, tfoot, thead, tr, th, td,
figure, footer, header, summary, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

*, ::after, ::before {
	box-sizing: border-box;
}

body.has-bg .category-container h2 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* Body Styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1;
    padding: 0;
    background: #212529;
    overflow-x: hidden;
    transition: padding 0.3s ease-in-out;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
    text-transform: uppercase;
}

h1 {
    font-size: 1.7em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5 {
    font-size: 1em
}

h6 {
    font-size: 1em;
}

.flex-1 {
    flex: 1;
}

.parallax-bg {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
}

body:not(.has-bg) .parallax-bg {
    background: #f9f9f9;
}

body:not(.has-bg)[data-layout="list"] .parallax-bg {
    background: #fff;
}

body.has-bg .parallax-bg {
    background: url('/images/bg/bluish-gradient.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
}

body.has-bg .overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
    pointer-events: none; /* Ensure the overlay doesn't interfere with interactions */
    z-index: 0; /* Ensure the overlay is above the background but below other content */
}

body[data-overlay="0"] .overlay {
    display: none;
}


body > * {
    position: relative;
    z-index: 1; /* Ensure content is above the overlay */
}

/* Sticky menu */
.sticky-menu {
	position: fixed;
	padding: 10px 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	inset-inline-start: 0;
	inset-inline-end: 0;
    visibility: hidden;
    opacity: 0;
	transition: top 0.3s ease-in-out;
	z-index: 100001;
}

.sticky-menu.active {
    top: 0;
}

.menu-button {
	background: none;
	font-size: 24px;
	cursor: pointer;
	color: #fff;
	width: 38px;
	height: 38px;
	border: 1px solid transparent;
	line-height: 0;
	padding: 0;
	border-radius: 19px;
	background: transparent;
}

.sticky-menu .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    padding: 10px;
    min-width: 150px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.sticky-menu .nav-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sticky-menu .nav-menu a {
	text-decoration: none;
	color: #222;
}

.sticky-menu .nav-menu a:hover {
    color: #111;
}

.sticky-menu .nav-menu > a:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 5px;
    padding-bottom: 8px;
}

/* Hamburger Button */
label.hamburger-button {
    display:flex;
    flex-direction:column;
    width:36px;
    cursor:pointer;
}

label.hamburger-button span {
    background: #868686;
    border-radius:6px;
    height:3px;
    margin: 3px 0;
    transition: .4s  cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

body.has-bg label.hamburger-button span {
    background: #ffffff;
}

label.hamburger-button span:nth-of-type(1) {
    width:50%;
}

label.hamburger-button span:nth-of-type(2) {
    width:84%;
}

label.hamburger-button span:nth-of-type(3) {
    width:75%;
}

label.hamburger-button input[type="checkbox"] {
    display:none;
}

label.hamburger-button input[type="checkbox"]:checked ~ span:nth-of-type(1) {
    transform-origin: bottom;
    transform: rotatez(45deg) translate(4px,0px);
}

label.hamburger-button input[type="checkbox"]:checked ~ span:nth-of-type(2) {
    transform-origin:top;
    transform: rotatez(-45deg) translate(1px,0px);
}

label.hamburger-button input[type="checkbox"]:checked ~ span:nth-of-type(3) {
    transform-origin:bottom;
    width:50%;
    transform: translate(12px,-6px) rotatez(45deg);
}

/* footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 24px 12px;
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    font-family: sans-serif;
    direction: ltr; /* s’adapte à rtl si ton html a dir="rtl" */
}

.footer span {
    margin-block: 2px;
}

.footer .powered strong {
    color: #fff;
    font-weight: 600;
}

body[data-theme="default"] .footer .powered strong {
    color: unset;
}

/* Intro Video Styles */
.intro-video-container {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999; /* Ensure it is on top of all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the video covers the entire container */
}

.hidden {
    display: none;
}

.fade-out-zoom-in {
    animation: fadeOutZoomIn .3s forwards;
}

.zoom-in {
    animation: zoomIn .5s forwards;
    transform-origin: center center; /* Set the transform origin to the center */
    height: 100vh; /* Ensure the main container fits within the viewport */
    overflow: hidden; /* Prevent overflow during the transition */
}

@keyframes fadeOutZoomIn {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.1); /* Slight zoom-in effect */
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: rgb(247, 247, 247);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    pointer-events: none;
}

.loader-overlay > img {
	position: absolute;
	width: 64px;
}

.spinner {
	border: 3px solid rgba(.0,0,0,0.2);
	border-top: 3px solid #D2042D;
	border-radius: 50%;
	width: 82px;
	height: 82px;
	animation: spin 1s linear infinite;
}

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section */
#contact {
    padding: 32px 0;
}

#contact form {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
    background: #fff;
    border: var(--wv-border);
    border-radius: var(--wv-radius);
    box-shadow: var(--wv-shadow);
    padding: 24px;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px 14px;
    border: var(--wv-border);
    border-radius: 8px;
    font: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

#contact textarea {
    min-height: 140px;
    line-height: 1.5;
}

/* Submit button */
#contact button[type="submit"] {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s;
    justify-self: start;
}

#contact button[type="submit"]:hover {
    background: #333;
}

/* reCAPTCHA */
#contact .g-recaptcha {
    justify-self: start;
}