/* ===== HEADER ===== */
.header {
  background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
  color: #fff;
  height: 90px;
  padding: 0 40px;
  position: static;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Ligne décorative en haut du header */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f39c12, #e67e22, #d35400, #e67e22, #f39c12);
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 100%;
    margin: auto;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f39c12;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    width: 90px;
    vertical-align: middle;
}


/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li {
    margin: 0 20px;
}

.nav ul li a {
    position: relative;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.05rem;
    font-weight: 500;
}

.nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #f39c12;
    transition: width 0.3s ease-in-out;
}

.nav ul li a:hover {
    color: #fff;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Button */
.btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    color: #1e1e1e;
    background: linear-gradient(45deg, #f39c12, #d35400);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    color: #fff;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: rotate(25deg) translateX(100%);
}

/* Header info */
.header-info {
    text-align: right;
    margin-right: 20px;
    font-size: 1rem;
}

.header-info p {
    margin: 3px 0;
}

.header-info a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-info a:hover {
    color: #e67e22;
    transform: translateY(-2px);
}

.header-info a:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Menu burger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #f39c12;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 0 30px;
        height: 80px;
    }

    .logo {
        font-size: 1.5rem;
        gap: 12px;
    }

    .logo img {
        width: 70px;
    }

    .nav ul li {
        margin: 0 15px;
    }

    .nav ul li a {
        font-size: 1rem;
    }

    .header-info {
        font-size: 0.9rem;
        margin-right: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        height: 70px;
    }

    .logo {
        font-size: 1.3rem;
        gap: 10px;
    }

    .logo img {
        width: 55px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        left: 0;
    }

    /* Backdrop blur effect when menu is open */
    .nav::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: -1;
    }

    .nav.active::before {
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        padding: 40px 30px;
        gap: 0;
        animation: slideInFromLeft 0.5s ease-out;
    }

    @keyframes slideInFromLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav ul li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        animation: fadeInUp 0.5s ease-out backwards;
    }

    .nav ul li:nth-child(1) { animation-delay: 0.1s; }
    .nav ul li:nth-child(2) { animation-delay: 0.15s; }
    .nav ul li:nth-child(3) { animation-delay: 0.2s; }
    .nav ul li:nth-child(4) { animation-delay: 0.25s; }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 18px 10px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav ul li a::before {
        content: "";
        position: absolute;
        left: -100%;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #f39c12, #e67e22);
        transition: left 0.3s ease;
    }

    .nav ul li a:hover::before,
    .nav ul li a:focus::before {
        left: 0;
    }

    .nav ul li a:hover {
        padding-left: 20px;
        color: #f39c12;
    }

    .header-info {
        display: none;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 15px;
        height: 65px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo img {
        width: 50px;
    }

    .nav {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav ul {
        padding: 30px 20px;
    }

    .nav ul li a {
        font-size: 1.1rem;
        padding: 16px 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .menu-toggle span {
        width: 25px;
    }
}

/* Contact info dans le menu mobile */
@media (max-width: 768px) {
    .mobile-contact {
        display: block;
        padding: 25px 30px;
        border-top: 2px solid rgba(243, 156, 18, 0.3);
        margin-top: 20px;
        text-align: center;
        animation: fadeInUp 0.5s ease-out 0.3s backwards;
    }

    .mobile-contact p {
        margin: 15px 0;
        font-size: 1rem;
    }

    .mobile-contact a {
        color: #f39c12;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        display: inline-block;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .mobile-contact a:hover {
        background: rgba(243, 156, 18, 0.1);
        transform: scale(1.05);
    }
}

@media (min-width: 769px) {
    .mobile-contact {
        display: none;
    }
}
