/* ===== VARIABLES GLOBALES ===== */
:root {
    cursor: url('../Images/divers/papillon.png'), none;
}

/* ===== RESET ET STYLES DE BASE ===== */
body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #ff0000;
    background-image: url(../Images/divers/oiseaux.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: rgb(201, 240, 250);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== HEADER ===== */
header {
    background-color: rgb(221, 246, 247);
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(to bottom, #fce5e5, #fff);
    gap: 2rem;
}

#page-header_index {
    background-color: #fff;
}

#page-header_secondaire {
    background-color: #fff;
}

.image-container {
    flex: 0 0 auto;
    margin-right: 3rem;
}

.image-container img {
    width: 250px;
    height: auto;
    border: 4px solid white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
}

.text-container h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.paragraph-container {
    margin-top: 1rem;
}

.paragraph-container p {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

.header-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

.header-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

.header-description {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

.mini-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
}

.mini-gallery img {
    width: 100px;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.mini-gallery img:hover {
    transform: scale(2);
}

/* Animation horizontale */
@keyframes slideshow-horizontal {
    0% { transform: translateX(0); }
    20% { transform: translateX(-300px); }
    40% { transform: translateX(-600px); }
    60% { transform: translateX(-900px); }
    80% { transform: translateX(-1200px); }
    100% { transform: translateX(0); }
}

/* ===== NAVIGATION ===== */
.nav3d {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
}

.nav3d .nav-item .nav-link {
    padding: 10px 20px;
    background: linear-gradient(90deg, rgb(214, 214, 250), rgb(253, 161, 161));
    color: rgb(12, 12, 12);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
    box-shadow: 0 6px 0 #696c6d, 0 8px 12px rgba(0, 0, 0, 0.2);
}

.nav3d .nav-item .nav-link:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #080808;
}

.nav3d .nav-item .nav-link.active {
    background: linear-gradient(145deg, #9ee4f1, #31d2f2);
    box-shadow: 0 4px 0 #0e0e0e, 0 6px 10px rgba(0, 0, 0, 0.2);
}

.nav-arrow .fa {
    color: #5945f6;
    font-size: 25px;
}

/* ===== CONTENU PRINCIPAL ===== */
/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.container h4 {
    text-align: center;
    margin: 10px 0 20px;
    line-height: 1.3;
    color: lightcoral;
}

/* Sections thématiques */
.section1, .section2, .section3, .section4, .section5, .section6, .section7 {
    padding-top: 15px;
    height: auto;
}

.section1 {
    background: linear-gradient(to right, rgba(179, 179, 241, 0.788), white, rgb(240, 109, 109));
}

.section2 {
    background: linear-gradient(to right, skyblue, rgb(161, 236, 161), rgb(245, 165, 245));
}

.section3 {
    background: linear-gradient(to right, #cf7879, #cdcf78, #78cf82);
}

.section4 {
    background: linear-gradient(to bottom, rgb(246, 137, 137), white, rgb(164, 164, 247));
}

.section5 {
    background: linear-gradient(to right, #b2434c, #dbf990, #9ef2a8, #cad0f5);
}

.section6 {
    background: linear-gradient(to right, rgba(181, 181, 252, 0.541), rgb(249, 139, 139), white, rgb(148, 245, 148));
}

.section7 {
    background: linear-gradient(to top, #87c2e0, #e08787, #b887e0);
}

/* Colonnes */
#Col-France, #Col-Colonie, #Col-Afrique, #Col-Ameriques, #Col-Asie, #Col-Europe, #Col-Oceanie {
    background-color: #a8cce9;
    padding: 2%;
    margin: 2% auto;
    max-width: 900px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    text-align: center;
    border: black groove 6px;
    line-height: 1.3;
}


/* Boutons */
.btn-fr, .btn-col, .btn-afr, .btn-ame, .btn-asie, .btn-eur, .btn-oce {
    transition: 1.5s;
    cursor: pointer;
    border-radius: 5px;
}

.btn-fr:hover, .btn-afr:hover, .btn-ame:hover, .btn-asie:hover, .btn-eur:hover, .btn-oce:hover {
    border: solid black 3px;
    color: black;
    transition: 1.5s;
}

/* Collection de cartes */
.collection {
    float: left;
    clear: both;
    position: relative;
    width: 900px;
    height: 200px;
    margin: 60px 0 0 30%;
}

.collection:hover .card {
    z-index: 1;
    opacity: 1;
    width: 120px;
    height: 169px;
}

.collection:hover .card:hover {
    z-index: 10;
    -webkit-transform: rotate(0deg);
    width: 200px;
    height: auto;
    top: -38px;
    opacity: 1;
}

.collection .card {
    position: relative;
    float: left;
    width: 100px;
    height: auto;
    -webkit-box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s ease-out;
}

.collection .card:nth-child(1) {
    -webkit-transform: rotate(-6deg);
    top: 50px;
    left: 9px;
    z-index: 5;
}

.collection .card:nth-child(2) {
    -webkit-transform: rotate(-2deg);
    left: -9px;
    z-index: 3;
}

.collection .card:nth-child(3) {
    -webkit-transform: rotate(-5deg);
    top: 26px;
    left: -36px;
    z-index: 1;
}

.collection .card:nth-child(4) {
    -webkit-transform: rotate(7deg);
    top: 15px;
    left: -46px;
    z-index: 3;
}

/* Défilement de timbres */
.stamps {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 20px 0;
}

.stamps-container {
    display: flex;
}

.stamps-container img {
    width: 100px;
    height: 100%;
    object-fit: contain;
    margin-right: 30px;
    pointer-events: none;
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to bottom, #fff, #fce5e5);
    padding: 2rem 0;
    width: 100%;
    margin: 2rem 0 0 0;
}

.footer-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    padding: 1rem;
    max-width: 350px;
}

/* Titres des sections */
.footer-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #e6c0c0;
    padding-bottom: 0.5rem;
}

/* Section Réseaux Sociaux */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 160px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.social-button {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    width: 100%;
}

.social-button:hover {
    transform: translateY(-2px);
}

.facebook {
    background-color: #1877f2;
    color: white;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.icone-social {
    width: 16px;
    height: 16px;
    margin-right: 0.4rem;
}

/* Mini galerie de timbres */
.mini-gallery {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mini-gallery img {
    width: 80px;
    height: auto;
}

.mini-gallery img:hover {
    transform: scale(1.1);
}

/* Section Ressources */
.resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-list li {
    margin-bottom: 1rem;
}

.resources-list a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.resources-list a:hover {
    color: #1877f2;
    transform: translateX(5px);
}

/* Section Contact */
.contact-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-section p {
    margin: 0.7rem 0;
    color: #444;
    line-height: 1.6;
}

.contact-section a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-section a:hover {
    color: #1877f2;
}

/* Ajustements optionnels pour la section ressources */
.resources-section {
    border-left: 1px solid #e6c0c0;
    padding-left: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-section {
        width: 100%;
        max-width: 500px;
        text-align: center;
    }

    .social-links {
        margin: 0 auto 1.5rem auto;
    }

    .resources-list {
        text-align: center;
    }

    .mini-gallery {
        justify-content: center;
    }

    .continents-slideshow {
        flex: 0 0 200px;
        height: 140px;
    }

    .continent-stamp {
        width: 200px;
        height: 130px;
    }

    @keyframes slideshow-horizontal {
        0% { transform: translateX(0); }
        20% { transform: translateX(-200px); }
        40% { transform: translateX(-400px); }
        60% { transform: translateX(-600px); }
        80% { transform: translateX(-800px); }
        100% { transform: translateX(0); }
    }

    .resources-section {
        border-left: none;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 80%;
        padding: 0 20px;
    }

    .section1 {
        padding: 15px;
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: 100%;
        margin: 10px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .image-container {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .image-container img {
        width: 100px;
    }

    .text-container h1 {
        font-size: 2rem;
    }

    .text-container h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .section1 {
        padding: 10px;
    }

    .card {
        width: 100%;
        margin: 5px 0;
    }
}

.arrow-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.arrow-link {
    color: black;
    font-size: 36px;
    margin: 10px 0;
    transition: none;
}

.arrow-link:hover {
    color: black;
}

.arrow-link:active {
    color: black;
}

.custom-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.custom-gallery img {
    width: 125px;
    height: min-content;
    border: none;
    box-shadow: border-box;
    margin: 0;
}

.custom-gallery img:hover {
    transform: scale(1.1);
}

.btn-3d {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    position: relative;
}

.btn-3d:hover {
    background-color: #0056b3;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-3d:active {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

/* Pour les tablettes */
@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }

    .card {
        width: 48%;
        margin: 1%;
    }
}

/* Pour les téléphones */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .card {
        width: 100%;
        margin: 5px 0;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Pour les petits téléphones */
@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .text-container h1 {
        font-size: 1.5rem;
    }

    .text-container h2 {
        font-size: 1rem;
    }
}

.cadre-mise-a-jour {
    width: 90%;
    max-width: 700px;
    margin: 30px auto;
    padding: 15px 25px;
    background-color: #fffbe6;
    border: 1px solid #ffcc00;
    border-left: 5px solid #ffcc00;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333333;
    font-size: 1.1em;
    line-height: 1.6;
}

.cadre-mise-a-jour a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.cadre-mise-a-jour a:hover {
    text-decoration: underline;
}
