/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* for the whole page */
html {
    scroll-behavior: smooth;
}

/* CSS Variables */
:root {
    --bg-color-alt: #c6933b10; /* Light transparent background */
    --bg-color: #050301;
    --color1: #C6933B;
    --color2: #EFC988;
    --color3: #FFFBF5;
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --font-family-alt: 'Exo 2', sans-serif;
    --h1-size: 44px;
    --h2-size: 36px;
    --h3-size: 25px;
    --h4-size: 21px;
    --h5-size: 18px;
    --h6-size: 15px;
    --body-size: 15px;
    --metadata-size: 13px;
    --micro-size: 10px;
}

body {
    background-color: var(--bg-color);
    font-size: var(--body-size);
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color2);

    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.body-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.footer {
    text-align: center;
    padding: 20px 0;
    font-size: var(--metadata-size);
    color: var(--color1);
    border-top: 1px solid var(--color1);
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Typography */
h1 {
    font-family: var(--font-family-alt);
    
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.2;

    color: var(--color1);
}

h2 {
    font-family: var(--font-family-alt);

    font-size: var(--h2-size);
    font-weight: 600;
    line-height: 1.3;

    color: var(--color1);
}

h3 {
    font-family: var(--font-family-alt);

    font-size: var(--h3-size);
    font-weight: 600;
    line-height: 1.4;

    color: var(--color2);
}

h4 {
    font-size: var(--h4-size);
    font-weight: 500;

    color: var(--color2);
}

h5 {
    font-size: var(--h5-size);
    font-weight: 500;

    color: var(--color2);
}

h6 {
    font-size: var(--h6-size);
    font-weight: 600;

    color: var(--color2);
}

.metadata {
    font-size: var(--metadata-size);

    font-weight: 300;

    color: var(--color1);
}

.micro {
    font-size: var(--micro-size);

    color: var(--color1);
}

/* Links */
a {
    color: var(--color2);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color1);
}

/* General sections settings */
section {
    margin: 0;
    scroll-margin-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 16px; /* Padding uniforme pour toutes les sections */
    /* border-bottom: 2px solid var(--color1); */
}


/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, transparent 0%, rgba(198, 147, 59, 0.1) 100%);
    color: var(--color2);
    padding: 1rem 2rem;
    border: 2px solid var(--color2);
    border-radius: 0;
    font-weight: 600;
    font-size: var(--body-size);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    box-shadow: 
        0 0 20px rgba(198, 147, 59, 0.2),
        inset 0 0 20px rgba(198, 147, 59, 0.1);

    cursor: pointer;

    max-width: 250px;
    max-height: 60px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 201, 136, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--color2) 0%, var(--color1) 100%);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 
        0 5px 25px rgba(198, 147, 59, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    border-color: var(--color1);
}

.cta-button:hover a {
    color: var(--bg-color);
}

.arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--color1);
  border-right: 3px solid var(--color1);
  transform: rotate(45deg);

  margin-right: 25px;
}

.logo img {
    height: 40px;
}


/* Header and Navigation */
.header {
    background-color: var(--bg-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid var(--color1);
    max-height: 100px;
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* max-width: 600px; */
    margin: 0 auto;
}

.nav h2 {
    text-align: center;
}

.logo {
    justify-self: start;

    /* margin: none;
    height: auto; */
}

.logo-title {
    font-family: var(--font-family-alt);
    font-size: var(--h1-size);
    color: var(--color1);
    margin: 0;
    font-weight: 400;

    justify-self: start;
}


/* Navigation */

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    justify-self: end;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color1);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center; /* Point de rotation au centre */
}

/* Animation du hamburger en croix - Version centrée */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6.5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6.5px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex; /* Ajouté pour que flex-direction fonctionne */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid var(--color1); /* Bordure pour plus de style */
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin: 1.5rem 0;
}

.nav-menu a {
    font-size: var(--h5-size);
    font-weight: 500;
}


@media (min-width: 1200px) {

    :root {        
        /* Typography - larger screens */
        --font-family: 'Poppins', sans-serif;
        --font-family-alt: 'Exo 2', sans-serif;
        --h1-size: 61px;
        --h2-size: 49px;
        --h3-size: 39px;
        --h4-size: 31px;
        --h5-size: 25px;
        --h6-size: 20px;
        --body-size: 16px;
        --metadata-size: 13px;
        --micro-size: 10px;
    }


    body {
        margin: 0 auto;
        width: 90%;
        max-width: none; /* Remove max-width for larger screens */
    }



    .nav {
        display: flex;
        justify-content: space-between;
        /* gap: 20px; */
        align-items: center;
        padding: 0 20px;
    }

    .nav-menu {
        position: static; /* Remove fixed positioning */
        display: flex; /* Display links in a row */
        flex-direction: row;
        gap: 20px; /* Add spacing between links */
        height: auto; /* Reset height */
        background: none; /* Remove background */
        border: none; /* Remove border */
    }

    .nav-menu li {
        margin: 0; /* Reset margin */
    }

    .hamburger {
        display: none; /* Hide hamburger menu */
    }



    /* Logo */
    .logo {
        margin: 0 20px;
        height: 100px;
    }

    .logo img {
        height: 60px;
    }
    
    .logo-title {
        font-size: var(--h2-size);
        padding-bottom: 2rem;
    }


    .nav-menu a:hover {
        color: var(--color1); /* Highlight color */
        text-decoration: underline; /* Optional underline */
    }


    .nav-menu a {
        font-size: var(--h5-size);
    }
}


/* Down arrow design */
.scroll-prompt {
	position: relative;
	z-index: 998;
	bottom: -80px;
	left: 50%;
	margin-left: -80px;
	width: 160px;
	height: 160px;

    

	.scroll-prompt-arrow-container {
		position: absolute;
		top: 0;
		left: 50%;
		margin-left: -18px;
		animation-name: bounce;
		animation-duration: 1.5s;
		animation-iteration-count: infinite;
	}
	.scroll-prompt-arrow {
		animation-name: opacity;
		animation-duration: 1.5s;
		animation-iteration-count: infinite;
	}
	.scroll-prompt-arrow:last-child {
		animation-direction: reverse;
		margin-top: -6px;
	}
	.scroll-prompt-arrow > div {
		width: 36px;
		height: 36px;
		border-right: 8px solid var(--color1);
		border-bottom: 8px solid var(--color1);
		transform: rotate(45deg) translateZ(1px);
	}
}

@keyframes opacity {
	0% {
		opacity: 0;
	}

	10% {
		opacity: 0.1;
	}

	20% {
		opacity: 0.2;
	}

	30% {
		opacity: 0.3;
	}

	40% {
		opacity: 0.4;
	}

	50% {
		opacity: 0.5;
	}

	60% {
		opacity: 0.6;
	}

	70% {
		opacity: 0.7;
	}

	80% {
		opacity: 0.8;
	}

	90% {
		opacity: 0.9;
	}

	100% {
		opacity: 1;
	}
}

@keyframes bounce {
	0% {
		transform: translateY(0);
	}

	10% {
		transform: translateY(3px);
	}

	20% {
		transform: translateY(6px);
	}

	30% {
		transform: translateY(9px);
	}

	40% {
		transform: translateY(12px);
	}

	50% {
		transform: translateY(15px);
	}

	60% {
		transform: translateY(18px);
	}

	70% {
		transform: translateY(21px);
	}

	80% {
		transform: translateY(24px);
	}

	90% {
		transform: translateY(27px);
	}

	100% {
		transform: translateY(30px);
	}
}
/* -------------------------------- */
