/* ==========================
   VARIABLES & GLOBAL STYLES
   ========================== */

   :root {
    --primary-color: #FFD700;
    --dark-bg: #1C1F23;
    --text-light: #ffffff;
    --gold-accent: #B8860B;
    --max-width: 1200px;
    --side-padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
    text-shadow: 0 0 3px black;
}

/* ==========================
   HEADER
   ========================== */

.header-wrapper {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 110px;
}

.logo img, 
.logo canvas {
    height: 110px !important;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.malt {
    width: 60%;
}

@media (max-width: 375px) {
    .nav-menu {
        gap: 1rem;
    }
    .malt {
        width: 100%;
    }
}

/* ==========================
   HERO SECTION
   ========================== */

.hero-wrapper {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 0;
    gap: 4rem;
    min-height: 100vh;
}

.hero-content {
    flex: 0 1 40%;
    padding-top: 80px;
    text-shadow: 0 0 9px black;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 450px) {
    .hero-wrapper {
        min-height: 80vh;
    }
}

@media (max-width: 770px){
    .hero{
        min-height: 60vh;
    }
    .hero-wrapper{
        max-height:60vh;
    }
}

/* ==========================
   CAROUSEL
   ========================== */

.carousel-container {
    flex: 0 1 55%;
    height: 500px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    height: 99%;
    width: 100%;
    object-fit: cover;
}

.testimonial {
    height: 30%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 0.1rem;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: bold;
}

.carousel-buttons {
    position: absolute;
    bottom: 35%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 32%;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
}

/* ==========================
   PROJECT SECTION
   ========================== */

.project-wrapper {
    background-color: var(--dark-bg);
    padding: 2rem 0;
    margin-top:-15px;
}

.project-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 450px) {
    .project-content {
        margin-top: 0;
    }
}

.project-text {
    flex: 1;
    line-height: 1.6;
}

.project-image img,
.project-image canvas {
    width: 10rem;
    border-radius: 50%;
}

/* ==========================
   SERVICES SECTION
   ========================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* ==========================
   STEPS SECTION
   ========================== */

.steps-wrapper {
    background-color: #1a1a1a;
    padding: 2rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.step-item a {
    text-decoration: none;
    color: #B8860B;
}

.step-item p {
    margin-top: 20px;
}

.step-icon img,
.step-icon canvas {
    margin: 0 0 20px 0;
    width: 80px;
}

@media (max-width: 780px) {
    .step-icon img {
        width: 50px;
        margin: 0 0 5px 0;
    }
    .step-item {
        padding: 0.5rem;
    }
    .steps-grid {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    /* Quelques ajustements spécifiques aux onglets et autres */
    .tab-buttons {
        margin-bottom: 0.5rem !important;
    }
    .tab-gallery img {
        display: none;
    }
    .tab-text h3 {
        font-size: 1.3rem !important;
    }
    .conseil-item {
        padding: 0.5rem !important;
    }
    .conseil-grid {
        gap: 0.5rem !important;
    }
    .service-icon {
        width: 50px !important;
        height: auto !important;
    }
    .footer {
        align-items: start;
        height: 140px;
    }
    .w3c-container {
        margin-top: 1rem !important;
    }
}

/* ==========================
   CONTACT & CONSEIL SECTION
   ========================== */

.contact-wrapper,
.conseil-wrapper {
    background-color: var(--gold-accent);
    padding: 2rem 0;
}

.contact {
    text-align: center;
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 2rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.conseil-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 1rem;
}

.conseil-text {
    flex: 1;
    line-height: 1.6;
}

.conseil-image img,
.conseil-image canvas {
    width: 10rem;
    border-radius: 50%;
}

.conseil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.conseil-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    text-align: center;
}

.conseil-item h3,
.conseil-item p {
    margin-top: 1rem;
}

.conseil-item:hover {
    transform: translateY(-5px);
}

@media (max-width: 720px) {
    .conseil-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================
   FOOTER
   ========================== */

.footer-wrapper {
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer {
    display: flex;
    justify-content: center;
    align-items: start;
    height: 140px;
    margin: 0 auto;
    align-content: center;
}

.footer p {
    text-align: center;
    font-size: 1rem;
    margin: 1rem 0;
}

.footer a {
    text-decoration: none;
    color: #0A66C2;
}

/* ==========================
   LINKEDIN CARD
   ========================== */

.linkedin-card {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 300px;
    background-color: #1B1F23;
    border-radius: 8px;
    padding: 16px;
    color: white;
    margin: 20px auto;
    display: grid;
    justify-content: center;
    justify-items: center;
}

.linkedin-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.linkedin-logo {
    width: 30px;
    height: 30px;
    background-color: #0A66C2;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 8px 0;
}

.name {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0 4px 0;
}

.position {
    font-size: 14px;
    color: #E7E9EA;
    margin-bottom: 4px;
}

.education {
    font-size: 14px;
    color: #E7E9EA;
    margin-bottom: 16px;
}

.view-profile {
    display: inline;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 8px;
    background-color: #0b141d;
    padding: 10px;
}

/* ==========================
   TABS (ONGLETS)
   ========================== */

.services-tabs {
    margin-top: 2rem;
    border: 1px solid rgb(34, 19, 0);
    border-radius: 10px;
    padding: 2px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.tab-btn:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: var(--gold-accent) !important;
    text-shadow: 0 0 3px black;
}

.tab-btn .service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.tab-btn .titre {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: block;
}

.tab-btn .soustitre {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
}

/* Icon filter states */
.tab-btn:not(.active) .service-icon {
    filter: none !important;
}

.tab-btn.active .service-icon {
    filter: brightness(0) saturate(100%) !important;
}

.tab-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tab-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tab-text ul {
    list-style: none;
    padding: 0;
}

.tab-text ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.tab-text ul li::before {
    content: " • ";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.tab-gallery {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tab-gallery img,
.tab-gallery canvas {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

.tab-gallery img:hover,
.tab-gallery canvas:hover {
    transition: transform 0.3s ease;
    transform: scale(1.10);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================
   RESPONSIVE STYLES
   ========================== */

/* Pour les écrans 1024px et moins */
@media (max-width: 1024px) {
    :root {
        --side-padding: 1.5rem;
    }
    .hero {
        flex-direction: column;
        padding: 2rem 0;
        justify-content: flex-start;
        gap: 2rem;
    }
    .hero-content {
        flex: 0 1 auto;
        width: 100%;
        padding-top: 100px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .carousel-container {
        flex: 0 1 auto;
        width: 100%;
        height: 400px;
        margin-top: 1rem;
    }
    
    .tab-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    /*.tab-grid {
        /*grid-template-columns: 1fr;
    }*/
    .tab-gallery {
        margin: 6rem 2rem auto;
    }
}
/* Pour les écrans panoramique*/
@media (max-height:500px){
    .hero{
        flex-direction:row!important;
    }
    .logo img, 
    .logo canvas {
    height: 80px !important;
    }
    .header{
        height: 75px!important;
    }
    .carousel-container{
        height: 280px!important;
        margin-top: 50px!important;
    }
    .icon-container {
        display: block!important;
        height: 20px!important;
    }
    .soustitre{
        display: none!important;
    }
    .titre{
        font-size: 0.8rem!important;
    }
    .services-tabs{
        display:flex!important;
    }
    .tab-buttons{
        grid-template-columns: repeat(1,1fr)!important;
        gap: 0.1rem!important;
        margin-bottom: 0!important;
    }
    .tab-gallery{
        display: none!important;
    }
    .tab-grid{
        display: inline!important;
    }
    .tab-text{
        font-size: 0.8rem!important;
    }
    .tab-text h3{
        font-size:1.2rem!important;
    }
    .tab-content{
        min-height: 296px!important;
        width: 100%!important;
        padding-bottom: 0!important;
    }
    .tab-btn{
        border: 1px solid darkgrey!important;
        flex-direction: row!important;
        display:flex!important;
    }
    .step-icon img,
    .step-icon canvas {
        margin: 0 0 10px 0!important;
        width: 30px!important;
    }
    .step-item p{
        font-size: 0.8rem!important;
        margin-top: 10px!important;
    }
    .step-item{
        padding: 1rem!important;
        border: 1px solid darkgrey!important;
    }
    .steps-grid{
        gap:1rem!important;
    }
    .conseil-grid{
        gap: 1rem!important;
    }
    .service-icon {
        width: 40px !important;
        height: auto !important;
    }
    .conseil-item{
        padding: 1rem!important;
    }
    .conseil-item p{
        font-size: 0.8rem!important;
        margin-top: 0.5rem!important;
    }
}

/* Pour les écrans 768px et moins */
@media (max-width: 768px) {
    .hero {
        padding: 1rem 0;
        gap: 1.5rem;
    }
    .hero-content {
        padding-top: 9px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .carousel-container {
        height: 350px;
    }
    .services-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .icon-container {
        display: none;
    }
    .tab-gallery {
        gap: 0;
        display: inline;
        margin: 0 auto;
    }
    .tab-grid {
        display: inline-flex;
        gap: 0;
    }
    .tab-btn {
        padding: 1rem;
    }
    .tab-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-content,
    .conseil-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Pour les écrans 480px et moins */
@media (max-width: 480px) {
    .hero-content {
        padding-top: 110px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .carousel-container {
        height: 300px;
    }
    .testimonial {
        padding: 0 1rem;
    }
    .hero {
        gap: 1rem;
    }
    .icon-container {
        display: none;
    }
    .soustitre {
        display: none !important;
    }
    .tab-content {
        min-height: 500px;
        grid: none;
    }
    .tab-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .tab-gallery {
        gap: 0;
        display: inline;
        margin: 0 auto;
    }
    .tab-grid {
        display: inline-flex;
        gap: 0;
    }
    .tab-btn {
        padding: 0.5rem;
        border: 1px solid darkgrey;
    }
    .tab-btn h3,
    .tab-btn p {
        font-size: 0.75rem;
    }
    .hero-content {
        text-shadow: 0 0 9px black;
    }
    .testimonial {
        padding: 0 1rem;
    }
    .tab-btn h3,
    .tab-btn p {
        font-size: 0.75rem;
    }
}

/* ==============================
   IMAGE PROTECTION & WATERMARKS
   ============================== */

/* Prévention du glisser-déposer et de la sélection */
img, canvas {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.image-protect-wrapper {
    position: relative;
    display: inline-block;
    /*overflow: hidden;*/
}

.watermark {
    position: absolute;
    bottom: 50%;
    left: 60%;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    color: #888888;
    pointer-events: none;
}

.watermark-black {
    color: #000;
    text-shadow: 0px 0px 2px rgba(255,255,255,0.8), 0px 0px 4px rgba(255,255,255,0.6);
}

.watermark-white {
    color: #fff;
    text-shadow: 0px 0px 2px rgba(0,0,0,0.8), 0px 0px 4px rgba(0,0,0,0.6);
    margin: -20px 0;
}

/* ==========================
   PRINT & ACCESSIBILITY
   ========================== */

@media print {
    img {
        visibility: hidden;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Utilitaires divers */
.w3c-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.w3c-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 4px;
    background-color: #fff;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 0 0 rgb(255, 255, 255);
}

.w3c-container:hover .w3c-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.w3c-text {
    color: #0A66C2;
    cursor: pointer;
}

.masque {
    max-width: 1200px;
    margin: 0;
    bottom: 100px;
    background-color: #1c1f23;
    position: relative;
    z-index: 99;
    padding: 0 20px;
    height: 100px;
}
