/* style.css - ART DE LA TAILLE - Site Paysagiste */

/* Variables CSS */
:root {
  --primary-green: #2d5016;
  --secondary-green: #4a7c59;
  --accent-green: #6b8e23;
  --light-beige: #f5f5dc;
  --warm-beige: #f0e68c;
  --dark-brown: #8b4513;
  --text-dark: #3e3e3e;
  --text-light: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--light-beige);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* Bandeau réduction d'impôts */
.tax-banner {
  background: linear-gradient(135deg, var(--accent-green), var(--secondary-green));
  color: var(--text-light);
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  box-shadow: 0 2px 4px var(--shadow);
}

.tax-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--text-light);
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow);
}

/* ========================================
   LOGOS - DISPOSITION ET STYLES
   ======================================== */

/* Container principal pour les logos - Alignement à gauche */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alignement à gauche - changer en 'center' pour centrer */
  gap: 25px; /* Espacement entre les logos - ajustable */
  margin-bottom: 20px;
  flex-wrap: wrap; /* Permet le retour à la ligne sur petits écrans */
}

/* Wrapper pour chaque logo avec cercle élégant */
.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px; /* Taille du cercle - ajustable selon les besoins */
  height: 100px; /* Doit être identique à width pour un cercle parfait */
  background: linear-gradient(135deg, var(--light-beige), var(--warm-beige)); /* Dégradé de fond */
  border: 3px solid var(--accent-green); /* Bordure du cercle - couleur et épaisseur ajustables */
  border-radius: 50%; /* Cercle parfait - ne pas modifier */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Ombre portée - ajustable */
  transition: var(--transition); /* Animation fluide */
  overflow: hidden; /* IMPORTANT: Garde le logo dans le cercle */
}

.logo-wrapper:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-color: var(--secondary-green);
}

/* ========================================
   STYLES DES LOGOS DANS LES CERCLES
   ======================================== */

/* Logo principal ART DE LA TAILLE */
.main-logo {
  max-width: 70px; /* Taille dans le cercle - ajustable */
  max-height: 70px; /* Doit être cohérent avec max-width */
  width: auto;
  height: auto;
  object-fit: contain; /* IMPORTANT: Maintient les proportions du logo */
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2)); /* Ombre légère */
  transition: var(--transition); /* Animation fluide */
}

/* Logo partenaire JARDICOOP */
.partner-logo {
  max-width: 60px; /* Légèrement plus petit que le logo principal */
  max-height: 60px; /* Doit être cohérent avec max-width */
  width: auto;
  height: auto;
  object-fit: contain; /* IMPORTANT: Maintient les proportions du logo */
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2)); /* Ombre légère */
  transition: var(--transition); /* Animation fluide */
}

/* Effet hover sur les logos */
.logo-wrapper:hover .main-logo,
.logo-wrapper:hover .partner-logo {
  transform: scale(1.1);
}

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: none; /* Masqué car remplacé par le logo */
}

.tagline {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  font-style: italic;
}

/* Navigation */
.navigation {
  background-color: var(--warm-beige);
  padding: 15px 0;
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-menu a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--border-radius);
}

.nav-menu a:hover {
  background-color: var(--primary-green);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(74, 124, 89, 0.7)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f5f5dc" width="1200" height="600"/><path fill="%234a7c59" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 100px 0;
  text-align: center;
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-green), var(--secondary-green));
  color: var(--text-light);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--text-light);
}

.services h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-green);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--light-beige);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: 0 4px 6px var(--shadow);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green);
  box-shadow: 0 8px 25px var(--shadow);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Réalisations Section */
.realisations {
  padding: 80px 0;
  background-color: var(--text-light);
}

.realisations h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-green);
}

.realisations-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   GALERIE PHOTO RESPONSIVE
   ======================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes par défaut */
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px; /* Limiter la largeur pour un meilleur rendu */
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
  transition: var(--transition);
  background: var(--text-light);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

/* Image de la galerie */
.gallery-image {
  width: 100%;
  height: 250px; /* Hauteur fixe pour uniformiser */
  object-fit: cover; /* Maintient les proportions et remplit l'espace */
  object-position: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05); /* Effet zoom léger au survol */
}

/* Légende de la galerie */
.gallery-caption {
  padding: 20px;
  background: var(--text-light);
  flex-grow: 1; /* Prend l'espace restant */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

.gallery-caption p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  opacity: 0.9;
}

/* About Section */
.about {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--light-beige), var(--warm-beige));
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px var(--shadow);
  border: 3px solid var(--accent-green);
}

/* Contact Section */
/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--text-light);
}

.contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-green);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--light-beige);
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 2px 6px var(--shadow);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--shadow);
}

.contact-icon {
  font-size: 2rem;
  margin-right: 20px;
  color: var(--accent-green);
}

.contact-item h3 {
  color: var(--primary-green);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--text-dark);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Footer */
.footer {
  background: var(--primary-green);
  color: var(--text-light);
  text-align: center;
  padding: 30px 0;
}

.footer p {
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Responsive Design */

/* Tablettes en mode paysage et petits écrans desktop */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* Garde 2 colonnes */
    gap: 25px;
    max-width: 800px;
  }
  
  .gallery-image {
    height: 230px;
  }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .logo-container {
    justify-content: center; /* Centrer sur mobile pour un meilleur rendu */
    gap: 20px;
  }
  
  .logo-wrapper {
    width: 80px; /* Réduire la taille des cercles sur mobile */
    height: 80px;
  }
  
  .main-logo {
    max-width: 55px; /* Ajuster la taille des logos pour mobile */
    max-height: 55px;
  }
  
  .partner-logo {
    max-width: 45px;
    max-height: 45px;
  }
  
  .logo h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: 1fr; /* 1 colonne sur tablette */
    gap: 25px;
    max-width: 500px; /* Largeur réduite sur tablette */
  }
  
  .gallery-image {
    height: 220px; /* Hauteur légèrement réduite sur tablette */
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .logo-container {
    gap: 15px;
  }
  
  .logo-wrapper {
    width: 70px; /* Encore plus petit sur très petits écrans */
    height: 70px;
  }
  
  .main-logo {
    max-width: 45px; /* Ajuster pour très petits écrans */
    max-height: 45px;
  }
  
  .partner-logo {
    max-width: 35px;
    max-height: 35px;
  }
  
  .logo h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .services h2,
  .about-text h2,
  .contact h2,
  .realisations h2 {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  .gallery {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 20px;
    max-width: 100%; /* Pleine largeur sur mobile */
  }
  
  .gallery-image {
    height: 200px; /* Hauteur réduite sur mobile */
  }
  
  .gallery-caption {
    padding: 15px; /* Padding réduit sur mobile */
  }
  
  .gallery-caption h3 {
    font-size: 1.2rem; /* Titre plus petit sur mobile */
  }
  
  .gallery-caption p {
    font-size: 0.9rem; /* Texte plus petit sur mobile */
  }
}

