/* Easy Task - Styles principaux */

:root {
    --primary: #2c3e50;    /* Bleu nuit */
    --secondary: #2980b9;  /* Bleu clair */
    --accent: #e67e22;     /* Orange dynamique */
    --success: #27ae60;    /* Vert */
    --bg: #f8f9fa;
    --text: #333;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.site-nav {
    background: var(--white);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu container */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Links list */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-links > li > a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links > li > a:hover,
.nav-links > li > a.nav-active {
    color: var(--secondary);
}

.nav-links > li > a.nav-active {
    position: relative;
}

.nav-links > li > a.nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
}

/* Active state for dropdown items */
.nav-dropdown-menu a.nav-active {
    color: var(--secondary);
    background: #f0f4f8;
    font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-btn::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.3s;
}

.nav-dropdown.open .nav-dropdown-btn::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
    color: var(--secondary);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 8px 0;
    border: 1px solid #eee;
    list-style: none;
    margin: 0;
    z-index: 100;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    color: var(--primary);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background: #f0f4f8;
    color: var(--secondary);
}

/* Auth section */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

.cta-button {
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* --- HERO SECTION --- */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

header .subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

header .tagline {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 22px;
}

.feature-card .description {
    color: #555;
    margin-bottom: 20px;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    margin-bottom: 10px;
    font-size: 15px;
}

.feature-card li strong {
    color: var(--secondary);
}

/* --- SECTIONS GENERALES --- */
.section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s;
    border-top: 4px solid transparent;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 45px;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-top: 0;
}

/* --- SECTION PLANNING --- */
.planning-bg {
    background-color: #eaf2f8;
    border-radius: 30px;
    margin: 40px auto;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: 5px;
}

.pill-superhote {
    background: #feeead;
    color: #d35400;
}

.pill-jana {
    background: #d4e6f1;
    color: #2980b9;
}

.pill-other {
    background: #e8daef;
    color: #8e44ad;
}

/* --- NOUVEAUTES (Dernieres Realisations) --- */
.nouveautes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.nouveaute-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nouveaute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.nouveaute-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nouveaute-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eaf2f8, #d5e8f7);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
}

.nouveaute-card h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 22px;
}

.nouveaute-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.nouveaute-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.nouveaute-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.nouveaute-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.nouveaute-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nouveaute-tag {
    background: #f0f4f8;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

/* --- GALERIE SCREENSHOTS --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid #eee;
    display: block;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h4 {
    margin: 0 0 5px 0;
    color: var(--primary);
    font-size: 18px;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Modal Zoom Image */
#image-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#img-viewer {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- HIGHLIGHT (Solution Adaptable) --- */
.adaptable-box {
    background: var(--primary);
    color: white;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- TRUSTED BANNER --- */
.trusted-section {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.trusted-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #95a5a6;
    margin-bottom: 30px;
    font-weight: 600;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.client-logo {
    max-height: 60px;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #bdc3c7;
    text-align: center;
    padding: 50px 20px;
}

/* --- MODAL LOGIN --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
}

.modal-box input {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: left;
    font-weight: normal;
    color: var(--primary);
}

.modal-box input:focus {
    border-color: var(--secondary);
    outline: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--text);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- RESPONSIVE NAV (mobile) --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
        border-top: 1px solid #eee;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links > li:last-child {
        border-bottom: none;
    }

    .nav-links > li > a {
        display: block;
        padding: 15px 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-btn {
        width: 100%;
        padding: 15px 0;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 15px;
        min-width: auto;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        animation: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 300px;
        padding: 0 0 10px 15px;
    }

    .nav-dropdown-menu a {
        padding: 10px 15px;
        border-radius: 8px;
    }

    /* Active indicator on mobile: left border instead of underline */
    .nav-links > li > a.nav-active::after {
        display: none;
    }

    .nav-links > li > a.nav-active {
        color: var(--secondary);
        border-left: 3px solid var(--secondary);
        padding-left: 12px;
    }

    .nav-auth {
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    .nav-auth .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 768px) {
    .nav-logo-text {
        font-size: 17px;
    }

    header h1 {
        font-size: 32px;
    }

    .section {
        padding: 40px 20px;
    }

    .adaptable-box {
        padding: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
