/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e; /* Fond sombre */
    color: #ffffff; /* Texte en blanc */
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background-color: #2a2a2a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
    text-align: center;
}

.letters {
    font-size: 5em;
    color: #66ff66;
    display: flex;
    gap: 10px;
    font-family: 'Tangerine', cursive;
}

#R {
    animation: moveInFromLeft 1.5s ease-out;
    display: inline-block;
}

#A {
    animation: moveInFromRight 1.5s ease-out;
    display: inline-block;
}

@keyframes moveInFromLeft {
    0% {
        transform: translate(-500%, 100%);
        opacity: 0;
    }
    45% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translateX(0, 0);
        opacity: 1;
    }
}

@keyframes moveInFromRight {
    0% {
        transform: translate(500%, 100%);
        opacity: 0;
    }
    45% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translateX(0,0);
        opacity: 1;
    }
}

#name h1 {
    font-size: 2.5em;
    margin-top: 20px;
    color: #66ff66;
}

#name h2 {
    font-size: 1.5em;
    color: #ffffff;
}

/* Main Content */
.content {
    text-align: center;
    padding: 50px 20px;
    background-color: #2a2a2a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
    flex: 1; /* Prend l'espace restant */
}

.content a {
    color: #66ff66;
}

/* Button List Section */
.button-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px;
}

.button-item {
    background-color: #2a2a2a;
    color: #66ff66;
    text-decoration: none;
    border: 2px solid #66ff66;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 200px;
    text-align: center;
}

.button-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.button-item span {
    margin-top: 10px;
    font-size: 1.1em;
}

.button-item:hover {
    background-color: #66ff66;
    color: #ffffff;
    transform: translateY(-5px);
}

.projet a:link,
.projet a:visited {
  color: #66ff66;
}

/* Footer */
footer {
    background-color: var(--container-bg-color);
    color: var(--text-color-light);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container p {
    margin: 5px 0;
    line-height: 1.4;
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #00cc00;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .button-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 425px) {
    .button-item {
        width: calc(100% - 20px);
    }
}

/* Animation and scroll-triggered styles */
.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.visible {
    opacity: 1;
}

.animate {
    animation: fadeIn 0.75s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-triggered {
    background-color: #2a2a2a; /* Exemples d'effets déclenchés par le scroll */
    transition: background-color 0.3s ease;
}

/* Animation for the letters R and A */
@keyframes animateR {
    0% {
        transform: translateX(-100%) rotate(-90deg); /* Start from the left, rotated */
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0); /* End at the center, no rotation */
        opacity: 1;
    }
}

@keyframes animateA {
    0% {
        transform: translateX(100%) rotate(90deg); /* Start from the right, rotated */
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0); /* End at the center, no rotation */
        opacity: 1;
    }
}

/* Triggering the animation for R and A */
#R.animate {
    animation: animateR 0.75s ease-out forwards; /* Animate the "R" */
}

#A.animate {
    animation: animateA 0.75s ease-out forwards; /* Animate the "A" */
}

/* Conteneur responsive pour l’iframe, plus large */
.iframe-container {
    position: relative;
    width: 100%;
    max-width: 1400px;      /* on limite maintenant à 1200px de large au max */
    margin: 0 auto;         /* centre horizontalement */
    padding-bottom: 62.5%;  /* ratio d'origine 800×500 → 500/800 = 0.625 = 62.5% */
    height: 0;
    overflow: hidden;
  }
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;   /* prend toute la largeur du conteneur (<=1200px) */
    height: 100%;  /* prend toute la hauteur calculée via padding-bottom */
    border: 0;
  }
