
/* ==================================================
   STAR WARS — L'ÈRE DE LA RÉPUBLIQUE
   RESPONSIVE DESIGN
================================================== */

/* GRANDS ÉCRANS */

@media screen and (min-width: 1800px) {

    .hero-container {
        max-width: 1600px;
    }

    .hero-emblem {
        max-width: 600px;
    }

    .section {
        padding-top: 160px;
        padding-bottom: 160px;
    }

}

/* ORDINATEURS */

@media screen and (max-width: 1400px) {

    .header-container {
        padding: 0 4%;
        gap: 20px;
    }

    .navigation {
        gap: 22px;
    }

    .nav-link {
        font-size: 13px;
    }

    .brand-text strong {
        font-size: 24px;
    }

    .brand-text span {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .hero-container {
        gap: 55px;
    }

    .universe-layout,
    .development-layout {
        gap: 65px;
    }

    .planet-content {
        padding: 25px;
    }

    .information-item {
        gap: 15px;
        padding: 20px;
    }

    .information-item strong {
        font-size: 17px;
    }

}

/* PETITS ORDINATEURS */

@media screen and (max-width: 1200px) {

    :root {
        --header-height: 78px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand {
        gap: 10px;
    }

    .navigation {
        gap: 17px;
    }

    .nav-link {
        font-size: 12px;
        letter-spacing: .5px;
    }

    .header-discord {
        padding: 11px 16px;
        font-size: 13px;
    }

    .hero {
        padding: 135px 5% 110px;
    }

    .hero-container {
        grid-template-columns: 1.1fr .9fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(65px, 8.5vw, 110px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-emblem {
        max-width: 420px;
    }

    .hero-actions {
        gap: 12px;
    }

    .button {
        font-size: 13px;
        padding: 14px 20px;
    }

    .section {
        padding: 100px 5%;
    }

    .universe-layout,
    .development-layout {
        gap: 45px;
    }

    .universe-visual {
        min-height: 480px;
    }

    .planet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .planet-card {
        min-height: 470px;
    }

    .planet-content h3 {
        font-size: 45px;
    }

    .planet-top {
        top: 20px;
        left: 20px;
        right: 20px;
        font-size: 9px;
    }

    .planet-content {
        padding: 22px;
    }

    .information-item i {
        font-size: 22px;
    }

    .information-item strong {
        font-size: 15px;
    }

    .footer-container {
        gap: 40px;
    }

}

/* TABLETTES ET PETITS ÉCRANS */

@media screen and (max-width: 1024px) {

    :root {
        --header-height: 122px;
    }

    html {
        scroll-padding-top: 140px;
    }

    /* Navigation sur deux lignes */

    .header-container {
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 20px;
        padding: 0 5%;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        min-height: 74px;
    }

    .header-discord {
        grid-column: 2;
        grid-row: 1;
    }

    .navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        gap: 30px;
        border-top: 1px solid var(--border);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .navigation::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 13px;
        padding: 13px 0;
        flex-shrink: 0;
    }

    .nav-link::after {
        bottom: 0;
    }

    /* Introduction */

    .hero {
        min-height: 900px;
        padding: 190px 6% 120px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(60px, 9vw, 95px);
    }

    .hero-coordinate {
        top: 145px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-emblem {
        max-width: 360px;
    }

    .emblem-caption strong {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Informations */

    .information-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .information-item {
        min-height: 100px;
    }

    .information-item:nth-child(2) {
        border-right: none;
    }

    .information-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .information-item strong {
        font-size: 18px;
    }

    /* Sections */

    .section {
        padding: 90px 6%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .section-heading > p {
        max-width: 600px;
    }

    .universe-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .universe-visual {
        min-height: 430px;
    }

    .universe-content {
        max-width: 800px;
    }

    /* Planètes */

    .planet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .planet-coruscant {
        grid-column: 1 / -1;
        min-height: 420px;
    }

    .planet-coruscant .planet-content {
        max-width: 550px;
    }

    .planet-content h3 {
        font-size: 55px;
    }

    /* Développement */

    .development-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .development-panel {
        max-width: 700px;
        width: 100%;
    }

    /* Footer */

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 25px;
        border-bottom: 1px solid var(--border);
    }

    .footer-bottom {
        flex-wrap: wrap;
    }

    .legal-notice {
        order: 3;
        max-width: 100%;
    }

}

/* TÉLÉPHONES ET TABLETTES VERTICALES */

@media screen and (max-width: 768px) {

    body {
        font-size: 14px;
    }

    /* Navigation */

    .header-container {
        padding: 0 5%;
        column-gap: 12px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .brand-text strong {
        font-size: 23px;
        letter-spacing: 2px;
    }

    .brand-text span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .navigation {
        justify-content: flex-start;
        gap: 25px;
        padding-right: 10px;
    }

    .nav-link {
        font-size: 13px;
    }

    .header-discord {
        font-size: 12px;
        gap: 8px;
    }

    /* Introduction */

    .hero {
        min-height: auto;
        padding: 175px 6% 100px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero h1 {
        font-size: clamp(65px, 12vw, 105px);
        line-height: .92;
        margin-bottom: 25px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.85;
        margin-bottom: 25px;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-status {
        margin-top: 25px;
    }

    .hero-emblem {
        max-width: 330px;
        width: 80%;
        margin-bottom: 30px;
    }

    .hero-coordinate {
        display: none;
    }

    .hero-index {
        display: none;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(5,5,5,.65),
                rgba(5,5,5,.9) 50%,
                #050505
            );
    }

    .hero-background {
        background-position: 65% center;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .emblem-caption {
        bottom: -30px;
    }

    /* Informations */

    .information-item {
        justify-content: flex-start;
        padding: 20px 6%;
        gap: 12px;
    }

    .information-item i {
        font-size: 20px;
    }

    .information-item span {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .information-item strong {
        font-size: 15px;
        letter-spacing: .5px;
    }

    /* Sections */

    .section {
        padding: 75px 6%;
    }

    .section h2 {
        font-size: clamp(45px, 9vw, 70px);
        line-height: 1;
        margin-bottom: 25px;
    }

    .section-heading h2 {
        margin-bottom: 0;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 2px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .section-label span {
        flex-shrink: 0;
    }

    .section p {
        font-size: 14px;
        line-height: 1.85;
    }

    /* Univers */

    .universe-layout {
        gap: 35px;
    }

    .universe-visual {
        min-height: 340px;
    }

    .visual-caption {
        bottom: 25px;
        left: 25px;
        right: 25px;
    }

    .visual-caption strong {
        font-size: 30px;
    }

    .universe-features {
        gap: 22px;
        padding-top: 25px;
        margin-top: 25px;
    }

    .feature h3 {
        font-size: 20px;
    }

    .feature p {
        font-size: 13px;
    }

    /* Planètes */

    .planet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .planet-coruscant {
        grid-column: auto;
    }

    .planet-card {
        min-height: 440px;
    }

    .planet-content {
        padding: 28px;
    }

    .planet-content h3 {
        font-size: 55px;
    }

    .planet-content p {
        min-height: auto;
        font-size: 13px;
    }

    .planet-top {
        font-size: 10px;
    }

    /* Factions */

    .faction {
        min-height: 230px;
    }

    .faction-content {
        max-width: 100%;
        padding: 30px;
    }

    .faction-content h3 {
        font-size: 33px;
    }

    .faction-content p {
        max-width: 420px;
        font-size: 13px;
    }

    .faction::after {
        background: linear-gradient(
            90deg,
            rgba(10,11,14,.98),
            rgba(10,11,14,.8) 55%,
            rgba(10,11,14,.45)
        );
    }

    .faction:hover {
        transform: none;
    }

    /* Développement */

    .development-layout {
        gap: 35px;
    }

    .panel-header {
        padding: 20px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    .panel-body {
        padding: 5px 20px;
    }

    .report-item {
        padding: 20px 0;
    }

    .report-item span {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .report-item strong {
        font-size: 13px;
    }

    /* Communauté */

    .community {
        min-height: 580px;
    }

    .community-logo {
        width: 155px;
        margin-bottom: 25px;
    }

    .community h2 {
        font-size: clamp(45px, 10vw, 75px);
    }

    /* Footer */

    .footer {
        padding: 45px 6% 0;
    }

    .footer-container {
        gap: 30px;
        padding-bottom: 35px;
    }

    .footer-brand img {
        width: 75px;
    }

    .footer-brand h3 {
        font-size: 23px;
    }

    .footer-bottom {
        gap: 20px;
    }

}

/* PETITS TÉLÉPHONES */

@media screen and (max-width: 480px) {

    :root {
        --header-height: 112px;
    }

    html {
        scroll-padding-top: 130px;
    }

    .brand {
        min-height: 66px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 21px;
    }

    .brand-text span {
        font-size: 7px;
    }

    .header-discord {
        padding: 10px 12px;
    }

    .header-discord i {
        font-size: 17px;
    }

    .navigation {
        min-height: 46px;
        gap: 22px;
    }

    .nav-link {
        font-size: 12px;
    }

    /* Introduction */

    .hero {
        padding: 155px 6% 90px;
    }

    .hero h1 {
        font-size: clamp(52px, 14vw, 70px);
        letter-spacing: 0;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.2px;
        gap: 10px;
        margin-bottom: 25px;
    }

    .eyebrow-line {
        width: 24px;
        flex-shrink: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .button {
        min-height: 52px;
        padding: 14px 18px;
        font-size: 12px;
        gap: 10px;
    }

    .hero-status {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .hero-emblem {
        max-width: 280px;
    }

    .emblem-caption span {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .emblem-caption strong {
        font-size: 10px;
    }

    /* Informations */

    .information-item {
        min-height: 95px;
        padding: 15px;
        gap: 10px;
    }

    .information-item i {
        font-size: 17px;
    }

    .information-item strong {
        font-size: 13px;
    }

    .information-item span {
        font-size: 8px;
    }

    /* Sections */

    .section {
        padding: 60px 6%;
    }

    .section h2 {
        font-size: clamp(38px, 11vw, 55px);
    }

    .section-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .universe-visual {
        min-height: 290px;
    }

    .visual-caption {
        left: 20px;
        bottom: 20px;
    }

    .visual-caption strong {
        font-size: 27px;
    }

    .visual-caption span {
        font-size: 10px;
    }

    .feature {
        gap: 15px;
    }

    .feature > i {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    /* Planètes */

    .planet-card {
        min-height: 400px;
    }

    .planet-content {
        padding: 22px;
    }

    .planet-content h3 {
        font-size: 48px;
    }

    .planet-category {
        font-size: 10px;
    }

    .planet-top {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .planet-tags {
        margin-top: 20px;
        padding-top: 15px;
    }

    /* Factions */

    .faction {
        min-height: 210px;
    }

    .faction-content {
        padding: 24px;
    }

    .faction-content h3 {
        font-size: 29px;
    }

    .faction-number {
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* Développement */

    .report-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 15px 0;
    }

    .report-item strong {
        text-align: left;
        font-size: 15px;
    }

    .panel-footer {
        font-size: 9px;
        letter-spacing: 2px;
    }

    /* Communauté */

    .community {
        min-height: 520px;
    }

    .community-logo {
        width: 135px;
    }

    .community h2 {
        font-size: 46px;
    }

    .community p {
        font-size: 13px;
    }

    .community-content .button {
        width: 100%;
    }

    /* Footer */

    .footer-brand {
        align-items: center;
        gap: 15px;
    }

    .footer-brand img {
        width: 60px;
    }

    .footer-brand h3 {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 11px;
    }

    .footer-links h4 {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 10px;
    }

    .legal-notice {
        font-size: 9px;
    }

    /* Loader */

    .loader-content {
        width: 80%;
        max-width: 280px;
    }

    .loader-content img {
        width: 170px;
    }

    .loader-label {
        font-size: 12px;
        letter-spacing: 3px;
    }

}

/* TRÈS PETITS ÉCRANS */

@media screen and (max-width: 360px) {

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text span {
        font-size: 6px;
    }

    .header-discord span {
        display: none;
    }

    .header-discord {
        min-width: 44px;
        min-height: 44px;
    }

    .hero h1 {
        font-size: 49px;
    }

    .information-item {
        padding: 12px;
    }

    .information-item strong {
        font-size: 12px;
    }

    .planet-content h3 {
        font-size: 42px;
    }

    .community h2 {
        font-size: 39px;
    }

}

/* APPAREILS TACTILES */

@media (hover: none) {

    .button:hover {
        transform: none;
    }

    .planet-card:hover .planet-image,
    .faction:hover .faction-image {
        transform: none;
    }

    .faction:hover {
        transform: none;
    }

}



/* CORRECTION DE LA TAILLE DES LOGOS */

.hero-emblem {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.hero-emblem img {
    width: 100%;
    max-width: 240px;
    max-height: 240px;
    object-fit: contain;
}

.emblem-ring {
    display: none;
}

.brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.community-logo {
    width: 110px;
    max-height: 110px;
    object-fit: contain;
}

.footer-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.loader-content img {
    width: 140px;
}

@media screen and (max-width: 768px) {

    .hero-emblem {
        max-width: 180px;
    }

    .hero-emblem img {
        max-width: 160px;
        max-height: 160px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

}
