/* ==============================
   HOME PAGE — home.css
   Nav et footer → freelancer.css (ne pas dupliquer ici).
   ============================== */

/* ---- Page : flex column pour tout caler en 100vh ---- */

body.index {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

body.index > .navbar {
    flex-shrink: 0;
}

body.index > main {
    flex: 1;
    min-height: 0;
    background-color: #ffffff;
}

body.index > footer {
    flex-shrink: 0;
}

/* Masquer les sections cachées pour qu'elles ne prennent pas d'espace */
body.index > #portfolio,
body.index > #contact,
body.index > .scroll-top {
    display: none;
}

/* ---- Layout principal ---- */

.home-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
    margin: 0;
    height: 100%;
    background: #eaebec!important;
}

/* ==============================
   COLONNE GAUCHE — hero (fond blanc)
   ============================== */

.home-col-main {
    flex: 1 1 65%;
    background-color: #eaebec;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-neutral-1000);
}

/* Titre + illustration */
.home-hero-visual {
    position: relative;
    background-color: #eaebec;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 0;
    flex-shrink: 1;
}

.home-hero-visual .intro-text {
    margin-bottom: 20px;
    flex-shrink: 0;
    align-self: center;
    text-align: center;
}

.home-hero-tagline {
    display: inline;
    font-size: 2em;
    font-weight: 800;
    line-height: 1.4;
    font-style: italic;
    color: transparent;
    background: #00a4c0;
    -webkit-background-clip: text;
    background-clip: text;
    border-bottom: 3px solid #00a4c0;
    padding-bottom: 4px;
}

.home-hero-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    flex-shrink: 1;
    min-height: 0;
    margin: 0 auto;
    border-radius: 7px;
}

/* Section CTA */
.home-hero-content {
    padding: 4px 32px 0;
    text-align: center;
    flex-shrink: 0;
    background-color: #eaebec;
}

.home-btn-row {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.home-btn-cta {
    display: block!important;
    background-color: var(--clr-base-green)!important;
    border-color: var(--clr-base-green)!important;
    padding: 1.2em 12em!important;
    border-radius: 6px!important;
    font-weight: 700!important;
    font-size: 1.1em!important;
    letter-spacing: 0.06em;
    text-transform: uppercase!important;
    transition: background-color 0.2s, border-color 0.2s;
}

.home-btn-cta:hover,
.home-btn-cta:focus {
    background-color: #7aaa38!important;
    border-color: #7aaa38!important;
    color: #ffffff;
}

.home-btn-text {
    color: #ffffff;
}

.home-log-hidden {
    display: none;
}

/* ==============================
   COLONNE DROITE — news (fond #00a4c0)
   ============================== */

.home-col-news {
    flex: 1 1 35%;
    background-color: #00a4c0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 16px 24px;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    margin-bottom: 18px;
}

/* Titre NEWS — blanc + soulignement décoratif */
.home-news-title {
    font-size: 1.6em;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
    line-height: 1;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.home-news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
}

/* Bloc newsletter */
.home-newsletter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    width: 100%;
}

/* Wrapper image + date */
.home-newsletter-img-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;
    min-height: 0;
    width: 100%;
}

.home-newsletter-img-link {
    display: inline-flex;
    flex-shrink: 1;
    min-height: 0;
}

.home-news-img {
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Date "Mars 2026" — centrée sous l'image */
.home-newsletter-date {
    display: block;
    margin-top: 6px;
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    text-align: center;
}

.home-newsletter-caption {
    font-size: 1.8rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 14px;
    flex-shrink: 0;
    text-align: center;
}

/* Bouton téléchargement — fond blanc, texte teal */
.home-news-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    color: #00899e;
    background-color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    transform: none;
    align-self: center;
    flex-shrink: 0;
}

.home-col-news .home-news-dl-btn:hover,
.home-col-news .home-news-dl-btn:focus,
.home-col-news .home-news-dl-btn:active,
.home-col-news .home-news-dl-btn.active {
    background-color: #00899e !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
    transform: none !important;
}

.home-news-dl-btn .fa {
    font-size: 1.2em;
}

/* ==============================
   Footer — compact
   ============================== */

body.index footer .footer-above {
    padding-top: 15px;
}

body.index footer .footer-col {
    margin-bottom: 10px;
}

body.index footer .footer-below {
    padding: 8px 0;
}

body.index footer h3 {
    margin-bottom: 10px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 960px) {
    body.index {
        height: auto;
        overflow: visible;
    }

    .home-layout {
        flex-direction: column;
        height: auto;
    }

    .home-col-main,
    .home-col-news {
        flex: 0 0 auto;
        width: 100%;
    }

    .home-hero-visual {
        min-height: 300px;
    }

    .home-hero-img {
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .home-hero-visual {
        padding: 16px 16px 0;
        min-height: 220px;
    }

    .home-hero-tagline {
        font-size: 1.15em;
    }

    .home-hero-content {
        padding: 12px 16px 16px;
    }

    .home-col-news {
        padding: 20px 16px;
    }

    .home-news-title {
        font-size: 1.3em;
    }
}
