:root {
    --clr: #007BFF; /* Couleur personnalisée pour les boutons */
}

/* Styles généraux */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    color: white;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Section Hero */
.hero {
    height: 100vh;
    background: url('fonPort.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 50px 20px;
    text-align: center;
    background: #f4f4f4;
}

.section:nth-child(even) {
    background: #e2e2e2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/************* CSS CARDS CORRIGÉ ***************/
.project-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-grid {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.card {
    flex: 0 0 300px;         /* largeur fixe de 300px */
    max-width: 300px;        /* pas plus large que 300px */
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: white;
    box-sizing: border-box;  /* inclut le padding dans la largeur */
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.card h3, .card p, .card a {
    padding: 10px;
}

/* Flèches simples sans cercle */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* Effet au survol des flèches */
.slide-arrow:hover {
    color: #007BFF;
    transform: translateY(-50%) scale(1.2);
    transition: color 0.3s, transform 0.3s;
}

/*************** Button contact css *******/

.social-links, .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-btn {
    cursor: pointer;
    height: 50px;
    width: 50px;
    font-family: 'Titillium Web', sans-serif;
    color: #333;
    border-radius: 10px;
    box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
    background: white;
    margin: 5px;
    transition: 0.3s;
    justify-content: center;
}

.social-btn svg {
    height: 24px;
    width: 24px;
}

.social-btn span {
    width: 0px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    margin-left: 5px;
}

.social-btn:hover {
    width: 150px;
    border-radius: 5px;
}

.social-btn:hover span {
    padding: 2px;
    width: 80px;
}

#twitter svg {
    fill: #1da1f2;
}

#linkedin svg {
    fill: #0e76a8;
}

#github {
    fill: #333;
}

/* Skills section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill {
    background-color: #9900ff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 10px 0;
    }

    .skill {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Contact button */
.button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
}

.button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.button:hover {
    background-color: #000;
}

.button:hover .button__icon-wrapper {
    color: #000;
}

.button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.button:hover .button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.button:hover .button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}
/* 11/06/2025 */

.formations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.formation-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 300px;
    max-width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formation-card h3 {
    color: var(--clr);
    margin-bottom: 5px;
}

.formation-card ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.formation-card img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.logo-container {
    width: 300px;
    height: 80px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.logo-container img.uniform-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





