/* =================================
   GLOBAL STYLES (ETAP 0)
   ================================= */

/* CSS Variables */
:root {
    --background-color: #111827;
    --text-color: #D1D5DB;
    --primary-color: #38BDF8;
    --secondary-color: #4B5563;
    --header-height: 70px;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* Base & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-header);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

address {
    font-style: normal;
}

/* =================================
   HEADER (ETAP 1)
   ================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--secondary-color);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.header__logo:hover {
    color: var(--primary-color);
}

.header__nav {
    display: none; /* Mobile first: hide on small screens */
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header__nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-family: var(--font-header);
    padding: 5px 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--cta {
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--cta:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}
.header__nav-link--cta::after {
    display: none;
}


.header__burger-menu {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.header__burger-menu i {
    width: 28px;
    height: 28px;
}

/* Desktop Styles for Header */
@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    .header__burger-menu {
        display: none;
    }
}


/* =================================
   FOOTER (ETAP 2)
   ================================= */
.footer {
    padding: 60px 0;
    background-color: #0d121c; /* Slightly darker than main bg */
    border-top: 1px solid var(--secondary-color);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 576px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer__logo {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-bottom: 15px;
}
.footer__logo:hover {
    color: var(--primary-color);
}

.footer__copy {
    font-size: 14px;
    color: var(--secondary-color);
}

.footer__title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    color: var(--text-color);
    font-size: 15px;
}

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
    margin-top: 3px;
}

/* =================================
   UTILITY & SHARED CLASSES
   ================================= */
.button {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 16px;
    color: var(--background-color);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}


/* =================================
   HERO SECTION (ETAP 3)
   ================================= */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* To hide elements before animation */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hero__title {
    font-size: 36px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 48px;
    }
}

.hero__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero__image-wrapper img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* --- Animation classes --- */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-load.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__text-content .animate-on-load:nth-child(1) { transition-delay: 200ms; }
.hero__text-content .animate-on-load:nth-child(2) { transition-delay: 400ms; }
.hero__text-content .animate-on-load:nth-child(3) { transition-delay: 600ms; }
.hero__visual-content.animate-on-load { transition-delay: 300ms; }

/* =================================
   SECTION HEADER (SHARED)
   ================================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--text-color);
}

/* =================================
   STORIES SECTION (ETAP 3.1)
   ================================= */
.stories-section {
    padding: 80px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.story-card {
    background-color: #1a2233; /* Darker than hero, but lighter than footer */
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.story-card__image-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-card__image-wrapper img {
    transform: scale(1.05);
}

.story-card__content {
    padding: 20px;
    flex-grow: 1; /* Pushes footer to the bottom */
}

.story-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.story-card__tag {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    font-family: var(--font-header);
}

.story-card__title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.story-card__title a {
    color: #fff;
}

.story-card__title a:hover {
    color: var(--primary-color);
}

.story-card__excerpt {
    font-size: 15px;
    color: var(--text-color);
}

.story-card__footer {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--secondary-color);
    margin-top: 20px;
    padding-top: 20px;
}

.story-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-card__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.story-card__author-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}

.story-card__author-role {
    font-size: 13px;
    color: var(--text-color);
}

.story-card__read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--text-color);
}

.story-card__read-more:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-color);
}
/* =================================
   CASES SECTION (ETAP 3.2)
   ================================= */
.cases-section {
    padding: 80px 0;
    background-color: #0d121c; /* A bit darker to separate sections */
}

.cases-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.case-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .case-item {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.case-item__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.case-item__image-wrapper img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

/* Modifier to reverse the layout */
@media (min-width: 992px) {
    .case-item--reversed .case-item__image-wrapper {
        order: 2;
    }
    .case-item--reversed .case-item__content {
        order: 1;
    }
}

.case-item__label {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    font-family: var(--font-header);
    margin-bottom: 15px;
}

.case-item__title {
    font-size: 28px;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 15px;
}

.case-item__description {
    margin-bottom: 25px;
}

.case-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.case-item__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
}

.case-item__stat i {
    color: var(--primary-color);
}

/* --- Animation classes for scroll --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* =================================
   ANALYTICS SECTION (ETAP 3.3)
   ================================= */
.analytics-section {
    padding: 80px 0;
}

.analytics-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .analytics-layout {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }
}

/* Featured Article Styles */
.analytics-featured {
    background-color: #1a2233;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
}

.analytics-featured__image-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.analytics-featured__content {
    padding: 30px;
}

.analytics-featured__title {
    font-size: 24px;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 15px;
}

.analytics-featured__excerpt {
    margin-bottom: 25px;
}

.analytics-featured__stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.stat-item__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-header);
    color: var(--primary-color);
}

.stat-item__label {
    font-size: 14px;
    color: var(--text-color);
}

/* Sidebar Styles */
.analytics-sidebar {
    padding: 30px;
    background-color: #1a2233;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
}

.analytics-sidebar__title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--secondary-color);
}

.analytics-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.analytics-sidebar__list li a {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.5;
    display: block;
    position: relative;
    padding-left: 20px;
}

.analytics-sidebar__list li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.analytics-sidebar__list li a:hover {
    color: var(--primary-color);
}

.analytics-sidebar__list li a:hover::before {
    transform: translateX(5px);
}
/* =================================
   INTERVIEWS SECTION (ETAP 3.4)
   ================================= */
.interviews-section {
    padding: 80px 0;
    background-color: #0d121c; /* Dark background like cases section */
}

.interviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.interview-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .interview-item {
        grid-template-columns: 1fr 1.5fr; /* Make text part wider */
        gap: 60px;
    }
}

.interview-item__image-wrapper {
    border-radius: 50%; /* Circular image for a personal touch */
    overflow: hidden;
    border: 1px solid var(--secondary-color);
    max-width: 300px;
    margin: 0 auto; /* Center on mobile */
}

.interview-item__image-wrapper img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

/* Modifier to reverse the layout */
@media (min-width: 992px) {
    .interview-item--reversed {
        grid-template-columns: 1.5fr 1fr;
    }
    .interview-item--reversed .interview-item__image-wrapper {
        order: 2;
    }
    .interview-item--reversed .interview-item__content {
        order: 1;
    }
}

.interview-item__quote {
    font-size: 24px;
    font-style: italic;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 25px;
    padding-left: 40px;
    border-left: 3px solid var(--primary-color);
}

@media (min-width: 768px) {
    .interview-item__quote {
        font-size: 28px;
    }
}

.interview-item__author {
    margin-bottom: 30px;
}

.interview-item__author-name {
    display: block;
    font-family: var(--font-header);
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-color);
}

.interview-item__author-role {
    font-style: normal;
    font-size: 15px;
}

/* =================================
   CONTACT SECTION (ETAP 4)
   ================================= */
.contact-section {
    padding: 80px 0;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #1a2233;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .contact-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.contact-form__input {
    width: 100%;
    padding: 12px;
    background-color: var(--background-color);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.contact-form__input.is-invalid {
    border-color: #ef4444; /* Red for error */
}

.contact-form__captcha {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: 8px;
    text-align: center;
}

.contact-form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form__group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}
.contact-form__group--checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}
.contact-form__group--checkbox a {
    text-decoration: underline;
}

.contact-form__submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}
.contact-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form feedback messages */
.form-message {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.form-message--success {
    background-color: rgba(22, 163, 74, 0.2); /* Green */
    color: #4ade80;
    border: 1px solid #22c55e;
}
.form-message--error {
    background-color: rgba(239, 68, 68, 0.2); /* Red */
    color: #f87171;
    border: 1px solid #ef4444;
}

/* =================================
   COOKIE POPUP (ETAP 5.1)
   ================================= */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a2233;
    border-top: 1px solid var(--secondary-color);
    padding: 20px 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row;
    }
}

.cookie-popup__text {
    color: var(--text-color);
    text-align: center;
}

.cookie-popup__text a {
    text-decoration: underline;
}

.cookie-popup__button {
    flex-shrink: 0;
    padding: 8px 24px;
}

/* =================================
   PAGES (PRIVACY, TERMS, ETC.) (ETAP 5.2)
   ================================= */
.pages {
    padding: calc(var(--header-height) + 40px) 0 80px;
    min-height: 100vh;
}

.pages .container {
    max-width: 800px;
}

.pages h1, .pages h2 {
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
}

.pages p {
    margin-bottom: 15px;
}

.pages a {
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}

.pages ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.pages li {
    margin-bottom: 10px;
}

.pages strong {
    color: #fff;
    font-weight: 700;
}