/* Variables de couleurs */
:root {
    --bg-light: #f9f9f9;
    --text-dark: #333333;
    --primary-blue: #1c3948;
    --accent-gold: #c9a646;
    --white: #ffffff;
    --gray-light: #e0e0e0;
    --gray-medium: #808080;
    --shadow: rgba(28, 57, 72, 0.1);
}


.text-success {
  --bs-text-opacity: 1;
  color: var(--accent-gold) !important;
}


/* Override Bootstrap primary colors */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.badge.bg-primary {
    background-color: var(--primary-blue) !important;
}

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

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

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Navigation */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.navbar-scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--gray-medium);
    font-weight: 300;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 400;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold);
}

/* Hero Section avec effet Jura brumeux */
.hero {
    min-height: 70vh;
    position: relative;
    background: linear-gradient(
        rgba(28, 57, 72, 0.7) 0%, 
        rgba(28, 57, 72, 0.5) 50%, 
        rgba(201, 166, 70, 0.2) 100%),
        url('/banniere.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(28, 57, 72, 0.2) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 60%, 
        rgba(249, 249, 249, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    /*background: rgba(28, 57, 72, 0.8);*/
    /*backdrop-filter: blur(5px);*/
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);*/
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Media Queries pour la hero section */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .hero h1 { 
        font-size: 2rem; 
    }
    
    .hero .lead { 
        font-size: 1rem; 
    }
}

/* Boutons */
.btn {
    padding: 0.75rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 166, 70, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28, 57, 72, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.95);
}

/* Boutons spécifiques à la hero section */
.hero .btn-primary {
    background-color: var(--accent-gold);
    border: none;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(28, 57, 72, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Section avec image de fond effet Jura */
.section-jura {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(180deg, 
        rgba(249, 249, 249, 0.95) 0%, 
        rgba(249, 249, 249, 0.8) 100%);
}

.section-jura::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, 
            transparent,
            transparent 35px,
            rgba(28, 57, 72, 0.02) 35px,
            rgba(28, 57, 72, 0.02) 70px);
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    position: relative;
}

.footer-text-muted {
  --bs-text-opacity: 1;
  color: rgba(255, 255, 255, 0.6)!important;
}


.footer-title {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Effet brouillard animé */
.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.03;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: fog 20s ease-in-out infinite;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fog {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Page spécifiques */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(28, 57, 72, 0.8) 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-light);
    transform: skewY(-2deg);
}

.page-header h1 {
    color: var(--white);
}

/* Cards de témoignages */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Formulaire de contact */
.form-control,
.form-select {
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 166, 70, 0.25);
}

.form-label {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
		margin: 0.6rem;
    }
}

/* Portrait image styling */
.portrait-container img {
    border: 4px solid rgba(201, 166, 70, 0.2);
    transition: all 0.3s ease;
}

.portrait-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(28, 57, 72, 0.3);
}

/* Publications — vignettes & badges */
.pub-item { gap: .75rem; } /* déjà présent chez toi, garde */
.pub-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 .75rem;
  border-radius: 9999px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid rgba(0,0,0,.05);
  background-color: var(--accent-gold) !important;
  color: var(--text-dark) !important;
}

/* Couleurs */
.badge.bg-pub{
  background-color: var(--accent-gold) !important;
  color: var(--text-dark) !important;
}
.badge.bg-guide{
  background-color: #17a2b8 !important;
  color: #fff !important;
}

/* Petits écrans : badges un peu plus compacts */
@media (max-width: 576px){
  .pub-badge{
    height: 24px;
    padding: 0 .6rem;
    font-size: .8rem;
    margin-left: .5rem; /* garde le badge à droite avec ms-auto */
  }
  .pub-thumb{ width: 64px; height: 92px; } /* déjà proposé, rappel */
}


/* Domaines d’intervention */
.domain-box {
    background: rgba(28, 57, 72, 0.08);
    border-radius: 10px;
    padding: 25px 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue, #1c3948);
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    transition: all 0.25s ease-in-out;
}
.domain-box:hover {
    background: var(--primary-blue, #1c3948);
    color: #fff;
    transform: translateY(-4px);
}

/* Cartes média */
.media-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.media-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Vidéos */
.media-card video {
    border-radius: 10px;
    outline: none;
}
.media-card iframe {
    border-radius: 10px;
}
/* Bloc Instagram spécifique */
.media-card.instagram .insta-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;   /* largeur max pour que ça reste harmonieux */
    margin: 0 auto;
    padding-top: 125%;  /* ratio 4:5 → hauteur = 125% de la largeur */
}

.media-card.instagram .insta-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
