/* Import des polices personnalisées */
@font-face {
    font-family: 'Posterama2001';
    src: url('fonts/posterama-2001.woff2') format('woff2'),
         url('fonts/posterama-2001.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TTNormsPro-Regular.woff2') format('woff2'),
         url('fonts/TTNormsPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.woff2') format('woff2'),
         url('fonts/Montserrat-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.woff2') format('woff2'),
         url('fonts/Lato-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Posterama2001', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #2c3e50;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo::before {
    content: '';
    display: block;
    width: 3rem;
    height: 3rem;
    background-image: url('assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    transition: all 0.5s ease;
}

.section-alt {
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.media-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-media {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.section-media:hover {
    transform: scale(1.05);
}

.text-container {
    padding: 2rem;
}

.text-container h2 {
    font-family: 'TT Norms Pro', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.text-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Posterama2001', sans-serif;
    font-weight: normal;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Pages internes */

.index-header {
    background : white;
    color: white;
    padding: 200px 0 200px;
    text-align: center;
}
.index-header h1 {
    font-family: 'Posterama2001', sans-serif;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
}
.index-header.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Optionnel : ajouter un overlay sombre pour améliorer la lisibilité du texte */
.index-header.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Ajuste l'opacité selon tes besoins */
    z-index: 1;
}
.index-header.hero .container {
    position: relative;
    z-index: 2;
}
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.page-header.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Optionnel : ajouter un overlay sombre pour améliorer la lisibilité du texte */
.page-header.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Ajuste l'opacité selon tes besoins */
    z-index: 1;
}

.page-header.hero .container {
    position: relative;
    z-index: 2;
}
.hero.index-home{
    background-image: url('assets/img_index.jpg');
}
.hero.page-services {
    background-image: url('assets/services.png');
}
.hero.page-portfolio {
    background-image: url('assets/Book.png');
}
.hero.page-contact {
    background-image: url('assets/contact2.png');
}
.hero.page-moi {
    background-image: url('assets/Presentation.png');
}

.page-header h1 {
    font-family: 'Posterama2001', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 80px 0;
}

.page-content h2 {
    font-family: 'TT Norms Pro', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.page-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-item-content {
    padding: 1.5rem;
    background: white;
}

.portfolio-item-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(25, 35, 90, 0.17);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-container h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* Timeline horizontale — Méthodologie éprouvée */
.steps-timeline {
  list-style: none;
  margin: 2rem 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 2rem 1.5rem;
  position: relative;
  align-items: start;
}

/* Ligne commune (au-dessus des points) uniquement sur desktop */
.steps-timeline::before {
  content: "";
  position: absolute;
  top: 22px; /* aligné avec le centre des pastilles (dot: 28px) */
  left: 0;
  right: 0;
  height: 2px;
  background: #e6e8ef;
}

/* Chaque étape */
.steps-timeline .step {
  position: relative;
  padding-top: 16px; /* espace dessus pour la ligne/pastille */
}

/* Connecteur local (segment de ligne) pour éviter de dépasser la grille */
.steps-timeline .step::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -1.5rem;
  right: -1.5rem;
  height: 2px;
  background: #e6e8ef;
  z-index: 0;
}

/* Retirer segment au premier et au dernier pour propreté */
.steps-timeline .step:first-child::before {
  left: 14px;   /* commence après le bord gauche et avant la pastille */
}
.steps-timeline .step:last-child::before {
  right: 14px;  /* termine avant le bord droit */
}

/* Pastille numérotée */
.steps-timeline .dot {
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: #0b5fff;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  position: relative;
  z-index: 1; /* au-dessus de la ligne */
  box-shadow: 0 2px 6px rgba(11, 95, 255, 0.35);
  margin-bottom: 0.5rem;
}

/* Titre et texte */
.steps-timeline .step-body h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.steps-timeline .step-body p {
  margin: 0;
  color: #4a5568;
  line-height: 1.45;
}

/* Responsive: 2 colonnes sur tablette */
@media (max-width: 900px) {
  .steps-timeline {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 1.5rem 1rem;
  }
  /* On retire la grande ligne commune et les segments pour éviter la confusion en multi-lignes */
  .steps-timeline::before,
  .steps-timeline .step::before {
    display: none;
  }
  /* On garde les pastilles, les cartes restent aérées */
}

/* Mobile: 1 colonne verticale */
@media (max-width: 560px) {
  .steps-timeline {
    grid-template-columns: 1fr;
  }
}
/* Grille de logos clients */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  margin: 1rem 0 2rem;
}

.logos-grid img {
  max-height: 56px;            /* ajustez selon la proportion globale */
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);        /* passez à 100% si vous voulez un effet monochrome */
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.logos-grid a:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* Bloc affiliation (un seul logo ou quelques-uns) */
.logos-affiliation {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;  /* center si vous préférez */
  margin: 0.5rem 0 2rem;
}

.logos-affiliation img {
  max-height: 64px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}