/* =========================================
   KHAFOR GROUP
   IDENTITÉ VISUELLE : NOIR ET OR
========================================= */


/* VARIABLES */

:root {
    --background: #090909;
    --surface: #111111;
    --surface-light: #191919;

    --gold: #c9a45c;
    --gold-light: #e2c58b;

    --white: #ffffff;
    --gray: #aaaaaa;

    --border: rgba(201, 164, 92, 0.2);

    --transition: 0.35s ease;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: 88%;
    max-width: 1350px;
    margin: auto;
}

section {
    scroll-margin-top: 85px;
}


/* BARRE DE PROGRESSION */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    z-index: 2000;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 9, 9, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-container {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* LOGO */

.logo {
    display: inline-flex;
    flex-direction: column;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
}

.logo span {
    color: var(--gold);
}

.logo small {
    font-size: 8px;
    letter-spacing: 4px;
    color: var(--gray);
    margin-top: 5px;
}


/* NAVIGATION */

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #cccccc;
    font-size: 13px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.contact-link {
    border: 1px solid var(--gold);
    padding: 11px 20px;
    color: var(--gold);
}

.contact-link:hover {
    background: var(--gold);
    color: #090909;
}


/* MENU MOBILE */

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.menu-toggle span {
    width: 27px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* HERO */

.hero {
    min-height: 88vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 45%,
            rgba(201,164,92,0.12),
            transparent 35%
        ),
        #090909;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.13;

    background-image:
        linear-gradient(
            rgba(201,164,92,0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(201,164,92,0.08) 1px,
            transparent 1px
        );

    background-size: 70px 70px;
}

.hero-container {
    position: relative;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;
    gap: 60px;

    padding-top: 70px;
    padding-bottom: 100px;
}

.hero-content {
    max-width: 750px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 76px);
    line-height: 1.13;
    margin: 25px 0;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.hero-description {
    max-width: 600px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 35px;
}


/* BOUTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    padding: 15px 24px;

    font-size: 13px;
    font-weight: bold;

    transition: var(--transition);
}

.btn span {
    font-size: 18px;
}

.btn-primary {
    background: var(--gold);
    color: #090909;
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(201,164,92,0.18);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-4px);
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 60px;

    color: #888;
    font-size: 9px;
    letter-spacing: 2px;
}

.gold-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}


/* EMBLÈME KG */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 1;

    margin: auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(201,164,92,0.3);
    border-radius: 50%;
}

.orbit-one {
    width: 95%;
    height: 95%;
}

.orbit-two {
    width: 78%;
    height: 78%;
    border-style: dashed;
    animation: rotate 40s linear infinite;
}

.orbit-three {
    width: 60%;
    height: 60%;
    opacity: 0.4;
}

.emblem {
    width: 65%;
    height: 65%;

    position: relative;
    z-index: 2;

    background: linear-gradient(145deg, #202020, #080808);
    border: 1px solid var(--gold);

    box-shadow: 0 0 70px rgba(201,164,92,0.1);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.emblem-top {
    color: var(--gray);
    font-size: 9px;
    letter-spacing: 4px;
}

.monogram {
    font-size: 95px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -12px;
}

.monogram span {
    color: var(--gold);
}

.emblem-line {
    width: 55px;
    height: 2px;
    background: var(--gold);
    margin: 10px 0 15px;
}

.emblem p {
    text-align: center;
    color: var(--gray);
    font-size: 9px;
    letter-spacing: 3px;
    line-height: 2;
}

.emblem-caption {
    position: absolute;
    bottom: -15px;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 3px;
}

@keyframes rotate {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }

}


/* DÉFILEMENT */

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 6%;

    color: #777;
    font-size: 9px;
    letter-spacing: 3px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-indicator span {
    width: 35px;
    height: 1px;
    background: var(--gold);
}


/* BANDEAU */

.brand-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #101010;
    padding: 23px 0;
}

.brand-strip-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-strip-content span {
    color: #888;
    font-size: 10px;
    letter-spacing: 2px;
}


/* SECTIONS */

.section {
    padding: 115px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-heading {
    max-width: 750px;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.2;
    margin: 20px 0;
    letter-spacing: -1px;
}

.section-heading h2 span {
    display: block;
    color: var(--gold);
}

.section-heading p {
    color: var(--gray);
    max-width: 600px;
    font-size: 15px;
}


/* À PROPOS */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-main {
    min-height: 370px;

    background:
        radial-gradient(
            circle at center,
            rgba(201,164,92,0.13),
            transparent 60%
        ),
        #131313;

    border: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px;
}

.gold-symbol {
    color: var(--gold);
    font-size: 65px;
    font-weight: bold;
}

.about-main h3 {
    font-size: 38px;
    line-height: 1.3;
    margin-top: 20px;
}

.about-text p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 25px;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
}

.text-link span {
    margin-left: 10px;
}


/* PRINCIPES */

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 80px;
}

.principle-card {
    padding: 35px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.principle-card:hover {
    border-color: var(--gold);
    transform: translateY(-7px);
}

.principle-number {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 3px;
}

.principle-card h3 {
    font-size: 22px;
    margin: 20px 0 12px;
}

.principle-card p {
    color: var(--gray);
    font-size: 13px;
}


/* ACTIVITÉS */

.activities {
    background: #0c0c0c;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.activity-card {
    min-height: 320px;
    padding: 30px;

    background: linear-gradient(145deg, #171717, #101010);

    border: 1px solid rgba(255,255,255,0.06);

    position: relative;
    overflow: hidden;

    transition: var(--transition);
}

.activity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--gold);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
}

.activity-card:hover::before {
    width: 100%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.activity-number {
    color: #777;
    font-size: 12px;
    letter-spacing: 2px;
}

.activity-icon {
    color: var(--gold);
    font-size: 28px;
}

.activity-category {
    display: block;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.activity-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.activity-card p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
    min-height: 70px;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
}

.card-link span {
    margin-left: 10px;
}


/* VISION */

.vision-section {
    padding: 130px 0;
    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(201,164,92,0.12),
            transparent 55%
        ),
        #111111;

    border-bottom: 1px solid var(--border);
}

.vision-container h2 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.2;
    margin: 25px 0;
}

.vision-container h2 span {
    color: var(--gold);
}

.vision-container p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 35px;
}


/* RÉALISATIONS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.project-visual {
    height: 240px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        radial-gradient(
            circle at center,
            rgba(201,164,92,0.22),
            transparent 65%
        ),
        #171717;
}

.project-visual span {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
}

.project-visual strong {
    font-size: 26px;
    letter-spacing: 4px;
    text-align: center;
}

.project-two {
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.12),
            transparent 65%
        ),
        #191919;
}

.project-three {
    background:
        radial-gradient(
            circle at center,
            rgba(201,164,92,0.15),
            transparent 65%
        ),
        #101510;
}

.project-info {
    padding: 25px;
}

.project-info > span {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2px;
}

.project-info h3 {
    font-size: 19px;
    margin: 10px 0;
}

.project-info p {
    color: var(--gray);
    font-size: 12px;
}

.projects-note {
    color: #777;
    font-size: 11px;
    margin-top: 30px;
}


/* ACTUALITÉS */

.news {
    background: #0d0d0d;
}

.news-content {
    min-height: 270px;
    padding: 45px;

    border: 1px solid var(--border);

    background: linear-gradient(110deg, #171717, #0d0d0d);

    display: flex;
    align-items: center;
    gap: 55px;
}

.news-decoration {
    font-size: 80px;
    font-weight: 900;
    color: rgba(201,164,92,0.3);
}

.news-content h3 {
    font-size: 27px;
    margin: 12px 0;
}

.news-content p {
    max-width: 600px;
    color: var(--gray);
    font-size: 14px;
}


/* CONTACT */

.contact {
    background: #0b0b0b;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-content h2 {
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.15;
    margin: 25px 0;
}

.contact-content h2 span {
    display: block;
    color: var(--gold);
}

.contact-content > p {
    color: var(--gray);
    max-width: 500px;
    margin-bottom: 40px;
}


/* COORDONNÉES */

.contact-details {
    display: grid;
    gap: 28px;
}

.contact-item {
    border-left: 2px solid var(--gold);
    padding-left: 18px;
}

.contact-details span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 3px;
}

.contact-details p {
    color: #ddd;
    font-size: 14px;
    margin-top: 5px;
}

.contact-details a {
    color: #ffffff;
    transition: var(--transition);
    overflow-wrap: anywhere;
}

.contact-details a:hover {
    color: var(--gold);
}

.contact-action {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--gold) !important;
}


/* FORMULAIRE */

.contact-form {
    background: #151515;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 40px;
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 9px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    background: #0c0c0c;
    border: 1px solid #333;

    padding: 14px;

    color: white;
    outline: none;

    font-size: 13px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
}

.form-group select option {
    background: #111;
}

.form-button {
    width: 100%;
}

.form-status {
    color: var(--gold);
    font-size: 12px;
    margin-top: 15px;
}


/* PIED DE PAGE */

.footer {
    background: #070707;
    padding: 80px 0 25px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 25px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.footer-contact a,
.footer-contact span {
    color: #999;
    font-size: 12px;
    overflow-wrap: anywhere;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-navigation h4 {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-navigation a {
    color: #999;
    font-size: 12px;
    transition: var(--transition);
}

.footer-navigation a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;

    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
    color: #777;
    font-size: 10px;
}

.footer-bottom a:hover {
    color: var(--gold);
}


/* RETOUR EN HAUT */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    background: var(--gold);
    color: #090909;

    border: none;
    font-size: 22px;

    opacity: 0;
    visibility: hidden;

    transition: var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


/* ANIMATIONS */

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* TABLETTES */

@media (max-width: 1000px) {

    .navigation {
        gap: 16px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero-container {
        gap: 25px;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        gap: 35px;
    }

}


/* MOBILES */

@media (max-width: 750px) {

    .container {
        width: 90%;
    }

    .header-container {
        min-height: 75px;
    }

    .menu-toggle {
        display: flex;
    }

    .navigation {
        position: absolute;
        top: 75px;
        left: 0;

        width: 100%;
        padding: 25px 5%;

        background: #101010;
        border-bottom: 1px solid var(--border);

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .navigation.open {
        display: flex;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px;
    }

    .contact-link {
        text-align: center;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;

        padding-top: 85px;
        padding-bottom: 100px;
    }

    .hero-content {
        margin: auto;
    }

    .hero h1 {
        font-size: clamp(40px, 9vw, 58px);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-bottom {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 40px;
    }

    .hero-visual {
        max-width: 330px;
        margin-top: 30px;
    }

    .monogram {
        font-size: 75px;
    }

    .scroll-indicator {
        display: none;
    }

    .brand-strip-content {
        justify-content: center;
    }

    .brand-strip-content span {
        font-size: 8px;
    }

    .section {
        padding: 80px 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-main {
        min-height: 280px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        min-height: 290px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .vision-section {
        padding: 90px 0;
    }

    .news-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px;
    }

    .news-decoration {
        font-size: 55px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


/* PETITS ÉCRANS */

@media (max-width: 400px) {

    .logo {
        font-size: 23px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        max-width: 270px;
    }

    .emblem-caption {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}


/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}