/* ===================================
   RESET ET BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 30%, #2d1b3d 60%, #3d1f2f 100%);
    min-height: 100vh;
}

/* ===================================
   CONTENEUR PRINCIPAL
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1a1a24;
    min-height: 100vh;
}

/* ===================================
   HEADER
   =================================== */
header {
    background: linear-gradient(135deg, #2d1b3d 0%, #3d2645 50%, #4d2d3d 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===================================
   NAVIGATION
   =================================== */
nav {
    background: #0f0f1a;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #b8577d;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.external-link::after {
    content: "→";
    font-size: 1.2rem;
}

/* ===================================
   BOUTON RETOUR ACCUEIL
   =================================== */
.back-home {
    display: inline-block;
    margin: 2rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #5a3d5c 0%, #b8577d 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
    font-weight: 600;
}

.back-home:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7d4d6d 0%, #d47694 100%);
}

.back-home::before {
    content: "← ";
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: 3rem 2rem;
    border-bottom: 1px solid #2a2a3a;
}

section:last-child {
    border-bottom: none;
}

.section {
    margin-bottom: 3rem;
}

.cv-content {
    padding: 2rem;
}

/* ===================================
   TITRES
   =================================== */
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #b8577d;
    border-bottom: 3px solid #b8577d;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h3 {
    color: #b8577d;
}

/* ===================================
   PRÉSENTATION
   =================================== */
.presentation-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a3d5c 0%, #7d4d6d 50%, #b8577d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(184, 87, 125, 0.3);
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

/* ===================================
   LIENS RAPIDES (CARTES)
   =================================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    background: #252535;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #2a2a3a;
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(184, 87, 125, 0.4);
    border-color: #b8577d;
}

.link-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-card h3 {
    color: #b8577d;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.link-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* ===================================
   PROJETS
   =================================== */
.projet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projet-card {
    background: linear-gradient(135deg, #2d1b3d 0%, #4d2d4d 50%, #5a3d5c 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #b8577d40;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.projet-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(184, 87, 125, 0.4);
    border-color: #b8577d;
}

.projet-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.projet-card p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===================================
   PAGE TUTORIELS - RECHERCHE
   =================================== */
.search-section {
    background: #252535;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid #2a2a3a;
}

.search-section h2 {
    display: block;
    margin-bottom: 1.5rem;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #2a2a3a;
    border-radius: 8px;
    background: #1a1a24;
    color: #e0e0e0;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #b8577d;
    box-shadow: 0 0 0 3px rgba(184, 87, 125, 0.1);
}

.search-input::placeholder {
    color: #6a6a7a;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: #1a1a24;
    color: #d0d0d0;
    border: 2px solid #2a2a3a;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #2a2a3a;
    border-color: #b8577d;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #5a3d5c 0%, #b8577d 100%);
    border-color: #b8577d;
    color: white;
}

.tutorials-count {
    color: #b8577d;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   PAGE TUTORIELS - CARTES
   =================================== */
.tutoriel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tutoriel-card {
    background: #252535;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid #2a2a3a;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tutoriel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(184, 87, 125, 0.3);
    border-color: #b8577d;
}

.tutoriel-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tutoriel-card h3 {
    color: #b8577d;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.tutoriel-card p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tutoriel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tutoriel-category {
    background: rgba(184, 87, 125, 0.2);
    color: #b8577d;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tutoriel-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.difficulty-beginner {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.difficulty-intermediate {
    background: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
}

.difficulty-advanced {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: #252535;
    border-radius: 10px;
    margin-top: 2rem;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.no-results p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* ===================================
   FORMULAIRE DE CONTACT
   =================================== */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #d0d0d0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #2a2a3a;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #252535;
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8577d;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(135deg, #5a3d5c 0%, #b8577d 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7d4d6d 0%, #d47694 100%);
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: #252535;
    border-radius: 10px;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #d0d0d0;
}

/* ===================================
   PAGE CV
   =================================== */
.download-section {
    text-align: center;
    padding: 2rem;
    background: #252535;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid #b8577d40;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #5a3d5c 0%, #b8577d 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(184, 87, 125, 0.4);
    background: linear-gradient(135deg, #7d4d6d 0%, #d47694 100%);
}

.download-btn::before {
    content: "📄 ";
    font-size: 1.3rem;
}

.lettre-motivation {
    background: #252535;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #b8577d;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.lettre-motivation p {
    margin-bottom: 1rem;
    color: #d0d0d0;
    text-align: justify;
}

.cv-section {
    display: grid;
    gap: 2rem;
}

.cv-block {
    background: #252535;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #b8577d;
}

.cv-block h3 {
    color: #b8577d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a3a;
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv-item h4 {
    color: #d0d0d0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cv-item .date {
    color: #b8577d;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cv-item .location {
    color: #a0a0a0;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cv-item p,
.cv-item ul {
    color: #a0a0a0;
    line-height: 1.6;
}

.cv-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.cv-item li {
    margin-bottom: 0.3rem;
}

/* ===================================
   COMPÉTENCES
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-category {
    background: #1a1a24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #2a2a3a;
}

.skill-category h5 {
    color: #b8577d;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.skill-category ul {
    list-style: none;
    margin: 0;
}

.skill-category li {
    color: #d0d0d0;
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.skill-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #b8577d;
}

/* ===================================
   CERTIFICATIONS
   =================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cert-card {
    background: #1a1a24;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a2a3a;
    transition: transform 0.3s, border-color 0.3s;
}

.cert-card:hover {
    transform: translateY(-3px);
    border-color: #b8577d;
}

.cert-card h5 {
    color: #d0d0d0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-card .cert-date {
    color: #b8577d;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   PAGE VEILLE TECHNOLOGIQUE
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #2d1b3d 0%, #3d2645 50%, #4d2d3d 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section {
    background: #252535;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #b8577d;
    margin-bottom: 2rem;
}

.intro-section p {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: #252535;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #2a2a3a;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: #b8577d;
    box-shadow: 0 8px 16px rgba(184, 87, 125, 0.3);
}

.article-header {
    background: linear-gradient(135deg, #5a3d5c 0%, #7d4d6d 100%);
    padding: 1.5rem;
    color: white;
}

.article-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.article-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-body {
    padding: 1.5rem;
}

.article-body p {
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-source {
    color: #b8577d;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #5a3d5c 0%, #b8577d 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: 600;
}

.article-link:hover {
    background: linear-gradient(135deg, #7d4d6d 0%, #d47694 100%);
}

.n8n-section {
    background: linear-gradient(135deg, #2d1b3d 0%, #3d2645 100%);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    color: white;
}

.n8n-section h2 {
    color: white;
    border-bottom-color: white;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card h4 {
    color: #b8577d;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.use-cases {
    background: #252535;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.use-case-item {
    background: #1a1a24;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #b8577d;
}

.use-case-item:last-child {
    margin-bottom: 0;
}

.use-case-item h4 {
    color: #b8577d;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.use-case-item p {
    color: #d0d0d0;
    line-height: 1.7;
}

.use-case-item ul {
    color: #a0a0a0;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #b8577d;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-content {
    background: #252535;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #2a2a3a;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-date {
    color: #b8577d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.conclusion-section {
    background: linear-gradient(135deg, #5a3d5c 0%, #7d4d6d 100%);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    color: white;
    text-align: center;
}

.conclusion-section h2 {
    color: white;
    border: none;
    display: block;
    margin-bottom: 1.5rem;
}

.conclusion-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: #0f0f1a;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .presentation-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .cv-content {
        padding: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
    }

    .filter-buttons {
        justify-content: center;
    }

    .tutoriel-grid {
        grid-template-columns: 1fr;
    }
}
