/* Body Styling */
body {
    font-family: Roboto, sans-serif;
    background-image: url('../assets/images/background_2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

/* Main Content Area with White Transparent Background */
/* ✅ Wrapper global (tu le veux) */
.jumbotron, .container {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-family: 'Agency FB', sans-serif;
}

/* ✅ SECTION wrapper blanc pâle (ex: derrière tes 3 cartes) */
.section-bg-white {
    background: rgba(255, 255, 255, 0.70);
    border-radius: 14px;
    padding: 30px 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.10);
}

/* Navbar and Logo */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

header .navbar {
    background-color: #343a40; /* Dark header */
    border-bottom: 1px solid #444;
    text-transform: uppercase;
}

header .navbar a:hover {
    text-decoration: underline;
}

.navbar .nav-link, .navbar .navbar-brand {
    color: #fff !important;
    font-family: 'Agency FB', sans-serif;
    font-size: 25px;
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    background: url('../assets/images/Services_sur_glace.png') no-repeat center center;
    background-size: cover;
    padding: 50px 100px; /* Réduction du padding pour les petits écrans */
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    border-radius: 10px 10px 0px 0px;
}

h1, h2 {
    font-family: 'Agency FB', sans-serif;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 10px 10px 0px 0px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.typewriter h1 {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .05em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    font-size: 2.5rem; /* Taille par défaut */
    max-width: 100%; /* Empêche le texte de déborder */
}

/* Ajustements pour les écrans de taille moyenne et petite */
@media (max-width: 768px) { /* Écrans medium */
    .hero-section {
        padding: 80px 15px; /* Réduction du padding pour les écrans moyens */
    }
    .typewriter h1 {
        font-size: 2rem; /* Taille réduite pour éviter le débordement */
        line-height: 1.3;
    }
    .hero-section .lead {
        font-size: 1rem; /* Ajustement pour les écrans moyens */
    }
    .section-bg-white{
        padding: 20px 12px;
    }
}

@media (max-width: 576px) { /* Écrans extra-small */
    .hero-section {
        padding: 60px 10px; /* Réduction supplémentaire du padding pour petits écrans */
    }
    .typewriter h1 {
        font-size: 1.8rem; /* Taille réduite pour les petits écrans */
        line-height: 1.2;
    }
    .hero-section .lead {
        font-size: 0.9rem; /* Taille réduite pour la description */
    }
    .btn-warning {
        font-size: 0.85rem; /* Taille réduite pour le bouton */
        padding: 8px 18px; /* Réduction du padding pour un bouton plus compact */
    }
}

#send-btn {
    position: relative;
    transition: background-image 0.3s ease;
}

#send-btn:hover {
    background-image: url('../assets/logos/ICE_QUBE_LOGO.png'); /* Path to your logo image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white; /* Hides the text when hovering */
    font-weight: none;
    background-color: limegreen;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

/* Section Spacing */
.section {
    margin-top: 40px; /* Increase spacing between sections */
}

/* Button Styling */
.btn {
    background-color: #343a40; /* Dark color for all buttons */
    color: #fff; /* White text for all buttons */
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #555; /* Darker button color on hover */
    transform: translateY(-5px);
}

/* Specific Button Styling for Hero Section */
.btn-warning {
    font-weight: bold;
    border-radius: 50px;
    padding: 10px 30px;
    background-color: #ff9800;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-warning:hover {
    background-color: #e67e00;
    transform: translateY(-5px);
}

/* Card Deck Styling */
.card-deck .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 30px 10px; /* Increase spacing around cards */
}

.card-deck .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

/* Footer Styling */
footer {
    background-color: #343a40; /* Dark footer */
    color: #fff;
    padding: 20px;
    border-top: 1px solid #444;
}

.footer a {
    color: #ff9800;
    text-decoration: none;
}

.footer a:hover {
    color: #e67e00;
}

/* General Text Styling */
h1, h2 {
    font-weight: bold;
}

.card-title {
    font-size: 1.5rem;
}

/* ✅ Cards “badge” pro, lisibles, punch */
#repair-services .badge-card{
  background: #343a40;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

#repair-services .badge-card__top{
  font-family: 'Agency FB', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
}

#repair-services .badge-card__bottom{
  margin-top: 6px;
  font-size: 1.02rem;
  opacity: .95;
}


/* YouTube Section Styling */
/* Translucent background for YouTube section */
.youtube-box {
    background-color: rgba(255, 255, 255, 0.8); /* White with 80% opacity */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    display: inline-block; /* Center content with inline-block */
    padding: 20px;
    margin: 20px auto; /* Center the box horizontally */
    max-width: 500px; /* Set a max width to keep it compact */
}

.youtube-section {
    padding: 20px 0; /* Reduce the vertical padding */
    text-align: center;
}

.youtube-section img {
    width: 60px; /* Smaller icon size */
    height: auto;
    transition: transform 0.3s ease;
}

.youtube-section img:hover {
    transform: scale(1.1); /* Slight hover effect */
}

.youtube-section p {
    font-size: 0.9rem; /* Smaller text */
    margin-top: 10px;
}

/* Section: Expérience Internationale */
.experience-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    border: 1px solid #444;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.experience-section h2 {
    font-weight: bold;
    margin-bottom: 20px;
}

.experience-section p {
    font-size: 1.1em;
    line-height: 1.5;
}

/* Modal Content Styling */
.modal-content {
    background: rgba(255, 255, 255, 0.9); /* Subtle transparency */
    background-image: url('../assets/images/background.jpg'); /* Page background */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    backdrop-filter: blur(8px); /* Frosted glass effect */
}

/* Modal Header - MLB Red */
.modal-header {
    background-color: #D71920; /* MLB Red */
    color: #ffffff; /* White text */
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 10px 10px 0 0; /* Rounded top corners */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header .close {
    color: #ffffff; /* White close button */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

/* Modal Footer - Blue */
.modal-footer {
    background-color: #223066; /* Dominik Levesque Blue */
    color: #ffffff; /* White text */
    border-radius: 0 0 10px 10px; /* Rounded bottom corners */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer Button */
.modal-footer .btn {
    background-color: #ffffff; /* White button */
    color: #223066; /* Blue text */
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-footer .btn:hover {
    background-color: #e6e6e6; /* Light gray hover */
    transform: translateY(-3px);
}

/* Business Card Elements */
.modal-body img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for images */
    border-radius: 8px; /* Rounded edges for images */
}

.qr-code-container {
    background-color: #f8f9fa; /* Light gray background */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Text Styling */
.modal-body h5 {
    color: #223066; /* Dominik Levesque Blue */
    text-decoration: underline;
    font-weight: bold;
}

.modal-body h6 {
    color: #555; /* Subtle gray for subtitles */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Ensure the modal dialog is centered */
.modal-dialog {
    margin: auto; /* Centers the modal */
    max-width: 600px; /* Set a reasonable maximum width */
}

/* Remove borders, margins, and unwanted outlines */
.modal-content {
    background: rgba(255, 255, 255, 0.9); /* Transparent white */
    border: none; /* Remove thin borders */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    overflow: hidden; /* Avoid accidental lines */
}

/* Fix any overflow issues for the modal container */
.modal {
    align-items: center; /* Vertically center the modal */
    justify-content: center; /* Horizontally center the modal */
    overflow: hidden; /* Prevent overflow */
    padding: 0 !important; /* Remove default Bootstrap padding */
}

/* Remove lines from header and footer */
.modal-header, .modal-footer {
    border: none; /* Removes the thin lines */
}

/* Fix unwanted scrollbars */
body.modal-open {
    overflow: hidden; /* Prevent scrollbars when modal is open */
}
