/* Reset et bases */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* Scroll des sections */
.sections {
    display: flex;
    flex-direction: column;
    scroll-snap-type: y mandatory;
    overflow: hidden;
}

.section {
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    width: 100vw;
    flex-direction: column;
    text-align: center;
}

/* Section 1 - Accueil */
#section1 {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

#typing-text {
    font-size: 2.5rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white;
    width: 0;
    display: inline-block;
    animation: typing 3s steps(30, end) forwards;
}

.highlight {
    color: #FFD700;
}

.cta-button {
    margin-top: 50px;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #ff5733;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    z-index: 10;
}

.cta-button:hover {
    background-color: #ff784f;
    transform: scale(1.1);
}

/* Section 2 - Citation animée */
#section2 {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(255, 0, 123, 0.7));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
    animation: backgroundAnimation 15s infinite alternate;
}

@keyframes backgroundAnimation {
    0% { background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(255, 0, 123, 0.7)); }
    50% { background: linear-gradient(135deg, rgba(255, 182, 193, 0.7), rgba(0, 255, 182, 0.7)); }
    100% { background: linear-gradient(135deg, rgba(123, 0, 255, 0.7), rgba(0, 255, 255, 0.7)); }
}

.quote-container {
    max-width: 600px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 2s ease-out;
    width: 100%;
}

.intro-text, .quote-text, .author-text {
    opacity: 0;
    animation: fadeInText 3s forwards;
}

.intro-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation-delay: 0.5s;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 10px;
    animation-delay: 1s;
}

.author-text {
    font-size: 1.4rem;
    font-weight: bold;
    animation-delay: 1.5s;
}

@keyframes fadeInText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Flèche pour faire défiler */
#scrollArrow {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

/* Sections génériques */
#section3 { background-color: lightgoldenrodyellow; }
#section4 { background-color: lightskyblue; }
#section5 { background-color: lightcoral; }
#section6 { background-color: lightseagreen; }
#section7 { background-color: lightgoldenrodyellow; }
#section8 { background-color: lightskyblue; }

/* Sidebar de navigation */
.sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.bubble {
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bubble.active {
    background-color: black;
    color: white;
    transform: scale(1.2);
}

/* Section Veille Technologique */
#section3 {
    background-color: lightgoldenrodyellow;
    overflow-y: auto;
    padding: 40px 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.press-section {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.press-articles-container {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.press-articles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

.press-article {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    transition: transform 0.3s ease;
}

.press-article:hover {
    transform: translateY(-5px);
}

.press-article h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.press-article p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.press-article .cta-button {
    background-color: #1e3c72;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.press-article .cta-button:hover {
    background-color: #2a5298;
}

/* Responsive */
@media (max-width: 768px) {
    .press-articles-wrapper {
        padding: 10px 0;
        gap: 20px;
    }
    
    .press-article {
        padding: 20px;
    }
    
    .press-article h2 {
        font-size: 1.5rem;
    }
    
    .press-article p {
        font-size: 1rem;
    }
}

/* Titres de section */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
    font-size: 2em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.section-title h1 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin: 0;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background-color: #1e3c72;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Conteneur PDF */
.pdf-container {
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    background: white;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}

.pdf-download {
    margin-top: 20px;
}

.pdf-download .cta-button {
    background-color: #1e3c72;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
}

.pdf-download .cta-button:hover {
    background-color: #2a5298;
}

/* Section 5 - CV et Compétences */
#section5 {
    background-color: lightcoral;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.cv-download-container {
    text-align: center;
    margin-bottom: 50px;
}

.cv-download-button {
    padding: 15px 30px;
    font-size: 1.3rem;
    background-color: #1e3c72;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cv-download-button:hover {
    background-color: #2a5298;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.skills-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.skills {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.skills h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.skill {
    margin-bottom: 15px;
}

.skill span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.skill-bar {
    width: 100%;
    background-color: #eee;
    border-radius: 5px;
    height: 20px;
}

.skill-level {
    height: 100%;
    background-color: #1e3c72;
    border-radius: 5px;
}

/* Version mobile */
@media (max-width: 768px) {
    .cv-download-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    #section5 {
        padding: 40px 20px;
    }
}

/* ---------- Section 6 : Parcours Scolaire ---------- */
#section6 {
    background-color: lightseagreen;
    padding: 30px 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.studies-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.studies-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.study-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.study-card:hover {
    transform: translateY(-5px);
}

.study-period {
    color: white;
    background-color: #1e3c72;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Diplôme - Texte plus gros */
.diploma-title {
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Établissement - Texte plus petit */
.institution {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-style: italic;
}

/* Option - Remplace la description */
.option {
    color: #444;
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 500;
}

/* Spécialités */
.specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px auto 0;
    max-width: 90%;
}

.specialty {
    background-color: #f0f8ff;
    color: #1e3c72;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #d0e3ff;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Version mobile */
@media (max-width: 768px) {
    #section6 {
        padding: 30px 15px;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
    }
    
    .study-card {
        padding: 20px;
    }
    
    .diploma-title {
        font-size: 1.4rem;
    }
    
    .institution, .option {
        font-size: 0.9rem;
    }
    
    .specialties {
        gap: 6px;
    }
    
    .specialty {
        padding: 5px 12px;
        min-width: 80px;
        font-size: 0.85rem;
    }
}

/* ---------- Section 7 : Expériences Professionnelles ---------- */
#section7 {
    background-color: lightgoldenrodyellow;
    padding: 30px 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experiences-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.experiences-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.experience-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-period {
    color: white;
    background-color: #2a5298;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.experience-title {
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.company {
    color: #555;
    margin-bottom: 5px;
    font-size: 1.05rem;
    font-weight: 600;
}

.role {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-style: italic;
}

.missions {
    padding-left: 20px;
    margin-top: 15px;
}

.missions li {
    color: #444;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Version mobile */
@media (max-width: 768px) {
    #section7 {
        padding: 30px 15px;
        height: auto;
        min-height: 100vh;
    }
    
    .experiences-list {
        grid-template-columns: 1fr;
    }
    
    .experience-card {
        padding: 20px;
    }
    
    .experience-title {
        font-size: 1.3rem;
    }
}

/* ---------- Section 8 : Contact ---------- */
#section8 {
    background-color: lightskyblue;
    padding: 40px 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    color: #333;
    margin-top: 10px;
    font-size: 1.1rem;
}

.contact-content {
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    text-align: left;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 80%;
    height: 80%;
}

.contact-details h3 {
    color: #1e3c72;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.contact-link {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: #2a5298;
    text-decoration: underline;
}

.contact-cta {
    margin-top: 50px;
}

.contact-cta p {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Version mobile */
@media (max-width: 768px) {
    #section8 {
        padding: 30px 15px;
        height: auto;
        min-height: 100vh;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-cta {
        margin-top: 30px;
    }
}