/*
Theme Name: AKOG Services
Author: AKOG Services
Version: 1.0
*/

/* =========================================
   VARIABLES
   ========================================= */

:root {
    --akog-header-height: 82px;
    --akog-blue: #2563eb;
    --akog-dark: #172033;
    --akog-text: #334155;
    --akog-border: #e5e7eb;
    --akog-white: #ffffff;
}

/* =========================================
   BASE
   ========================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--akog-header-height);
}

body {
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
}

/* =========================================
   HEADER PRINCIPAL
   ========================================= */

.akog-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--akog-header-height);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--akog-border);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.akog-header__inner {
    width: min(100% - 40px, 1440px);
    min-height: var(--akog-header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* =========================================
   LOGO
   ========================================= */

.akog-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.akog-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 54px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   MENU DESKTOP
   ========================================= */

.akog-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.akog-navigation__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--akog-text);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.akog-navigation__link:hover,
.akog-navigation__link:focus-visible {
    color: var(--akog-blue);
    background-color: #eff6ff;
    transform: translateY(-1px);
}

.akog-navigation__link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

/* Accueil actif */
/* Supprimez ou commentez ce bloc dans style.css */
/*
.akog-navigation__link:first-child {
    color: var(--akog-blue);
    background-color: #eff6ff;
}
*/

/* Espacements du header */
.akog-header nav,
.akog-header ul {
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================================
   CASE À COCHER DU MENU MOBILE
   ========================================= */

.akog-menu-toggle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hamburger masqué sur ordinateur */
.akog-menu-button {
    display: none;
}

/* =========================================
   CONTENU
   ========================================= */

.site-main {
    position: relative;
}

.site-main section,
.site-main [id] {
    scroll-margin-top: calc(var(--akog-header-height) + 20px);
}

/* =========================================
   TABLETTE
   ========================================= */

@media (max-width: 900px) {
    :root {
        --akog-header-height: 74px;
    }

    .akog-header__inner {
        width: min(100% - 30px, 1440px);
        gap: 20px;
    }

    .akog-logo img {
        max-width: 160px;
        max-height: 48px;
    }

    .akog-navigation {
        gap: 2px;
    }

    .akog-navigation__link {
        padding: 9px 11px;
        font-size: 14px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 720px) {
    .akog-header__inner {
        position: relative;
        min-height: var(--akog-header-height);
    }

    .akog-logo img {
        max-width: 145px;
        max-height: 44px;
    }

    /* Bouton hamburger */
    .akog-menu-button {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 9px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        border: 1px solid var(--akog-border);
        border-radius: 8px;
        background: var(--akog-white);
    }

    .akog-menu-button span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--akog-dark);
        border-radius: 2px;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    /* Menu mobile fermé */
    .akog-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        background: var(--akog-white);
        border: 1px solid var(--akog-border);
        border-top: 0;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    }

    .akog-navigation__link {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 12px 14px;
        text-align: left;
    }

    /* Menu mobile ouvert */
    .akog-menu-toggle:checked ~ .akog-navigation {
        display: flex;
    }

    /* Transformation du hamburger en croix */
    .akog-menu-toggle:checked ~ .akog-menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .akog-menu-toggle:checked ~ .akog-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .akog-menu-toggle:checked ~ .akog-menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* =========================================
   PETITS ÉCRANS
   ========================================= */

@media (max-width: 420px) {
    .akog-header__inner {
        width: calc(100% - 24px);
    }

    .akog-logo img {
        max-width: 130px;
        max-height: 42px;
    }
}