/* ===================== */
/* RESET / NORMALISATION */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== */
/* TYPOGRAPHIE ET FOND */
/* ===================== */
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff; /* Fond blanc par défaut */
}

/* ===================== */
/* HEADER */
/* ===================== */
.header-name {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
}

.header-content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lien sur le nom dans le header */
.header-content .name-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4em !important; 
  font-weight: 700 !important;
  font-style: italic !important;
  color: #1a3d3d !important;
  margin: 0;
  line-height: 1.2;
  text-decoration: none !important;
  display: inline-block;
}


.header-content .doctolib-link {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
}

.doctolib-logo {
  height: 50%;
  max-height: 45px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctolib-logo:hover,
.doctolib-logo:focus {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===================== */
/* CONTENU PRINCIPAL */
/* ===================== */
main {
  padding-top: 100px; /* Espace pour le header fixe */
  padding-bottom: 50px;
}

.single-page {
  max-width: 1200px;
  margin: 0 auto 40px; /* Marge supérieure supprimée, 40px en bas */
  padding: 20px 30px 40px; /* Padding haut réduit */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* MISE EN PAGE CONTACT (2 colonnes) */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Colonnes */
.contact-info,
.contact-form-container {
  padding: 30px;
  border-radius: 8px;
}

.contact-info { background-color: #c8e7d8; } /* Vert menthe */
.contact-form-container { background-color: #f0f8ff; } /* Bleu alice */

/* Titres des colonnes */
.contact-info h1 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: #1a3d3d;
  margin-bottom: 30px;
  border-bottom: 2px solid #a7d8c1;
  padding-bottom: 15px;
}

.contact-form-container h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #1a3d3d;
  margin-bottom: 20px;
}

/* INFOS & ADRESSE */
address {
  font-style: normal;
  line-height: 1.7;
}

address p, .contact-form-container p {
  margin-bottom: 20px;
}

address strong {
  color: #1a3d3d;
  font-weight: 600;
}

address a {
  color: #1a4545;
  text-decoration: none;
}

address a:hover, address a:focus {
  text-decoration: underline;
}

.rdv-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.rdv-container .doctolib-logo {
  max-height: 40px;
}

.map-container {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* HONEYPOT (piège à robots) */
.honeypot {
  position: absolute;
  left: -5000px;
  visibility: hidden;
}

/* FORMULAIRE DE CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #2c5f5f;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1em;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #005fcc;
  border-color: #005fcc;
}

.contact-form button {
  padding: 12px 20px;
  background-color: #1a4545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s;
}

.contact-form button:hover, .contact-form button:focus {
  background-color: #2c5f5f;
}

/* LIEN RETOUR */
.back-link-container-global {
  text-align: center;
  margin-top: 40px;
}

.back-link {
  color: #1a4545;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
}

.back-link:hover, .back-link:focus {
  text-decoration: underline;
}

/* ===================== */
/* FOOTER */
/* ===================== */
.footer {
  background: #1a4545;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer-content p {
  margin-bottom: 10px;
  font-size: 0.95em;
  line-height: 1.4;
}

.footer-content a {
  color: #7dd3fc;
  text-decoration: underline;
}

.footer-content a:hover,
.footer-content a:focus {
  color: #fff;
  background: #2c5f5f;
  padding: 2px 4px;
  border-radius: 3px;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media screen and (max-width: 1024px) {
  .header-name { height: 12%; padding: 15px; }
  .name { font-size: 2.2em; }
  .contact-page-layout { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
  .header-name { height: 10%; padding: 20px; }
  .header-content { 
    display: block; /* On passe de flex à block */
    text-align: center; /* On centre le nom */
  }
  .header-content .name-link { font-size: 2em !important; }
  .header-content .doctolib-link { position: static; transform: none; margin-top: 10px; }
  .header-content .doctolib-logo { 
    max-height: 30px; 
  }

  main { padding-top: 10vh; } /* Espace pour le header (10% de la hauteur) */
  .single-page { 
    margin: 0; /* Supprime la marge latérale */
    padding: 15px; /* Padding réduit pour mobile */
    box-shadow: none; /* Supprime l'ombre en mode mobile */
  }
  .contact-info h1 {
    margin-top: 0; /* Supprime la marge du titre sur mobile */
  }
  .contact-info h1 { font-size: 2.2em; }
  .contact-form-container h2 { font-size: 1.8em; }
}

/* ===================== */
/* ACCESSIBILITÉ */
/* ===================== */
.skip-links { position: absolute; top: -200px; left: 0; z-index: 9999; }
.skip-link { position: absolute; top: 200px; left: 10px; background: #000; color: #fff; padding: 8px 16px; text-decoration: none; border-radius: 4px; font-weight: 600; transform: translateY(-200px); transition: transform 0.3s; }
.skip-link:focus { transform: translateY(0); }
a:focus, button:focus { outline: 3px solid #005fcc; outline-offset: 2px; }

/* ===================== */
/* DÉCLARATIONS DE POLICES LOCALES */
/* ===================== */

/* cormorant-garamond-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}

/* cormorant-garamond-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
}

/* cormorant-garamond-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}

/* cormorant-garamond-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2');
}

/* cormorant-garamond-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/cormorant-garamond-v21-latin-700italic.woff2') format('woff2');
}

/* source-sans-3-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}

/* source-sans-3-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}