@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Correction du scroll dans le vide : le footer est collé en bas et pas d'espace inutile */
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
header {
    flex: 0 0 auto;
}
main {
    flex: 1 0 auto;
    margin-bottom: 0;
    padding-bottom: 0;
}
footer {
    flex: 0 0 auto;
    margin: 0;
    padding-bottom: 0;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
    max-width: 1200px;
    margin: -4rem auto 0 auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 8px 40px rgba(44, 83, 100, 0.15);
    padding: 3rem;
    position: relative;
    z-index: 2;
    animation: fadeIn 2s;
}
header {
    position: relative;
    background: linear-gradient(120deg, #0f2027, #2c5364);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(44,83,100,0.18);
    animation: gradientMove 8s linear infinite alternate;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    animation: fadeInDown 1s;
}
ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
ul li a:hover {
    color: #00c6ff;
}
.hero {
    text-align: center;
    padding: 6rem 2rem 8rem 2rem;
    background: linear-gradient(120deg, #2c5364 60%, #0f2027 100%);
    animation: fadeIn 1.5s;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s;
}
.cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    animation: bounceIn 1.8s;
    letter-spacing: 1px;
}
.cta:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(0, 198, 255, 0.3);
    background: linear-gradient(90deg, #0072ff, #00c6ff);
}
section {
    margin-bottom: 3rem;
}
section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0072ff;
    animation: fadeInUp 1.2s;
    text-align: center;
}
.services-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.service-card {
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(44, 83, 100, 0.12);
    padding: 2rem;
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.5s;
    position: relative;
}
.service-card:hover {
    transform: translateY(-12px) scale(1.07);
    box-shadow: 0 12px 40px rgba(44, 83, 100, 0.18);
    background: linear-gradient(120deg, #cfdef3 0%, #e0eafc 100%);
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 1.7s;
    background: #f7fafd;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(44,83,100,0.10);
    padding: 2rem;
}
input, textarea {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #cfdef3;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,83,100,0.05);
    transition: border 0.2s;
}
input:focus, textarea:focus {
    border: 1.5px solid #0072ff;
    outline: none;
}
button {
    padding: 1rem;
    border-radius: 30px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 198, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    letter-spacing: 1px;
}
button:hover {
    transform: scale(1.10);
    box-shadow: 0 8px 30px rgba(0, 198, 255, 0.3);
    background: linear-gradient(90deg, #0072ff, #00c6ff);
}
footer {
    width: 100%;
    background: #f8fafc;
    box-shadow: 0 -2px 12px rgba(0,114,255,0.04);
    text-align: center;
    padding: 24px 0 12px 0;
    margin-top: 0;
    animation: fadeInUp 2s;
    box-shadow: 0 -4px 20px rgba(44,83,100,0.10);
    position: relative;
}
footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.2s;
}
footer a:hover {
    color: #00c6ff;
}
footer a::before {
    content: url('https://upload.wikimedia.org/wikipedia/commons/a/a5/Instagram_icon.png');
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.team-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.team-card {
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(44, 83, 100, 0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    width: 220px;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeInUp 1.5s;
}
.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(44, 83, 100, 0.12);
    transition: transform 0.4s, box-shadow 0.4s;
}
.team-card:hover img {
    transform: scale(1.15) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(0, 198, 255, 0.25);
}
.team-card h3 {
    margin: 0.5rem 0 0.2rem 0;
    font-size: 1.2rem;
    color: #0072ff;
}
.team-card p {
    margin: 0;
    font-size: 1rem;
    color: #2c5364;
}
.results-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.result-card {
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(44, 83, 100, 0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    width: 220px;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeInUp 1.5s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.result-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    color: #2c5364;
    font-weight: 500;
    margin-top: 0.2rem;
}
.result-card .highlight {
    margin: 0.7rem 0 0.7rem 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #0072ff;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1px;
    display: block;
}
.result-card .bar {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    margin: 0 auto;
    width: 0;
    transition: width 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.result-card:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 198, 255, 0.18);
}
.result-card:hover .bar1 {
    width: 90%;
}
.result-card:hover .bar2 {
    width: 80%;
}
.result-card:hover .bar3 {
    width: 70%;
}
.result-card .bar1 {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}
.result-card .bar2 {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
}
.result-card .bar3 {
    background: linear-gradient(90deg, #fa709a, #fee140);
}
.highlight {
    color: #0072ff;
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 0.3rem;
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(44,83,100,0.25);
    animation: fadeIn 0.5s;
}
.lightbox .close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: color 0.2s;
}
.lightbox .close:hover {
    color: #00c6ff;
}
/* Amélioration du design de la section À propos */
#a-propos {
    background: linear-gradient(90deg, #f8fafc 0%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 114, 255, 0.08);
    padding: 48px 32px;
    margin: 40px auto 32px auto;
    max-width: 800px;
    position: relative;
    animation: fadeInUp 1.2s;
}
#a-propos h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0072ff;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
#a-propos p {
    font-size: 1.18rem;
    color: #222;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto;
    max-width: 650px;
    font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
}
.a-propos-icon {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    opacity: 0.18;
    pointer-events: none;
}
@media (max-width: 900px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
    }
    main {
        padding: 1.5rem;
    }
    .services-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    .team-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .team-card {
        width: 90%;
        max-width: 320px;
    }
    .results-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .result-card {
        width: 90%;
        max-width: 320px;
    }
    .lightbox img {
        max-width: 95vw;
        max-height: 60vh;
    }
    .lightbox .close {
        top: 20px;
        right: 20px;
        font-size: 2.2rem;
    }
    #a-propos {
        padding: 32px 10px;
    }
    .a-propos-icon {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
    0% { transform: scale(0.8); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
