/* Disable image dragging */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* =========================
   HERO SECTION
======================== */

.actu-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #1a3a2a 100%);
  overflow: hidden;
}

.actu-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 50vh;
  padding: 0 max(1.5rem, 3vw);
}

.actu-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem 2rem 0;
  z-index: 2;
  position: relative;
}

.actu-hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.actu-hero-accent {
  color: var(--color-accent);
}

.actu-hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 2rem;
}

.actu-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.actu-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.actu-btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.actu-btn-primary:hover {
  background: #2a5e30;
  border-color: #2a5e30;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 120, 61, 0.3);
}

.actu-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.actu-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.actu-hero-media {
  position: relative;
  overflow: hidden;
}

.actu-hero-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a3a2a 0%, #0d1b2a 50%, #2a1a3a 100%);
}

/* =========================
   BLOG PAGE
======================== */

.blog-page {
    padding: 60px 8%;
    background-image: url('../images/news/actualites-bg.png');
    background-size: cover;
    background-position: center;
}

/* =========================
   BLOG PAGE
========================= */

.blog-page {
    padding: 60px 8%;
    background-image: url('../images/news/actualites-bg.png');
    background-size: cover;
    background-position: center;
}

/* =========================
   FEATURED POST
========================= */

.featured-post {
    display: flex;
    height: 520px;
    margin-bottom: 30px;
    border-radius: 0px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.featured-img {
    width: 50%;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    width: 50%;
    padding: 40px;
    background: #f7f7f7;
}

.tag {
    font-size: 12px;
    color: #5e2224;
    font-weight: bold;
}

.featured-content h1 {
    margin: 15px 0;
}

.featured-content p {
    color: #555;
    line-height: 1.6;
}

.meta {
    margin-top: 20px;
    font-size: 13px;
    color: gray;
}

/* =========================
   Glassmorphism Tags
========================= */

.glass-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.glass-tags span {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 13px;
    color: #222;
}

/* =========================
   DIVIDER TEXT SECTIONS
========================= */

.section-label {
    text-align: center;
    margin: 20px 0;
}

.section-label span {
    font-size: 13px;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    flex: 1 1 auto;
    min-width: 220px;
}

.section-header p {
    margin: 0;
    font-size: 1rem;
    color: #555;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* =========================
   GRID
========================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post-card {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    background: #fff;
}

.post-img {
    height: 180px;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    padding: 15px;
}

.post-info h3 {
    margin-bottom: 10px;
}

/* =========================
   SECTION 2 — PRESSE GRID
========================= */

.presse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 24px 0;
}

.post-card--presse {
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    background: #fff;
}

.post-card--presse .post-img {
    height: 180px;
    overflow: hidden;
}

.post-card--presse .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card--presse .post-info {
    padding: 15px;
}

.post-card--presse .post-info h3 {
    margin-bottom: 10px;
}

.presse-empty,
.autres-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* =========================
   FEATURED PRESS POST
========================= */

.presse-featured {
    display: flex;
    flex-direction: row;
    min-height: 340px;
    max-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border-left: 4px solid #c0392b;
    cursor: pointer;
    margin: 0 30px 28px;
}

.presse-featured-img {
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
}

.presse-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.presse-featured-badge {
    display: inline-block;
    background: #b71c1c;
    color: #fff;
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    align-self: flex-start;
}

.presse-featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    gap: 16px;
}

.presse-featured-body h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
    max-width: 520px;
    margin: 0;
}

.presse-featured-body .meta {
    font-size: 0.82rem;
    color: #888;
    margin-top: 8px;
}

.presse-featured-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.presse-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b71c1c;
    border: 1.5px solid #b71c1c;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.presse-featured-link:hover {
    background: #b71c1c;
    color: #fff;
}

/* =========================
   SECTION LABELS
========================= */

.section-presse,
.section-autres {
    margin-bottom: 48px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .featured-post {
        flex-direction: column;
        height: auto;
    }

    .featured-img,
    .featured-content {
        width: 100%;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .presse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .presse-featured {
        flex-direction: column;
        min-height: auto;
        max-height: none;
        margin: 0 20px 24px;
    }
    .presse-featured-img {
        width: 100%;
        height: 220px;
    }
    .presse-featured-body {
        padding: 24px;
    }
}

@media (max-width: 599px) {
    .presse-featured {
        margin: 0 0 20px;
    }

    .presse-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   NEWS POPUP
========================= */

.popup {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.popup-content {
    position: relative;
    width: min(680px, 95%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.popup-header {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.popup-header .popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.popup-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 32px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.popup-badge,
.popup-date {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.popup-badge {
    background: #b71c1c;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.popup-body {
    padding: 32px 40px 40px;
    overflow-y: auto;
}

.popup-title {
    margin: 0 0 16px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;
}

.popup-text {
    color: #444;
    line-height: 1.85;
    font-size: 1rem;
}

.popup-text p {
    margin-bottom: 20px;
}

.popup-embed,
.actualite-embed,
.embed-container {
    width: 100%;
    max-width: 100%;
}
.popup-embed {
    margin-top: 24px;
}
.popup-embed iframe,
.actualite-embed iframe,
.embed-container iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 320px;
    border-radius: 12px;
    display: block;
}

.external-embed,
.external-embed-card {
    display: block;
    padding: 14px 16px;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-top: 10px;
}
.external-embed:hover {
    background: #eaeaea;
}
.external-embed-card p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #111;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.popup-close:hover {
    background: #f0f0f0;
}

@media (max-width: 1024px) {
    .actu-hero-title {
        font-size: 2.75rem;
    }
    .actu-hero-content {
        padding: 2rem 1.5rem 2rem 0;
    }
    .actu-hero-grid {
        grid-template-columns: 1fr 1.1fr;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .popup-content {
        max-width: 960px;
        width: 90vw;
    }
    .popup-header {
        height: 300px;
    }
    .popup-body {
        padding: 40px 56px 56px;
    }
    .popup-title {
        font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    }
}

@media (max-width: 900px) {
    .popup-content {
        max-height: 85vh;
    }

    .popup-body {
        padding: 24px 28px 32px;
    }
}

@media (max-width: 768px) {
    .actu-hero {
        min-height: auto;
    }
    .actu-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
    }
    .actu-hero-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    .actu-hero-media {
        min-height: 240px;
        order: -1;
    }
    .actu-hero-title {
        font-size: 2.2rem;
    }
    .actu-hero-desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .actu-hero-content {
        padding: 1.5rem 1.25rem;
    }
    .actu-hero-title {
        font-size: 1.8rem;
    }
    .actu-hero-ctas {
        flex-direction: column;
    }
    .actu-btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) {
    .blog-page {
        padding: 50px 6%;
    }

    .featured-post {
        height: 400px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h1 {
        font-size: 28px;
    }

    .featured-content p {
        font-size: 14px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        gap: 30px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* Smaller Tablet/Large Phone (600px to 767px) */
@media (max-width: 767px) {
    .blog-page {
        padding: 40px 5%;
    }

    .featured-post {
        flex-direction: column;
        height: auto;
        margin-bottom: 25px;
    }

    .featured-img {
        width: 100%;
        height: 250px;
    }

    .featured-content {
        width: 100%;
        padding: 25px;
    }

    .featured-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .featured-content p {
        font-size: 14px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-card {
        height: auto;
    }

    .glass-tags {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .glass-tags span {
        font-size: 12px;
        padding: 8px 12px;
    }

    .section-label {
        margin: 20px 0;
    }

    .section-label span {
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 14px;
    }

    .search-heading h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .popup-header {
        height: 200px;
    }

    .popup-title {
        font-size: 24px;
    }
}

/* Mobile Phone (max 599px) */
@media (max-width: 599px) {
    * {
        margin: 0;
        padding: 0;
    }

    body {
        font-size: 13px;
    }

    .blog-page {
        padding: 30px 4%;
    }

    .featured-post {
        flex-direction: column;
        height: auto;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .featured-img {
        width: 100%;
        height: 200px;
    }

    .featured-content {
        width: 100%;
        padding: 20px;
        background: #fff;
    }

    .tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .featured-content h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .featured-content p {
        font-size: 12px;
        line-height: 1.4;
    }

    .meta {
        font-size: 11px;
        margin-top: 10px;
    }

    .glass-tags {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .glass-tags span {
        display: block;
        font-size: 11px;
        padding: 6px 10px;
        text-align: left;
    }

    .section-label {
        margin: 15px 0;
    }

    .section-label span {
        font-size: 12px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-header p {
        font-size: 12px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-card {
        height: auto;
        border-radius: 8px;
    }

    .post-img {
        height: 180px;
    }

    .post-img img {
        height: 100%;
        object-fit: cover;
    }

    .post-info {
        padding: 12px;
    }

    .post-info h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .post-info .meta {
        font-size: 11px;
    }

    .search-heading {
        margin-bottom: 20px;
    }

    .search-heading h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .search-no-results {
        padding: 20px;
        text-align: center;
        background: #f5f5f5;
        border-radius: 8px;
    }

    .search-no-results p {
        font-size: 14px;
        color: #666;
    }

    .popup-content {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 12px;
    }

    .popup-header {
        height: 180px;
    }

    .popup-body {
        padding: 20px 20px 28px;
    }

    .popup-title {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .popup-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}
