/*
Theme Name: Canopee Industries
Theme URI: https://canopee-industries.fr
Author: Votre nom
Description: Thème personnalisé pour Canopée Industries
Version: 1.0
*/

:root {
  --cedar: #516b68;
  --cedar-light: rgba(81, 107, 104, 0.08);
  --cedar-medium: rgba(81, 107, 104, 0.5);
  --cedar-dark: #445b58;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2D3748;
}
.text-cedar{
    color: var(--cedar);
}
.bg-cedar{
    background: var(--cedar);
}
/* Header & Navigation */
.header {
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
  background-color: white;
  border-bottom: 1px solid var(--cedar-light);
  z-index: 50;
  transition: all 0.3s;
}

.scrolled{
    background: rgba(255, 255, 255, 0.98);
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(81, 107, 104, 0.1);
}

.logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  color: var(--cedar);
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cedar);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Sections */
.gradient-section-1 {
  background: #FFF;
}

.gradient-section-2, .loom-companion-mv3 {
  background: rgba(81, 107, 104, 0.158);
}

/* Typography */
.section-title {
  color: var(--cedar);
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--cedar);
  transform: translateX(-50%);
}

/* Components */
.button-primary {
  background-color: var(--cedar);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.button-primary:hover {
  background-color: var(--cedar-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(81, 107, 104, 0.2);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--cedar-light);
  border-radius: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(81, 107, 104, 0.1);
  border-color: var(--cedar);
}

.card h3 {
  position: relative;
  padding-bottom: 1rem;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--cedar);
  transition: width 0.3s ease;
}

.card:hover h3::after {
  width: 60px;
}

/* Team Section */
.team-member-img {
  border: 3px solid var(--cedar-light);
  transition: all 0.3s;
}

.team-member-img:hover {
  transform: scale(1.05);
  border-color: var(--cedar);
}

/* Contact Section */
.contact-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(81, 107, 104, 0.1);
}

.contact-link {
  color: var(--cedar);
  transition: color 0.3s;
}

.contact-link:hover {
  color: #445b58;
}

/* Image Text Section */
.image-text-section {
  @apply grid grid-cols-1 md:grid-cols-2 gap-12 items-center;
}

.section-image {
  @apply relative rounded-2xl overflow-hidden shadow-xl;
  aspect-ratio: 4/3;
  perspective: 1000px;
}

.section-image img {
  @apply w-full h-full object-cover;
}

.section-content {
  @apply space-y-6;
}

.section-subtitle {
  @apply text-cedar font-medium tracking-wider uppercase text-sm inline-block mb-4 
  border border-cedar/20 rounded-full px-4 py-1;
}

/* Acquisitions Section */
.card ul li {
    transition: transform 0.3s ease;
}

.card ul li:hover {
    transform: translateX(5px);
}

.card ul li svg {
    transition: all 0.3s ease;
}

.card ul li:hover svg {
    transform: scale(1.1);
    color: var(--cedar-dark);
}

/* Contact Form Styles */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    transition: all 0.3s ease;
    background-color: white;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(81, 107, 104, 0.1);
}

.contact-form button {
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 107, 104, 0.2);
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Buttons */
.button-primary {
    @apply bg-cedar text-white rounded-lg font-medium transition-all duration-300;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.button-secondary {
    @apply bg-white/90 text-cedar px-8 py-3 rounded-lg font-medium transition-all duration-300 hover:bg-white hover:shadow-lg transform hover:-translate-y-0.5 border border-cedar;
}

/* Section improvements */
.section-title {
    @apply text-3xl md:text-4xl font-bold mb-12 text-[#516b68] relative inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    @apply absolute -bottom-4 left-1/2 transform -translate-x-1/2;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--cedar-light), var(--cedar), var(--cedar-light));
    border-radius: 3px;
}

/* Hero section background */
/*#hero .absolute {
    opacity: 0.2;
    filter: grayscale(100%);
    mix-blend-mode: multiply;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
*/

/* Hero section styles */
#hero {
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

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

#hero svg {
    filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.2));
}

#hero h1, #hero h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

#hero {
    position: relative;
    background-color: rgba(0, 0, 0, 0.3); /* Slight overlay to darken the background */
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

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

#hero h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: none;
    padding: 0;
}

/* Animation for fade in */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}



/* Update button styles for better contrast on dark background */
#hero .button-secondary {
    @apply bg-white text-cedar hover:bg-gray-100;
}

#scroll-arrow {
    z-index: 1;
    transition: all 0.3s ease;
}

#scroll-arrow svg {
    filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.5));
}

#scroll-arrow:hover {
    transform: translate(-50%, -5px);
}

#scroll-arrow:active {
    transform: translate(-50%, 0);
}

/* Values Cards */
#valeurs .group:hover {
    transform: translateY(-5px);
}

#valeurs .group {
    transition: all 0.3s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    transition: all 0.3s ease;
    background-color: white;
}
/* Acquisitions Section */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(81, 107, 104, 0.1);
}

/* Header & Navigation */
.header {
    @apply fixed w-full top-0 left-0 right-0 bg-white/98 backdrop-blur-sm z-50;
    border-bottom: 1px solid var(--cedar-light);
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(81, 107, 104, 0.1);
}

/* Mobile Menu */
#mobile-menu {
    @apply fixed inset-0 lg:hidden bg-black/50 backdrop-blur-sm z-50;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.translate-x-full {
    transform: translateX(100%);
}

#mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
}

/* Mobile Menu */
#mobile-menu {
    @apply fixed inset-0 lg:hidden bg-black/50 backdrop-blur-sm z-50;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.translate-x-full {
    transform: translateX(100%);
}

#mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
}

/* Mobile Menu Links Animation */
#mobile-menu nav ul li a {
    position: relative;
    display: inline-block;
}

#mobile-menu nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cedar);
    transition: width 0.3s ease;
}

#mobile-menu nav ul li a:hover::after {
    width: 100%;
}

/* Base responsive styles */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header responsive adjustments */
.header {
    height: 70px;
}

@media (min-width: 1024px) {
    .header {
        height: 80px;
    }
}

/* Logo responsive size */
.logo {
    height: 40px;
}

@media (min-width: 768px) {
    .logo {
        height: 50px;
    }
}

/* Section spacing */
section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 6rem 0;
    }
}

/* Grid layouts */
.grid {
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 1rem 3rem;
    }
}

/* Typography responsive */
/*h1 {
    font-size: 2rem;
    line-height: 1.2;
    padding: 20px 15px;
    background: #516b689e;
    color: white!important;
    border-radius: 10px;
}*/

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Logo responsive styling */
.logo-container {
    min-width: 160px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .logo-container {
        min-width: 180px;
    }
}

@media (min-width: 1024px) {
    .logo-container {
        min-width: 200px;
    }
}

/* Ensure SVG icons display properly on mobile */
#acquisitions .group svg {
    width: 3rem;
    height: 3rem;
}

#acquisitions .contact-acquisitions svg{
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    #acquisitions .group svg {
        width: 4rem;
        height: 4rem;
    }
    #acquisitions .contact-acquisitions svg{
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Fix icon container size on mobile */
#acquisitions .group .w-28 {
    width: 5rem;
    height: 5rem;
}

@media (min-width: 768px) {
    #acquisitions .group .w-28 {
        width: 7rem;
        height: 7rem;
    }
}

.logo-container img {
    height: 2.5rem; /* 40px for mobile */
    width: auto;
}

@media (min-width: 640px) {
    .logo-container img {
        height: 3rem; /* 48px for small screens */
    }
}

@media (min-width: 1024px) {
    .logo-container img {
        height: 5rem; /* 80px for desktop */
    }
}

/* Better text sizing on mobile */
.text-4xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

@media (min-width: 768px) {
    .text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* Better section padding on mobile */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Improved container padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Buttons responsive styling */
.button-primary {
    @apply bg-cedar text-white rounded-lg font-medium transition-all duration-300;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Button hover effects */
.button-primary:hover {
    @apply bg-cedar-dark;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 107, 104, 0.2);
}

/* Responsive button sizes */
@media (min-width: 640px) {
    .button-primary {
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .button-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Special styling for header contact button */
.header .button-primary {
    @apply rounded-lg;
    padding: 0.5rem 1rem;
}

@media (min-width: 1024px) {
    .header .button-primary {
        padding: 0.75rem 1.5rem;
    }
    #PME .container .grid{
        gap:20vh;
    }
}

/* Ensure button doesn't get too small on very small screens */
@media (max-width: 370px) {
    .button-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Secteurs section specific styles */
#secteurs {
    scroll-margin-top: 100px;
}

#secteurs .group:hover {
    transform: translateY(-5px);
}

#secteurs .group {
    transition: all 0.3s ease;
}

#secteurs .w-20 {
    transition: transform 0.3s ease;
}

#secteurs ul li {
    transition: padding-left 0.3s ease;
}

#secteurs ul li:hover {
    padding-left: 0.5rem;
}



/* Responsive adjustments for mobile */
@media (max-width: 1024px) {
    #secteurs .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    #secteurs .h-[500px] {
        height: 400px;
    }
    
    #secteurs .h-[235px] {
        height: 200px;
    }
}

/* Section Spacing Standards */
.section {
    @apply py-20;
}

.section-header {
    @apply mb-16;
}

.section-content {
    @apply max-w-7xl mx-auto;
}

/* Standardize container padding */
.container {
    @apply px-6 mx-auto;
}

/* Consistent card grid spacing */
.card-grid {
    @apply grid md:grid-cols-3 gap-8 max-w-7xl mx-auto;
}

/* Standard card styling */
.standard-card {
    @apply bg-white/70 backdrop-blur-sm rounded-xl p-8 shadow-lg hover:shadow-xl 
    transition-all duration-300 group;
}

/* Standard icon container */
.icon-container {
    @apply w-20 h-20 bg-cedar/10 rounded-lg flex items-center justify-center mb-6 
    mx-auto group-hover:scale-110 transition-transform;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        @apply py-12;
    }
    
    .section-header {
        @apply mb-12;
    }
    
    h2 {
        @apply text-3xl;
    }
    
    .card-grid {
        @apply grid-cols-1 gap-6;
    }
    
    .standard-card {
        @apply p-6;
    }
    
    .icon-container {
        @apply w-16 h-16;
    }
    #hero .container svg{height: 200px;}
    #scroll-arrow{margin-left: -5%;}
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section {
        @apply py-16;
    }
    
    .card-grid {
        @apply grid-cols-2;
    }
}

/* Consistent hover animations */
.hover-lift {
    @apply transition-all duration-300;
}

.hover-lift:hover {
    @apply -translate-y-1 shadow-lg;
}

/* Icon animations */
.icon-animate {
    @apply transition-transform duration-300;
}

.group:hover .icon-animate {
    @apply scale-110;
}

#hero .bottom-text h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}
h1 {
    margin-top: 10vh!important;
}
#hero .bottom-text .h-px {
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.mention_legale section{padding:0.25rem 0px;    margin: 3rem 0px;}

/* Critères section specific styles */
#pme .card-grid {
    @apply flex flex-col md:flex-row justify-center items-stretch gap-8;
    max-width: 900px;
    margin: 0 auto;
}

#pme .standard-card {
    @apply bg-white/70 backdrop-blur-sm rounded-xl p-8 
    shadow-lg hover:shadow-xl transition-all duration-300 flex-1;
    max-width: 420px; /* Control maximum width of each card */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #pme .card-grid {
        @apply flex-col items-center;
    }
    
    #pme .standard-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Critères section specific styles */

/* Responsive adjustments */
@media (min-width: 768px) {
    #pme .acquisitions{
        max-width: 400px;
    }
    .criterias{justify-content: center !important;}
}