/* 
 * Styles principaux pour pornai.pw
 * Site web en français optimisé pour le SEO et les appareils mobiles
 */

/* Reset et variables */
:root {
  --primary: #3494E6;
  --secondary: #EC6EAD;
  --dark: #222639;
  --light: #FFFFFF;
  --gray-light: #F5F5F9;
  --gray: #9097AD;
  --text-dark: #333344;
  
  --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow-sm: 0 4px 12px rgba(52, 148, 230, 0.1);
  --shadow-md: 0 8px 24px rgba(52, 148, 230, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

/* Typographie et éléments de base */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 2px;
}

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

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

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

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

/* Boutons */
.btn-primary {
  display: inline-block;
  background: var(--gradient-main);
  color: var(--light);
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 15px rgba(236, 110, 173, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 110, 173, 0.4);
  color: var(--light);
}

.btn-primary:hover:before {
  width: 100%;
}

/* Header et navigation */
header {
  background-color: rgba(255, 255, 255, 0.98);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-svg {
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 3px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 100px;
  background: linear-gradient(to bottom, rgba(245, 245, 249, 0.9), rgba(255, 255, 255, 1));
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--light);
}

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

.feature-card {
  background-color: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(52, 148, 230, 0.05), rgba(236, 110, 173, 0.05));
  transition: height 0.5s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover:before {
  height: 100%;
}

.feature-icon {
  margin-bottom: 25px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(52, 148, 230, 0.05), rgba(236, 110, 173, 0.05));
  position: relative;
}

.steps {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  gap: 40px;
}

.step {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-main);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(236, 110, 173, 0.3);
}

.cta {
  text-align: center;
  margin-top: 60px;
}

/* Benefits Section */
.benefits {
  padding: 100px 0;
  background-color: var(--light);
}

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

.benefit-box {
  padding: 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(52, 148, 230, 0.05), rgba(236, 110, 173, 0.05));
  transition: var(--transition);
  height: 100%;
}

.benefit-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 80px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.link-group h4 {
  color: var(--secondary);
  margin-bottom: 25px;
  position: relative;
}

.link-group h4::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--primary);
  bottom: -10px;
  left: 0;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 15px;
}

.link-group a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container {
    flex-direction: column-reverse;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
  }
  
  nav.active {
    height: auto;
    padding: 30px 0;
    opacity: 1;
    visibility: visible;
  }
  
  nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .steps {
    padding: 0 20px;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .feature-card {
    padding: 25px 20px;
  }
  
  .benefit-box {
    padding: 25px 20px;
  }
}
