/**
 * Front Page styles — "Atelier Éditorial"
 * Mobile-first, loaded only on is_front_page()
 *
 * @package T3BR
 */

/* ==========================================
   1. HERO
   ========================================== */
.fp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--t3br-header-height) + 40px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.fp-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.fp-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--t3br-font-size-xs);
    font-weight: var(--t3br-font-weight-semibold);
    letter-spacing: var(--t3br-letter-spacing-widest);
    text-transform: uppercase;
    color: var(--t3br-green);
    margin-bottom: 28px;
}

.fp-hero__label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--t3br-mustard);
}

.fp-hero__title {
    font-family: var(--t3br-font-family-display);
    font-size: var(--t3br-font-size-5xl);
    line-height: var(--t3br-line-height-tight);
    font-weight: var(--t3br-font-weight-normal);
    color: var(--t3br-charcoal);
    margin-bottom: 28px;
}

.fp-hero__title em {
    font-style: italic;
    color: var(--t3br-green);
}

.fp-hero__description {
    font-size: var(--t3br-font-size-lg);
    line-height: var(--t3br-line-height-relaxed);
    color: var(--t3br-text-muted);
    max-width: 480px;
    margin-bottom: 40px;
}

.fp-hero__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Hero stats */
.fp-hero__stats {
    display: flex;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--t3br-border);
    flex-wrap: wrap;
}

.fp-hero__stat {
    display: flex;
    flex-direction: column;
}

.fp-hero__stat-number {
    font-family: var(--t3br-font-family-display);
    font-size: 2.2rem;
    color: var(--t3br-deep-green);
    line-height: 1;
}

.fp-hero__stat-label {
    font-size: var(--t3br-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--t3br-text-muted);
    margin-top: 6px;
}

/* Hero visual */
.fp-hero__visual {
    position: relative;
}

.fp-hero__image-main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.fp-hero__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--t3br-ease-smooth);
}

.fp-hero__image-main:hover img {
    transform: scale(1.04);
}

.fp-hero__image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 120px;
    overflow: hidden;
    border: 4px solid var(--t3br-cream);
    z-index: 3;
}

.fp-hero__image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-hero__badge {
    position: absolute;
    top: -50px;
    right: 10px;
    background: var(--t3br-deep-green);
    color: var(--t3br-white);
    padding: 20px 24px;
    z-index: 3;
}

.fp-hero__badge-number {
    font-family: var(--t3br-font-family-display);
    font-size: 1.6rem;
    line-height: 1;
}

.fp-hero__badge-text {
    font-size: var(--t3br-font-size-xxs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: 4px;
}

/* ==========================================
   2. MARQUEE
   ========================================== */
.fp-marquee {
    padding: 20px 0;
    border-top: 1px solid var(--t3br-border);
    border-bottom: 1px solid var(--t3br-border);
    overflow: hidden;
    background: var(--t3br-cream);
}

.fp-marquee__track {
    display: flex;
    animation: fp-marquee 30s linear infinite;
    width: max-content;
}

.fp-marquee__item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: var(--t3br-font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--t3br-letter-spacing-wider);
    color: var(--t3br-text-muted);
}

.fp-marquee__item::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--t3br-mustard);
    flex-shrink: 0;
}

@keyframes fp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================
   3. SECTION HEADER (shared)
   ========================================== */
.fp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 40px;
    flex-direction: column;
    align-items: flex-start;
}

.fp-section-header--center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.section-label {
    font-size: var(--t3br-font-size-xs);
    font-weight: var(--t3br-font-weight-semibold);
    letter-spacing: var(--t3br-letter-spacing-widest);
    text-transform: uppercase;
    color: var(--t3br-mustard);
    margin-bottom: 16px;
}

.fp-section-title {
    font-family: var(--t3br-font-family-display);
    font-size: var(--t3br-font-size-4xl);
    line-height: 1.1;
    font-weight: var(--t3br-font-weight-normal);
    color: var(--t3br-charcoal);
}

.fp-section-title em {
    font-style: italic;
    color: var(--t3br-green);
}

.fp-section-description {
    max-width: 400px;
    font-size: var(--t3br-font-size-base);
    line-height: var(--t3br-line-height-relaxed);
    color: var(--t3br-text-muted);
}

/* ==========================================
   4. SERVICES
   ========================================== */
.fp-services {
    padding: var(--t3br-spacing-4xl) 0;
    background: var(--t3br-white);
}

.fp-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--t3br-border);
}

.fp-service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--t3br-white);
    padding: 40px 32px;
    position: relative;
    transition: all 0.5s var(--t3br-ease-out);
    cursor: pointer;
}

.fp-service-card:hover {
    background: var(--t3br-cream);
}

.fp-service-card__number {
    font-family: var(--t3br-font-family-display);
    font-size: 2.5rem;
    color: var(--t3br-cream-dark);
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.fp-service-card:hover .fp-service-card__number {
    color: var(--t3br-mustard-light);
}

.fp-service-card__name {
    font-family: var(--t3br-font-family-display);
    font-size: var(--t3br-font-size-3xl);
    color: var(--t3br-charcoal);
    margin-bottom: 10px;
}

.fp-service-card__text {
    font-size: var(--t3br-font-size-sm);
    line-height: 1.6;
    color: var(--t3br-text-muted);
    margin: 0;
}

.fp-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: var(--t3br-mustard);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--t3br-ease-out);
}

.fp-service-card:hover::after {
    transform: scaleX(1);
}

/* ==========================================
   5. USP
   ========================================== */
.fp-usp {
    padding: var(--t3br-spacing-4xl) 0;
    background: var(--t3br-deep-green);
    color: var(--t3br-white);
    position: relative;
    overflow: hidden;
}

.fp-usp::before {
    content: '01';
    position: absolute;
    top: -40px;
    right: -20px;
    font-family: var(--t3br-font-family-display);
    font-size: clamp(15rem, 30vw, 28rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.fp-usp__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.fp-usp .section-label {
    color: var(--t3br-mustard);
}

.fp-usp__title {
    font-family: var(--t3br-font-family-display);
    font-size: var(--t3br-font-size-4xl);
    line-height: var(--t3br-line-height-snug);
    font-weight: var(--t3br-font-weight-normal);
    margin-bottom: 24px;
}

.fp-usp__title em {
    font-style: italic;
    color: var(--t3br-mustard);
}

.fp-usp__text {
    font-size: var(--t3br-font-size-base);
    line-height: var(--t3br-line-height-loose);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.fp-usp__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-usp__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--t3br-font-size-base);
    font-weight: var(--t3br-font-weight-medium);
}

.fp-usp__feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(212, 162, 59, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fp-usp__feature-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--t3br-mustard);
}

.fp-usp__visual {
    position: relative;
}

.fp-usp__image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.fp-usp__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-usp__stat-card {
    position: absolute;
    bottom: -16px;
    right: 0;
    background: var(--t3br-mustard);
    color: var(--t3br-white);
    padding: 28px 32px;
    z-index: 2;
}

.fp-usp__stat-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

/* ==========================================
   6. RÉALISATIONS
   ========================================== */
.fp-realisations {
    padding: var(--t3br-spacing-4xl) 0;
    background: var(--t3br-cream);
}

.fp-realisations__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
}

.fp-tab-btn {
    padding: 10px 24px;
    font-family: var(--t3br-font-family);
    font-size: var(--t3br-font-size-sm);
    font-weight: var(--t3br-font-weight-medium);
    letter-spacing: 0.04em;
    border: 1px solid var(--t3br-border);
    background: transparent;
    color: var(--t3br-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fp-tab-btn.active,
.fp-tab-btn:hover {
    background: var(--t3br-deep-green);
    color: var(--t3br-white);
    border-color: var(--t3br-deep-green);
}

.fp-realisations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.fp-realisation-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.fp-realisation-card__img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.8s var(--t3br-ease-smooth);
}

.fp-realisation-card:hover .fp-realisation-card__img {
    transform: scale(1.06);
}

.fp-realisation-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 51, 41, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fp-realisation-card:hover .fp-realisation-card__overlay {
    opacity: 1;
}

.fp-realisation-card__tag {
    font-size: var(--t3br-font-size-xxs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--t3br-mustard);
    margin-bottom: 6px;
}

.fp-realisation-card__title {
    font-family: var(--t3br-font-family-display);
    font-size: 1.2rem;
    color: var(--t3br-white);
    margin: 0;
}

.fp-realisation-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.fp-realisations__cta {
    text-align: center;
    margin-top: 48px;
}

/* ==========================================
   7. STATS
   ========================================== */
.fp-stats {
    padding: 80px 0;
    background: var(--t3br-white);
    border-top: 1px solid var(--t3br-border);
    border-bottom: 1px solid var(--t3br-border);
}

.fp-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.fp-stat {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.fp-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--t3br-border);
}

.fp-stat__number {
    font-family: var(--t3br-font-family-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--t3br-deep-green);
    line-height: 1;
}

.fp-stat__suffix {
    font-size: 0.6em;
    color: var(--t3br-mustard);
}

.fp-stat__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--t3br-text-muted);
    margin-top: 10px;
}

/* ==========================================
   8. TRUST / PARTNERS (logos)
   ========================================== */
.fp-trust {
    padding: 100px 0;
    background: var(--t3br-cream);
}

.fp-partners {
    padding: 80px 0;
    background: var(--t3br-white);
    border-top: 1px solid var(--t3br-border);
}

.fp-trust__grid,
.fp-partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.fp-trust__grid {
    gap: 48px;
}

.fp-trust-item,
.fp-partner-item {
    max-width: 120px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.fp-partner-item {
    max-width: 100px;
    opacity: 0.4;
}

.fp-trust-item:hover,
.fp-partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.fp-trust-item img,
.fp-partner-item img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.fp-partner-item img {
    max-height: 40px;
}

/* ==========================================
   9. CTA
   ========================================== */
.fp-cta {
    padding: var(--t3br-spacing-4xl) 0;
    background: var(--t3br-deep-green);
    color: var(--t3br-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fp-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 162, 59, 0.08), transparent 70%);
    pointer-events: none;
}

.fp-cta__title {
    font-family: var(--t3br-font-family-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
}

.fp-cta__title em {
    font-style: italic;
    color: var(--t3br-mustard);
}

.fp-cta__text {
    font-size: var(--t3br-font-size-lg);
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: var(--t3br-line-height-relaxed);
}

.fp-cta__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fp-cta__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: transparent;
    color: var(--t3br-white);
    font-family: var(--t3br-font-family);
    font-size: var(--t3br-font-size-base);
    font-weight: var(--t3br-font-weight-medium);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s var(--t3br-ease-out);
    text-decoration: none;
}

.fp-cta__btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    color: var(--t3br-white);
}

