/* Critical CSS - Above the fold styles only */

/* Inter font definitions - critical for proper text rendering */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-green: #73c48e;
  --primary-green-light: #8dd4a6;
  --secondary-green: #a8d4b8;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --bg-white: #ffffff;
  --bg-cream: #fefefe;
  --shadow-soft: 0 4px 20px rgba(115, 196, 142, 0.1);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6; 
  color: var(--text-dark); 
  background: var(--bg-cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Mobile overflow prevention */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

a { 
  color: var(--primary-green); 
  text-decoration: none; 
  transition: var(--transition);
}

a:focus { 
  outline: 3px solid var(--primary-green); 
  outline-offset: 3px; 
  border-radius: 6px;
}

/* Layout */
.container { 
  width: min(100% - 2rem, 1200px); 
  margin-inline: auto; 
}

/* Hero Header - Critical for first paint */
.site-header { 
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 50%, var(--secondary-green) 100%);
  color: white;
  text-align: center; 
  padding: 6rem 1rem 4rem; 
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.site-header .container {
  position: relative;
  z-index: 2;
}

.site-header .logo { 
  display: inline-block; 
  width: 140px; 
  margin-bottom: 2rem; 
  position: relative;
}

.site-header .logo img {
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.site-header h1 { 
  margin: 0 0 1.5rem; 
  font-size: clamp(2.5rem, 5vw, 3.5rem); 
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle { 
  font-size: 1.3rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0.95;
}

.subtitle .dot { 
  color: rgba(255, 255, 255, 0.7);
  font-weight: bold;
  font-size: 1.5rem;
}

/* Main content */
main { 
  display: block; 
}

.section { 
  padding: 5rem 1rem; 
  position: relative;
}

.section-alt { 
  background: linear-gradient(135deg, #e8f5e8 0%, #c4e6d1 100%);
  position: relative;
}

/* Critical cards for contact section */
.cards { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  grid-template-columns: repeat(12, 1fr); 
  gap: 2.5rem; 
}

.card { 
  grid-column: span 12; 
  padding: 3rem 2rem; 
  background: var(--bg-white); 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(115, 196, 142, 0.1);
}

.card h2 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  font-size: 1.6rem;
}

.card p {
  color: var(--text-medium);
  line-height: 1.8;
  text-align: center;
}

.cards .card > .subtitle-small {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-medium);
  font-weight: 600;
  text-align: center;
}

.cards .card > h2 {
  margin-bottom: 0.25rem;
}

/* Critical button styles */
.cta .button { 
  display: inline-flex; 
  align-items: center; 
  gap: 1rem; 
  padding: 1.2rem 2.5rem; 
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light)); 
  color: white; 
  border-radius: var(--border-radius); 
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta .button:hover, 
.cta .button:focus { 
  background: linear-gradient(135deg, #5ba373, var(--primary-green)); 
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(115, 196, 142, 0.2);
  color: white;
}

.cta .button img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Doctolib button styling */
.cta .button.doctolib {
  background: #107ACA;
}
.cta .button.doctolib:hover,
.cta .button.doctolib:focus {
  background: #0e6bb8;
}
.cta .button.doctolib img {
  filter: none;
}

/* Mobile responsive - critical only */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    padding: 4rem 1rem 3rem;
  }
  
  .site-header .subtitle .dot {
    display: none;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .cards {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
  }
  
  .card {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 2rem;
    display: block;
  }
  
  .card:last-child {
    margin-bottom: 0;
  }
  
  .cta {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .cta .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    gap: 0.75rem;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    overflow: hidden;
  }
  
  .cta .button img {
    height: 20px;
    max-width: 80px;
    flex-shrink: 0;
  }
  
  .section {
    padding: 3rem 1rem;
    overflow-x: hidden;
  }
  
  .subtitle {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .site-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .card {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .cta .button {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cta .button img {
    height: 18px;
  }
  
  .site-header {
    padding: 3rem 1rem 2rem;
  }
  
  .section {
    padding: 2.5rem 1rem;
    overflow-x: hidden;
  }
  
  .site-header h1 {
    font-size: 1.8rem;
  }
}
