/* ===================================================================
   TABLE DES MATIÈRES
   ===================================================================
   1. Variables globales
   2. Layout global²
   3. Typographie
   4. Boutons
   5. Navbar & Header
   6. Section Hero
   7. Articles & Aside
   8. Footer
   9. Back to Top Button
   10. Carousel
   11. Scroll Progress Bar
   12. Marges d’ancrage
   13. Images & Icônes
   14. Icônes & Animation Logo
   15. Redirection (Bloc personnalisé)
=================================================================== */

/* ===================================================================
   1. VARIABLES GLOBALES
   =================================================================== */
:root {
  --primary-color: #1D3A55;
  --secondary-color: #2A4A6B;
  --light-background: #F0F0F0;
  --header-background: #D6C7B1;
  --text-dark: #1A2A3A;

  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-dark: 0 4px 8px rgba(0, 0, 0, 0.1);

  --font-size-base: 1rem;
  --font-size-medium: 1.2rem;
  --font-size-large: 2.5rem;
  --font-size-xlarge: 3rem;

  --border-radius: 8px;
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;
}

/* ===================================================================
   2. LAYOUT GLOBAL
   =================================================================== */
html {
  background-color: var(--header-background);
}

.sticky-top,
.sticky-top-second {
  position: sticky;
  z-index: 10;
  height: auto;
}

.sticky-top {
  top: 0;
}

.sticky-top-second {
  top: 10%;
}

/* ===================================================================
   3. TYPOGRAPHIE
   =================================================================== */
article .text-center {
  text-align: center;
}

/* ===================================================================
   4. BOUTONS
   =================================================================== */
article .btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

article .btn {
  margin: 15px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  color: var(--light-background);
  font-size: var(--font-size-base);
  text-align: center;
  transition: background-color var(--transition-medium),
    box-shadow var(--transition-medium),
    transform var(--transition-fast),
    font-weight var(--transition-fast);
}

article .btn:hover,
article .btn:focus {
  background-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  font-weight: bold;
  transform: scale(1.05);
  outline: none;
}

article .btn:active {
  background-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

/* ===================================================================
   5. NAVBAR & HEADER
   =================================================================== */
.navbar-custom {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-dark);
  z-index: 20;
}

.nav-link {
  color: var(--light-background);
}

.header-custom {
  background-color: var(--header-background);
  box-shadow: var(--shadow-dark);
}

.titre-page {
  color: var(--text-dark);
}

.titre-page p {
  font-size: var(--font-size-base);
}

/* ===================================================================
   6. SECTION HERO
   =================================================================== */
header {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header .navbar-brand img {
  border-radius: 50%;
  max-width: 120px;
  height: auto;
}

header h1 {
  margin: 0;
  font-size: var(--font-size-large);
  font-weight: bold;
}

header p {
  margin-top: 10px;
  font-size: var(--font-size-medium);
}

header hr {
  margin-top: 20px;
  border-top: 2px solid white;
}

@media (min-width: 768px) {
  header .d-flex {
    flex-direction: row;
    text-align: left;
  }

  header h1 {
    font-size: var(--font-size-xlarge);
  }

  header p {
    font-size: 1.5rem;
  }
}

/* ===================================================================
   7. ARTICLES & ASIDE
   =================================================================== */
aside,
article {
  background-color: var(--light-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

aside a,
article a {
  color: var(--text-dark);
  text-decoration: none;
}

aside h5,
article h5 {
  color: var(--text-dark);
  padding-top: 1%;
}

#titre-secondaire {
  color: var(--primary-color);
}

#titre {
  background-color: var(--light-background);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-light);
  color: var(--primary-color);
  margin-bottom: 20px;
}

a:hover,
a:active {
  font-weight: bold;
}

/* ===================================================================
   8. FOOTER
   =================================================================== */
.footer-custom,
.footer-custom a {
  background-color: var(--header-background);
  color: var(--text-dark);
}

/* ===================================================================
   9. BACK TO TOP BUTTON
   =================================================================== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  font-size: 18px;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--text-dark);
  color: var(--light-background);
  cursor: pointer;
  z-index: 1000;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

#backToTop:hover,
#backToTop:active {
  background-color: var(--text-dark);
  transform: scale(1.2);
}

/* ===================================================================
   10. CAROUSEL
   =================================================================== */
#carouselParcours {
  height: 30%;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item img {
  max-height: 250px;
  object-fit: contain;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(200deg);
}

@media (max-width: 768px) {

  .carousel-control-prev,
  .carousel-control-next {
    top: -120%;
  }

  .mb-4-tel {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .supr-arrow {
    display: none;
  }
}

/* ===================================================================
   11. SCROLL PROGRESS BAR
   =================================================================== */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background-color: var(--light-background);
  width: 0%;
  z-index: 9999;
  transition: width var(--transition-medium) ease-out;
}

/* ===================================================================
   12. MARGES D’ANCRAGE INTERNE
   =================================================================== */
[id] {
  scroll-margin-top: 70px;
}

/* ===================================================================
   13. IMAGES & ICONES
   =================================================================== */
.image-container,
.image-contain {
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: box-shadow var(--transition-medium) ease;
}

.image-container img,
.image-contain img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition-medium);
  border-radius: calc(var(--border-radius) - 1px);
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-contain:hover i {
  transform: scale(1.02);
}

.photo-profil:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.clickable-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 1.4rem;
  color: var(--primary-color);
  border-radius: 20%;
  padding: 8px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-medium) ease;
}

/* ===================================================================
   14. ICONES & ANIMATION LOGO
   =================================================================== */
.list-group-item i {
  display: inline-block;
  width: 5%;
  text-align: center;
}

.burger {
  color: var(--light-background);
}

.logo img {
  width: 100%;
  height: auto;
}

.logo.animate img {
  animation: rotateOvershoot 1.2s cubic-bezier(0.45, 0, 0.2, 1);
  will-change: transform;
}

@keyframes rotateOvershoot {
  0% {
    transform: rotate(0deg);
  }

  60% {
    transform: rotate(380deg);
  }

  80% {
    transform: rotate(358deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===================================================================
   15. REDIRECTION (Bloc personnalisé)
   =================================================================== */
.redirection {
  background-color: var(--light-background);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: var(--shadow-light);
  color: var(--primary-color);
}