:root {
    --primary-color: #000000;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-color: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.full-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;

    margin-bottom: 40px; /* Augmenté de 30px à 40px */
    margin-top: 25px; /* Augmenté de 15px à 25px */

}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);

    margin-bottom: 20px; /* Augmenté de 30px à 40px */
    margin-top: 25px; /* Augmenté de 15px à 25px */
    transform: translateX(-60px);
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
}
.color
{
    color: rgb(14, 177, 14);
    transform: translateY(-30px);
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #515151;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;

    transform: translateY(-10px);
}

.btn:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0 auto;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* Home Section */
.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 40px;
}

.home-text {
    flex: 1;
    min-width: 300px;
    transform: translateX(40px);
}

.description-image {
    width: 80%;
    margin-top: 20px;
    transform: translateX(10px);
    
}

.description-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0);
}

.home-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
   
}
.oussama
{
    transform: translateY(-50px);
}
.rahma
{
    transform: translateY(-50px);
}

/* NFC Card Styles */
.card {
    width: 280px;
    height: 330px;
    perspective: 1000px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    
}

.card-inner {
    position: relative;
    width: 130%;
    height: 130%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
    
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 254, 254, 0);
    overflow: hidden;
}

.card-front {
    z-index: 2;
    /*transform: translateX(-30px);*/
}
/*
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 254, 254, 0);
    overflow: visible; /* Changé de 'hidden' à 'visible' 
}

.card-front {
    z-index: 2;
    transform: translateX(-60px);
    width: calc(100% + 30px); /* Compensation pour le translate 
    left: 30px; /* Alternative au translate 
}*/

.card-back {
    transform: rotateY(180deg);
}

.card-front img, 
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stylish Button Styles */
.button {
    display: inline-block;
    height: 50px;
    width: 200px;
    position: relative;
    background-color: transparent;
    cursor: pointer;
    border: 2px solid #252525;
    overflow: hidden;
    border-radius: 30px;
    color: #333;
    transition: all 0.5s ease-in-out;
    text-align: center;
    line-height: 46px;
    margin-top: 30px;
    text-decoration: none;
}

.btn-txt {
    z-index: 1;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
}

.type1::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.5s ease-in-out;
    background-color: #333;
    border-radius: 30px;
    visibility: hidden;
    height: 10px;
    width: 10px;
    z-index: -1;
}

.button:hover {
    box-shadow: 1px 1px 200px #252525;
    color: #fff;
    border: none;
}

.type1:hover::after {
    visibility: visible;
    transform: scale(100) translateX(2px);
}

.learn-more {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    position: absolute;
    bottom: 40px;
    left: 0;
}

.learn-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.learn-more-link:hover {
    color: var(--secondary-color);
    transform: translateY(3px);
}

.learn-more-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.learn-more-link:hover i {
    transform: translateY(3px);
}

/* NFC Info Section */
#nfc-info {
    background-color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    position: relative;
}

.nfc-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 20px;
}

.nfc-content {
    flex: 1;
    min-width: 300px;
    z-index: 2;
    transform: translateY(-60px);
}

.text-images-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.text-image {
    width: 30%;
    max-width: 500px;
    height: auto;
    /*border-radius: 12px;*/
    /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);*/
    opacity: 0;
    transform: translateY(100px);
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bounce-up-1 {
    animation: bounceUp 1s 0.3s forwards;
}

.bounce-up-2 {
    animation: bounceUp 1s 0.6s forwards;
}

.bounce-up-3 {
    animation: bounceUp 1s 0.9s forwards;
}

@keyframes bounceUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
    70% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/*.text-image:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}*/

.phone-container {
    position: relative;
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.phone-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    z-index: 2;
    position: relative;
}

.card-img {
    rotate: 90deg;
    width: 100%;
    max-width: 600px;
    height: auto;
    position: absolute;
    z-index: 1;
    transform-origin: center center;
    animation: cardAnimation 5s ease-in-out infinite;
}

@keyframes cardAnimation {
    0% {
        transform: translateX(-170px);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    40% {
        transform: translateX(-120px);
    }
    60% {
        transform: translateX(-150px);
    }
    80% {
        transform: translateX(-120px);
    }
    100% {
        transform: translateX(-150px);
    }
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    padding: 20px;
    text-align: center;
   
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.service-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.circle i {
    font-size: 50px;
    color: var(--primary-color);
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

.available {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

.coming-soon {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
}

.under-construction {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

/* About Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: var(--dark-color);
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}
.section-subtitle
{
    transform: translateY(30px);
}
/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--dark-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .description-image img {
        max-width: 90%;
    }
    
    .nav-list {
        margin: 0;
    }
    
    .nav-list li {
        margin: 0 10px;
    }
    
    .phone-container {
        height: 400px;
    }
    
    .phone-img {
        max-width: 450px;
    }
    
    .card-img {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
    }
    
    .home-text {
        order: 1;
    }
    
    .home-image {
        order: 2;
    }
    
    .full-section {
        padding: 100px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .button {
        width: 180px;
        height: 45px;
        line-height: 41px;
        margin-top: 20px;
    }
    
    .btn-txt {
        letter-spacing: 1px;
        font-size: 14px;
    }
    
    .nfc-container {
        flex-direction: column;
    }
    
    .nfc-content {
        padding-right: 0;
        order: 1;
    }
    
    .phone-container {
        order: 2;
        height: 350px;
    }
    
    .text-image {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .home-text h1 {
        font-size: 28px;
    }
    
    .card {
        width: 160px;
        height: 240px;
    }
    
    .button {
        width: 160px;
        height: 40px;
        line-height: 36px;
        font-size: 13px;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .circle {
        width: 120px;
        height: 120px;
    }
    
    .circle i {
        font-size: 40px;
    }
    
    .phone-container {
        height: 250px;
    }
    
    .phone-img {
        max-width: 300px;
    }
    
    .card-img {
        max-width: 300px;
    }
    
    .text-images-container {
        gap: 20px;
    }
}