/* ============================================================
   Easy Services - Styles pages publiques
   css/site.css
   ============================================================ */

/* ============================================================
   HERO ACCUEIL
   ============================================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg,
        var(--hero-grad-start, #0a0a0a) 0%,
        var(--hero-grad-end, #0d1b2a) 100%);
    transition: background .5s ease;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/fondAccueil01.jpg');
    background-size: cover;
    background-position: center;
    opacity: .15;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,0,0,.35) 0%,
        rgba(0,0,0,.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(9,127,197,.2);
    border: 1px solid rgba(9,127,197,.3);
    color: #7ec8f0;
    font-size: .80rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.hero-title .accent {
    color: var(--es-blue);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--es-blue);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 8px 28px rgba(9,127,197,.35);
}
.btn-hero-primary:hover {
    background: var(--es-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(9,127,197,.45);
    color: #fff;
}

.btn-hero-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background .2s, border-color .2s, transform .15s;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.4);
    transform: translateY(-2px);
    color: #fff;
}

/* Stats hero */
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.hero-stat {
    border-left: 2px solid rgba(9,127,197,.4);
    padding-left: 16px;
}
.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

/* Image droite hero */
.hero-image-wrap {
    position: relative;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
}
.hero-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,10,1) 0%,
        rgba(10,10,10,.4) 30%,
        transparent 60%
    ),
    linear-gradient(
        to bottom,
        transparent 60%,
        rgba(10,10,10,.7) 100%
    );
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.4);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    z-index: 2;
}
.hero-scroll i { font-size: 1.2rem; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ÉVÉNEMENTS BANDEAU
   ============================================================ */
.evenements-section {
    padding: 60px 0;
    background: var(--es-grey-bg);
    border-top: 1px solid var(--es-grey-border);
    border-bottom: 1px solid var(--es-grey-border);
    overflow: hidden;
}

.evenements-inner {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

/* Texte décoratif en fond */
.evenements-bg-label {
    position: absolute;
    top: 50%; left: -20px;
    transform: translateY(-50%);
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 900;
    color: rgba(9,127,197,.05);
    letter-spacing: -.04em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    z-index: 0;
}

/* Colonne gauche */
.evenements-label {
    position: relative;
    z-index: 1;
    padding-top: 8px;
}
.evenements-titre-section {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 10px;
    color: var(--es-text);
    letter-spacing: -.03em;
}

/* Liste bandeaux */
.evenements-liste {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bandeau individuel */
.evenement-bandeau {
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    min-height: 64px;
    transition: transform .25s, box-shadow .25s;
}
.evenement-bandeau:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

/* Animation scroll sur chaque bandeau */
.ev-reveal {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: var(--ev-delay, 0ms);
}
.ev-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

.evenement-titre {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    background-color: var(--ev-color, var(--es-blue));
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 14px 16px;
    font-size: .90rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: filter .2s;
}
.evenement-bandeau:hover .evenement-titre { filter: brightness(1.1); }
.evenement-titre a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.evenement-corps {
    flex: 1;
    background: #fff;
    padding: 14px 20px;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.evenement-corps a {
    color: var(--es-text);
    text-decoration: none;
    font-weight: 500;
    transition: color .18s;
}
.evenement-corps a:hover { color: var(--ev-color, var(--es-blue)); }
.evenement-corps .ev-arrow {
    color: var(--ev-color, var(--es-blue));
    font-size: 1rem;
    transition: transform .2s;
    flex-shrink: 0;
}
.evenement-bandeau:hover .ev-arrow { transform: translateX(4px); }

@media (max-width: 768px) {
    .evenements-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .evenements-bg-label { display: none; }
    .evenement-titre { width: 140px; min-width: 140px; max-width: 140px; font-size: .80rem; }
}

/* ============================================================
   SECTION PILIERS
   ============================================================ */
.section-intro {
    padding: 80px 0 60px;
}
.section-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--es-blue);
    background: var(--es-blue-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.section-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
    color: var(--es-text);
    letter-spacing: -.02em;
}
.section-subtitle {
    color: var(--es-text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 560px;
}
.section-hr {
    border: none;
    border-top: 3px solid var(--es-blue);
    width: 48px;
    margin: 16px 0 32px;
    opacity: 1;
}

/* Cards métiers / piliers */
.metier-card {
    border: 1px solid var(--es-grey-border);
    border-radius: 18px;
    padding: 32px 24px;
    background: #fff;
    height: 100%;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}
.metier-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--es-blue), var(--es-blue-dark));
    transform: scaleX(0);
    transition: transform .3s;
    transform-origin: left;
}
.metier-card:hover {
    box-shadow: 0 12px 40px rgba(9,127,197,.12);
    transform: translateY(-4px);
    border-color: rgba(9,127,197,.2);
}
.metier-card:hover::before { transform: scaleX(1); }

.metier-card-icon {
    width: 56px; height: 56px;
    background: var(--es-blue-light);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--es-blue);
    margin-bottom: 20px;
    transition: background .25s, color .25s;
}
.metier-card:hover .metier-card-icon {
    background: var(--es-blue);
    color: #fff;
}
.metier-card img { max-height: 60px; margin-bottom: 16px; }
.metier-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.metier-card .sous-titre {
    color: var(--es-text-muted); font-size: .82rem; margin-bottom: 12px;
}
.metier-card p { font-size: .875rem; color: var(--es-text-muted); line-height: 1.7; }

/* ============================================================
   HERO MÉTIER / ÉVÉNEMENT
   ============================================================ */
.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2a, #0a1628);
    margin-bottom: 0;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .2;
    transition: opacity .3s;
}
.page-hero:hover .page-hero-bg { opacity: .25; }
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0 36px;
    width: 100%;
}
.page-hero-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}
.page-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}
.page-hero .lead {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============================================================
   ARTICLES
   ============================================================ */
.art-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.art-card {
    border: 1px solid var(--es-grey-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s, transform .25s;
    height: 100%;
}
.art-card-link:hover .art-card {
    box-shadow: 0 12px 40px rgba(9,127,197,.10);
    transform: translateY(-4px);
}
.art-card-img {
    width: 100%; height: 200px; object-fit: cover;
    transition: transform .35s;
}
.art-card-link:hover .art-card-img { transform: scale(1.03); }
.art-card-img-wrap { overflow: hidden; }
.art-card-date {
    background: var(--es-blue);
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.art-card-body { padding: 18px; }
.art-card-body strong { font-size: .95rem; font-weight: 700; color: var(--es-text); }
.art-card-body p { font-size: .85rem; color: var(--es-text-muted); margin: 6px 0 0; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    background: var(--es-grey-bg);
    border-radius: 20px;
    padding: 48px;
    margin-top: 64px;
}
.contact-info i { color: var(--es-blue); margin-right: 8px; }
.contact-info a { color: var(--es-text); text-decoration: none; }
.contact-info a:hover { color: var(--es-blue); }

/* ============================================================
   GALERIES PUBLIC
   ============================================================ */
.gal-pub-link {
    display: block; text-decoration: none; color: inherit; height: 100%;
}
.gal-pub-card {
    border: 1px solid var(--es-grey-border);
    border-radius: 18px; overflow: hidden;
    background: #fff;
    transition: box-shadow .25s, transform .25s;
    height: 100%;
}
.gal-pub-link:hover .gal-pub-card {
    box-shadow: 0 12px 40px rgba(9,127,197,.10);
    transform: translateY(-4px);
}
.gal-pub-cover {
    position: relative; height: 210px;
    background: var(--es-grey-bg); overflow: hidden;
}
.gal-pub-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.gal-pub-link:hover .gal-pub-cover img { transform: scale(1.04); }
.gal-pub-nocover {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--es-grey-border);
}
.gal-pub-count {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.55); color: #fff;
    border-radius: 6px; padding: 3px 10px;
    font-size: .75rem; font-weight: 600;
}
.gal-pub-body { padding: 16px; }
.gal-pub-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.gal-pub-meta { font-size: .82rem; color: var(--es-text-muted); margin-bottom: 2px; }
.gal-pub-meta i { margin-right: 4px; }

/* ============================================================
   CHIPS MÉTIERS
   ============================================================ */
.metier-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--es-grey-border);
    background: #fff; color: var(--es-text);
    text-decoration: none; font-size: .85rem;
    transition: all .18s;
}
.metier-chip:hover {
    border-color: var(--es-blue);
    background: var(--es-blue-light);
    color: var(--es-blue);
    transform: translateY(-1px);
}

/* ============================================================
   CAROUSEL TEXT (legacy → redirigé vers hero)
   ============================================================ */
.carousel-text {
    text-align: center;
    background: rgba(255,255,255,.92);
    padding: 28px 36px;
    margin: 24px auto;
    border-radius: 18px;
    max-width: 860px;
    border: 1px solid var(--es-grey-border);
}
.carousel-text h1 { font-weight: 800; color: var(--es-text); letter-spacing: -.02em; }

/* ============================================================
   PAGE 404
   ============================================================ */
.error-container { text-align: center; padding: 80px 20px; }
.error-code {
    font-size: 7rem; font-weight: 900;
    color: var(--es-blue); line-height: 1;
    opacity: .15;
}
.error-message { font-size: 1.4rem; margin: 16px 0 32px; color: var(--es-text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero-stats { gap: 20px; }
    .evenement-titre { min-width: 130px; font-size: .80rem; }
    .contact-section { padding: 28px 20px; }
    .page-hero { min-height: 220px; }
}
