/*
styleLinkTree.css
-----------------
CSS pour page agrégateur de liens (style Bento)
Par Sidoine B.
*/

@font-face {
    font-family: 'Eastwood';
    src: url('Eastwood.ttf');
}

@font-face {
    font-family: 'Vogue';
    src: url('Classyvogueregular.ttf');
}

/* Reset et configuration de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vogue', serif;
    color: #1C2833;
    min-height: 100vh;
    position: relative;
}

/* Background */
#background {
    background-color: white;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0.5;
}

.stretch {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header */
header {
    text-align: center;
    padding: 50px 20px 30px;
}

h1 {
    font-family: 'Eastwood', serif;
    font-weight: lighter;
    font-size: clamp(2.5em, 8vw, 5em);
    margin: 0;
}

h1 a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

h1 a:hover {
    color: white;
}

/* Container principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Section profil */
.profile {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(28, 40, 51, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.profile-info h2 {
    font-family: 'Eastwood', serif;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #1C2833;
}

.tagline {
    font-style: italic;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #34495E;
}

.description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #5D6D7E;
}

/* Grille de liens */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Cartes de liens */
.link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    text-decoration: none;
    color: #1C2833;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 180px;
    background-size: cover;
    background-position: center;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%);
    z-index: 1;
}

/* Grandes cartes (2 colonnes) */
.link-card.large {
    grid-column: span 2;
    min-height: 250px;
}

/* Petites cartes */
.link-card.small {
    grid-column: span 1;
}

/* Logo dans les petites cartes */
.card-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}

/* Overlay pour les grandes cartes avec image */
.card-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

/* Contenu des cartes */
.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-content h3 {
    font-family: 'Eastwood', serif;
    font-size: 1.8em;
    font-weight: normal;
    margin-bottom: 5px;
    color: #1C2833;
}

.card-content p {
    font-family: 'Vogue', serif;
    font-size: 1em;
    color: #5D6D7E;
    margin: 0;
}

/* Effet hover */
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.link-card:hover::before {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%);
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    font-size: 0.95em;
    color: #5D6D7E;
    margin-top: 20px;
    text-decoration: none;
    font-weight: normal;

}

footer p {
    font-family: 'Vogue', serif;
    font-size: 0.95em;
    color: #5D6D7E;
}

footer a {
    padding: 20px;
    text-align: center;
    font-size: 0.95em;
    color: #5D6D7E;
    margin-top: 20px;
    text-decoration: none;
    font-weight: normal;
}

/* === RESPONSIVE === */

/* Tablettes */
@media screen and (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }

    .profile-info h2 {
        font-size: 1.8em;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .link-card.large {
        grid-column: span 2;
        min-height: 200px;
    }

    .link-card.small {
        grid-column: span 1;
        min-height: 150px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 30px 15px 20px;
    }

    .profile {
        padding: 20px;
    }

    .profile-image img {
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 1em;
    }

    .description {
        font-size: 0.95em;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .link-card.large,
    .link-card.small {
        grid-column: span 1;
        min-height: 150px;
    }

    .card-logo {
        width: 50px;
        height: 50px;
    }

    .card-content h3 {
        font-size: 1.2em;
    }

    .card-content p {
        font-size: 0.9em;
    }
}

/* Très grands écrans */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }

    .links-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .link-card.large {
        grid-column: span 2;
    }
}
