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

p{
    font-size: 1.1em;
    line-height: 1.6;
}

section.top-page1 {
    background: url("../Arrière_plan_haut/pexels-padrinan-255377.jpg");
    background-size: cover;
    height: 40vh;
    padding: 25px;
    position: relative;
}

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

section.nom {
    font-size: 2.25em;
    text-align: center;
    margin: 140px 0 40px 0;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    animation: slideInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
}

section.nom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #FFAFBD, #C9FFBF);
    border-radius: 2px;
    animation: widthGrow 1s ease;
}

section.nom::after {
    display: none;
}

@keyframes widthGrow {
    from { width: 0; }
    to { width: 100px; }
}

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

section.citation {
    font-size: 1.4em;
    font-style: italic;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    color: #2c3e50;
    position: relative;
    padding: 40px 100px;
    animation: fadeIn 1.5s ease;
    line-height: 1.5;
}

section.citation::before {
    content: '«';
    position: absolute;
    left: -30px;
    top: -60px;
    transform: translateX(-50%) rotate(180deg);
    font-size: 3em;
    opacity: 0.8;
    animation: rotate 4s ease-in-out infinite;
    color: #2c3e50;
}

section.citation::after {
    content: '»';
    position: absolute;
    right: -30px;
    top: 0;
    transform: translateY(-50%);
    font-size: 3em;
    opacity: 0.8;
    animation: rotate 4s ease-in-out infinite reverse;
    color: #2c3e50;
}

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

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 1;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

h2 {
    font-size: 1.8em;
    margin: 30px 0;
    font-family: 'Sour Gummy', cursive;
    font-weight: 100;
}

img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

section.intro {
    margin: 40px auto;
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
}

section.intro1 {
    position: relative;
    padding: 40px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    overflow: hidden;
}

section.intro1 h2 {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
}

section.intro1 .content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

section.intro1::before {
    content: '🎨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite;
}

section.intro1::after {
    content: '💻';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite reverse;
}

section.intro1 .text-container {
    width: 100%;
    max-width: 600px;
    text-align: left;
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border-left: 3px solid rgba(201, 255, 191, 0.5);
}

section.intro1 .text-container p {
    font-size: 20px;
    line-height: 1.8;
    position: relative;
}

section.intro1 .image-container {
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

section.intro1 .image-container img {
    width: 100%;
    max-width: 280px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

section.intro1:hover .image-container img {
    transform: scale(1.05);
}

section.intro1 .text-container::before {
    display: none;
}

section.intro2 .image2 {
    display: none;
}

section.intro2 .texte2 {
    width: 100%;
    margin-right: 0;
}

section.intro2, section.intro3 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    position: relative;
    padding-left: 0;
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}

section.intro2::before {
    content: '🎯';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite;
}

section.intro2::after {
    content: '📱';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite reverse;
}

section.intro2:hover::before {
    display: none;
}

section.intro2:hover::after {
    display: none;
}

section.intro3::before {
    content: '💡';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite;
}

section.intro3::after {
    content: '🎨';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite reverse;
}

section.intro3:hover::before {
    display: none;
}

section.intro3:hover::after {
    display: none;
}

section.intro4 {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    font-size: 1.2em;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 175, 189, 0.1), rgba(201, 255, 191, 0.1));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

section.intro4:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

section.intro4 p {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

section.intro4::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: -60px;
    font-size: 4.5em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite;
}

section.intro4::after {
    content: '🎯';
    position: absolute;
    bottom: 20px;
    left: -60px;
    font-size: 4.5em;
    opacity: 0.8;
    animation: floatIcon 4s ease-in-out infinite reverse;
}

section.intro4:hover::before {
    opacity: 1;
}

section.intro4:hover::after {
    opacity: 1;
}

/* Style pour le footer */
footer.footer {
    background: url("../Arrière_plan_haut/pexels-padrinan-255377.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    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;
}

div.texte2 {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0;
    padding: 15px;
    position: relative;
    z-index: 1;
}

div.texte2 p, div.texte2 ul li {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
}

div.texte2 ul {
    list-style: none;
    padding-left: 0;
    margin: 20px auto;
    text-align: center;
}

div.texte2 ul li {
    margin: 12px 0;
    display: inline-block;
    width: 100%;
}

div.texte2 strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

div.texte3 {
    width: 400px;
    height: 200px;
    margin-top: 40px;
    margin-left: 40px;
}

div.image2 {
    margin-top: 60px;
}

div.image3 {
    margin-top: 60px;
}

div.image2 img, div.image3 img {
    width: 200px;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

div.image2 img:hover {
    transform: none;
    filter: grayscale(0%);
}

div.image3 img:hover {
    transform: none;
    filter: grayscale(0%);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

section.top-page1 .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-page1 .nav li {
    margin: 0 20px;
}

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

section.top-page1 .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;
    }
    
    section.nom h1 {
        font-size: 2em;
    }
    
    section.citation {
        font-size: 1.2em;
        padding: 20px;
    }
    
    h2 {
        font-size: 2.5em;
    }
    
    section.intro1 .content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-container {
        flex-direction: column;
        align-items: center;
    }
    
    section.intro2, section.intro3 {
        width: 100%;
        max-width: 100%;
    }
    
    section.intro4 {
        font-size: 1em;
        padding: 20px;
    }
    
    section.intro1::before,
    section.intro1::after,
    section.intro2::before,
    section.intro2::after,
    section.intro3::before,
    section.intro3::after,
    section.intro4::before,
    section.intro4::after {
        font-size: 2em;
    }
}

/* Container pour intro2 et intro3 */
.intro-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

section.intro2, section.intro3 {
    width: 100%;
    max-width: 500px;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

section.intro2::before, section.intro3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

section.intro2:hover::before, section.intro3:hover::before {
    left: 100%;
}

section.intro2:hover, section.intro3:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

section.intro3 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.intro3 .image3 {
    margin-bottom: 30px;
    margin-top: 0;
    position: relative;
}

section.intro3 .image3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

div.texte2, div.texte3 {
    width: 100%;
    height: auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

div.texte2 p {
    line-height: 1.6;
}

div.texte2 ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

div.texte2 ul li {
    font-size: 1em;
    margin: 8px 0;
}

div.texte2 strong, div.texte3 strong {
    color: #2c3e50;
    font-weight: 600;
}

div.image3 img {
    width: 100%;
    max-width: 220px;
    margin: 20px auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
