
/* roboto-300 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto-v51-latin-300.woff2') format('woff2'); 
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2'); 
}
/* roboto-600 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/roboto-v51-latin-600.woff2') format('woff2'); 
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-v21-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-v21-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


  :root{
    --bg: #f4f7f2;
    --card-bg: #ffffff;
    --accent: #4c8c6b;
    --accent-soft: #a9cdb8;
    --accent-dark: #2f5d45;
    --text: #24352c;
    --shadow: rgba(47, 93, 69, 0.14);
    --line: #bcd8c6;
  }

  * { box-sizing: border-box; }


  /* ---- Conteneur : le chemin sinueux ---- */
  .problem-grid{
    position: relative;
    max-width: 760px;
    margin: 0 auto;
  }

  /* ligne centrale organique en SVG, dessinée en fond */
  .path-svg{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 40px;
    z-index: 0;
    overflow: visible;
  }

  .path-svg path{
    fill: none;
    stroke: var(--line);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 2 10;
  }

  .topic-card{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 46%;
    margin: 10px 0;
    padding: 0px 22px;
    background: var(--card-bg);
    border-radius: 22px;
	border: 1px solid #e2e8e2;
    box-shadow: 0 5px 15px rgba(22, 65, 36, .035);
    opacity: 0;
    transition: opacity .5s ease, transform .5s ease;
  }

  .topic-card.visible{ opacity: 1; transform: translateX(0) !important; }

  /* alternance gauche / droite le long du chemin — logique fixe, sans hasard */
  .topic-card:nth-child(odd){
    margin-right: auto;
    flex-direction: row;
    text-align: left;
    transform: translateX(-16px);
  }
  .topic-card:nth-child(even){
    margin-left: auto;
    flex-direction: row-reverse;
    text-align: right;
    transform: translateX(16px);
  }

  /* petit connecteur reliant la carte à la ligne centrale */
  .topic-card::after{
    content: "";
    position: absolute;
    top: 50%;
    width: 26px;
    height: 2px;
    background: var(--line);
  }
  .topic-card:nth-child(odd)::after{ right: -26px; }
  .topic-card:nth-child(even)::after{ left: -26px; }

  /* pastille sur la ligne centrale, au niveau de chaque carte */
  .topic-card .node-dot{
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px #f4f7f2, 0 0 0 5px var(--line);
    transform: translateY(-50%);
  }
  .topic-card:nth-child(odd) .node-dot{ right: -34px; }
  .topic-card:nth-child(even) .node-dot{ left: -34px; }

	.icon-circle{
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width : 48px;
	height : 48px;
	border-radius : 50%;
	background : #edf5ee;
	color : #145c31;
	display : grid;
	place-items : center;
	margin: 15px 0px;
	}
  

  .icon-circle i,
  .icon-circle .material-symbols-rounded{
    font-size: 26px;
  }

  .topic-card .card-text{
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .topic-card strong{
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
	font: 600 15px Roboto;
    font-family: "Roboto", Arial, sans-serif;
  }

  .topic-card span:not(.icon-circle):not(.node-dot){
    line-height: 1.2;
  }

  @media (max-width: 640px){
    .path-svg{ 
		display:none;
	}
    .topic-card{
      width: 100%;
      margin-right: 0 !important;
      flex-direction: row !important;
      text-align: left !important;
      transform: translateX(0) !important;
	  
    }
    .topic-card::after,
    .topic-card .node-dot{ 
		display:none;
	}
  }
  
