/* ============================================================ */
/* home.css — Page recruteur (route /)                          */
/* Palette crème & noyer : claire, chaleureuse, institutionnelle */
/* Indépendante de l'identité AlphaDesk (sombre/technique)      */
/* ============================================================ */

/* ============================================================ */
/* Variables CSS de la palette                                  */
/* Centralisées en haut pour faciliter ajustements futurs       */
/* ============================================================ */
/* ============================================================ */
/* Variables CSS — Palette "Bois et papier" (institutionnelle)  */
/* ============================================================ */
.home-page {
    --bg-main:        #e3d6bd;   /* sable doré */
    --bg-card:        #f2ead8;   /* parchemin */
    --bg-soft:        #d0c0a3;   /* sable plus dense (tags, fond doux) */
    
    --text-primary:   #1a130c;   /* presque noir noyer */
    --text-secondary: #5c4a3a;   /* noyer moyen pour texte secondaire */
    --text-muted:     #8a7560;   /* noyer clair pour annotations */
    
    --accent:         #8b5a2b;   /* bois noyer chaud */
    --accent-hover:   #6e4521;   /* noyer foncé pour hover */
    --accent-soft:    #b89976;   /* noyer très clair pour bordures */
    
    --border:         #c4af8b;   /* bordures plus marquées */
    --shadow:         0 2px 8px rgba(26, 19, 12, 0.12);
    --shadow-hover:   0 6px 20px rgba(26, 19, 12, 0.18);
}

/* ============================================================ */
/* Application de la palette au body                             */
/* ============================================================ */
.home-page {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Sections : structure commune, largeur max, espacement vertical */
.home-page section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Titre de section : élégant, peu chargé */
.home-page .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-soft);
    letter-spacing: -0.5px;
}

/* ============================================================ */
/* SECTION 1 : HERO                                              */
/* Bandeau d'introduction avec dégradé subtil                    */
/* ============================================================ */
.home-page .hero {
    background: linear-gradient(135deg, #e3d6bd 0%, #d0c0a3 100%);
    border-bottom: 1px solid var(--border);
    padding: 6rem 2rem !important;
    max-width: none !important;       /* override la max-width section */
    margin: 0 !important;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Eyebrow : petit label en haut */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-title {
    font-size: 1.4rem;
    color: var(--accent);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.hero-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
}

.hero-pitch {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 auto 2.5rem auto;
    max-width: 650px;
}

.hero-pitch strong {
    color: var(--accent);
    font-weight: 700;
}

/* Boutons d'action du hero */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================ */
/* Système de boutons                                            */
/* On préfixe avec .home-page pour ne PAS écraser les .btn       */
/* éventuels du dashboard via une éventuelle remontée CSS        */
/* ============================================================ */
.home-page .btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}

.home-page .btn-primary {
    background: var(--text-primary);     /* presque noir noyer */
    color: #f2ead8;                       /* parchemin */
}
.home-page .btn-primary:hover {
    background: var(--accent);            /* noyer chaud au hover */
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.home-page .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent-soft);
}
.home-page .btn-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Bouton désactivé : pour projets "bientôt disponibles" sans lien actif */
/* Bordure pointillée pour signaler subtilement l'état "en construction" */
.home-page .btn-disabled {
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: not-allowed;
    border: 1px dashed var(--accent-soft);
}
.home-page .btn-disabled:hover {
    /* aucun effet de survol : le bouton reste figé */
    background: var(--bg-soft);
    color: var(--text-muted);
    transform: none;
    box-shadow: none;
}

/* ============================================================ */
/* SECTION 2 : À PROPOS                                          */
/* ============================================================ */
.about-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    max-width: 800px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--accent);
    font-weight: 700;
}

/* ============================================================ */
/* SECTION 3 : GALERIE DE PROJETS                                */
/* ============================================================ */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Image du projet à gauche */
/* Image du projet à gauche : occupe toute la hauteur de la carte */
.project-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    min-height: 100%;          /* prend la hauteur de son parent grid */
}

.project-image img {
    width: 100%;
    height: 100%;              /* remplit toute la hauteur */
    object-fit: cover;         /* couvre la zone, recadre si nécessaire */
    object-position: top;      /* recadre par le bas si l'image dépasse */
    display: block;
}

/* Badge de statut sur la capture */
.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-live {
    background: #2d6a4f;        /* vert forêt sobre, contraste OK sur sable */
    color: #ffffff;
}
.badge-wip {
    background: #6e4521;        /* noyer foncé pour cohérence avec la palette */
    color: #ffffff;
}

/* Contenu du projet à droite */
.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.project-subtitle {
    font-size: 1.05rem;
    color: var(--accent);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

/* Tags techno : pills élégantes */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Message "d'autres projets bientôt" */
.projects-tease {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin: 2rem 0 0 0;
    font-size: 0.9rem;
}

/* ============================================================ */
/* SECTION 4 : STACK TECHNIQUE                                   */
/* ============================================================ */
.tech-category {
    margin-bottom: 2.5rem;
}

.tech-category:last-child {
    margin-bottom: 0;
}

.tech-category-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.tech-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.tech-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.tech-usage {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================================ */
/* SECTION 5 : CONTACT                                           */
/* ============================================================ */
.contact-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    max-width: 700px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
    font-weight: 500;
}

/* ============================================================ */
/* FOOTER                                                        */
/* ============================================================ */
.home-footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: var(--accent);
    color: rgba(242, 234, 216, 0.85);
}

.home-footer a {
    color: #f2ead8;            /* parchemin sur fond noyer */
    text-decoration: underline;
    font-weight: 600;
}

.home-footer a:hover {
    color: #ffffff;
}

.footer-copyright {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: rgba(242, 234, 216, 0.6);
}

/* ============================================================ */
/* RESPONSIVE — Tablette et mobile                               */
/* ============================================================ */
@media (max-width: 768px) {
    .hero-name { font-size: 2.5rem; }
    .hero-title { font-size: 1.15rem; }
    .hero-pitch { font-size: 1rem; }
    
    .project-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .home-page section {
        padding: 3rem 1.25rem;
    }
    
    .home-page .hero {
        padding: 4rem 1.25rem !important;
    }
}