/* HOURIA AFOUFOU - Architecte d'Intérieur */
/* Modern CSS with Visual Identity Elements */

/* Font imports removed - now loaded via preload in HTML for better performance */

/* Font Loading Optimization - Prevent FOUT */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Roboto Light'), local('Roboto-Light');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Roboto Bold'), local('Roboto-Bold');
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Bebas Neue'), local('BebasNeue-Regular');
}

/* Font Loading States - Prevent Layout Shift */
.fonts-loading {
  visibility: hidden;
}

.fonts-loaded {
  visibility: visible;
}

:root {
  --primary-black: #000000;
  --secondary-black: #1a1a1a;
  --accent-black: #333333;
  --light-gray: #f5f5f5;
  --white: #FFFFFF;
  --black: #000000;
  --text-dark: #000000;
  --text-light: #666666;
  --light-bg: #F8F8F8;
  --shadow: rgba(0, 0, 0, 0.1);
  --accent-framboise: #C7527A;
  --accent-orange: #E67E22;
  
  /* Theme variables */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F8F8;
  --bg-tertiary: #f5f5f5;
  --text-primary: #000000;
  --border-color: #e0e0e0;
  --card-bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.95);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.2);

/* Light theme only - all dark mode styles removed */
}


/* Mon Processus section - Step numbers styling */

/* Light Mode (default) - White numbers on black circles */
.step-number,
.process-number,
.methodology-number {
  color: #FFFFFF !important;
  background: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Mon Processus section will maintain the same appearance in both light and dark modes */

/* Process section content - ensure readability in both modes */
.process-step,
.methodology-step {
  transition: all 0.3s ease;
}

/* Light Mode - Process step content */
.process-step h3,
.process-step h4,
.methodology-step h3,
.methodology-step h4 {
  color: var(--text-dark);
}

.process-step p,
.methodology-step p {
  color: var(--text-light);
}

/* Process step content maintains original styling in both modes */

/* Light mode list markers */
ul li::marker,
ol li::marker {
  color: var(--text-primary);
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Bebas Neue', 'Arial Black', 'Helvetica Bold', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: 'Bebas Neue', 'Arial Black', 'Helvetica Bold', Impact, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-black);
  text-decoration: none;
  letter-spacing: 3px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-black);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-black);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dark mode toggle removed */

.toggle-icon {
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/DSCF4583.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}


.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-black);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background: var(--secondary-black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--primary-black);
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-black);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-1 {
  grid-template-columns: 1fr;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--shadow-medium);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

.card-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Portfolio Gallery */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(212, 175, 55, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay-content {
  text-align: center;
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content p {
  margin: 0;
  flex: 1;
}

/* Language Switch Button */
.language-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.language-switch-btn:hover {
  background: var(--primary-black);
  color: var(--white);
  border-color: var(--primary-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-icon {
  font-size: 1rem;
}

.lang-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-right {
    gap: 1rem;
  }
  
  /* Dark mode toggle removed */
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .language-switch-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Process Section with Background */
.process-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/DSCF4840-Modifier.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  position: relative;
}

.process-section .section-title h2 {
  color: var(--white);
}

.process-section h3 {
  color: var(--white);
}

.process-section p {
  color: var(--white);
}

/* About Page Layout */
.about-section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text-content {
  padding-right: 1rem;
}

.about-image-content {
  padding-left: 1rem;
}

.about-image-placeholder {
  background: #f5f5f5;
  border: 2px dashed #ccc;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.about-image-placeholder:hover {
  border-color: var(--primary-black);
  background: #f0f0f0;
}

/* About Image Section */
.about-image-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  display: inline-block;
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  display: block;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* About Portfolio Button Overlay */
.about-portfolio-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.about-image-wrapper:hover .about-portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.about-portfolio-button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-black);
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-portfolio-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-black);
}

.about-portfolio-mobile {
  display: none;
  margin-top: 1.5rem;
}

.about-portfolio-button-mobile {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-black);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.about-portfolio-button-mobile:hover {
  background: var(--secondary-black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Text CTA Button */
.about-text-cta {
  margin-top: 2rem;
}

.about-text-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--primary-black);
  text-decoration: none;
  border: 2px solid var(--primary-black);
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text-button:hover {
  background: var(--primary-black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-text-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* About CTA Button Container */
.about-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.about-cta-button {
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  min-width: 120px;
  text-align: center;
}

/* Portfolio Showcase Section */
.portfolio-showcase {
  background: var(--white);
}

.portfolio-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.portfolio-image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-showcase-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.portfolio-button-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.portfolio-image-wrapper:hover .portfolio-button-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-cta-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-black);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-cta-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-button-mobile {
  display: none;
  text-align: center;
  margin-top: 2rem;
}

.portfolio-cta-button-mobile {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-black);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.portfolio-cta-button-mobile:hover {
  background: var(--secondary-black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive layout for about sections */
@media (max-width: 768px) {
  .about-section-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text-content,
  .about-image-content {
    padding: 0;
  }
  
  .about-image {
    max-width: 300px;
  }
  
  .about-text-section {
    padding: 1rem 0;
  }
  
  .about-cta-container {
    margin-top: 1.5rem;
  }
  
  .about-cta-button {
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
    min-width: 100px;
  }
  
  /* About Portfolio responsive styles */
  .about-portfolio-overlay {
    display: none;
  }
  
  .about-portfolio-mobile {
    display: block;
  }
  
  .about-portfolio-button-mobile {
    font-size: 0.85rem;
    padding: 0.7rem 1.3rem;
  }
  
  .about-text-cta {
    margin-top: 1.5rem;
  }
  
  .about-text-button {
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
  }
  
  /* Portfolio responsive styles */
  .portfolio-showcase-image {
    height: 300px;
  }
  
  .portfolio-button-overlay {
    display: none;
  }
  
  .portfolio-button-mobile {
    display: block;
  }
  
  .portfolio-cta-button-mobile {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .about-portfolio-overlay {
    display: none;
  }
  
  .about-portfolio-mobile {
    display: block;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-black {
  color: var(--primary-black);
}
.bg-light { background: var(--bg-secondary); }
.bg-dark { background: var(--dark-bg); }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
