:root{
    --primary-color:#2196F3;
}

/* RESET & BASE */

body {
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #ccc;
    z-index: 1000;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo img {
    width: 50px; 
    height: 50px;
    object-fit:cover;
    object-position: center;
    border-radius: 8px; 
    display: block;
}

/* === NAVIGATION ACTIVE === */

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: 0.3s;
}

nav a:hover {
    background: #eee;
}

header nav a {
    padding: 0.5rem 1rem;
    transition: color 0.3s, border-bottom 0.3s;
}

header nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

#mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* MOBILE MENU */
#mobile-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid #ccc;
}

#mobile-menu a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

/* HERO */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgb(255, 255, 255), rgba(13, 102, 235, 0.622));
    padding: 8rem 8rem;
    padding-bottom: 4rem;
}

#home .content {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 2rem;
    width:100%;
}

#home .text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#home .text p {
    color: #666;
    margin-bottom: 1.5rem;
 
}

#home .text .apk-button {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s;
}

#home .text .apk-button:hover {
    background: var(--primary-color);
    color: white;
}

#home .text .apk-button .qr {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

#home .text .apk-button:hover .qr {
    opacity: 1;
    visibility: visible;
}

#home .text .apk-button .qr img{
    height: 150px;
}
#home img {
    max-height: 400px;
      animation: floatRotate 5s ease-in-out infinite;
}


@keyframes floatRotate {
    0%   { transform: translateY(0px) rotate(-10deg); }
    50%  { transform: translateY(-12px) rotate(20deg); }
    100% { transform: translateY(0px) rotate(-10deg); }
}


/* SECTIONS */
section {
    padding: 4rem 8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SERVICES */
#services .grid,
#pricing .grid,
#howto .grid {
    display: grid;
    gap: 2rem;
}

#services .grid,
#pricing .grid {
    grid-template-columns: 1fr;
}

#services .card,
#pricing .card {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

#services .card.visible,
#pricing .card.visible {
    opacity: 1;
    transform: translateY(0);
}

#services .card .icon {
    width: 50px;
    height: 50px;
    background: #07a0f32a;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

/* HOWTO */
#howto {
    background: #f5f0ff;
    display: flex;
    justify-content: space-between;

}

#howto .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

#howto .grid .image {
    align-items: center;
    display: flex;
    justify-content: center;
}
#howto .grid img {
    max-height: 400px;
    transform: rotate(40deg);
     animation: zoomAnim 5s ease-in-out infinite;
    border-radius: 16px;
    box-shadow: 0 10px 15px --primary-color;
}

@keyframes zoomAnim {
    0%   { transform: scale(1) rotate(40deg); }
    50%  { transform: scale(1.05) rotate(45deg); }
    100% { transform: scale(1) rotate(40deg); }
}

/* PRICING */

.licence-box {
    margin-top: 1rem;
    margin-left: 1rem;
    background: #fff;
    color: #155724;
    border: 1px dashed #155724;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

#copy-licence{
    font-size: 1rem;
}

.licence-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #155724;
    transition: transform 0.2s ease;
}

.licence-box button:hover {
    transform: scale(1.2);
}

/* pricing */
#pricing .grid {
    grid-template-columns: 1fr;
    margin-top: 5rem;
}

#pricing .card {
    display: flex;
    flex-direction: column;
    flex: 1 1 250px;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    background: #fff;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

#pricing .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#pricing .card-content ul {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

#pricing .card-content .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#pricing .card-content .features-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.4;
}

#pricing .card-content .features-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.1rem;
    background-color: #07a0f32a;
    color: var(--primary-color);
    font-size: 0.75rem;
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1.2rem;
    text-align: center;
    border-radius: 50%;
}


#pricing .subscribe-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: auto;
    /* pousse le bouton en bas */
}



#pricing .subscribe-btn:active {
    transform: translateY(0);
}

/* === BADGES + HIGHLIGHT === */
#pricing .card {
    position: relative;
    overflow: visible;
}

#pricing .badge {
    position: absolute;
    top: -20px; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    white-space: nowrap; 
    width: auto;
    z-index: 10;
}


#pricing .badge-popular {
    background: linear-gradient(90deg, #ff6a00, #ee0979);
}

#pricing .badge-pro {
    background: linear-gradient(90deg, #2af598, #009efd);
}

#pricing .card-content h3 {
    margin-top: 1.5rem;
}


#pricing .card.highlighted {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(95, 71, 255, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

#pricing .card.highlighted:hover {
    transform: translateY(-8px) scale(1.02);
}

#pricing .card:not(.highlighted):hover {
    transform: translateY(-4px);
}

#pricing .subscribe-btn {
    background: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#pricing .subscribe-btn:hover {
    background: #1a07eb;
    transform: translateY(-2px);
    transform: scale(1.03);
    
}

/* comparaison section */

/* Section générale */
#packs-comparison {
    text-align: center;
}

#packs-comparison h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Message si aucun pack */
.no-packs {
    font-size: 1.2rem;
    color: gray;
}

/* Wrapper pour scroll horizontal sur mobile */
.comparison-table-wrapper {
    overflow-x: auto;
}

/* Table */
.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: center;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 1rem;
}

.comparison-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: relative;
}

/* Badge */
.comparison-table .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Prix et durée */
.comparison-table .price {
    font-weight: bold;
    color: var(--primary-color, #007bff);
    font-size: 1.1rem;
}

.comparison-table .duration {
    font-size: 0.9rem;
    color: gray;
}

/* Feature */
.comparison-table .feature {
    text-align: left;
}

/* Bouton Souscrire */
.comparison-table button {
    background-color: var(--primary-color, #007bff);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.comparison-table button:hover {
    background-color: #0056b3;
}

/* Ligne bouton souscrire */
.subscribe-row td {
    padding: 1rem;
}

/* Check / Cross centré */
.comparison-table .feature-check {
    text-align: center;  
    font-weight: bold; 
    font-size: 0.8rem; 
}

.comparison-table .feature-check .check-yes {
    font-size: large;
    color: var(--primary-color); 
}

.comparison-table .feature-check .check-no {
    font-size: large;
    color: red; 
}

 /* printer section */

#printer-offer {
    background: linear-gradient(135deg,var(--primary-color),white, #ffffff);
    padding: 4rem 2rem;
    overflow: hidden;
}

.printer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.printer-text {
    flex: 1 1 400px;
    color: black;
    z-index: 1;
}

.printer-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.printer-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-btn {
     background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: white;
    transform: scale(1.05);
}

.printer-image-wrapper {
    position: relative;
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.printer-img {
    width: 300px;
    transform: translateY(-20px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 1rem;
    box-shadow: 2px 2px 10px rgb(235, 235, 235);
}

.printer-img:hover {
    transform: translateY(-25px) scale(1.05);
}

.printer-features {
    margin-top: 1rem;
    background: #2195f330;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-align: left;
    color: var(--primary-color);
    width: 100%;
    max-width: 350px;
}

.printer-features h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
     color: black;
}

.printer-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.printer-features li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}
 
/* COMMUNITY */
#community {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#community .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
#community .grid .image{
display: flex;
justify-content: center;

}
#community .grid .image img {
    width: 400px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* CONTACT */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#contact button {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#contact button:hover {
    background: #3b2ef3;
}

/* FOOTER */
footer a {
    color: #ccc;
}

footer a:hover {
    color: white;
}


/* ==== FOOTER ==== */
#footer {
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    rgba(1, 9, 21, 0.963) 100%
  ); 
  color: #f1f5f9; 
  padding: 4rem 8rem 2rem;
  margin-top: 4rem;
  overflow: hidden;
}

#footer .liste-groop{
display: flex;
gap: 1rem;
}
/* Titres */
#footer  .title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#footer .footer-content{
  display: grid;
  border-bottom: 1px solid rgb(255, 255, 255);
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 2rem;
}


/* Liens */
#footer .liste  a {
  display: block;
  color: #e0e7ff; /* bleu très clair */
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

#footer  .liste a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Boutons de contact (icônes ou liens) */
#footer .contact-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: #e0e7ff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

#footer .contact-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Texte de copyright */
#footer  .copy {
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-top: 15px;

}

#footer .liste-3{
    text-align: center;
}


/* ----- Modal container ----- */
.modal {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease-in-out;
}

/* ----- Box centrale ----- */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease-out;
}

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

/* ----- Bouton de fermeture ----- */
.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}
.close-btn:hover {
  color: #000;
}

/* ----- Input et boutons ----- */
#email-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 15px;
}

.modal-actions {
  text-align: right;
  margin-top: 15px;
}

.cancel-btn,
.confirm-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.cancel-btn {
  background-color: #ddd;
  margin-right: 10px;
}

.confirm-btn {
  background-color: #28a745;
  color: white;
}

.confirm-btn:hover {
  background-color: #218838;
}

/* loading design process */

#global-loader{
  position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    display: none;

}

#global-loader .spinner{
        width: 60px;
        height: 60px;
        border: 6px solid #ccc;
        border-top-color: #3498db;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* MEDIA QUERIES */
@media(min-width: 768px) {
    
    
    #home .content {
        flex-direction: row;
    }

    #services .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #pricing .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #howto .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #community .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #mobile-menu-button {
        display: none;
    }

    nav {
        display: flex;
    }

    #mobile-menu {
        display: none !important;
    }

    #footer .liste-4{
        text-align: end;
    }
  
}

/* --- TABLETTE --- */
@media (min-width: 768px) and (max-width: 1024px) {
    section {
        padding: 4rem 3rem;
    }

    #pricing .grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }

     #printer-offer {
        flex-direction: column;
        padding: 4rem 3rem;
        align-items: center;
    }
    .printer-text h2 {
        font-size: 1.3rem;
        text-align: start;
    }
    .printer-image-wrapper {
        /* background-color: red; */
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: start;
        max-width: 100%;
        margin: 0;
        text-align: center;

    }
    .printer-img {
        width: 250px;
        box-shadow: none;
    }


    #services .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    #howto .grid,
    #community .grid {
        grid-template-columns: 1fr; 
    }

    #home {
        padding: 6rem 3rem; 
    }

    #home .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #home img {
        max-height: 350px;
    }

    #footer {
        padding: 3rem 1.5rem ;
    }
}


@media(max-width:767px) {

     #home .content {
        flex-direction: column;
        align-items: center;
    }

    #home {
        padding: 8rem 2rem;
        padding-bottom: 4rem;
    }

    #home img {
        max-height: 300px;
    }

    #home .text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

     #home .text h1{
        font-size: x-large;
     }

    #home .text h1 ,#home .text p {
       text-align: center;
    }

    #pricing .card {
        max-width: 100%;
    }

    #packs-comparison{
        padding: 0rem 0rem;
        margin: 0rem 0.5rem;
        margin-bottom: 2rem;
    }
    #packs-comparison h2{
     font-size: 18px;
    }

    .comparison-table-wrapper {
        overflow-x: auto;  
        -webkit-overflow-scrolling: touch; 
    }

    .comparison-table {
        min-width: 600px;
    }

    /* Optionnel : ajuster padding des cellules pour mobile */
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Badge un peu plus petit */
    .comparison-table .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Boutons souscrire : plus petits mais toujours cliquables */
    .comparison-table button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* printer */

    #printer-offer {
        flex-direction: column;
        padding: 3rem 2rem;
        align-items: center;
    }
    .printer-text h2 {
        font-size: 1.2rem;
    }
 .printer-image-wrapper {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .printer-img {
        width: 200px;
        box-shadow: none;
    }
    .printer-features {
        text-align: start;
        width: 90%;
        margin: 0 auto 1rem auto;
    }

    #howto .grid img {
    max-height: 300px;
    transform: rotate(20deg);
    border-radius: 16px;
    box-shadow: 30px 20px 40px rgba(0, 0, 0, 0.234);
}

    section{
        padding: 4rem 2rem;
    }

    #mobile-menu-button {
        display: block;
    }

    nav {
        display: none;
    }

    #footer {
        padding: 3rem 1rem ;
    }

    #footer .contact-btn {
        justify-content: center;
    }

      #footer .footer-content 
      {
         text-align: left;
          grid-template-columns: repeat(2, 1fr);
          gap: 2rem;

      }
    .logo img {
        width: 30px; 
        height: 30px;  
    }
   
}
