@import url("https://fonts.googleapis.com/css?family=Barriecito|Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900");

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16pt;
}

@media screen and (max-width: 1680px) { html { font-size: 12pt; } }
@media screen and (max-width: 1280px) { html { font-size: 11pt; } }
@media screen and (max-width: 736px) { html { font-size: 10pt; } }

body {
    background-color: #1e252d;
    color: #212931;
    font-family: "Merriweather", Georgia, serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 2.375;
    min-height: 100vh;
}

/* ========== FOND D'ÉCRAN ========== */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212931;
    background-image: url('../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/bg.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: repeat, no-repeat, no-repeat;
    z-index: -2;
}

/* ========== TYPOGRAPHIE ========== */
a {
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: dotted 1px;
    text-decoration: none;
    color: #212931;
    border-bottom-color: rgba(33, 41, 49, 0.5);
    cursor: pointer;
}
a:hover {
    border-bottom-color: transparent;
    color: #ef3934 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Barriecito", "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    color: #212931;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0 0 2rem 0;
}
h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
}
h3 {
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
}

h1, .red-title, header.major h2, #intro h2 {
    color: #ef3934;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.6);
}

#intro h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

p {
    margin: 0 0 2rem 0;
    text-align: justify;
}

/* ========== WRAPPER ========== */
#wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ========== INTRO ========== */
#intro {
    color: #ffffff;
    padding: 8rem 4rem 6rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
#intro h1 {
    color: #ef3934;
    font-family: "Barriecito", cursive;
    font-size: 5rem;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}
#intro p {
    color: #ffffff;
    font-size: 1.25rem;
    font-style: italic;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
#intro a {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.5);
}
#intro a:hover {
    color: #ef3934 !important;
}

@media screen and (max-width: 980px) {
    #intro {
        padding: 4rem 4rem 2rem 4rem;
        min-height: 90vh;
    }
    #intro h1 { font-size: 4rem; }
}
@media screen and (max-width: 736px) {
    #intro {
        padding: 3rem 2rem 1rem 2rem;
        min-height: 80vh;
    }
    #intro h1 { font-size: 3.25rem; margin-bottom: 1rem; }
    #intro p { font-size: 1rem; }
    #intro h2 { font-size: 1.2rem; }
}

/* ========== HEADER ========== */
#header {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    height: 20rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 2;
}
#header .logo {
    transition: all 0.2s ease;
    border: 5px solid #ef3934;
    font-family: "Barriecito", "Source Sans Pro", Helvetica, sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    padding: 1rem 1.75rem;
    text-transform: uppercase;
    color: #ef3934;
    text-decoration: none;
    background: rgba(0,0,0,0.4);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.4);
}
#header .logo:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

@media screen and (max-width: 980px) {
    #header {
        height: 14rem;
        padding-bottom: 4rem;
    }
}
@media screen and (max-width: 736px) {
    #header .logo {
        font-size: 1.75rem;
        border-width: 3px !important;
    }
}

/* ========== NAVIGATION ========== */
#nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    margin: -4rem auto 0 auto;
    width: calc(100% - 4rem);
    max-width: 72rem;
    z-index: 2;
    position: relative;
    border-radius: 8px;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 2rem;
    min-height: 4rem;
}
.nav-container .links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-container .links li a {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0 1rem;
    display: block;
    line-height: 4rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.nav-container .links li a:hover {
    background-color: rgba(239, 57, 52, 0.3);
    color: #ef3934 !important;
    border-radius: 4px;
}
.nav-container .icons {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-container .icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    opacity: 0.8;
    transition: all 0.2s ease;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}
.nav-container .icons li a:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #ef3934;
}
.nav-container .icons li a img {
    width: 20px;
    height: 20px;
    display: block;
}

@media screen and (max-width: 980px) {
    #nav {
        display: none;
    }
}

/* ========== SELECT PAYS DESKTOP ========== */
.country-select-wrapper {
    display: inline-block;
    margin: 0 15px;
}
.country-select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ef3934;
    border-radius: 4px;
    color: #fff;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ef3934'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.country-select:hover {
    background-color: rgba(239, 57, 52, 0.3);
    border-color: #fff;
}
.country-select option {
    background-color: #1e252d;
    color: #fff;
    padding: 8px 12px;
}

/* ========== MAIN ========== */
#main {
    background-color: #ffffff;
    margin: 0 auto;
    width: calc(100% - 4rem);
    max-width: 72rem;
    z-index: 2;
    position: relative;
    border-radius: 8px 8px 0 0;
}
.post {
    padding: 8rem 8rem 6rem 8rem;
    text-align: center;
}
.post header.major {
    margin: 0 0 4rem 0;
    text-align: center;
}
.post header.major .date {
    font-size: 1rem;
    margin: 0 0 4rem 0;
    position: relative;
    display: inline-block;
    color: #ef3934;
    font-weight: bold;
}
.post header.major .date:before,
.post header.major .date:after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 6rem);
    border-top: solid 2px #ef3934;
}
.post header.major .date:before {
    left: -7rem;
}
.post header.major .date:after {
    right: -7rem;
}
.post header.major h2 {
    color: #ef3934;
    font-family: "Barriecito", cursive;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Survey Container */
.survey-container {
    width: 100%;
}
.survey-container iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 8px;
}

@media screen and (max-width: 1280px) {
    .post {
        padding: 6rem 4rem 4rem 4rem;
    }
    .survey-container iframe {
        height: 600px;
    }
}
@media screen and (max-width: 736px) {
    .post {
        padding: 4rem 2rem 2rem 2rem;
    }
    .post header.major .date:before,
    .post header.major .date:after {
        display: none;
    }
    .survey-container iframe {
        height: 500px;
    }
    .post header.major h2 {
        font-size: 2rem;
    }
}

/* ========== COPYRIGHT ========== */
#copyright {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-align: center;
    text-transform: uppercase;
    margin: 4rem auto 8rem auto;
    width: calc(100% - 4rem);
    max-width: 72rem;
    z-index: 2;
    position: relative;
}
#copyright ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#copyright ul li {
    border-left: solid 2px rgba(255, 255, 255, 0.3);
    display: inline-block;
    line-height: 1;
    margin-left: 1rem;
    padding-left: 1rem;
}
#copyright ul li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}
#copyright a {
    color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}
#copyright a:hover {
    color: #ef3934 !important;
}

@media screen and (max-width: 480px) {
    #copyright ul li {
        border-left: 0;
        display: block;
        margin: 1rem 0 0 0;
        padding-left: 0;
    }
    #copyright ul li:first-child {
        margin-top: 0;
    }
}

.flag-counter {
    text-align: center;
    margin-top: 2rem;
}
.flag-counter img {
    max-width: 100%;
    height: auto;
}

/* ========== MENU MOBILE ========== */
.menu-toggle {
    display: none;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ef3934;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}
.menu-toggle:hover {
    background: rgba(239, 57, 52, 0.3);
}

.mobile-menu-hint {
    display: none;
    background: #ef3934;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.floating-country-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ef3934;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    font-size: 26px;
    cursor: pointer;
    z-index: 10003;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.floating-country-btn:hover {
    transform: scale(1.05);
    background: #d4322e;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #1e252d;
    z-index: 10002;
    overflow-y: auto;
    transition: right 0.3s ease;
}
.mobile-menu.show {
    right: 0;
    display: block;
}
.mobile-menu-content {
    padding: 70px 20px 20px;
}
.mobile-menu-content a {
    display: block;
    padding: 12px 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s;
    cursor: pointer;
}
.mobile-menu-content a:hover {
    color: #ef3934;
}
.mobile-menu-content .country-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-menu-content .country-item .flag-icon {
    font-size: 1.2rem;
    width: 28px;
    display: inline-block;
}
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-close:hover {
    color: #ef3934;
}
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}
.menu-overlay.show {
    display: block;
}
body.menu-open {
    overflow: hidden;
}

@media screen and (max-width: 980px) {
    .menu-toggle {
        display: inline-block;
    }
    .country-select-wrapper {
        display: none;
    }
    .mobile-menu-hint {
        display: block;
    }
    .floating-country-btn {
        display: block;
    }
}