/*
Theme Name: Portfolio Elementor
Theme URI: https://example.com/
Author: Votre nom
Author URI: https://example.com/
Description: Thème portfolio pour Elementor — page d'accueil statique avec styles et scripts personnalisés.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-elementor
*/


/* ===== Variables ===== */
:root {
  --primary: #1e293b;
  --primary-light: #334155;
  --primary-fg: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Utilities ===== */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}
.nav-container {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font); font-weight: 600; border: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: all var(--transition);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-light); box-shadow: var(--shadow-lg); }
.btn-outline { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-sm { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.5rem; }

/* ===== Hero ===== */
.hero { padding: 5rem 0; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-photo {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; margin-bottom: 1.5rem;
  border: 4px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.badge {
  display: inline-block; background: rgba(30,41,59,0.08);
  color: var(--primary); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; max-width: 700px; }
.hero-desc { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p, .section-desc { color: var(--text-muted); max-width: 500px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== Skill Cards ===== */
.skill-card { padding: 1.5rem; }
.skill-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.skill-name { font-weight: 600; display: block; margin-bottom: 1rem; }
.progress-bar {
  height: 0.625rem; background: var(--bg-alt); border-radius: 1rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0; background: var(--primary);
  border-radius: 1rem; transition: width 1s ease;
}
.skill-percent { display: block; text-align: right; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-top: 0.5rem; }

/* ===== Project Cards ===== */
.project-img { width: 100%; height: 200px; object-fit: cover; }
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag {
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg-alt); color: var(--text);
  padding: 0.25rem 0.75rem; border-radius: 2rem;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  transition: opacity var(--transition);
}
.project-link:hover { opacity: 0.7; }

/* ===== Contact ===== */
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
.social-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.social-icon:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  font-size: 0.875rem; color: var(--text-muted);
}

/* ===== Animations ===== */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.active { display: flex; }
  .menu-toggle { display: flex; }
  .btn-sm.nav-cv-mobile { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
