/* ===== Reset et Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== En-tête / Navigation ===== */
header {
    background-color: #fff;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: #1a1a1a;
}

/* ===== Section Héro ===== */
.hero {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.9);
}

.hero-title {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== Image avion dessiné ===== */
.logo-avion {
    text-align: center;
    padding: 30px 20px;
    background-color: #f5f5f5;
}

.logo-avion img {
    max-width: 500px;
    height: auto;
}

/* ===== Section Bienvenue ===== */
.welcome-section {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 30px 40px;
    background-color: #6b1d2a;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #fff;
    line-height: 1.8;
    text-align: center;
}

/* ===== Section Avions (Cartes) ===== */
.planes-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.plane-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #2c5aa0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plane-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.plane-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.plane-card-content {
    padding: 20px;
    text-align: center;
}

.plane-card-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.plane-card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ===== Pied de page ===== */
footer {
    background-color: #2c2c2c;
    color: #ccc;
    text-align: center;
    padding: 25px 20px;
    margin-top: 60px;
    font-size: 0.85rem;
}

/* ===== Page Ligne du temps ===== */
body.timeline-body {
    background-color: #87CEEB;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,60 A10,10 0 0,1 35,45 A15,15 0 0,1 65,40 A12,12 0 0,1 85,55 A8,8 0 0,1 90,70 L20,70 A8,8 0 0,1 25,60 Z' fill='%23ffffff' fill-opacity='0.6'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35,90 A15,15 0 0,1 50,70 A25,25 0 0,1 100,60 A20,20 0 0,1 130,85 A12,12 0 0,1 140,105 L25,105 A12,12 0 0,1 35,90 Z' fill='%23ffffff' fill-opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 400px, 600px 600px;
    background-attachment: fixed;
    animation: moveClouds 45s linear infinite;
}

@keyframes moveClouds {
    0% {
        background-position: 0px 0px, 50px 100px;
    }

    100% {
        background-position: 400px 0px, 650px 100px;
    }
}

.timeline-page {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.timeline-page h1 {
    font-size: 2.4rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: Georgia, 'Times New Roman', serif;
}

.timeline-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 50px;
}

/* Ligne du temps - Conteneur */
.timeline {
    position: relative;
    padding: 60px 0;
}

/* Ligne verticale centrale */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
    bottom: 80px;
    width: 4px;
    background: linear-gradient(to bottom, #2c5aa0, #1a3d6e);
    border-radius: 2px;
}

/* Indicateurs de début et fin */
.timeline-start,
.timeline-end {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    color: #1a3d6e;
}

.timeline-start {
    top: 15px;
}

.timeline-end {
    bottom: 0px;
    gap: 15px;
}

.dots-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #1a3d6e;
    border-radius: 50%;
}

.timeline-end .arrow {
    font-size: 2rem;
    font-family: Arial, sans-serif;
    animation: bounceDown 2s infinite;
    letter-spacing: 0;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Chaque item de la timeline */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
}

/* Point sur la ligne */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 22px;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 4px solid #2c5aa0;
    border-radius: 50%;
    z-index: 2;
}

/* Items ÃƒÂ  gauche */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.left::after {
    right: -8px;
}

/* Items ÃƒÂ  droite */
.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item.right::after {
    left: -8px;
}

/* Badge de la date */
.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #2c5aa0, #1a3d6e);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Carte de contenu */
.timeline-content {
    background-color: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.timeline-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

/* Image de la ligne du temps masquée par défaut */
.timeline-image {
    display: none;
    margin-top: 15px;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Affichage au survol */
.timeline-item:hover .timeline-image {
    display: block;
    animation: fadeInImage 1.2s ease forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation d'apparition */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item.left {
    animation: fadeInLeft 0.6s ease forwards;
}

.timeline-item.right {
    animation: fadeInRight 0.6s ease forwards;
}

/* Délais d'animation pour chaque item */
.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(8) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(9) {
    animation-delay: 0.9s;
}

.timeline-item:nth-child(10) {
    animation-delay: 1.0s;
}

.timeline-item:nth-child(11) {
    animation-delay: 1.1s;
}

.timeline-item:nth-child(12) {
    animation-delay: 1.2s;
}

.timeline-item:nth-child(13) {
    animation-delay: 1.3s;
}

.timeline-item:nth-child(14) {
    animation-delay: 1.4s;
}

.timeline-item:nth-child(15) {
    animation-delay: 1.5s;
}

.timeline-item:nth-child(16) {
    animation-delay: 1.6s;
}

.timeline-item:nth-child(17) {
    animation-delay: 1.7s;
}

.timeline-item:nth-child(18) {
    animation-delay: 1.8s;
}

.timeline-item:nth-child(19) {
    animation-delay: 1.9s;
}

.timeline-item:nth-child(20) {
    animation-delay: 2.0s;
}

.timeline-item:nth-child(21) {
    animation-delay: 2.1s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        height: 220px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .planes-section {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 30px auto;
    }

    .plane-card img {
        height: 200px;
    }

    /* Timeline responsive */
    .timeline::before {
        left: 20px;
    }

    .timeline-start,
    .timeline-end {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 12px;
    }

    .timeline-page h1 {
        font-size: 1.8rem;
    }
}

/* ===== Page Stats Compagnies Aériennes ===== */
body.stats-body {
    background-image: url('airline_awards_crowd.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.stats-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-container h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
}

.airline-ranking {
    list-style: none;
    /* remove default numbering to style custom */
    padding: 0;
    margin: 0;
}

.airline-ranking li {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 5px solid #2c5aa0;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.airline-ranking li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.airline-ranking .rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5aa0;
    width: 40px;
    text-align: center;
    margin-right: 15px;
}

.airline-ranking .airline-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.stats-footer-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #777;
}

/* Logo des compagnies aériennes - masqué par défaut */
.airline-logo {
    display: none;
    margin-top: 12px;
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Affichage au survol */
.airline-ranking li:hover .airline-logo {
    display: block;
    animation: fadeInLogo 0.4s ease forwards;
}

/* Ajuster le li pour afficher le logo en dessous */
.airline-ranking li {
    flex-wrap: wrap;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivité pour la page des statistiques */
@media (max-width: 768px) {
    .stats-container {
        margin: 30px 20px;
        padding: 20px;
    }

    .stats-container h1 {
        font-size: 1.8rem;
    }
}

/* ===== Page Airbus A380 ===== */
body.a380-body {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 50%, #1a3d6e 100%);
    min-height: 100vh;
}

.a380-hero {
    text-align: center;
    padding: 60px 20px 30px;
    position: relative;
}

.a380-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 0 2px 20px rgba(44, 90, 160, 0.5);
    margin-bottom: 12px;
    animation: fadeInDown 0.8s ease forwards;
}

.a380-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenu A380 */
.a380-content {
    max-width: 1000px;
    margin: 20px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.a380-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.a380-card:nth-child(1) {
    animation-delay: 0.2s;
}

.a380-card:nth-child(2) {
    animation-delay: 0.5s;
}

.a380-card:nth-child(3) {
    animation-delay: 0.8s;
}

.a380-card:nth-child(4) {
    animation-delay: 1.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.a380-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(44, 90, 160, 0.3);
    border-color: rgba(44, 90, 160, 0.4);
}

.a380-card-label {
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2c5aa0, #1a3d6e);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.a380-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    transition: transform 0.5s ease;
}

.a380-card:hover img {
    transform: scale(1.02);
}

/* Responsivité pour la page A380 */
@media (max-width: 768px) {
    .a380-hero h1 {
        font-size: 2rem;
    }

    .a380-subtitle {
        font-size: 1rem;
    }

    .a380-content {
        gap: 25px;
        margin: 10px auto 40px;
    }

    .a380-card-label {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}

/* ===== Page Comparaison A380 vs Boeing 747 ===== */
body.comparaison-body {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 30%, #24243e 60%, #302b63 100%);
    min-height: 100vh;
}

.comparaison-hero {
    text-align: center;
    padding: 60px 20px 30px;
    position: relative;
}

.comparaison-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    text-shadow: 0 2px 20px rgba(100, 70, 200, 0.5);
    margin-bottom: 12px;
    animation: fadeInDown 0.8s ease forwards;
}

.comparaison-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease forwards;
}

/* Contenu comparaison */
.comparaison-content {
    max-width: 1000px;
    margin: 20px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.comparaison-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.comparaison-card:nth-child(1) {
    animation-delay: 0.2s;
}

.comparaison-card:nth-child(2) {
    animation-delay: 0.5s;
}

.comparaison-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(100, 70, 200, 0.3);
    border-color: rgba(100, 70, 200, 0.4);
}

.comparaison-card-label {
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #4a2b8a, #302b63);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comparaison-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    transition: transform 0.5s ease;
}

.comparaison-card:hover img {
    transform: scale(1.02);
}

/* Responsivité pour la page comparaison */
@media (max-width: 768px) {
    .comparaison-hero h1 {
        font-size: 1.8rem;
    }

    .comparaison-subtitle {
        font-size: 1rem;
    }

    .comparaison-content {
        gap: 25px;
        margin: 10px auto 40px;
    }

    .comparaison-card-label {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}
/* Classes pour couper la grande image en deux (Fuselage / Roues) */
.img-crop {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 56.22%;
    border-radius: 0 0 30px 30px; /* Seulement le bas, car le haut touche le label qui n'a pas cette courbure ou est déjà géré par la carte */
}
.img-crop img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: cover;
    border-radius: 0 !important;
}
.img-crop-top img {
    object-position: top;
}
.img-crop-bottom img {
    object-position: bottom;
}




