/* ========== GLOBAL STYLES ========== */
* {
  color: white;
  font-size: 1.3rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #131B2D;
  min-height: 100vh;
  border: 3px solid #EDD387;
  border-radius: 10px;
}

/* ========== HEADER ========== */
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    background-color: #131B2D;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header img {
    height: 180px; /* Logo agrandi */
    width: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #EDD387;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EDD387;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #131B2D;
    border: 2px solid #EDD387;
    box-shadow: 0 0 10px  #EDD387;
    border-radius: 6px;
    min-width: 180px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown .content a {
    display: block;
    padding: 10px 20px;
    text-align: left;
    color: white;
    transition: all 0.3s ease;
}

.dropdown .content a:hover {
    background-color: #EDD387;
    color: #131B2D;
    padding-left: 25px;
}


/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown .content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #131B2D;
    border: 2px solid #EDD387;
    box-shadow: 0 0 10px #EDD387;
    border-radius: 6px;
    min-width: 180px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown .content a {
    display: block;
    padding: 10px 20px;
    text-align: left;
}

.dropdown .content a:hover {
    background-color: #EDD387;
    color: #131B2D;
}
/* ========== MAIN SECTION ========== */
/* ========== MAIN CONTENT STYLING ========== */
.container {
  border: 4px solid #EDD387;
  box-shadow: 0 0 15px #EDD387;
  margin: 0 auto;
  width: 95%;
  border-radius: 8px;
  background-color: #00040D;
  padding: 40px;
  position: relative;
  overflow: visible;
  line-height: 1.7;
  font-size: 1.1rem;
  text-align: justify;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FLEX BOX SECTIONS ========== */
.flex-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
}

.flex-box:nth-child(even) {
  flex-direction: row-reverse;
  animation-name: slideInRight;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.flex-box:hover {
  transform: translateY(-5px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== TEXT & IMAGE STYLING ===== */
.txt, .image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
}

.txt {
  text-align: left;
  line-height: 1.6;
  word-wrap: break-word;
}

.txt h3 {
  color: #EDD387;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px rgba(237, 211, 135, 0.3);
}

.txt h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: #EDD387;
  transition: width 0.3s ease;
}

.flex-box:hover .txt h3::after {
  width: 100%;
}

.txt p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #e0e0e0;
}

/* ===== IMAGE STYLING ===== */
.image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #EDD387;
  box-shadow: 0 0 15px #EDD387;
  filter: brightness(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 25px #EDD387, 0 0 40px rgba(237, 211, 135, 0.4);
  filter: brightness(1);
  border-color: #ffd700;
}

.image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(237, 211, 135, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.image:hover::before {
  left: 100%;
}

/* ========== TEXT HIERARCHY & READABILITY ========== */
.txt p:first-of-type::first-letter {
  font-size: 3rem;
  color: #EDD387;
  font-weight: bold;
  float: left;
  line-height: 1;
  margin-right: 10px;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(237, 211, 135, 0.5);
}

.txt p {
  text-indent: 2em;
  margin-bottom: 1.5em;
}

/* ========== ANIMATION DELAYS ========== */
.flex-box:nth-child(1) { animation-delay: 0.4s; }
.flex-box:nth-child(2) { animation-delay: 0.6s; }
.flex-box:nth-child(3) { animation-delay: 0.8s; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1440px) {
  .flex-box {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .txt, .image {
    flex: 1 1 100%;
    width: 100%;
    min-width: auto;
  }
  
  .txt {
    text-align: justify;
  }
  
  .image img {
    width: 90%;
    margin: 0 auto;
  }
  
  .txt p {
    font-size: 1.1rem;
    text-indent: 1.5em;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 25px 20px;
    width: 90%;
  }
  
  .txt p {
    font-size: 1rem;
    text-indent: 1em;
    line-height: 1.6;
  }
  
  .txt h3 {
    font-size: 1.5rem;
  }
  
  .image img {
    width: 100%;
  }
  
  .txt p:first-of-type::first-letter {
    font-size: 2.5rem;
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.flex-box {
  transition: all 0.4s ease;
}

/* ========== GLOW EFFECT ON TITLE ========== */
.title {
  font-size: 2rem;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 5px #EDD387, 0 0 10px rgba(237, 211, 135, 0.3);
  }
  to {
    text-shadow: 0 0 15px #EDD387, 0 0 25px rgba(237, 211, 135, 0.5);
  }
}

/* ========== FOOTER ========== */
footer {
    padding: 50px 40px;
}

.footer-container {
    height: auto;
    border: 4px solid #EDD387;
    box-shadow: 0 0 15px #EDD387;
    margin: 0 auto;
    width: 95%;
    border-radius: 8px;
    background-color: #00040D;
    padding: 40px;
}

.footer-container img {
    height: 180px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-container img:hover {
    transform: scale(1.05);
}

.footer-container .logo-contact {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-right: 20px;
    font-size: 1.4rem;
}

.contact h3 {
    color: #EDD387;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
}

.email {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.email i {
    color: #EDD387;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.email:hover i {
    transform: scale(1.2);
}

.footer-container .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 40px;
    color: #EDD387;
}



/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 1440px) {
    .flex-box {
        flex-direction: column;
        text-align: center;
    }

    .txt, .image {
        width: 100%;
    }

    .logo-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact {
        align-items: center;
    }

    .logo-footer img {
        margin-bottom: 20px;
    }
}
