/*
Theme Name: Frouane Photographie
Description: Thème immersif et élégant pour photographe spécialisé en paysages, mer, villes et couchers de soleil. Compatible Elementor et WooCommerce.
Author: Frouane Photographie
Version: 1.0
Text Domain: frouane-photographie
Requires at least: 5.0
Tested up to: 6.4
WC requires at least: 3.0
WC tested up to: 8.0
*/

/* === VARIABLES CSS === */
:root {
  --majorelle: #6050DC;
  --cream: #F4EDE1;
  --text: #2B2B2B;
  --muted: #F7F7F7;
  --black: #111111;
  --white: #FFFFFF;
  --max-width: 1240px;
  --padding: 24px;
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

/* === RESET ET BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

/* === HEADER STICKY === */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(96, 80, 220, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.sticky-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--majorelle);
  text-decoration: none;
}

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

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--majorelle);
}

/* === SECTIONS === */
.section-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(96, 80, 220, 0.4), rgba(244, 237, 225, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 var(--padding);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-cream {
  background-color: var(--cream);
  padding: 6rem 0;
}

.section-muted {
  background-color: var(--muted);
  padding: 6rem 0;
}

/* === BOUTONS === */
.btn-primary {
  display: inline-block;
  background-color: var(--majorelle);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--majorelle);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--majorelle);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(96, 80, 220, 0.3);
}

.btn-ghost {
  display: inline-block;
  background-color: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--white);
}

.btn-ghost:hover {
  background-color: var(--white);
  color: var(--text);
  transform: translateY(-2px);
}

/* === CARTES === */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

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

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  color: #666;
  line-height: 1.5;
}

/* === GRILLES === */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.quality-item {
  text-align: center;
  padding: 2rem;
}

.quality-icon {
  width: 64px;
  height: 64px;
  background-color: var(--majorelle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

/* === STORYTELLING === */
.storytelling {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

.storytelling img {
  width: 100%;
  border-radius: var(--border-radius);
}

.storytelling-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.storytelling-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
}

/* === CARROUSEL === */
.carousel {
  overflow: hidden;
  margin: 3rem 0;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  animation: scroll 30s linear infinite;
}

.carousel-item {
  flex: 0 0 250px;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === BANDEAU RASSURANCE === */
.reassurance-banner {
  background-color: var(--majorelle);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.reassurance-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === FOOTER === */
.footer {
  background-color: var(--text);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

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

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

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

.footer-section a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--cream);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--cream);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .storytelling {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .reassurance-items {
    flex-direction: column;
    gap: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* === WOOCOMMERCE CUSTOMISATION === */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.woocommerce .product {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.woocommerce .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(96, 80, 220, 0.15);
}

.woocommerce .product img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.woocommerce .add_to_cart_button {
  background-color: var(--majorelle) !important;
  color: var(--white) !important;
  border-radius: var(--border-radius) !important;
  padding: 0.75rem 1.5rem !important;
  transition: var(--transition) !important;
}

.woocommerce .add_to_cart_button:hover {
  background-color: var(--text) !important;
}