/*--------------------------------------------------------------
# IMPORT CSS
--------------------------------------------------------------*/
/* @import url('default.epaphrodites.style.css'); */

/*--------------------------------------------------------------
  # MAIN
--------------------------------------------------------------*/

@import url(https://fonts.googleapis.com/css?family=Lato);

:root {
  --primary-color: #016D6D;
  --secondary-color: #ca0404;
  --text-color: #333333;
  --light-bg: #f8f8f8;
  --white: #ffffff;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

html {
  font: 1em/1.5 "Lato", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  font-size: 16px;
}

body {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
}

/* Utility Classes Responsive */
.mt-100 { margin-top: clamp(50px, 10vw, 100px); }
.mt-70 { margin-top: clamp(35px, 7vw, 70px); }
.mt-50 { margin-top: clamp(25px, 5vw, 50px); }
.mt-30 { margin-top: clamp(15px, 3vw, 30px); }
.mt-20 { margin-top: clamp(10px, 2vw, 20px); }
.mt-10 { margin-top: clamp(5px, 1vw, 10px); }

.mb-100 { margin-bottom: clamp(50px, 10vw, 100px); }
.mb-70 { margin-bottom: clamp(35px, 7vw, 70px); }
.mb-50 { margin-bottom: clamp(25px, 5vw, 50px); }
.mb-30 { margin-bottom: clamp(15px, 3vw, 30px); }
.mb-20 { margin-bottom: clamp(10px, 2vw, 20px); }
.mb-10 { margin-bottom: clamp(5px, 1vw, 10px); }

.pt-100 { padding-top: clamp(50px, 10vw, 100px); }
.pt-70 { padding-top: clamp(35px, 7vw, 70px); }
.pt-50 { padding-top: clamp(25px, 5vw, 50px); }
.pt-30 { padding-top: clamp(15px, 3vw, 30px); }
.pt-20 { padding-top: clamp(10px, 2vw, 20px); }
.pt-10 { padding-top: clamp(5px, 1vw, 10px); }

.pb-100 { padding-bottom: clamp(50px, 10vw, 100px); }
.pb-70 { padding-bottom: clamp(35px, 7vw, 70px); }
.pb-50 { padding-bottom: clamp(25px, 5vw, 50px); }
.pb-30 { padding-bottom: clamp(15px, 3vw, 300px); }
.pb-20 { padding-bottom: clamp(10px, 2vw, 20px); }
.pb-10 { padding-bottom: clamp(5px, 1vw, 10px); }

/* Logo Responsive */
.logo img {
  margin-top: clamp(40px, 8vw, 80px);
  width: clamp(200px, 50%, 400px);
  height: auto;
}

.titlesite {
  background: var(--text-color);
  color: var(--white);
  padding: clamp(3px, 1vw, 5px) 0;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.epaphrodite h1 {
  font-size: clamp(3rem, 15vw, 150px);
  font-weight: 100;
  text-align: center;
  width: 90%;
  margin: 0 auto;
  line-height: 1.2;
}

.epaphrodite {
  margin-top: clamp(3px, 1vw, 5px);
  text-align: center;
  padding: 0 clamp(10px, 3vw, 20px);
}

.epaphrodite a {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: clamp(8px, 2vw, 10px) clamp(20px, 5vw, 40px);
  background: var(--secondary-color);
  border: 1px solid var(--white);
  border-radius: 40px;
  color: var(--white);
  font-weight: bold;
  font-size: clamp(0.8rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.epaphrodite a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Form Controls */
.form-control {
  color: #646464;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
  width: 100%;
  padding: clamp(8px, 2vw, 12px);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-control:focus {
  border-color: #ccc;
  background-color: #fcfcfc;
  -webkit-box-shadow: none;
  box-shadow: none;
}

#BtnValidate {
  width: 100%;
  padding: clamp(10px, 2vw, 15px);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-control {
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  -webkit-box-shadow: 0 1px 0 #e6e6e6;
  box-shadow: 0 1px 0 #e6e6e6;
}

.form-control:focus {
  background-color: transparent;
  -webkit-box-shadow: 0 2px 0 #646464;
  box-shadow: 0 2px 0 #646464;
}

/* Login Images */
.loginImg img {
  width: clamp(150px, 40%, 300px);
  margin-top: clamp(-50px, -10vw, -100px);
}

.qrcodes {
  height: clamp(60px, 10vw, 100px);
  width: auto;
}

.texthead {
  font-size: clamp(1rem, 3vw, 20px);
  text-align: center;
  padding: 0 clamp(10px, 3vw, 20px);
}

.reponses {
  text-align: center;
  color: #ff4500;
  font-style: italic;
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0 clamp(10px, 3vw, 20px);
}

.informationtheme img {
  margin-top: clamp(-80px, -15vw, -170px);
  width: clamp(200px, 70%, 500px);
  height: auto;
}

/* Card Form Responsive */
.cardform {
  margin: clamp(50px, 25vw, 270px) auto clamp(50px, 10vw, 100px);
  width: min(90%, 400px);
  box-shadow: var(--shadow);
  padding: clamp(12px, 3vw, 17px);
  border-radius: var(--border-radius);
  background: var(--white);
}

@media (max-width: 767px) {
  .cardform {
    margin: clamp(50px, 15vw, 100px) auto;
    width: min(95%, 350px);
  }
}

#textarea_input {
  resize: none;
  min-height: clamp(80px, 20vw, 120px);
}

/* Pagination */
.pagination-button {
  cursor: pointer;
  padding: clamp(3px, 1vw, 5px) clamp(6px, 2vw, 10px);
  background: #b59102;
  border-radius: 7px;
  color: var(--white);
  font-size: clamp(0.7rem, 1.5vw, 12px);
}

.pagination-number {
  cursor: pointer;
  border-radius: 7px;
  padding: clamp(3px, 1vw, 5px) clamp(6px, 2vw, 10px);
  background: var(--dashboard-main);
  margin: 2px;
  text-decoration: none;
  color: var(--white);
  font-size: clamp(0.7rem, 1.5vw, 12px);
}

.pagination a {
  border-radius: 0px;
  padding: clamp(3px, 1vw, 5px);
  background: var(--dashboard-main);
  margin: 2px;
  text-decoration: none;
  color: var(--white);
  font-size: clamp(0.7rem, 1.5vw, 12px);
}

.pagination .active {
  background-color: rgb(178, 4, 4);
  color: var(--white);
}

/* Icons and Text */
.bi-envelope {
  text-decoration: none;
  font-size: clamp(1.5rem, 4vw, 30px);
}

.container .row a {
  text-decoration: none;
}

.flashinfos i,
.bi-envelope {
  font-size: clamp(1.5rem, 4vw, 30px);
  line-height: clamp(1.5rem, 4vw, 30px);
}

.textinfo {
  padding-top: clamp(5px, 1vw, 10px);
  font-size: clamp(0.7rem, 2vw, 13px);
  line-height: clamp(0.8rem, 2vw, 13px);
}

/* Marquee Animation */
.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
  font-size: clamp(1.5rem, 8vw, 58px);
}

.flash-infos {
  color: red;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Header Section */
header {
  position: relative;
  height: clamp(300px, 60vw, 600px);
  background-size: cover;
  background-position: center center;
  color: var(--white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.5s ease-in-out;
}

header .overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--text-color) center no-repeat;
  background-size: cover;
  z-index: 0;
  opacity: 0;
  -webkit-filter: blur(4px);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.content {
  z-index: 1;
}

.image1 { background-image: url('../../img/bgEcolier.avif'); }
.image2 { background-image: url('../../img/rimak1.jpg'); }
.image3 { background-image: url('../../img/bgEcolier2.avif'); }
.image4 { background-image: url('../../img/bgEcolier3.avif'); }
.image5 { background-image: url('../../img/bgEcolier5.jpg'); }
.image6 { background-image: url('../../img/rimak22.jpg'); }

header .content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

header h1,
header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

header h2 {
  text-transform: uppercase;
  margin-top: -.5em;
  font-size: clamp(1rem, 3vw, 1.5rem);
}

header hgroup {
  transform: translate(-50%, -50%);
  display: inline-block;
  text-align: center;
  position: absolute;
  top: clamp(5%, 8vw, 8.3%);
  left: clamp(3%, 6vw, 6%);
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 2;
  overflow: hidden;
  padding: clamp(10px, 2vw, 20px);
  width: min(90%, 500px);
}

/* Flash Card */
.flash_card {
  height: clamp(30px, 8vw, 50px);
  background-color: var(--primary-color);
}

.content_flash {
  text-align: center;
  padding: clamp(5px, 1vw, 10px);
}

img {
  margin-right: clamp(10px, 2vw, 20px);
  max-width: 100%;
  height: auto;
}

/* Site Navigation */
.site {
  padding: clamp(10px, 2vw, 20px);
  text-align: center;
  background-color: #efefef;
  position: relative;
}

.site .navbar .nav-link {
  color: #e61d25;
  font-weight: 700;
  font-style: oblique;
  font-size: clamp(0.7rem, 1.8vw, 15px);
  padding: clamp(5px, 1vw, 10px) clamp(10px, 2vw, 15px);
}

.deroulant button {
  background: none;
  border: none;
  color: #e61d25;
  font-weight: 700;
  font-style: oblique;
  line-height: clamp(8px, 2vw, 10px);
  font-size: clamp(0.7rem, 1.8vw, 15px);
  padding-left: clamp(3px, 1vw, 5px);
}

.deroulant .dropdown-menu {
  z-index: 997;
  margin-top: clamp(25px, 5vw, 50px);
  background: none;
  border: none;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.deroulant .dropdown-menu li a {
  font-size: clamp(0.7rem, 1.8vw, 15px);
}

.deroulant button:hover {
  background: var(--white);
  border: none;
  color: #2308be;
}

.site .navbar .nav-link:hover {
  color: #2308be;
}

.site nav a {
  padding: clamp(5px, 1.5vw, 10px) clamp(15px, 3vw, 30px);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  display: inline-block;
}

#navbarNav {
  background-color: #f8f8f8DB;
  padding: clamp(2px, 1vw, 3px) clamp(3px, 1vw, 5px);
  font-size: clamp(0.6rem, 1.5vw, 11px);
  line-height: clamp(0.6rem, 1.5vw, 11px);
}

nav #navbarNav ul li .nav-link {
  margin-right: clamp(10px, 3vw, 25px);
}

/* Container Headings */
.container h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #0d6efd;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.5vw, 2px);
  padding: clamp(5px, 1vw, 10px);
  border-radius: 5px;
  display: inline-block;
  position: relative;
  margin: clamp(10px, 2vw, 20px) 0;
}

.container h2::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ed0f0f;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.container h2:hover {
  background: linear-gradient(to right, #32baec, #ed0f0f);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: colorChange 4s infinite;
}

.container h2:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@keyframes colorChange {
  10% { color: #32baec; }
  40% { color: #e74c3c; }
  60% { color: #b14c98; }
  80% { color: #f6e72c; }
  50% { color: #93bf20; }
}

/* Cards Layout */
.container .card-group .card {
  border: none;
  margin-bottom: clamp(15px, 3vw, 30px);
}

.margin-card {
  margin: clamp(8px, 1.5vw, 15px);
}

.card-text {
  max-height: clamp(200px, 50vw, 420px);
  overflow: hidden;
}

.card-text.expandable {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.container .card-img-fixed-height {
  height: clamp(150px, 30vw, 200px);
  object-fit: cover;
}

.truncate-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100px, 100%);
}

/***************************************ACTUALITE && EVENT ************************************/

.card-img-top {
  width: 100%;
  height: clamp(150px, 30vw, 200px);
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* Responsive Grid for Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(15px, 3vw, 30px);
  padding: clamp(10px, 2vw, 20px);
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/***************PDF GALERIE************************/
.pdf {
  width: 100%;
  height: clamp(300px, 60vw, 600px);
  border: none;
  border-radius: var(--border-radius);
}

/********************************************  PAGE CONTACT  *************************************************/
.card-text-fond,
.contact-form {
  background-color: #f8f8f8DB;
  margin: clamp(5px, 1vw, 10px) 0;
  padding: clamp(10px, 2vw, 15px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: clamp(25px, 5vw, 50px) 0;
  gap: clamp(20px, 4vw, 40px);
}

.contact-form {
  flex: 1;
  width: min(90%, 600px);
}

.contact-form h4 {
  text-align: center;
  margin-bottom: clamp(15px, 3vw, 30px);
  color: var(--text-color);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.form-control {
  border-radius: 20px;
  padding: clamp(10px, 2vw, 15px);
  margin-bottom: clamp(10px, 2vw, 20px);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.container a {
  text-decoration: none;
}

.form-control:focus {
  box-shadow: none;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 20px;
  padding: clamp(8px, 2vw, 12px) clamp(15px, 4vw, 30px);
  font-size: clamp(0.9rem, 2vw, 16px);
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.map-container h4,
.card-body h4 {
  text-align: center;
  margin-bottom: clamp(15px, 3vw, 30px);
  color: var(--text-color);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.map-container {
  flex: 1;
  height: clamp(250px, 50vw, 400px);
  margin: clamp(10px, 2vw, 20px);
  width: min(90%, 600px);
}

/*************************************    ALBUM PHOTOS    ***********************************************/

.container-galerie {
  padding: clamp(10px, 2vw, 20px);
  background-color: #32baec;
}

.image-grid_photo {
  display: grid;
  gap: clamp(8px, 2vw, 10px);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.photo_image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background-color: var(--white);
  border: 2px solid #ccc;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.photo_image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.card-footer-photo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(5px, 1vw, 10px);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  text-align: center;
}

.footer-photo {
  font-size: clamp(0.7rem, 1.8vw, 0.9em);
}

#galerie-photo-title {
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: clamp(15px, 3vw, 30px);
}

.galerie-photo {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.5em);
  padding: clamp(10px, 2vw, 20px);
}

/*************************************    ALBUM VIDEO    *****************************************************/

.container-video {
  padding: clamp(10px, 2vw, 20px);
  background: #ddd;
}

.video-grid-body {
  display: grid;
  gap: clamp(10px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.video-wrapper-vid {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background-color: #000;
  border: 2px solid #ccc;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.video-wrapper-vid video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.text-center-video {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.5vw, 1.5em);
  padding: clamp(10px, 2vw, 20px);
}

/****************************************** Style du pied de page *******************************************/
footer {
  background-color: #086081;
  color: var(--white);
  padding: clamp(25px, 5vw, 50px) clamp(10px, 2vw, 20px);
  margin-top: clamp(15px, 3vw, 20px);
  width: 100%;
}

.index_footer mark {
  background: none;
  color: var(--white);
  font-size: clamp(0.9rem, 2.5vw, 17px);
  font-weight: bold;
}

.footer-text {
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

footer a {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

footer a:hover {
  color: #e74c3c;
}

.container-fluid {
  margin: 0;
  padding: 0 clamp(10px, 2vw, 15px);
  width: 100%;
}

/* Additional Responsive Utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.text-responsive {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.heading-responsive {
  font-size: clamp(1.2rem, 4vw, 2rem);
}

/* Mobile First Media Queries */
@media (max-width: 576px) {
  .container-fluid {
    padding: 0 10px;
  }
  
  .cardform {
    margin: 20px auto;
    width: 95%;
  }
  
  header hgroup {
    top: 10%;
    left: 5%;
    width: 90%;
  }
}

@media (min-width: 768px) {
  .contact-section {
    flex-direction: row;
  }
  
  .contact-form,
  .map-container {
    width: 45%;
  }
}

@media (min-width: 992px) {
  .image-grid_photo {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .video-grid-body {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
  .card-text.expandable {
    -webkit-line-clamp: 6;
  }
  
  .btn-primary,
  .epaphrodite a {
    padding: 12px 24px;
    min-height: 44px;
  }
  
  .nav-link {
    padding: 12px 16px;
    min-height: 44px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .flash_card {
    display: none;
  }
  
  .cardform {
    box-shadow: none;
    border: 1px solid #000;
  }
}