body {
    background: #B2FEFA;  /* fallback for old browsers */
    /* background: -webkit-linear-gradient(to right, #0ED2F7, #B2FEFA);  Chrome 10-25, Safari 5.1-6 */
    /* background: linear-gradient(to right, #0ED2F7, #B2FEFA); W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    margin: 0;
}

section.top-page3 {
    background: url("../Arrière_plan_haut/pexels-dana-tentis-118658-370799.jpg");
    background-size: cover;
    height: 30vh;
    padding: 25px;
    position: relative;
    display: flex;
    /* flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; */
    color: white;
}

section.top-page3::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent,#B2FEFA);
}

section.dev {
    margin-top: 40px;
    width: 90%;
    max-width: 1400px;
    font-weight: 350;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #B2FEFA, #00c6ff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

section.dev:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

div.dev {
    width: 95%;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
}

div.dev h2 {
    color: #00c6ff;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

div.dev h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #B2FEFA, #00c6ff);
    border-radius: 3px;
}

div.dev-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

div.dev-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #333;
    font-size: 1.1em;
}

div.dev-content strong {
    color: #00c6ff;
    font-weight: 600;
}

div.image1 {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 40px 0 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

div.image1:hover {
    transform: scale(1.02);
}

div.image1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

section.projet, section.formation, section.experiencepro {
    margin-top: 40px;
    width: 90%;
    max-width: 1400px;
    font-weight: 350;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #B2FEFA, #00c6ff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

section.projet:hover, section.formation:hover, section.experiencepro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

div.text {
    margin-top: 50px;
    font-size: 1.1em;
    color: #333;
}

/* Ajustement des images dans les sections */
section.formation img, section.experiencepro img {
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

section.formation img:hover, section.experiencepro img:hover {
    transform: scale(1.05);
}

section.formation img {
    width: 60%; /* Réduire la largeur à 60% */
    height: auto;
    max-width: 600px; /* Réduire la largeur maximale */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

div.formation {
    width: 50px;
    margin-top: 80px;
    margin-left: 250px;
    margin-bottom: 70px;
    
}

/* Style pour le footer */
footer.footer {
    background: url("../Arrière_plan_haut/pexels-dana-tentis-118658-370799.jpg");
    background-size: cover;
    background-position: center;
    min-height: 400px;
    padding: 80px 0 120px 0;
    color: white;
    margin-top: 100px;
    position: relative;
}

footer.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.6)
    );
    backdrop-filter: blur(3px);
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-name {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin: 15px 0;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #B2FEFA;
}

.footer-section h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-section p {
    margin: 12px 0;
    font-size: 16px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #B2FEFA;
}

.footer-tagline {
    margin-top: 25px;
    font-style: italic;
    line-height: 1.6;
    max-width: 300px;
}

/* Animation pour les images */
div.image1 img, div.image2 img {
    transition: transform 0.3s ease;
}

div.image1 img:hover, div.image2 img:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Effet de parallaxe pour les sections avec images de fond */
section.top-page3, footer.footer {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animation d'apparition pour les textes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1.big-title, h2, p {
    animation: fadeIn 1s ease-in-out;
}

section.experiencepro img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    transition: all 0.5s ease;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

section.experiencepro img:hover {
    transform: scale(1.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Ajout d'éléments décoratifs flottants */
.floating-element {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00c6ff, #B2FEFA);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
    z-index: -1;
}

.floating-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-element:nth-child(4) { bottom: 40%; right: 25%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Animation pour les titres */
h1.big-title {
    position: relative;
    display: inline-block;
}

h1.big-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #00c6ff, #B2FEFA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

h1.big-title:hover::after {
    transform: scaleX(1);
}

/* Effet de brillance sur les sections */
section.dev, section.projet, section.formation, section.experiencepro {
    position: relative;
    overflow: hidden;
}

section.dev::before, section.projet::before, section.formation::before, section.experiencepro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Animation pour les images */
section.formation img, section.experiencepro img {
    transition: all 0.5s ease;
}

section.formation img:hover, section.experiencepro img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Effet de pulsation pour les sections */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

section.dev:hover, section.projet:hover, section.formation:hover, section.experiencepro:hover {
    animation: pulse 1s ease-in-out;
}

/* Style pour les icônes */
.fas, .fab {
    margin-right: 10px;
    color: #00c6ff;
    transition: transform 0.3s ease;
}

.fas:hover, .fab:hover {
    transform: scale(1.2);
    color: #B2FEFA;
}

/* Style pour les liens sociaux dans le footer */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #B2FEFA;
    transform: translateY(-5px);
}

/* Ajustement des titres avec icônes */
h1.big-title i, h2 i {
    margin-right: 15px;
    font-size: 80px;
}

/* Animation pour les icônes dans la navigation */
.nav a i {
    transition: transform 0.3s ease;
}

.nav a:hover i {
    transform: translateX(5px);
}

/* Style pour les listes */
li {
    list-style: none;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

/* Ajustement de l'espacement pour les icônes dans les listes */
li i {
    margin-right: 15px;
    min-width: 20px;
    text-align: center;
}

/* Media Queries pour la responsivité */
@media screen and (max-width: 1200px) {
    div.dev-content {
        grid-template-columns: 1fr;
    }

    div.image1 {
        height: 300px;
    }
}

@media screen and (max-width: 992px) {
    .timeline {
        padding: 25px;
    }
    
    .timeline-item {
        padding: 20px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 768px) {
    section.top-page3 {
        height: 25vh;
    }
    
    .container {
        margin: 20px auto;
    }
    
    .timeline {
        padding: 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .timeline-content h3 {
        font-size: 1.1em;
    }
    
    .timeline-content p {
        font-size: 0.9em;
    }

    section.dev {
        padding: 20px;
    }

    div.dev {
        padding: 20px;
    }

    div.image1 {
        height: 250px;
    }
}

@media screen and (max-width: 576px) {
    section.top-page3 {
        height: 20vh;
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .timeline {
        padding: 15px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
        padding-right: 10px;
    }
    
    .timeline-content {
        padding: 10px;
    }
    
    .timeline-content h3 {
        font-size: 1em;
    }
    
    .timeline-content p {
        font-size: 0.8em;
    }
    
    .timeline-item i {
        font-size: 1.2em;
    }
}

/* Ajustements pour les très petits écrans */
@media screen and (max-width: 320px) {
    section.top-page3 {
        height: 15vh;
        padding: 10px;
    }
    
    .big-title {
        font-size: 1.2em;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 35px;
        padding-right: 8px;
    }
    
    .timeline-content h3 {
        font-size: 0.9em;
    }
    
    .timeline-content p {
        font-size: 0.75em;
    }
    
    .timeline-item i {
        font-size: 1em;
    }
}

section.top-page3 .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 30px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

section.top-page3 .nav li {
    margin: 0 20px;
}

section.top-page3 .nav a {
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

section.top-page3 .nav a:hover {
    color: #C9FFBF;
    transform: scale(1.1);
}

/* Style du bouton ordinateur */
.computer-button {
    position: fixed;
    bottom: 100px;
    right: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

.computer-button:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.screen {
    width: 50px;
    height: 35px;
    background: #2c3e50;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #34495e;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: screenGlow 2s linear infinite;
}

.content {
    color: #3498db;
    font-size: 20px;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    font-family: monospace;
}

.base {
    width: 70px;
    height: 10px;
    background: #34495e;
    border-radius: 0 0 6px 6px;
    border: 2px solid #2c3e50;
    position: relative;
}

.base::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #2c3e50;
    border-radius: 2px;
}

.scroll-text {
    position: fixed;
    bottom: 65px;
    right: 50px;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    width: 70px;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Animation pour le bouton */
@keyframes screenGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Media query pour la responsivité */
@media screen and (max-width: 768px) {
    .computer-button {
        bottom: 80px;
        right: 30px;
    }
    
    .scroll-text {
        bottom: 55px;
        right: 30px;
        font-size: 10px;
    }
    
    .screen {
        width: 45px;
        height: 30px;
    }
    
    .base {
        width: 60px;
        height: 8px;
    }
    
    .content {
        font-size: 18px;
    }
}

/* Header principal */
.main-header {
    background: url("../Arrière_plan_haut/pexels-dana-tentis-118658-370799.jpg");
    background-size: cover;
    background-position: center;
    padding: 30px 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 120px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Menu de navigation */
nav.nav {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 40px;
}

nav.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

nav.nav a:hover {
    color: #B2FEFA;
}

.filter-menu {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 0 2.5rem 0;
    background: transparent;
    margin-top: 50px;
}

.filter-btn {
    background-color: white;
    color: #00c6ff;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #00c6ff;
    color: white;
}

.filter-btn.active {
    background-color: #00c6ff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 198, 255, 0.3);
}

.section-title {
    color: #00c6ff;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #B2FEFA, #00c6ff);
    border-radius: 3px;
}

.big-title {
    color: white;
    font-size: 80px;
    font-family: 'Sour Gummy', cursive;
    font-weight: 100;
    text-align: center;
    margin: 150px 0 0 0;
    padding: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
