 /* Global text justification styles */
body {
    font-family: 'Inter', sans-serif;
    text-align: justify;
}

/* Justify text in paragraphs and list items, and general text containers */
p, li, .text-base, .text-lg, .text-xl {
    text-align: justify !important;
}

/* Keep headings and buttons left-aligned for better readability */
h1, h2, h3, h4, h5, h6, button, a {
    text-align: left !important;
}

/* Preserve center alignment where needed */
.text-center {
    text-align: center !important;
}

/* Preserve left alignment for navigation and buttons */
nav, 
.nav-links,
.button-group,
.cta-buttons {
    text-align: left !important;
}

.top-bar a i.fab, .top-bar a i.fas {
    color: white !important;
}

/* Ensure sr-only elements are hidden by default */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    display: none !important; /* Ensure it's hidden */
}

.sr-only.focus\:not-sr-only:focus {
    display: block !important; /* Make it visible on focus */
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a202c; /* Dark background */
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 1000; /* Ensure it's on top */
    display: none; /* Initially hidden */
}

#cookie-banner button {
    margin: 0.5rem;
    cursor: pointer;
}

#cookie-customize {
    display: none; /* Initially hidden */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4a5568; /* Separator line */
}

#cookie-customize .form-radio {
    margin-right: 0.5rem;
}

/* Hero section background */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/shot-two-business-colleagues-small-business-meeting-scaled.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

/* Actualites background */
.actualites-bg {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/young-businessmen-standing-together-holding-laptop-discussing-business-3-scaled.jpg');
    background-size: cover;
    background-position: center;
}

/* Expertise cards */
.expertise-card {
    transition: transform 0.3s ease;
}

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

/* Hero AMELEGAL styling */
.hero-amelegal {
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.35em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Flip card animations */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    transform-style: preserve-3d;
    position: relative;
}

.flip-card:hover .flip-card-inner, .flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 1.5rem;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
    padding: 2rem;
}

.flip-card-front {
    background: #fff;
    z-index: 2;
    box-shadow: none;
    border: none;
}

.flip-card-back {
    background: #f9fafb;
    transform: rotateY(180deg);
    z-index: 3;
    color: #222;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
    border: 2px solid #7AA51B;
}

/* Tick styling */
.tick {
    color: #7AA51B;
    margin-right: 0.5rem;
    font-size: 1.1em;
    display: inline-block;
    vertical-align: middle;
}

/* Underline green */
.underline-green {
    border-bottom: 3px solid #7AA51B;
    display: inline-block;
    padding-bottom: 0.2em;
    margin-bottom: 1em;
}

/* Animations */
.animate-fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive grid */
@media (max-width: 768px) {
    .grid-cols-1, .sm\:grid-cols-2, .lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Gradient expertises */
.gradient-expertises {
    background: linear-gradient(120deg, #f3f4f6 60%, #e0ffe7 100%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(122,165,27,0.08);
    padding: 2rem 1rem;
    animation: fadeInExpertises 1.2s cubic-bezier(0.4,0,0.2,1);
}

@keyframes fadeInExpertises {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInExpertises 1.2s cubic-bezier(0.4,0,0.2,1);
}