


/*  Fond SVG style routage  */
/* ---------------------------------------------------------------------------------------------------------------------  */
.background-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.background-svg svg {
    width: 100%;
    height: 100%;
    opacity: 0.25; /* subtil pour pas gêner la lecture */
}
.trace {
    stroke-dasharray: 10 14;
    animation: signalFlow 6s linear infinite;
}
.nodes circle {
    fill: #34a853;
    animation: blinkNode 2.5s infinite alternate;
}
@keyframes signalFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -300; }
}
@keyframes blinkNode {
    from { opacity: 0.3; r: 3; }
    to { opacity: 1; r: 6; }
}
/* ---------------------------------------------------------------------------------------------------------------------  */



/* Corps*/
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;

    /* Dégradé  */
    background: linear-gradient(120deg, #a1c4fd, #c2e9fb, #fef9c3, #ffe5d9);
    background-size: 600% 600%;
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Principal  */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 90%;
    gap: 40px;
    margin: auto;
}

/*  Texte  */
.text {
    flex: 1;
    animation: slideLeft 1s ease-out;
}

/*  Titre "Bienvenue sur mon site"  */
.text h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #1a73e8;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: .15em solid #1a73e8;
    animation: typing 2s steps(30, end) forwards, blink 0.7s step-end infinite alternate;
}

/*  Titre " Matteo BAUDET"  */
.text h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #34a853;
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
}
/*  Paragraphe */
.text p {
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
    opacity: 0;
    animation: fadeIn 1s forwards 2.5s;
}

/*  Boutons  */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px; 
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.btn:hover { /*quand la souris ce pause sur le bouton*/
    background-color: #1557b0;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(26, 115, 232, 0.5);
}

/*  Image  */
/* ----------------------------------------------------------------------------------------------------------------------- */
.image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideRight 1s ease-out;
}
.image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.4s;
    animation: float 3s ease-in-out infinite;
}
.image img:hover {
    transform: scale(1.05);
}
/* ----------------------------------------------------------------------------------------------------------------------- */

/* Animations */
/* ----------------------------------------------------------------------------------------------------------------------- */

/* Translation gauche*/
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Translation droite*/
@keyframes slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Image */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Ecriture auto */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Curseur clignotement */
@keyframes blink {
    50% { border-color: transparent; }
}

/* Aparition  */
@keyframes fadeIn {
    to { opacity: 1; }
}


/*Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;  
        text-align: center;  
    }
    .image {
        margin-top: 25px;
    }
    .btn {
        margin-bottom: 10px;
    }
}
/*-----------------------------------------------------------------------------------------------------------------------*/

/* ------------------------------------------------------------------------------------------------ */
/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9em;
    color: #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer a {
    color: #1a73e8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
