/*-- scss:rules --*/

/* Styles généraux */
:root {
  --primary-color: #2e3135;
  --secondary-color: #10121b;
  --accent-color: #444149;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #2d3032;
  --border-color: #2a2b2e;
}

/* Section hero */
.hero-section {
  background: linear-gradient(135deg, #1c1c1f 0%, #1a191b 100%);
  color: white;
  padding: 4rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 2rem 2rem;
}

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

.profile-container {
  margin: 2rem 0;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

/* Section CTA */
.cta-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Section contact */
.contact-section {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 1rem;
  margin: 2rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.social-links img {
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
}

/* Section citation */
.quote-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 2rem 0;
}

.quote-section blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  border: none;
}

/* Footer */
.footer-counter {
  text-align: center;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card, .projects-preview, .contact-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Amélioration de la typographie */
h1, h2, h3 {
  color: var(--text-dark);
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-light);
}

/* Styles pour la photo arrondie (compatibilité) */
.rounded-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}


/* ===================
   STYLES PAGE ABOUT
   =================== */

/* Section hero about */
.about-hero {
  background: linear-gradient(135deg, #252627 0%, #141018 100%);
  color: white;
  padding: 3rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 2rem 2rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.about-profile-image:hover {
  transform: scale(1.05);
}

/* Grille formation */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.education-card {
  background: rgb(44, 42, 42);
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-left-color: var(--accent-color);
}

/* Timeline expériences */
.experience-timeline {
  position: relative;
  padding-left: 2rem;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 1.5px;
}

.experience-item {
  position: relative;
  background: rgb(49, 47, 47);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.experience-item.current::before {
  background: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-color);
  animation: pulse 2s infinite;
}

.experience-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.experience-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.experience-item strong {
  color: var(--text-dark);
}

/* Barres de compétences */
.skills-section {
  margin: 2rem 0;
}

.skill-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.skill-level {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 50px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 0.5rem 1rem 0 0;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
  animation: fillBar 1.5s ease-out;
}

@keyframes fillBar {
  from { width: 0%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* Section vision */
.vision-section {
  background: linear-gradient(45deg, #242526, #e2e8f0);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

.vision-section blockquote {
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  color: var(--text-dark);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  background: rgb(11, 10, 10);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section objectifs */
.goals-section {
  background: rgb(36, 34, 34);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

.goals-section li {
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

/* CTA contact */
.contact-cta {
  background: linear-gradient(135deg, #222223 0%, #232223 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 2rem 0;
}

.social-links-about {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Responsive About */
@media (max-width: 768px) {
  .about-hero {
    padding: 2rem 1rem;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .about-profile-image {
    width: 150px;
    height: 150px;
  }
  
  .experience-timeline {
    padding-left: 1rem;
  }
  
  .experience-item {
    padding: 1rem;
  }
  
  .experience-item:hover {
    transform: none;
  }
  
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .skill-bar {
    width: 100%;
    margin: 0.5rem 0;
  }
}


/* =======================
   STYLES PAGE PROJECTS
   ======================= */

/* Hero section projets */
.projects-hero {
  background: linear-gradient(135deg, #22242d 0%, #1a1222 100%);
  color: white;
  padding: 3rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 2rem 2rem;
  text-align: center;
}

/* Cards projets */
.project-card {
  display: flex;
  background: rgb(54, 48, 48);
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  flex: 0 0 300px;
  overflow: hidden;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.projet-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .projet-photo {
  transform: scale(1.05);
}

.project-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Technologies et fonctionnalités */
.project-tech, .project-features {
  background: var(--bg-light);
  padding: 0.8rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  border-left: 3px solid var(--accent-color);
}

.project-tech strong, .project-features strong {
  color: var(--text-dark);
  font-weight: 600;
}

.project-features ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1rem;
}

.project-features li {
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

/* Liens projets */
.project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-github {
  background: #24292e;
  color: white;
  border: 2px solid #24292e;
}

.btn-github:hover {
  background: white;
  color: #24292e;
}

.btn-linkedin {
  background: #0077b5;
  color: white;
  border: 2px solid #0077b5;
}

.btn-linkedin:hover {
  background: white;
  color: #0077b5;
}

.btn-email {
  background: #ea4335;
  color: white;
  border: 2px solid #ea4335;
}

.btn-email:hover {
  background: white;
  color: #ea4335;
}

/* Section CTA projets */
.projects-cta {
  background: linear-gradient(45deg, #f8fafc, #e2e8f0);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 2rem 0;
}

.dev-projects {
  background: white;
  padding: 1.5rem;
  border-radius: 0.8rem;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}

.dev-projects strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.dev-projects ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.dev-projects li {
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact projets */
.contact-projects {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 2rem 0;
}

.project-contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-projects .btn {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-projects .btn:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

/* Responsive projets */
@media (max-width: 768px) {
  .projects-hero {
    padding: 2rem 1rem;
  }
  
  .project-card {
    flex-direction: column;
  }
  
  .project-image {
    flex: none;
  }
  
  .projet-photo {
    height: 180px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-links {
    justify-content: center;
  }
  
  .project-contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .dev-projects ul {
    grid-template-columns: 1fr;
  }
}

/*============
STYLES CONTACTS
============*/

/* Grilles Quarto */
.grid {
  gap: 2rem;
  margin-bottom: 2rem;
}

.g-col-12, .g-col-md-6, .g-col-sm-4, .g-col-md-4 {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.g-col-12:hover, .g-col-md-6:hover, .g-col-sm-4:hover, .g-col-md-4:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.g-col-12::before, .g-col-md-6::before, .g-col-sm-4::before, .g-col-md-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g-col-12:hover::before, .g-col-md-6:hover::before, .g-col-sm-4:hover::before, .g-col-md-4:hover::before {
  opacity: 1;
}

/* Badges/Boutons */
img[alt*="badge"], a img {
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

img[alt*="badge"]:hover, a img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Liens */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Callouts Quarto */
.callout {
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 5px solid;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.callout-note {
  background: linear-gradient(135deg, #3d3d44 0%, #1d1e1f 100%);
  border-left-color: var(--primary-color);
}

.callout-tip {
  background: linear-gradient(135deg, #353736 0%, #2d2e2e 100%);
  border-left-color: var(--secondary-color);
}

.callout-warning {
  background: linear-gradient(135deg, #191918 0%, #232322 100%);
  border-left-color: var(--accent-color);
}

.callout-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Séparateurs */
hr {
  border: none;
  height: 2px;
  background: var(--gradient-primary);
  margin: 3rem 0;
  border-radius: 1px;
}

/* Citations/Blockquotes */
blockquote {
  background: var(--bg-light);
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 15px 15px 0;
  font-style: italic;
  font-size: 1.2rem;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid > div, .callout, h2 {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quarto-container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .grid {
    gap: 1rem;
  }
  
  .g-col-12, .g-col-md-6, .g-col-sm-4, .g-col-md-4 {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .quarto-container {
    padding: 1rem;
  }
  
  .callout {
    padding: 1.5rem;
  }
}

/* Styles spécifiques aux badges sociaux */
img[alt*="WhatsApp"]:hover {
  filter: brightness(1.1) saturate(1.2);
}

img[alt*="LinkedIn"]:hover {
  filter: brightness(1.1) hue-rotate(10deg);
}

img[alt*="GitHub"]:hover {
  filter: brightness(1.2) contrast(1.1);
}

img[alt*="Twitter"]:hover {
  filter: brightness(1.1) saturate(1.3);
}

/* Effet de parallaxe léger sur le scroll */
@media (prefers-reduced-motion: no-preference) {
  .callout {
    transform: translateZ(0);
    will-change: transform;
  }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #1f2937;
    --border-color: #374151;
  }
  
  body {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
  }
  
  .quarto-container {
    background: #111827;
    color: var(--text-dark);
  }
}

