/* Couleurs principales */
:root {
  --vert: #689d71;
  --blanc: #fafffd;
  --rose: #f56476;
  --bordeaux: #700D1E;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--blanc);
  color: var(--bordeaux);
  margin: 0;
  padding: 0;
  background-image: url("poppy.png");
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.logo {
  width: 200px;
  height: auto;
  display: flex;
}

.image-centree {
  display: flex;
  max-width: 100%;
  height: auto;
  margin: auto;
}

header {
  background-color: var(--blanc);
  color: var(--rose);
  text-align: center;
  padding: 10px 10px;
}

header h1 {
  margin: 0;
  font-size: 4em;
}

header p {
  margin-top: 10px;
  font-style: italic;
}

p {
  text-align: justify;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--bordeaux);
  padding: 14px 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: var(--blanc);
  color: var(--vert);
  
}

main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
}

main h2 {
  color: var(--rose);
}

ul {
  list-style-type: square;
  padding-left: 20px;
}

ul li a {
  color: var(--vert);
  text-decoration: none;
  font-size: 1.5em;
}

ul li a:hover {
  text-decoration: underline;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.indent {
  text-indent: 4cm;
}

footer {
  background-color: var(--vert);
  text-align: center;
  padding: 20px;
  color: var(--blanc);
  margin-top: 60px;
}

footer p {
  text-align: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
   margin-left: -200px;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: center ;
}

.formations-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 10px;
  text-align: left;
  line-height: 1.6;
}

.formations-wrapper ul {
  list-style-type: disc;
  padding-left: 20px;
}

.module-list {
  margin-left: 20px;
  list-style-type: circle;
}

a {
  color: #f56476;
  text-decoration: underline;
}

a:hover {
  color: #689d71;
  text-decoration: underline; 
}

h4 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #659b5e;
  margin-top: 20px;
}

figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  text-align: center; /* ou left si tu veux l’aligner à gauche */
  font-style: italic;
}

.apropos-container {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.apropos-photo img {
  width: 320px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.apropos-texte {
  flex: 1;
}

/* Partie Responsive qui permet de modifier l'affichage suivant l'écran de l'appareil*/

@media (max-width: 1200px){
  body{
    background-image: url(poppy_low.png);
    background-position: top;
    background-color: rgba(255,255,255,0.5);
    background-blend-mode: lighten;
  }
}

@media (max-width: 900px) {
  .header-text{
    font-size: 80%;
  }
  p{
    font-size: 20px;
  }
}

@media (max-width: 800px) {
  .header-text{
    font-size: 65%;
  }
  p{
    font-size: 17px;
  }
  figure{
    margin: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .apropos-container {
    display: block;
  }

  .apropos-photo {
    float: left;
    margin: 0 1rem 1rem 0;
  }

  .apropos-photo img {
    width: 200px;
    border-radius: 8px;
  }
}



