/* ==========================================
   1. VARIABLES & POLICES
   ========================================== */
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Abril+Fatface&display=swap');

   :root {
       --accent: #00bf63;
       --accent-hover: #00a053;
       --bg-dark: #121212;
       --bg-card: #1e1e1e;
       --text-main: #f5f5f5;
       --text-muted: #aaaaaa;
       --border-radius: 12px;
       --transition: all 0.3s ease;
   }
   
   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
       font-family: 'Montserrat', sans-serif;
   }
   
   body {
       /* Utilisation d'un dégradé assombrissant sur l'image de fond pour garantir la lisibilité */
       background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url("bg.png") no-repeat center center fixed;
       background-size: cover;
       color: var(--text-main);
       line-height: 1.6;
       scroll-behavior: smooth;
   }
   
   /* ==========================================
      2. HEADER & NAVIGATION
      ========================================== */
   .header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 20px 5%;
       background: rgba(231, 248, 239, 0.8);
       backdrop-filter: blur(10px);
       position: sticky;
       top: 0;
       z-index: 1000;
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   }
   
   .logo-container img {
       max-width: 200px;
       height: auto;
   }
   
   .nav1 ul {
       display: flex;
       gap: 30px;
       list-style: none;
   }
   
   .nav1 li a {
       text-decoration: none;
       color: black;
       font-weight: 600;
       font-size: 1rem;
       transition: var(--transition);
       position: relative;
   }
   
   .nav1 li a::after {
       content: '';
       position: absolute;
       width: 0;
       height: 2px;
       bottom: -5px;
       left: 0;
       background-color: var(--accent);
       transition: var(--transition);
   }
   
   .nav1 li a:hover::after, .nav1 li a.active::after {
       width: 100%;
   }
   
   .nav1 li a:hover, .nav1 li a.active {
       color: var(--accent);
   }
   
   /* ==========================================
      3. PAGE D'ACCUEIL (Index)
      ========================================== */
   .top-page {
       display: flex;
       align-items: center;
       justify-content: center;
       min-height: 60vh;
       text-align: center;
       padding: 40px 5%;
   }
   
   .big-title {
       font-family: 'Abril Fatface', cursive;
       font-size: clamp(3rem, 6vw, 5rem);
       font-weight: 100;
       color: var(--white);
       margin-bottom: 10px;
       letter-spacing: 2px;
   }
   
   .p-title {
       font-family: 'Abril Fatface', cursive;
       font-size: clamp(1.5rem, 4vw, 3rem);
       color: var(--accent);
   }
   
   /* Services */
   .service {
       display: flex;
       justify-content: center;
       gap: 50px;
       margin: 60px 5%;
       flex-wrap: wrap;
   }
   
   .service-item {
       display: flex;
       flex-direction: column;
       align-items: center;
       background: var(--bg-card);
       padding: 30px;
       border-radius: var(--border-radius);
       min-width: 200px;
       box-shadow: 0 10px 30px rgba(0,0,0,0.5);
       transition: var(--transition);
   }
   
   .service-item:hover {
       transform: translateY(-10px);
       border-bottom: 3px solid var(--accent);
   }
   
   .delivery-icon {
       font-size: 40px;
       color: var(--accent);
       margin-bottom: 15px;
   }
   
   /* Projets clients */
   .customer {
       margin: 80px 5%;
   }
   
   .section-title {
       font-size: clamp(2rem, 4vw, 3rem);
       font-family: "Abril Fatface", cursive;
       margin-bottom: 40px;
       text-align: center;
   }
   
   .section-title::after {
       content: "";
       display: block;
       background-color: var(--accent);
       width: 60px;
       height: 4px;
       margin: 15px auto 0;
       border-radius: 2px;
   }
   
   .customer-pro {
       display: flex;
       gap: 30px;
       flex-wrap: wrap;
   }
   
   .toile {
       flex: 1;
       min-width: 300px;
       height: 400px;
       background-size: cover;
       background-position: center;
       border-radius: var(--border-radius);
       position: relative;
       overflow: hidden;
       text-decoration: none;
       transition: var(--transition);
       box-shadow: 0 15px 35px rgba(0,0,0,0.5);
   }
   
   .toile:hover {
       transform: scale(1.03);
   }
   
   .soleil-toile { background-image: url("soleil-toile.webp"); background-color: #333;}
   .masque-toile { background-image: url("masque-toile.webp"); background-color: #444;}
   
   .description {
       position: absolute;
       bottom: -100%;
       left: 0; right: 0;
       background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
       color: var(--text-main);
       padding: 40px 20px 20px;
       transition: var(--transition);
       text-align: left;
   }
   
   .toile:hover .description {
       bottom: 0;
   }
   
   .description h3 { color: var(--accent); margin-bottom: 5px; }
   
   /* ==========================================
      4. RÉALISATIONS NUMÉRIQUES (Galerie)
      ========================================== */
   .sub-nav {
       display: flex;
       justify-content: center;
       gap: 40px;
       padding: 15px;
       background: var(--bg-card);
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   }
   
   .sub-nav a {
       text-decoration: none;
       color: var(--text-muted);
       font-weight: 600;
       text-transform: uppercase;
       font-size: 0.9rem;
       letter-spacing: 1px;
       transition: var(--transition);
   }
   
   .sub-nav a:hover { color: var(--accent); }
   
   .gallery-section h2 {
       text-align: left;
       margin: 60px 5% 30px;
       font-weight: 600;
       text-transform: uppercase;
       letter-spacing: 2px;
       font-size: 1.5rem;
       color: var(--text-main);
   }
   
   .galerie-num {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
       gap: 25px;
       padding: 0 5% 40px;
   }
   
   .art-card {
       position: relative;
       border-radius: var(--border-radius);
       overflow: hidden;
       aspect-ratio: 1 / 1;
       background: var(--bg-card);
       box-shadow: 0 5px 15px rgba(0,0,0,0.3);
   }
   
   .art-card img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
   }
   
   .art-card:hover img { transform: scale(1.1); }
   
   .overlay {
       position: absolute;
       inset: 0;
       background: rgba(0, 0, 0, 0.6);
       display: flex;
       justify-content: center;
       align-items: center;
       opacity: 0;
       transition: var(--transition);
   }
   
   .art-card:hover .overlay { opacity: 1; }
   
   .overlay span {
       border: 2px solid var(--accent);
       border-radius: 30px;
       padding: 10px 25px;
       color: var(--text-main);
       font-weight: 600;
       text-transform: uppercase;
       font-size: 0.85rem;
       letter-spacing: 1px;
       background: rgba(0, 191, 99, 0.1);
   }
   
   /* ==========================================
      5. PAGE CONTACT
      ========================================== */
   .contact-container {
       max-width: 1000px;
       margin: 40px auto;
       padding: 0 5%;
   }
   
   .contact-intro {
       text-align: center;
       color: var(--text-muted);
       margin-bottom: 40px;
       font-size: 1.1rem;
   }
   
   .contact-flex {
       display: flex;
       gap: 50px;
       background: var(--bg-card);
       padding: 40px;
       border-radius: var(--border-radius);
       box-shadow: 0 15px 40px rgba(0,0,0,0.5);
   }
   
   .contact-form { flex: 2; }
   
   .form-group { margin-bottom: 25px; }
   
   .form-group label {
       display: block;
       margin-bottom: 8px;
       color: var(--text-main);
       font-weight: 600;
       font-size: 0.9rem;
   }
   
   .form-group input, .form-group textarea {
       width: 100%;
       padding: 15px;
       background: rgba(255, 255, 255, 0.03);
       border: 1px solid rgba(255, 255, 255, 0.1);
       border-radius: 8px;
       color: var(--text-main);
       font-size: 1rem;
       transition: var(--transition);
   }
   
   .form-group input:focus, .form-group textarea:focus {
       outline: none;
       border-color: var(--accent);
       background: rgba(255, 255, 255, 0.05);
   }
   
   .btn-submit {
       background: var(--accent);
       color: #fff;
       border: none;
       border-radius: 8px;
       padding: 15px 30px;
       font-weight: 700;
       font-size: 1rem;
       cursor: pointer;
       width: 100%;
       transition: var(--transition);
   }
   
   .btn-submit:hover {
       background: var(--accent-hover);
       transform: translateY(-2px);
   }
   
   .contact-info {
       flex: 1;
       border-left: 1px solid rgba(255, 255, 255, 0.1);
       padding-left: 40px;
       display: flex;
       flex-direction: column;
       justify-content: center;
   }
   
   .contact-info h3 {
       margin-bottom: 20px;
       color: var(--accent);
   }
   
   .social-links {
       display: flex;
       flex-direction: column;
       gap: 20px;
   }
   
   .social-links a {
       color: var(--text-main);
       text-decoration: none;
       display: flex;
       align-items: center;
       gap: 15px;
       font-size: 1.1rem;
       transition: var(--transition);
   }
   
   .social-links a i {
       font-size: 1.5rem;
       color: var(--text-muted);
       transition: var(--transition);
   }
   
   .social-links a:hover { color: var(--accent); }
   .social-links a:hover i { color: var(--accent); }
   
   /* ==========================================
      6. FOOTER
      ========================================== */
   .footer {
       text-align: center;
       padding: 60px 20px 40px;
       margin-top: 60px;
       border-top: 1px solid rgba(255, 255, 255, 0.05);
   }
   
   .btn-back {
       display: inline-block;
       padding: 10px 25px;
       border: 1px solid var(--accent);
       border-radius: 30px;
       color: var(--accent);
       text-decoration: none;
       margin-bottom: 20px;
       transition: var(--transition);
   }
   
   .btn-back:hover {
       background: var(--accent);
       color: #fff;
   }
   
   .footer p { color: var(--text-muted); font-size: 0.9rem; }
   
   /* ==========================================
      7. RESPONSIVE
      ========================================== */
   @media screen and (max-width: 900px) {
       .contact-flex { flex-direction: column; }
       .contact-info { 
           border-left: none; 
           border-top: 1px solid rgba(255, 255, 255, 0.1); 
           padding-left: 0; 
           padding-top: 30px; 
       }
   }
   
   @media screen and (max-width: 768px) {
       .header { flex-direction: column; gap: 20px; padding: 20px; }
       .nav1 ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
       .service { gap: 20px; }
       .toile { height: 300px; }
   }
   
   @media screen and (max-width: 480px) {
       .sub-nav { flex-direction: column; align-items: center; gap: 15px; }
       .galerie-num { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
   }