
    /* Police */
    @font-face {
    font-family: Poppins-thin;
    src: url(../police/Poppins/Poppins-Thin.ttf);

    }
    @font-face {
    font-family: Poppins-light;
    src: url(../police/Poppins/Poppins-Light.ttf);
    }
    @font-face {
    font-family: Poppins-meduim;
    src: url(../police/Poppins/Poppins-Medium.ttf);
    }
    @font-face {
    font-family: Poppins-regular;
    src: url(../police/Poppins/Poppins-Regular.ttf);
    }
    @font-face {
    font-family: Poppins-semibold;
    src: url(../police/Poppins/Poppins-SemiBold.ttf);
    }
    @font-face {
    font-family: Poppins-ExtraLight;
    src: url(../police/Poppins/Poppins-ExtraLight.ttf);
    }

    :root {
    --font-paragraphe2:Poppins-ExtraLight;
    --font-normal: Poppins-semibold;
    --font-titre: Poppins-regular;
    --font-bold: Poppins-meduim;
    --font-paragraphe: Poppins-light;
    --font-titre3: Poppins-thin;
    }


:root {
    /* --bacground: #7e5656; 
    --bacground-hover: #b23333;
    --Couleur-Background: #4c5a7d;
    --Couleur-Titre: #00c8d6;
    --Couleur-Texte: #f5f6fa;
    --Couleur-body: #f5f6fa;
    --Couleur-hover: #00b783; 
    --Couleur-logo:#eea412;
    --couleur-body: #f5f6fa;
    --Couleur-drop: #999; */

    --Couleur-Titre2: #2563eb;
    --Couleur-Titre3: #86efac;
    --Couleur-Titre: #ff5b00;
    --Couleur-bouton: #00c8d6;
    --Couleur-bouton-hover: #00b783;
}


:root {
  --color-title: #0A2540;        
  --color-title2: #00B3A4;

  --color-paragraphe: #2E2E2E;
  --color-paragraphe2: #FFFFFF;         

  --color-section: #F8FAFC;      
  
  --color-primary: #3a7e83;      
  --color-hover: #E63946;        
  --Color-hover2: #FF8C00;




    --Couleur-Titre: #ff5b00;
    --Couleur-bouton: #00c8d6;
    --Couleur-bouton-hover: #00b783;

}

/* titre */

.titre {
    margin-bottom: 25px;
}
    .subtitle-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
    }

    .lines.left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      align-items: flex-end;
    }

    /* Conteneur lignes à droite (alignées à gauche) */
    .lines.right {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      align-items: flex-start; 
    }

    /* Ligne du haut (plus courte) */
    .lines span:first-child {
      width: 45px;
      height: 2px;
      background-color: var(--Couleur-Titre);
      border-radius: 2px;
    }

    /* Ligne du bas (plus longue) */
    .lines span:last-child {
      width: 70px;
      height: 2px;
      background-color: var(--Couleur-Titre);
      border-radius: 2px;
    }

    .subtitle {
      color: var(--Couleur-Titre);
      font-size: 35px;
      letter-spacing: 1px;
      margin-bottom: 10px;
      text-transform: uppercase;
      user-select: none;
      font-family: var(--font-paragraphe);
    }

    .main-title {
      text-align: center;
      font-size: 32px;
      color: var(--Couleur-bouton-hover);
      margin: -20px auto;
      max-width: max-content;
      font-family: var(--font-titre3);
      letter-spacing: 1px;

    }


    @media (max-width: 610px){
    .main-title {
      font-size: 25px;
    }

    .subtitle {
      font-size: 25px;
    }

    .lines {
      width: 60px;
      margin-top: -4px;
    }


    }


       @media (max-width: 490px){
    .main-title {
      font-size: 20px;
      margin-top: -13px;
    }

    .subtitle {
      font-size: 20px;
    }

    .lines {
      margin-top: -4px;
    }

    .lines span:first-child {
      width: 25px;
    }

    .lines span:last-child {
      width: 50px;
    }

        .lines.left {
      gap: 4px;
    }

    .lines.right {
      gap: 4px;
    }

    }
















.projects {
    padding: 25px 25px;
    text-align: center;
}

/* ===============================
   GRID FLEX
================================ */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 33px;
    justify-content: center;
    margin-top: 55px;
}

/* ===============================
   CARD
   > 1000px → 4 COLONNES
================================ */
.card {
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    overflow: visible;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);

    flex: 0 0 calc(25% - 25px);
    max-width: calc(25% - 25px);
}

/* ===============================
   DÉCORATION COINS
================================ */
.card::after {
    content: "";
    position: absolute;
    top: -11px;
    left: -11px;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background-color: #86efac;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card::before {
    content: "";
    position: absolute;
    bottom: -11px;
    right: -9px;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background-color: #2563eb;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card:hover::before,
.card:hover::after {
    opacity: 0;
}

/* ===============================
   IMAGE
================================ */
.card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    display: block;
}

.card:hover img {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ===============================
   OVERLAY
================================ */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(37,69,190,0.75);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
    margin: 45px 35px;
    z-index: 2;
}

.card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-family: var(--font-paragraphe2);
    font-size: 20px;
    color: #22c55e;
    margin-bottom: 10px;
    font-weight: 700;
}

.overlay p {
    font-size: 17px;
    opacity: 0.9;
    font-family: var(--font-titre);
}

/* ===============================
   RESPONSIVE
================================ */

/* ≤ 1000px → 3 COLONNES */
@media (max-width: 1050px) {
    .card {
        flex: 0 0 calc(33.333% - 25px);
        max-width: calc(33.333% - 25px);
    }
}

/* ≤ 800px → 2 COLONNES */
@media (max-width: 800px) {
    .card {
        flex: 0 0 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

/* ≤ 500px → 1 COLONNE */
@media (max-width: 500px) {
    .card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .overlay {
        margin: 25px;
    }
}
