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

:root{
  --primary:#2563eb;
  --primary-dark:#1e3a8a;
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --shadow: 0 10px 25px rgba(0,0,0,0.06);
  --shadow2: 0 14px 30px rgba(0,0,0,0.08);
  --radius:14px;
}

body{
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HEADER ===== */
.header{
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 34px 16px;
  box-shadow: var(--shadow);
}

.header-inner{
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Bloc LinkedIn (à gauche) */
.header-social{
  flex: 0 0 260px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(6px);
}

.social-title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.95;
}

/* Titre à droite */
.header-title{
  flex: 1;
  min-width: 0;
}

.header-title h1{
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.header-subtitle{
  margin-top: 10px;
  opacity: 0.9;
  font-size: 14px;
}

/* ===== CONTAINER ===== */
.container{
  width: min(1000px, 92%);
  margin: 34px auto;
}

/* ===== CARDS ===== */
.card{
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card h2{
  font-size: 20px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  color: #111827;
}

.card p{ margin: 12px 0; }
.card ul{ margin: 12px 0 0 18px; }
.card li{ margin-bottom: 6px; }

/* ===== MEDIA (image gauche / texte droite) ===== */
.media{
  display: flex;
  gap: 18px;
  margin-top: 14px;
  align-items: flex-start;
}

.media-img{
  flex: 0 0 230px;
  max-width: 260px;
}

.media-img img{
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}

.media-img img:hover{
  transform: scale(1.03);
}

.media-text{
  flex: 1;
  min-width: 0;
}

/* ===== Section Outils : image plus petite ===== */
.outils .media{
  align-items: center;
}

.outils .media-img{
  flex: 0 0 150px;
  max-width: 170px;
}

.outils .media-img img{
  max-height: 150px;
  object-fit: contain;
}

/* ===== CTA (CV + Contact) ===== */
.cta .cta-text{
  color: var(--muted);
  margin-top: 6px;
}

.divider{
  height: 1px;
  background: #eef2f7;
  margin: 18px 0;
}

.cta-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ===== BOUTONS ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover{
  background: #1d4ed8;
  box-shadow: 0 14px 24px rgba(37,99,235,0.25);
}

.btn-outline{
  background: #fff;
  color: var(--primary);
  border: 1px solid #dbe7ff;
}

.btn-outline:hover{
  background: #eaf1ff;
  box-shadow: 0 14px 24px rgba(0,0,0,0.08);
}

/* Variante blanche pour le bouton dans le header */
.btn-white{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.40);
  color: #0f172a;
  box-shadow: none;
}

.btn-white:hover{
  background: #fff;
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer{
  text-align: center;
  padding: 26px 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .header-title h1{ font-size: 22px; }
  .header-social{ flex-basis: 240px; }
}

@media (max-width: 768px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
  }

  .header-social{
    width: 100%;
  }

  .header-title h1{
    font-size: 20px;
  }

  .media{
    flex-direction: column;
  }

  .media-img{
    max-width: 100%;
    flex: none;
  }
}