/* Palette principale */
:root {
  --vert-islam: #1fa47a;
  --bleu-theologie: #2563eb;
  --blanc: #fff;
  --gris-fond: #f8fafc;
  --gris-texte: #64748b;
  --gris-titre: #1e293b;
  --vert-fonce: #17805c;
  --bleu-fonce: #1746a2;
  
  /* Variables pour compatibilité */
  --vert: #1fa47a;
  --bleu: #2563eb;
  --gris: #f8fafc;
  --gris-fonce: #e2e8f0;
  --noir: #1e293b;
  --vert-clair: #d1fae5;
  --bleu-clair: #dbeafe;
  --ombre: 0 4px 24px rgba(0,0,0,0.08);
  --rayon: 16px;
  --rayon-grand: 24px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gris-fond);
  color: var(--gris-titre);
  line-height: 1.7;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(31, 164, 122, 0.04);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 2px solid var(--vert-islam);
  transition: all 0.3s;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo a {
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo a:hover {
  transform: scale(1.05);
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
  margin-right: 0.5rem;
}

.nav-logo h2 {
  color: var(--vert-islam);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--gris-titre);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--vert-islam), var(--bleu-theologie));
  border-radius: 2px;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -2px;
}

.nav-link:hover {
  color: var(--vert-islam);
}

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

/* Bouton Devis */
.nav-devis {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(90deg, var(--vert-islam), var(--bleu-theologie));
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s;
  box-shadow: 0 4px 15px rgba(31, 164, 122, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-devis:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  background: linear-gradient(90deg, var(--bleu-theologie), var(--vert-islam));
}

.devis-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.nav-devis:hover .devis-icon {
  transform: translateX(5px);
}

/* Sous-menus */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0;
  list-style: none;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu-link {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--gris-titre);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.submenu-link:hover {
  background: #f8fafc;
  color: var(--vert-islam);
  padding-left: 1.7rem;
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--vert-islam);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--gris-titre);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--vert-islam) 0%, var(--bleu-theologie) 100%);
  color: var(--blanc);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--blanc);
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.2rem;
  color: #e6fff6;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(31, 164, 122, 0.08);
}

.btn-primary {
  background: linear-gradient(90deg, var(--vert-islam), var(--bleu-theologie));
  color: var(--blanc);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--bleu-theologie), var(--vert-islam));
  color: var(--blanc);
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  background: var(--blanc);
  color: var(--vert-islam);
  border: 2px solid var(--vert-islam);
}

.btn-secondary:hover {
  background: var(--vert-islam);
  color: var(--blanc);
  border-color: var(--bleu-theologie);
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8rem;
  color: rgba(255,255,255,0.18);
  animation: float 4s ease-in-out infinite;
}

.hero-graphic i {
  color: var(--blanc);
  text-shadow: 0 2px 24px var(--bleu-theologie);
}

/* Services Section */
.services {
  padding: 90px 0;
  background: var(--blanc);
}

.section-header h2 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--vert-islam);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gris-texte);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--gris-fond);
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(31, 164, 122, 0.06);
  text-align: center;
  transition: all 0.3s;
  border: 1.5px solid var(--vert-islam);
}

.service-card:hover {
  background: var(--vert-islam);
  color: var(--blanc);
  box-shadow: 0 8px 32px rgba(31, 164, 122, 0.13);
  border-color: var(--bleu-theologie);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--bleu-theologie), var(--vert-islam));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2.2rem;
  color: var(--blanc);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--vert-islam), var(--bleu-theologie));
  color: var(--blanc);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bleu-theologie);
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--blanc);
}

.service-card p {
  color: var(--gris-texte);
  transition: color 0.3s;
}

.service-card:hover p {
  color: #e6fff6;
}

/* About Section */
.about {
  background: var(--gris-fond);
  padding: 90px 0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 350px;
}

.about-text h2 {
  color: var(--bleu-theologie);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--gris-texte);
  margin-bottom: 1.2rem;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat h3 {
  color: var(--vert-islam);
  font-size: 2.1rem;
  font-weight: 800;
}

.stat p {
  color: var(--gris-texte);
  font-size: 1.1rem;
}

.about-image {
  flex: 1 1 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-graphic {
  font-size: 6rem;
  color: var(--bleu-theologie);
  background: var(--blanc);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
  padding: 2rem;
}

/* Projects Section */
.projects {
  background: var(--blanc);
  padding: 90px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--gris-fond);
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
  text-align: center;
  transition: all 0.3s;
  border: 1.5px solid var(--bleu-theologie);
}

.project-card:hover {
  background: var(--bleu-theologie);
  color: var(--blanc);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
  border-color: var(--vert-islam);
}

.project-image {
  font-size: 2.5rem;
  color: var(--bleu-theologie);
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}

.project-card:hover .project-image {
  color: var(--blanc);
}

.project-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vert-islam);
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}

.project-card:hover h3 {
  color: var(--blanc);
}

.project-content p {
  color: var(--gris-texte);
  transition: color 0.3s;
}

.project-card:hover p {
  color: #e6fff6;
}

.project-tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  background: var(--vert-islam);
  color: var(--blanc);
  border-radius: 12px;
  padding: 0.3rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s;
}

.project-card:hover .tag {
  background: var(--bleu-theologie);
}

/* Contact Section */
.contact {
  background: var(--blanc);
  padding: 90px 0;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--vert-islam), var(--bleu-theologie));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-size: 1.5rem;
  box-shadow: 0 2px 12px rgba(31, 164, 122, 0.08);
}

.contact-item h3 {
  color: var(--bleu-theologie);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--gris-texte);
  font-size: 1rem;
}

.contact-form {
  flex: 1 1 350px;
  background: var(--gris-fond);
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(31, 164, 122, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--vert-islam);
  background: var(--blanc);
  color: var(--gris-titre);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--bleu-theologie);
  outline: none;
}

.contact-form button {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, var(--vert-islam), var(--bleu-theologie));
  color: var(--blanc);
  padding: 60px 0 20px;
}

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

.footer-section h3, .footer-section h4 {
  color: var(--blanc);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-section p {
  color: #e6fff6;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #e6fff6;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--vert-islam);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--blanc);
  color: var(--vert-islam);
  transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  text-align: center;
  color: #e6fff6;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .nav-devis {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .nav-logo img {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--blanc);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 2rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    gap: 0;
    margin: 0;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
    width: 100%;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-devis {
    margin: 1rem 0 0 0;
    width: 100%;
    justify-content: center;
  }
  
  .submenu {
    position: static !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: auto !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-item:hover .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 200px !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 0 !important;
  }
  
  .submenu-link {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 1rem;
  }
  
  .submenu-link:hover {
    padding-left: 1rem;
  }
  
  .submenu-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  .about-content, .contact-content {
    flex-direction: column;
    gap: 2rem;
  }
  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 8px;
  }
}

/* Animations de base */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-200deg) scale(0.3); }
  to { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Hero Banner pour page réalisations */
.hero-banner {
  padding: 140px 20px 80px;
  background: linear-gradient(135deg, var(--vert-islam) 0%, var(--bleu-theologie) 100%);
  color: var(--blanc);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--blanc);
}

.hero-banner p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Section générique */
.section {
  padding: 80px 0;
}

/* Réalisations Grid */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Realisation Card */
.realisation-card {
  background: var(--blanc);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(31,164,122,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.realisation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(31,164,122,0.15);
}

.realisation-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.realisation-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.realisation-card:hover .realisation-img img {
  transform: scale(1.05);
}

.realisation-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.realisation-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.realisation-info p {
  color: var(--gris-texte);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}


/* Responsive pour réalisations */
@media (max-width: 768px) {
  .hero-banner {
    padding: 120px 15px 60px;
  }
  
  .hero-banner h1 {
    font-size: 2.2rem;
  }
  
  .hero-banner p {
    font-size: 1.1rem;
  }
  
  .realisations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-banner h1 {
    font-size: 1.8rem;
  }
  
  .realisation-info {
    padding: 1.5rem;
  }
} 