body {
  background: #f5f6fa;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.card-container {
  max-width: 370px;
  margin: 40px auto;
  padding: 2.4em 1.3em 2em;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 22px 4px #0002;
  text-align: center;
}

h1 {
  font-size: 2.2em;
  color: #212c5c;
  margin-bottom: 0.5em;
}

.contact-section {
  margin-bottom: 2em;
}

.phone-link {
  font-size: 1.25em;
  color: #26947c;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.phone-link:hover {
  text-decoration: underline;
}

.vcf-link {
  display: inline-block;
  margin-top: 0.8em;
  background: #26947c;
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 22px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.vcf-link:hover {
  background: #176555;
}

.qr-section {
  margin: 1.6em 0;
}

.qr-section img {
  width: 130px;
  height: 130px;
  margin-bottom: 0.7em;
}

.qr-caption {
  font-size: 0.98em;
  color: #777;
}

.confidentialité {
  color: #8B230D;
  font-size: 0.92em;
  font-weight: bold;
  margin-top: 2.2em;
  font-style: italic;
}



.whatsapp-container {
  display: flex;
  justify-content: center; /* Ajouté pour Corriger le centrage WhatsApp sur mobile*/
  align-items: center;
  gap: 12px; /* Espace entre l'icône et le bouton */
  margin-top: 1.4em;
  margin-left: 0; /* Correction pour Corriger le centrage WhatsApp sur mobile */
}


.whatsapp-icon {
  width: 54px;   /* à ajuster selon ton image */
  height: 54px;
  display: block;
}

.whatsapp-link {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 0.6em 1.1em;
  border-radius: 19px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  border: none;
  outline: none;
  transition: background 0.2s;
}

.whatsapp-link:hover {
  background: #128c7e;
  color: #fff;
}

  /* 
ColorHexa
htmlcolorcodes.com
 */

  /* Ajout à la fin du css: un media query pour réduire les paddings sur petits écrans */

@media (max-width: 480px) {
  .card-container { padding: 1.2em 0.3em 1em; }
  h1 { font-size: 1.5em; }
  .qr-section img { width: 92px; height: 92px; }
  .whatsapp-icon { width: 40px; height: 40px; }
  .whatsapp-link { font-size: 0.96em; }
}

 /* Ajout Avatar dans le html
Au tout début de la carte, avant <h1>, ajoute ceci dans le <main class="card-container"> 
<img src="avatar.jpg" alt="Portrait de Djylce" class="avatar"> */

.avatar {
  width: 120px;         /* Largeur fixe (ajuste selon ton besoin) */
  height: 120px;        /* Hauteur fixe */
  border-radius: 50%;  /* Pour le rond parfait */
  object-fit: cover;   /* Pour centrer et rogner proprement l’image */
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.1em;
  border: 3px solid #26947c;
  box-shadow: 0 1px 6px 0 #ccc;
}



 /* width/height : Contrôle la taille sur tous les écrans.
Ajuste la valeur (90px) selon la place que tu veux donner à la photo.*/
 
/*border-radius: 50% : Donne la forme ronde.*/

/* object-fit: cover : Garde l’effet « portrait » sans déformation 
(évite l'effet « étiré » sur les images rectangulaires).*/


