/* 
 * Catholicon Modernization - Luxurious Theme
 * Colors: Deep Royal Blue (#002366), Gold (#D4AF37), Cream (#FDFBF7)
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #002366; /* Deep Royal Blue */
    --accent-color: #D4AF37; /* Gold */
    --bg-color: #FDFBF7; /* Cream */
    --text-color: #333333;
    --light-text: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D06B 100%);
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

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

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

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

header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 35, 102, 0.9), rgba(0, 35, 102, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
      font-size: 3rem;
    border-bottom: none;
    background: linear-gradient(120deg, #F7E7B5, #D4AF37, #F2D06B, #D4AF37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldShine 4s linear infinite;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-gradient);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
}

/* FAQ Section */
.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.faq-answer p {
    padding: 15px 0;
}

.faq-toggle {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;      /* gauche */
    justify-content: flex-start;  /* en haut */
    padding: 0;                   /* plus de marge interne */
    gap: 0;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links > li {
    width: 100%;                 /* chaque élément prend toute la largeur */
  }

  .nav-links > li > a,
  .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 16px 20px;          /* texte un peu décollé du bord */
    text-align: left;            /* alignement du texte à gauche */
  }
}


    .hero h1 {
        font-size: 2rem;
    }
}

/* === SOUS-MENUS DÉROULANTS === */

.nav-links > li {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
  background-color: rgba(212, 175, 55, 0.15);
}

.arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: var(--accent-color);
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Boîte du sous-menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, var(--bg-color), rgba(253, 251, 247, 0.9));
  backdrop-filter: blur(15px);
  min-width: 280px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 0;
  list-style: none;
  margin: 8px 0 0 0;
  z-index: 1000;
  border: 1px solid rgba(212, 175, 55, 0.4);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}

/* Affichage au survol */
.dropdown:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  padding: 12px 0;
}

/* Sous-menu VERTICAL : un lien sous l'autre */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 14px 24px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 4px 12px;
  white-space: normal;
}

.dropdown-menu a:hover {
  background: var(--gold-gradient);
  color: var(--bg-color);
  transform: translateX(6px);
}

/* Mobile - sous-menus ouverts au clic (classe .active gérée en JS) */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(253, 251, 247, 0.9);
    box-shadow: inset 0 2px 12px rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    margin-top: 12px;
  }

  .dropdown-menu {
    max-height: 0;
    padding: 0;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 12px 0;
  }

  .dropdown.active .arrow {
    transform: rotate(180deg);
  }
}
/* Image Breizh sous l'intro */
.hero-image {
  margin: 3rem auto 0;
  text-align: center;
}

.hero-image img {
  max-width: 80%;
  width: 100%;
  height: auto;
  display: inline-block;
  /* filter: grayscale(100%);  à supprimer */
  opacity: 0.9;
}

