:root {
    --bg: #f4f7f6;
    --dark: #1a1c20;
    --accent: #007bff;
    --success: #27ae60;
    --text-main: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
        
/* Règle par défaut : Autorise le scroll pour mobiles et tablettes */
body, html {
    margin: 0; padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    display: flex; 
    justify-content: center;
    align-items: flex-start; /* Aligne en haut pour permettre le défilement naturel */
    overflow-x: hidden;
    overflow-y: auto; 
}

.card {
    width: 95%; 
    max-width: 1100px;
    margin: 20px auto; /* Ajoute de l'espace sur mobile pour le scroll */
    background: var(--white);
    display: flex;
    flex-direction: column; /* Empilé par défaut pour iPhone/iPad */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar {
    width: 100%;
    background: var(--dark);
    color: var(--white);
    padding: 40px 30px;
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
}

.brand h1 { font-size: 1.8rem; margin: 0; letter-spacing: -0.5px; }
.brand .tagline { color: var(--accent); font-weight: 600; margin-top: 5px; font-size: 0.95rem; text-transform: uppercase; }
        
.availability {
    display: inline-flex; align-items: center;
    background: rgba(39, 174, 96, 0.2);
    color: #4cd137;
    padding: 6px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700;
    margin: 20px 0; border: 1px solid var(--success);
}
.availability::before {
    content: ''; display: inline-block; width: 8px; height: 8px;
    background: #4cd137; border-radius: 50%; margin-right: 8px;
    box-shadow: 0 0 8px #4cd137;
}

.info-list { list-style: none; padding: 0; font-size: 0.85rem; opacity: 0.8; line-height: 1.8; }

.btn {
    display: block; width: 100%; padding: 14px;
    margin-bottom: 12px; border-radius: 6px;
    text-align: center; text-decoration: none;
    font-weight: 700; font-size: 0.9rem; transition: 0.2s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.content {
    flex: 1; 
    padding: 40px 30px;
    display: flex; 
    flex-direction: column;
    justify-content: center;
}

h2 { font-size: 1.2rem; text-transform: uppercase; color: var(--dark); border-left: 4px solid var(--accent); padding-left: 15px; margin-bottom: 20px; }
p.intro { font-size: 1.05rem; color: var(--text-main); line-height: 1.6; margin-bottom: 30px; }

.grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    margin-bottom: 30px; 
}
.item strong { display: block; color: var(--accent); font-size: 0.9rem; margin-bottom: 5px; }
.item p { margin: 0; font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { background: #edf2f7; color: #4a5568; padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* ----------------------------------------------------------- */
/* COMPORTEMENT PC PORTABLE (Écrans larges > 1024px)           */
/* ----------------------------------------------------------- */
@media (min-width: 1025px) {
    body, html {
        height: 100%;
        overflow: hidden; /* Pas de scroll sur PC */
        align-items: center; /* Centre la carte verticalement */
    }

    .card {
        flex-direction: row; /* Côte à côte */
        height: 90vh;
        max-height: 800px;
        margin: 0;
    }

    .sidebar {
        width: 35%;
        min-width: 290px;
        height: 100%;
    }

    .content {
        height: 100%;
        padding: 50px;
        overflow-y: auto; /* Scroll interne si contenu trop long pour la zone blanche */
    }
}

/* ----------------------------------------------------------- */
/* AJUSTEMENTS POUR PETITS MOBILES (iPhone SE)                 */
/* ----------------------------------------------------------- */
@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
    .brand h1 { font-size: 1.5rem; }
    .content { padding: 30px 20px; }
}