/* ------------------------
   TYPOGRAPHIE & GLOBAL
-------------------------*/

/* === Variables Globales === */
:root {
  --or-tomatis: #c9a74b;
  --gris-foncé: #1e1e1e;
  --gris-clair: #f5f5f5;
  --blanc: #ffffff;
}

body {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  background-color: var(--blanc);
  color: var(--gris-foncé);
}

h1, h2, h3 {
  color: var(--or-tomatis);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  color: var(--gris-foncé);
  line-height: 1.6;
  font-size: 1.05em;
  margin-bottom: 1em;
}

.boutons {
  color: var(--blanc);
}

a {
  color: var(--or-tomatis);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: #b58f3e;
}

.texte-important {
  background-color: var(--gris-clair);
  padding: 15px;
  border-left: 4px solid var(--or-tomatis);
  margin: 20px 0;
}

h1, h2 {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 100;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8em;
  padding-top: 20px;
  margin-bottom: 0;
}

h3 {
  font-weight: 200;
  text-align: center;
}

p {
  color: black !important;
  line-height: 2;
}

/* ------------------------
   NAVIGATION
-------------------------*/

.logo1 img {
  height: 60px;
  width: auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.burger {
  display: none;
}

/* ------------------------
   HERO & CTA
-------------------------*/

.hero {
  padding: 2rem;
  background-image: url('images/portail.jpg');
  background-size: cover;
  color: white;
  text-align: center;
}

.cta {
  background: darkred;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

/* ------------------------
   SECTIONS & ANCRES
-------------------------*/

.ancre {
  height: 1px;
  scroll-margin-top: 140px;
}

section {
  padding: 2rem;
}

.filtre-galerie {
  padding-top: 0;
}

.conteneur-texte {
  max-width: 800px;
  margin: 0 auto;
  padding: 5px 20px 20px;
}

/* ------------------------
   BOUTONS DE FILTRE
-------------------------*/

.boutons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.filtre-btn {
  padding: 10px 20px;
  background: #eee;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.filtre-btn.active {
  background: #c9a74b;
  color: white;
}

/* ------------------------
   GALERIE MOSAÏQUE
-------------------------*/

.row {
  display: flex;
  height: 400px;
  gap: 20px;
  margin-bottom: 20px;
}

.image {
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image.large { flex: 2; }
.image.small { flex: 1; }

/* ------------------------
   GALERIE DÉFILANTE
-------------------------*/

.galerie-wrapper {
  padding: 2rem;
  background-color: #f8f8f8;
}

.galerie-defilante {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
  cursor: grab;
  scrollbar-width: none;
}

.galerie-defilante::-webkit-scrollbar { display: none; }

.galerie-defilante img {
  height: 250px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galerie-defilante:active {
  cursor: grabbing;
}

/* ------------------------
   BLOC IMAGE + TEXTE
-------------------------*/

.bloc-image-texte,
.bloc-image-texte2, 
.bloc-image-texte3,
.bloc-image-texte4 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
  flex-wrap: nowrap;
  width: 100%;
}

.bloc-image-texte { flex-direction: row-reverse; }
.bloc-image-texte2,
.bloc-image-texte3,
.bloc-image-texte4 { flex-direction: row; }

.bloc-image-texte .bloc-image,
.bloc-image-texte .texte,
.bloc-image-texte2 .bloc-image,
.bloc-image-texte2 .texte,
.bloc-image-texte3 .bloc-texte,
.bloc-image-texte3 .texte,
.bloc-image-texte4 .bloc-image,
.bloc-image-texte4 .texte {
  flex: 0 0 50%;
  box-sizing: border-box;
  min-width: 0;
}

.bloc-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.texte {
  padding: 20px;
}

/* ------------------------
   NEWS / ACTU / OWL
-------------------------*/

.news_item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
}

.news_item:hover {
  transform: translateY(-5px);
}

.news_item img {
  width: 100%;
  height: auto;
  display: block;
}

.news_item h3 {
  margin: 10px;
  font-size: 18px;
}

.news_item .category,
.news_item .datepub {
  margin: 0 10px 10px;
  font-size: 14px;
  color: #555;
}

.readmore {
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.owl-carousel {
  padding-bottom: 100px;
}

.owl-nav button {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #333;
}

/* ------------------------
   FORMULAIRE DE CONTACT
-------------------------*/

.contact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  font-family: 'Georgia', serif;
}

.contact-section h2 {
  font-size: 1.8rem;
  color: #1d1d1d;
  margin-bottom: 40px;
}

.contact-section h2 span {
  color: #c9a74b;
  font-weight: bold;
  text-transform: uppercase;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 2px;
  width: 100%;
}

.flex-row {
  display: flex;
  gap: 10px;
}

.flex-row input {
  flex: 1;
}

button {
  background-color: #f7ecd8;
  color: #c9a74b;
  padding: 12px 20px;
  border: 1px solid #c9a74b;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: start;
}

button:hover {
  background-color: #e8dbb9;
}

.rgpd-wrapper {
  max-width: 700px;
  margin: 30px auto;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #333;
}

.rgpd-checkbox {
  display: block;
  margin-bottom: 10px;
  text-align: left;
}

.rgpd-note {
  font-size: 13px;
  color: #666;
  margin: 5px 0;
}

.rgpd-note a {
  color: #c9a74b;
  text-decoration: underline;
}

.rgpd-obligatoire {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.separator {
  margin: 40px auto;
  border: none;
  border-top: 1px solid #ccc;
  width: 80%;
}

.contact-infos {
  max-width: 700px;
  margin: auto;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

.contact-infos h3 {
  font-size: 24px;
  font-weight: bold;
}

.contact-infos h4 {
  font-size: 18px;
  color: #c9a74b;
  margin-top: 20px;
}

/* ------------------------
   FOOTER
-------------------------*/

.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
  align-items: center;
}

.footer-logo img {
  height: 60px;
}

.footer-links a,
.footer-social a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #c9a74b;
}

.footer-social a {
  font-size: 20px;
  margin-left: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #777;
}

/* ------------------------
   RESPONSIVE
-------------------------*/

@media (max-width: 768px) {
 @media (max-width: 768px) {
  html,
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .filtre-galerie,
  .galerie,
  .bloc-image-texte,
  .bloc-image,
  .bloc-image img,
  .texte {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .bloc-image-texte2,
  .bloc-image-texte3,
  .bloc-image-texte4 {
    flex-direction: column-reverse !important;
  }

  .bloc-image img {
    display: block;
    height: auto;
    object-fit: cover;
    border-radius: 0;
  }

  .bloc-image-texte {
    flex-direction: column;
    display: flex;
    align-items: center;
  }
}

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    background-color: black;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .row {
    flex-direction: column;
    height: auto;
  }

  .image.large,
  .image.small {
    flex: 1;
    height: 300px;
  }

  .bloc-image-texte,
  .bloc-image-texte2,
  .bloc-image-texte3,
  .bloc-image-texte4 {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    margin-top: 10px;
  }
}
