/* =====================================
   VARIABLES GLOBALES & BASE DU SITE
====================================== */
:root {
    --main-bg: #FFF8F1;
    --accent: #0056b3;
    --light-accent: #f08a5d;
    --hover-accent: #004494;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =====================================
   HEADER & NAVIGATION
====================================== */
.homepage-header {
    background-color: #0077cc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    height: 180px;
    width: 100%;
}

.homepage-header .site-title,
.site-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    flex: 1;
    text-align: left;
    margin: 0;
    margin-left: 20px;
}

.homepage-header img {
    width: 300px !important;
    height: auto !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.homepage-header nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.homepage-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
}

.homepage-header nav a:hover,
nav a:hover {
    text-decoration: underline;
    opacity: 0.85;
    color: var(--light-accent);
    transition: opacity 0.3s ease;
}


/* =====================================
   SECTIONS GÉNÉRALES
====================================== */
section {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    text-align: center;
    align-items: center;
    justify-content: center;
}

main {
    padding: 20px;
    flex: 1;
}


/* =====================================
   HERO SECTION
====================================== */
#hero {
    text-align: center;
    padding: 50px 20px 10px 20px;
    background: url('background.jpg') no-repeat center center/cover;
    color: #0056b3;
    margin-top: 0;
}

#hero h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}


/* =====================================
   BOUTONS
====================================== */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--hover-accent);
    transform: scale(1.05);
}


/* =====================================
   FEATURE & SERVICES
====================================== */
#features, #services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.feature, .service-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover, .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature h3 {
    margin-bottom: 10px;
}

#services {
    text-align: center;
    padding: 40px 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#service h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 30px;
}


/* =====================================
   ABOUT SECTION
====================================== */
#about {
    background-color: var(--main-bg);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#about h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 30px;
}

#about h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 20px;
}

#about p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 25px;
}

#about ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
}

#about ul li {
    flex: 1;
    max-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

#about ul li:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.address {
    font-style: italic;
    margin-top: 10px;
}


/* =====================================
   FORMULAIRES & CONTACT
====================================== */
#contact-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact-section h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 10px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 5px;
}

textarea {
    resize: vertical;
    height: 150px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #004494;
}

#confirmation-message {
    margin-top: 20px;
    font-size: 1.1rem;
    color: green;
    text-align: center;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

#confirmation-message.show {
    display: block;
    opacity: 1;
}


/* =====================================
   FOOTER
====================================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    font-size: 14px;
}

footer hr {
    border: none;
    border-top: 1px solid #555;
    margin-bottom: 10px;
    width: 90px;
}

footer a {
    color: #6da6ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}

.social-title {
    color: white;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
    filter: brightness(0.9);
}


/* =====================================
   PAGES INTERNES
====================================== */
.consulting-container,
.cyber-container,
.logiciel-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 30px;
    background-color: #ffffff;
    border: 2px solid #0077cc;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease-in-out;
    min-height: 500px;
}

.consulting-container h1,
.consulting-container h2,
.cyber-container h1,
.cyber-container h2,
.logiciel-container h1,
.logiciel-container h2 {
    text-align: center;
}

.consulting-container p,
.consulting-container ul,
.cyber-container p,
.cyber-container ul,
.logiciel-container p,
.logiciel-container ul {
    text-align: justify;
}


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


/* =====================================
   RESPONSIVE DESIGN
====================================== */
@media (max-width: 768px) {
  .homepage-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 15px 20px;
  }

  .homepage-header img {
    width: 120px;
    height: auto;
    margin: 10px auto;
    display: block;
  }

  .site-title {
    font-size: 18px;
    text-align: center !important;
    margin-bottom: 10px;
    width: 100%;
  }

  nav {
    margin: 10px 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav a {
    display: block;
    font-size: 1rem;
    margin: 5px 0;
  }

  #hero {
    text-align: center;
    padding: 30px 20px;
    background: url('background.jpg') no-repeat center center/cover;
    height: auto;
  }

  #hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  #hero p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    color:#0077cc
  }

  .cta-button {
    font-size: 1.2rem;
    padding: 12px 20px;
  }

  section {
    padding: 20px 10px;
  }

  section:last-of-type {
    margin-bottom: 40px;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  #about h2,
  #about h3 {
    font-size: 1.8rem;
  }

  #about ul {
    flex-direction: column;
    gap: 10px;
  }

  #about ul li {
    font-size: 1rem;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }

  #about ul li:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  #services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .service-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .service-item .service-icon {
    width: 80px;
    height: 80px;
  }

  form {
    flex-direction: column;
  }

  form label {
    font-size: 1rem;
  }

  form input,
  form textarea {
    font-size: 1rem;
    padding: 10px;
  }

  button {
    font-size: 1.2rem;
    padding: 12px 20px;
  }

  footer {
    padding: 10px 20px;
    font-size: 1rem;
    text-align: center;
  }

  .social-links {
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
  }

  .social-links img {
    width: 28px;
    height: 28px;
  }

  
  #hero .cta-button {
    margin: 15px auto 25px;
    display: block;
  }

  #service {
  background-color: white !important;
}

  .service-item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  #service-main {
    background-color: white !important;
  }
}