/* Main CSS Styles for Geliaviralunaptera.com */

/* ---- RESET & VARIABLES ---- */
:root {
  --bg-color: #001f2d;
  --accent-1: #38c9b3;
  --accent-2: #e84a5f;
  --text-color: #e8f0f2;
  --dark-accent: #003344;
  --light-bg: #f2f2f2;
  --dark-text: #222;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 4px;
  width: 60px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

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

a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 5px rgba(56, 201, 179, 0.5);
}

/* ---- CONTAINER & LAYOUT ---- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

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

.section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 31, 45, 0.9);
  backdrop-filter: blur(5px);
  transition: var(--transition);
  padding: 0.1rem 0;  /* Réduction de la taille de l'en-tête */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 35px; /* Hauteur minimale réduite */
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;  /* Taille encore plus réduite du logo */
  font-weight: 700;
  color: var(--accent-1);
  text-shadow: 0 0 10px rgba(56, 201, 179, 0.3);
  line-height: 1;  /* Pour aligner verticalement */
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem; /* Espacement réduit entre les éléments du menu */
  align-items: center;  /* Pour aligner verticalement tous les éléments */
  height: 100%;
}

nav ul li {
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  line-height: 1;  /* Pour aligner verticalement */
  font-size: 0.9rem; /* Taille de police réduite pour le menu */
}

nav ul li a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  transition: var(--transition);
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: radial-gradient(circle at center, var(--accent-1), var(--accent-2));
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(56, 201, 179, 0.5);
}

.btn:hover {
  box-shadow: 0 0 20px rgba(232, 74, 95, 0.7);
  transform: translateY(-3px);
  color: var(--text-color);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-1);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-1);
  color: var(--bg-color);
}

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(56, 201, 179, 0.1);
  filter: blur(80px);
  top: 10%;
  left: 5%;
}

.hero::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(232, 74, 95, 0.1);
  filter: blur(60px);
  bottom: 10%;
  right: 5%;
}

.hero-content {
  width: 50%;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

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

.hero-image {
  position: absolute;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: floatImage 6s ease-in-out infinite;
}

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

/* ---- ABOUT SECTION ---- */
.about {
  background-color: rgba(0, 31, 45, 0.8);
}

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

.about-text {
  padding-right: 2rem;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.03);
}

/* ---- SERVICES SECTION ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: rgba(0, 51, 68, 0.7);
  border-radius: 10px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--accent-1);
}

/* ---- WHY US SECTION ---- */
.why-us {
  background-color: rgba(0, 31, 45, 0.9);
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(56, 201, 179, 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--accent-1);
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background-color: var(--accent-1);
  color: var(--bg-color);
  transform: rotateY(360deg);
  box-shadow: 0 0 20px rgba(56, 201, 179, 0.5);
}

/* ---- CERTIFICATES SECTION ---- */
.certificates {
  background-color: rgba(0, 31, 45, 0.8);
}

.certificates-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  scrollbar-width: none;
}

.certificates-slider::-webkit-scrollbar {
  display: none;
}

.certificate-item {
  min-width: 300px;
  scroll-snap-align: start;
  background-color: var(--dark-accent);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* ---- TESTIMONIALS SECTION ---- */
.testimonials {
  background-color: var(--bg-color);
}

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

.testimonial-card {
  background-color: rgba(0, 51, 68, 0.7);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--accent-1);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-content {
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-1);
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---- FAQ SECTION ---- */
.faq {
  background-color: rgba(0, 31, 45, 0.9);
}

/* Suppression du champ de recherche */
.faq-search {
  display: none;
}

.accordion {
  margin-bottom: 1rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--dark-accent);
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(0, 31, 45, 0.8);
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 1rem;
}

.accordion-item input[type="checkbox"] {
  display: none;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-content {
  max-height: 500px;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-header::after {
  content: '−';
}

/* ---- CONTACT FORM ---- */
.contact {
  background-color: var(--dark-accent);
  position: relative;
  overflow: hidden;
}

.contact::before,
.contact::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 0;
}

.contact::before {
  background: rgba(56, 201, 179, 0.05);
  left: -150px;
  top: -150px;
}

.contact::after {
  background: rgba(232, 74, 95, 0.05);
  right: -150px;
  bottom: -150px;
}

.contact-form {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 31, 45, 0.8);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(to right, var(--accent-1), var(--accent-2));
  max-width: 600px;  /* Rendre le formulaire plus étroit */
  margin: 0 auto;  /* Centrer le formulaire */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--dark-accent);
  border-radius: 5px;
  background-color: rgba(0, 31, 45, 0.5);
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 10px rgba(56, 201, 179, 0.3);
}

/* Amélioration du style du select */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23e8f0f2' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

select.form-control option {
  background-color: var(--dark-accent);
  color: var(--text-color);
  padding: 10px;
}

select.form-control:focus {
  border-color: var(--accent-1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent-1);
}

/* ---- FOOTER ---- */
.footer {
  background-color: var(--dark-accent);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
  /* Fond unique pour le footer */
  background-image: 
    radial-gradient(circle at 10% 90%, rgba(56, 201, 179, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(232, 74, 95, 0.1) 0%, transparent 30%),
    linear-gradient(to bottom, var(--dark-accent), #00283a);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  opacity: 0.5;
}

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

.footer-col h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

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

.footer-col ul li a {
  color: var(--text-color);
  opacity: 0.8;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--accent-1);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

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

/* ---- COOKIE POPUP ---- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background-color: var(--bg-color);
  border: 1px solid var(--accent-1);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(56, 201, 179, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease;
}

.cookie-popup.show {
  bottom: 20px;
  opacity: 1;
}

.cookie-content {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* ---- LEGAL PAGES ---- */
.legal-page {
  background-color: var(--light-bg);
  color: var(--dark-text);
  min-height: 100vh;
  padding-top: 100px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.legal-header .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.legal-header .logo a {
  color: var(--accent-1);
}

.legal-content h2 {
  color: var(--dark-text);
  font-size: 1.5rem;
  margin-top: 2rem;
}

.legal-content h3 {
  color: var(--dark-text);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.legal-content ul {
  margin-left: 1.5rem;
}

/* ---- THANK YOU PAGE ---- */
.thank-you {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 6rem; /* Ajout d'un espace entre l'en-tête et le cadre */
}

.thank-you-card {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--dark-accent);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(to right, var(--accent-1), var(--accent-2));
  animation: fadeInUp 1s ease;
  margin: 0 auto;  /* Centrer la carte */
  text-align: center;  /* Centrer le texte */
}

.thank-you-card h1 {
  margin-bottom: 1.5rem;
}

.thank-you-card p {
  margin-bottom: 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RESPONSIVE STYLES ---- */
@media screen and (max-width: 992px) {
  .hero-content {
    width: 60%;
  }
  
  .hero-image {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
  }
  
  .hero-content,
  .hero-image {
    width: 100%;
    position: relative;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .hero-image {
    height: auto;
  }
  
  .hero-image img {
    max-height: 60vh;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }
}

@media screen and (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
} 