/* ==========================================================================
   AUDELALIA — Homepage Premium Stylesheet
   Inspired by galadrim.fr — Agence IA Premium
   ========================================================================== */

/* ---------- Typography ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --hp-font: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --hp-primary: #1a1a2e;
    --hp-accent: #DC8E21;
    --hp-accent-hover: #c77d1b;
    --hp-blue: #6ba3c3;
    --hp-text: #1e293b;
    --hp-text-light: #475569;
    --hp-bg: #ffffff;
    --hp-bg-alt: #f1f5f9;
    --hp-bg-dark: #0f172a;
    --hp-border: #e2e8f0;
    --hp-radius: 16px;
    --hp-section-py: 100px;
}

.hp-page {
    font-family: var(--hp-font);
    color: var(--hp-text);
    overflow-x: hidden;
    background: var(--hp-bg);
}

/* Override layout's cream body background */
body:has(.hp-page) {
    background: var(--hp-bg) !important;
}

/* Wider container like Galadrim (1320px vs 1140px) */
.hp-page .container {
    max-width: 1320px;
}

.hp-page h1,
.hp-page h2,
.hp-page h3,
.hp-page h4,
.hp-page h5,
.hp-page h6 {
    font-family: var(--hp-font);
    color: var(--hp-primary) !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.hp-section {
    padding: var(--hp-section-py) 0;
}

.hp-section-alt {
    background: var(--hp-bg);
}

.hp-section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hp-section-subtitle {
    font-size: 1.15rem;
    color: var(--hp-text);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    opacity: 0.75;
}

/* ---------- 1. HERO ---------- */
.hp-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--hp-bg);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hp-hero::before,
.hp-hero::after {
    display: none;
}

/* Hero background image — right-aligned, 50% visible */
.hp-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 0;
}

.hp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hp-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, var(--hp-bg) 0%, transparent 100%);
    z-index: 1;
}

.hp-hero .container {
    position: relative;
    z-index: 2;
}

.hp-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--hp-primary) !important;
}

.hp-hero-title span {
    color: var(--hp-accent) !important;
}

.hp-hero-subtitle {
    font-size: 1.25rem;
    color: var(--hp-text);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--hp-accent);
    color: #fff !important;
    font-family: var(--hp-font);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(220, 142, 33, 0.3);
    letter-spacing: 0.01em;
}

.hp-btn-primary:hover {
    background: var(--hp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(220, 142, 33, 0.4);
    color: #fff !important;
}

.hp-btn-primary i {
    font-size: 0.9rem;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(220, 142, 33, 0.1);
    color: var(--hp-accent);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* ---------- 2. LOGO CAROUSEL ---------- */
.hp-logos {
    padding: 60px 0;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
}

.hp-logos-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--hp-text-light);
    margin-bottom: 30px;
}

.hp-logo-scroll {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hp-logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: hp-scroll 70s linear infinite;
    width: max-content;
}

.hp-logo-track img {
    height: 60px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hp-logo-track img:hover {
    transform: scale(1.1);
}

@keyframes hp-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- 3. SERVICES — Blocs alternes texte/image ---------- */
.hp-block {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 60px 0;
}

.hp-block + .hp-block {
    border-top: 1px solid var(--hp-border);
}

.hp-block-text {
    flex: 1;
    min-width: 0;
}

.hp-block-image {
    flex: 1;
    min-width: 0;
}

.hp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.hp-block-image img:hover {
    transform: scale(1.02);
}

.hp-block.reverse {
    flex-direction: row-reverse;
}

.hp-block-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(220, 142, 33, 0.1);
    color: var(--hp-accent);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-block-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hp-block-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--hp-text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.hp-block-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.hp-block-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--hp-text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hp-block-list li i {
    color: var(--hp-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ---------- 4. SECTION VISUELLE TECH — Bloc alterne ---------- */
/* Now uses the same .hp-block system */

/* ---------- 5. EXPERTISE & OUTILS ---------- */
.hp-tools-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 16px 12px;
    max-width: 100%;
    margin: 0 auto;
}

.hp-tool-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.hp-tool-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--hp-accent);
}

.hp-tool-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.hp-tool-item .hp-tool-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hp-text-light);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-tool-item:hover .hp-tool-label {
    opacity: 1;
}

/* Tool items with real logos — no border */
.hp-tool-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    padding: 12px 8px;
    text-align: center;
    gap: 8px;
}

.hp-tool-text:hover {
    transform: translateY(-4px);
}

.hp-tool-text img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hp-tool-text i {
    font-size: 1.5rem;
    color: var(--hp-accent);
}

.hp-tool-text span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hp-text-light);
    line-height: 1.2;
}

/* ---------- 6. EQUIPE CAROUSEL ---------- */
.hp-team {
    background: var(--hp-bg);
}

.hp-team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.hp-team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--hp-bg-alt);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hp-team-card:hover .hp-team-photo {
    transform: scale(1.05);
}

.hp-team-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hp-team-role {
    font-size: 0.85rem;
    color: var(--hp-accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hp-team-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.hp-team-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--hp-bg-alt);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hp-text-light);
}

/* Swiper overrides */
.hp-team .swiper {
    padding-bottom: 50px;
}

.hp-team .swiper-pagination-bullet-active {
    background: var(--hp-accent);
}

.hp-team .swiper-button-next,
.hp-team .swiper-button-prev {
    color: var(--hp-accent);
    width: 44px;
    height: 44px;
    background: var(--hp-bg);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hp-team .swiper-button-next::after,
.hp-team .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 900;
}

/* ---------- 7. REALISATIONS — Blocs alternes ---------- */
/* Uses the same .hp-block system with extra result styling */
.hp-result-row {
    display: flex;
    gap: 24px;
    margin-bottom: 1.5rem;
}

.hp-result-item {
    text-align: center;
    flex: 1;
    padding: 16px;
    background: var(--hp-bg-alt);
    border-radius: 12px;
}

.hp-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hp-accent) !important;
    line-height: 1;
    margin-bottom: 4px;
}

.hp-result-label {
    font-size: 0.8rem;
    color: var(--hp-text-light);
    line-height: 1.3;
}

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

.hp-tech-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--hp-bg-alt);
    border: 1px solid var(--hp-border);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hp-text-light);
}

/* ---------- 8. POURQUOI NOUS — Grille compacte ---------- */
.hp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-why-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.hp-why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border-color: var(--hp-accent);
}

.hp-why-item i {
    font-size: 1.3rem;
    color: var(--hp-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.hp-why-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.hp-why-item p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--hp-text);
    opacity: 0.75;
    margin: 0;
}

/* ---------- 9. CTA FINAL ---------- */
.hp-cta-final {
    background: linear-gradient(135deg, var(--hp-bg-dark) 0%, #1e293b 100%);
    padding: 100px 0;
    text-align: center;
}

.hp-cta-final h2 {
    color: #fff !important;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hp-cta-final .hp-cta-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hp-cta-final .hp-btn-primary {
    font-size: 1.15rem;
    padding: 18px 44px;
}

.hp-cta-contact {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.hp-cta-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hp-cta-contact a:hover {
    color: var(--hp-accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    :root {
        --hp-section-py: 70px;
    }

    .hp-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hp-hero-title {
        font-size: 2.5rem;
    }

    .hp-section-title {
        font-size: 2.25rem;
    }

    .hp-hero-bg {
        display: none;
    }

    .hp-block {
        flex-direction: column !important;
        gap: 40px;
        padding: 50px 0;
    }

    .hp-block-title {
        font-size: 1.75rem;
    }

    .hp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-cta-final h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    :root {
        --hp-section-py: 60px;
    }

    .hp-hero {
        padding: 80px 0 50px;
        text-align: center;
    }

    .hp-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hp-hero .hp-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .hp-hero-title {
        font-size: 2rem;
    }

    .hp-section-title {
        font-size: 1.85rem;
    }

    .hp-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hp-logo-track img {
        height: 40px;
    }

    .hp-logo-track {
        gap: 40px;
    }

    .hp-block-image img {
        border-radius: 14px;
    }

    .hp-result-row {
        flex-direction: column;
        gap: 12px;
    }

    .hp-why-grid {
        grid-template-columns: 1fr;
    }

    .hp-tools-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .hp-tool-text {
        width: 75px;
        height: 75px;
    }

    .hp-cta-final {
        padding: 70px 0;
    }

    .hp-cta-final h2 {
        font-size: 1.85rem;
    }

    .hp-cta-final .hp-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .hp-team .swiper-button-next,
    .hp-team .swiper-button-prev {
        display: none;
    }

}
