/* ============================= */
/*            Base               */
/* ============================= */

:root {
  --color-primary: #163c18;      /* Vert principal */
  --color-dark: #101d3b;         /* Bleu foncé */
  --color-grey: #6B7280;         /* Gris */
  --color-body: #1f2937;
  --background-body: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--background-body);
}

/* ============================= */
/*        Typography             */
/* ============================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #000;
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: 3.1rem; }
h2 { font-size: 2.8rem; text-transform: uppercase; }
h3 { font-size: 2.1rem; }

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================= */
/*            Sections           */
/* ============================= */
.contact-fixed{
position:fixed;
bottom:90px;
right:20px;
z-index:999;
background: linear-gradient(
    13deg,
    var(--color-primary),
    var(--color-dark)
  );
color:#ffffff;
}

section {
  padding: 5.5rem 0;
}

.section-title {
  margin-top: 0;
  font-size: 3.8rem;
  text-align: center;
}

@media screen and (min-width:750px) {
  .section-title {
    font-size: 4.8rem;
  }
}

/* ============================= */
/*          Navbar               */
/* ============================= */

.navbar {
     background: linear-gradient(
    13deg,
    var(--color-primary),
    var(--color-dark)
  );
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  font-size: 1.9rem;
  color: #ffffff !important;
}

.navbar-brand img {
  height: 38px;
  width: auto;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: 0.3s ease;
}

.nav-link:hover {
  color: #d1fae5 !important; /* vert clair subtil au hover */
}

/* Icônes sociales */

.social-icon {
  font-size: 2.3rem; /* icônes plus grosses */
  color: #ffffff;
  transition: 0.3s ease;
}

.social-icon:hover {
  color: #d1fae5;
}

/* Burger icon blanche */

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ============================= */
/*            HERO               */
/* ============================= */

.hero {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-dark)
  );
  color: #ffffff;
}

.hero-subtitle {
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.highlight {
  color: #d1fae5;
}

.hero-text {
  font-size: 1.8rem;
  opacity: 0.95;
}

.hero-img {
  max-width: 320px;
  border-radius: 50%;
  border: 6px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Bouton principal */

.btn-primary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: none;
}

.btn-primary:hover {
  background-color: #d1fae5;
  color: var(--color-dark);
}

/* Responsive */

@media (min-width: 992px) {
  .hero-title {
    font-size: 4.6rem;
  }
}


/* ============================= */
/*            ABOUT              */
/* ============================= */

.about {
  background: #f8f9fa;
}

.about__img img {
  max-width: 350px;
  transition: transform 0.3s ease;
}

.about__img img:hover {
  transform: scale(1.05);
}

@media screen and (min-width:750px) {
  .about img {
    padding-right: 3rem;
  }
}

/* ============================= */
/*          SERVICES             */
/* ============================= */

.services {
  background: #f8f9fa;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 40px;
}

/* ============================= */
/*            SKILLS             */
/* ============================= */

.skills h4,
.skills p {
  margin: 0 0 0.3rem 0;
}

.skills {
  background: #ffffff;
}

.expertise-card {
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
}

.tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 14px;
  margin: 5px;
}

/* ============================= */
/*            PORTFOLIO          */
/* ============================= */

.portfolio {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-dark)
  );
  color: #fff;
  padding: 6rem 0;
}


.portfolio .section-header p {
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================= */
/*            FILTRES            */
/* ============================= */

.portfolio-filters {
  display: flex; /* <- obligatoire pour aligner horizontalement */
  flex-wrap: wrap; /* pour passer à la ligne si écran trop petit */
  gap: 1rem; /* espace entre les filtres */
  justify-content: center;
  margin: 3rem 0;
  padding: 0;
  list-style: none;
}

.portfolio-filters a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  margin: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.portfolio-filters a:hover,
.portfolio-filters a.active {
  background: #fff;
  color: #1e3c72;
}

.hide {
  display: none !important;
}

/* ============================= */
/*              GRID             */
/* ============================= */

.portfolio .grid {
  display: flex;
  flex-wrap: wrap;
  margin: -1.5rem; /* pour compenser le padding des items */
}

.portfolio .grid__item {
  padding: 1.5rem;
  flex: 1 1 calc(33.333% - 3rem); /* 3 colonnes sur grand écran */
  box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
  .portfolio .grid__item {
    flex: 1 1 calc(50% - 3rem); /* 2 colonnes sur écran moyen */
  }
}

@media screen and (max-width: 750px) {
  .portfolio .grid__item {
    flex: 1 1 100%; /* 1 colonne sur mobile */
  }
}

/* ============================= */
/*            CARD               */
/* ============================= */

.card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card__image {
  width: 100%;
  display: block;
}

.card__inner {
  background: #fff;
  padding: 2rem;
  text-align: left;
}

.card__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.card .category {
  font-size: 1.3rem;
  color: #6c757d;
}

/* ============================= */
/*          OVERLAY              */
/* ============================= */

.card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(132, 156, 201, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__overlay a {
  font-size: 5rem;
  color: #fff;
  text-decoration: none;
}

/* ============================= */
/*            MODAL FIX          */
/* ============================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  overflow-y: auto;
  padding: 3rem 1rem;
}

.modal__content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: #1e2a49; /* texte plus foncé */
  position: relative;
}

.modal__content .category {
  color: #6c757d;
}

/* grid modal */
.modal .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.modal .grid__item {
  flex: 1 1 45%;
}

@media screen and (max-width: 900px) {
  .modal .grid__item {
    flex: 1 1 100%;
  }
}

.modal__content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  max-height: 350px;
  object-fit: cover;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 3rem;
  background: none;
  border: none;
  color: #0c0c0c;
  cursor: pointer;
}

/* ============================= */
/*           CONTACT             */
/* ============================= */

.contact {
  padding: 5rem 2rem;
  background: #f9f9f9;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.contact p {
  font-size: 1.4rem;
  color: #555;
  text-align: center;
}

/* Formulaire plus visible mais plus compact */
.contact form {
  max-width: 450px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact form .form-control {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
}

.contact form .form-control:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40,167,69,0.3);
}

.contact form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact form .btn {
  font-size: 1.6rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  background-color: #28a745;
  color: #fff;
  border: none;
  transition: background 0.3s;
}

.contact form .btn:hover {
  background-color: #1e7e34;
}

/* ============================= */
/*            FOOTER             */
/* ============================= */


/* Footer */
footer a.btn {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}


/* ============================= */
/*            BLOG               */
/* ============================= */

.blog h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.article__card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.article__card .card-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.article__img {
  max-height: 300px;
  object-fit: cover;
}

.stretched-link::after {
  content: "";
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index:1;
}

.card-img-top{
height:220px;
object-fit:cover;
border-top-left-radius:8px;
border-top-right-radius:8px;
}
/* ============================= */
/*        FLECHE HAUT            */
/* ============================= */

.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 45px;
height: 45px;
background: #0d6efd;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
text-decoration: none;
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
z-index: 999;
}

.back-to-top:hover{
background:#0b5ed7;
}

.back-to-top.show{
opacity:1;
pointer-events:auto;
}

/* ============================= */
/*        FAQ index              */
/* ============================= */

.faq-section {
  padding: 80px 20px;
  background: #f9fafb;
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.faq-intro {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.faq {
  max-width: 800px;
  margin: auto;
}

.faq details {
  background: white;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: 0.2s;
}

.faq details:hover {
  border-color: #3b82f6;
}

.faq summary {
  font-weight: 600;
  font-size: 1.1rem;
}

.faq p {
  margin-top: 10px;
  color: #444;
  line-height: 1.6;
}