/* ============================================================
   PILLIOT ASSURANCES — Assur-Animal
   Charte graphique : #0b4396 (bleu) · #e40613 (rouge)
   Police : Raleway (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* --- VARIABLES --- */
:root {
    --blue:        #0b4396;
    --blue-dark:   #082f6e;
    --blue-mid:    #1356b8;
    --blue-light:  #dce8f8;
    --red:         #e40613;
    --red-dark:    #b8040f;
    --white:       #ffffff;
    --gray-bg:     #f2f5fa;
    --gray-border: #d0daea;
    --gray-text:   #4a5568;
    --gray-light:  #e8edf5;
    --shadow-sm:   0 2px 8px rgba(11, 67, 150, 0.08);
    --shadow-md:   0 4px 20px rgba(11, 67, 150, 0.12);
    --radius:      10px;
    --radius-sm:   6px;
    --transition:  all 0.22s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Raleway', 'Segoe UI', sans-serif;
}

body {
    display: flex;
    background-color: var(--gray-bg);
    color: #1a2840;
    height: 100vh;
    overflow: hidden;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 3px 0 16px rgba(11, 67, 150, 0.25);
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 24px 20px 20px;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    background-color: var(--blue-dark);
    border-bottom: 2px solid rgba(228, 6, 19, 0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand::after {
    content: none;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.menu-item {
    padding: 13px 24px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.02em;
    position: relative;
    display: flex;
    align-items: center;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    padding-left: 30px;
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--red);
    font-weight: 700;
    color: var(--white);
}

/* Numéro d'étape en badge */
.menu-item:nth-child(1)::before { content: "1"; }
.menu-item:nth-child(2)::before { content: "2"; }
.menu-item:nth-child(3)::before { content: "3"; }
.menu-item:nth-child(4)::before { content: "4"; }
.menu-item:nth-child(5)::before { content: "5"; }
.menu-item:nth-child(6)::before { content: "6"; }
.menu-item:nth-child(7)::before { content: "7"; }

.menu-item::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.menu-item.active::before {
    background: var(--red);
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */

.content-container {
    flex: 1;
    padding: 36px 40px;
    overflow-y: auto;
    background: var(--gray-bg);
}

.content-block {
    background: var(--white);
    padding: 36px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: none;
    animation: fadeIn 0.35s ease;
    max-width: 950px;
    border-top: 3px solid var(--blue);
}

.content-block.active {
    display: block;
}

.menu-item.disabled {
    color: #a0aec0;
    pointer-events: none;
    opacity: 0.6;
}

.bouton-payer {
   display: none;
}

.bouton-payer.visible {
    display: block;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

h1 {
    color: var(--blue);
    margin-bottom: 8px;
    font-size: 1.65rem;
    font-weight: 800;
    border-bottom: 2px solid var(--blue-light);
    padding-bottom: 12px;
    letter-spacing: -0.01em;
}

p {
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--gray-text);
    font-size: 0.95rem;
}

label {
    display: inline;
    font-weight: 600;
    color: var(--blue);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

span {
    font-size: 0.85rem;
    color: #7a8ba8;
    display: block;
    margin-bottom: 6px;
}

/* ============================================================
   INPUTS TEXTE / DATE / SELECT
   ============================================================ */

input[type="text"],
input[type="date"],
select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: #1a2840;
    background: var(--white);
    transition: var(--transition);
    outline: none;
    display: block;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 67, 150, 0.12);
}

input[type="text"]:hover,
input[type="date"]:hover,
select:hover {
    border-color: var(--blue-mid);
}

span.obligatoire{
    display: inline;
    color: red;
    font-size: 1rem;
}

/* ============================================================
   RADIO BUTTONS (hors cartes espèces)
   ============================================================ */

input[type="radio"] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;
}

#noms p:has(input[type="radio"]) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* ============================================================
   CARTES ESPÈCES (générées par JS)
   ============================================================ */

.especes-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.espece-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px 16px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.espece-card:hover {
    border-color: var(--blue-mid);
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.espece-card.selected {
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(11, 67, 150, 0.15);
}

.espece-card.selected .espece-icon {
    transform: scale(1.12);
}

.espece-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.espece-icon {
    font-size: 2.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.espece-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
    text-align: center;
    letter-spacing: 0.02em;
}

.espece-card.selected .espece-label {
    color: var(--blue-dark);
}

/* Coche sélection */
.espece-card::after {
    content: "✓";
    position: absolute;
    top: 7px;
    right: 9px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.espece-card.selected::after {
    opacity: 1;
    transform: scale(1);
}

#espece-badge {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-mid);
    background: var(--blue-light);
    padding: 4px 14px;
	margin-left: 20px;
    border-radius: 20px;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   A PROPOS DE VOUS
   ============================================================ */

.form-group-adresse {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inputs-row {
    display: flex;
    gap: 10px;
}

input.input-numero{
    max-width: 20%;
}

.input-voie {
    flex-grow: 1;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 26px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--blue);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(11, 67, 150, 0.22);
}

.btn:hover {
    background: var(--blue-mid);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(11, 67, 150, 0.3);
}


.btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    box-shadow: none;
    margin-right: 10px;
}
.btn-secondary:hover {
    background: var(--blue-light);
    box-shadow: none;
}

.btn:active {
    transform: translateY(0);
}

.btn-supprimer-animal{
    background: var(--blue);
}

.btn-supprimer-animal:hover {
    background: var(--blue-dark);
}

/* Bouton principal "Payer" / "Valider" → rouge */
#btn-payer,
#btn-devis {
    background: var(--red);
    box-shadow: 0 3px 10px rgba(228, 6, 19, 0.22);
}

#btn-payer:hover,
#btn-devis:hover {
    background: var(--red-dark);
    box-shadow: 0 5px 16px rgba(228, 6, 19, 0.3);
}

/* Boutons <button> dans le tableau */
button {
    padding: 7px 14px;
    background: transparent;
    border: 1.5px solid var(--blue);
    border-radius: var(--radius-sm);
    color: var(--blue);
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-animal-suivant {
	margin: 10px 15px 10px 10px;
	padding: 7px 14px;
    background: transparent;
    border: 1.5px solid var(--blue);
    border-radius: var(--radius-sm);
    color: var(--blue);
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background: var(--blue);
    color: var(--white);
}

/* ============================================================
   CHECKBOX
   ============================================================ */

input[type="checkbox"] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
}

input[type="checkbox"] + label {
    display: flex;
    font-size: 0.88rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-text);
    cursor: pointer;
    vertical-align: middle;
}

/* ============================================================
   SELECT FRÉQUENCE / RACE
   ============================================================ */

.select-frequence,
.select-race {
    margin-top: 6px;
	margin-bottom: 20px;
}


/* ============================================================
   TABLEAU CHOIX FORMULES
   ============================================================ */

/* ===== Devis animaux — styles ===== */
#prix{
  --navy:#0B4396;
  --navy-dark:#082C63;
  --accent:#E8A23D;
  --accent-dark:#C6832A;
  --bg:#F5F8F9;
  --card:#FFFFFF;
  --line:#E1E8EB;
  --text:#22303C;
  --text-muted:#5C7080;
  color: var(--text);
  background: var(--bg);
  padding: 32px 16px;
  border-radius: 16px;
}

#prix h1{
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}

#prix label{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
#prix .obligatoire{ color: var(--accent-dark); }

#dateEffet{
  display:block;
  margin-top:6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
}
#dateEffet:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,67,150,0.15);
}

.bloc-animal{
  margin-top: 28px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(18,49,64,0.06);
  overflow: hidden;
}

.bloc-animal h2{
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
/* Carrousel de cartes */
.formules-carousel{
  position: relative;
  padding: 0 44px;
}
 
.formules-track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.formules-track::-webkit-scrollbar{ display: none; }
 
.formule-card{
  flex: 0 0 260px;
  scroll-snap-align: start;
}
 
.formule-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(18,49,64,0.06);
}
 
.formule-card.recommandee{
  border: 2px solid var(--accent-dark);
  position: relative;
  padding-top: 34px;
}
.formule-card.recommandee::before{
  content: "Recommandé";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
 
.formule-card h3{
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
 
.formule-price{
  display:block;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
 
.formule-section-title{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  margin: 16px 0 8px;
}
 
.formule-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.formule-row:last-of-type{ border-bottom: none; }
 
.formule-row .row-label{ color: var(--text-muted); }
 
.formule-coverageRate{
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.formule-appliedDeductible,
.formule-upperLimitCeiling,
.formule-annualTherapeuticNutritionBudget,
.formule-annualPreventionBudget{
  font-weight: 600;
  color: var(--text);
}
 
.option-block{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.option-name{
  display:block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.option-price{
  display:block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
 
/* Boutons radio */
.formule-card label{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease, background .15s ease;
}
.formule-card label:hover{
  border-color: var(--accent);
  background: #FFF8EC;
}
.formule-card input[type="radio"]{
  accent-color: var(--accent-dark);
  width: 16px;
  height: 16px;
}
.formule-card label:has(input[type="radio"]:checked){
  border-color: var(--accent-dark);
  background: #FBF3E6;
}
 
.cta-row{ margin-top: 16px; }
 
/* Flèches */
.carousel-arrow{
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(11,67,150,0.25);
}
.carousel-arrow.prev{ left: 0; }
.carousel-arrow.next{ right: 0; }
.carousel-arrow:hover:not(:disabled){ background: var(--navy-dark); }
.carousel-arrow:disabled{ opacity: .35; cursor: default; }
 
/* Points */
.carousel-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot{
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.carousel-dot.active{
  width: 20px;
  border-radius: 4px;
  background: var(--navy);
  transition: width .15s ease;
}

/* ============================================================
   RECAPITULATIF DEVIS
   ============================================================ */
   
/* ===== Page récapitulatif — carte par animal souscrit ===== */
#recap-souscription{
  --navy:#0B4396;
  --navy-dark:#082C63;
  --accent:#E8A23D;
  --success:#1FA97A;
  --bg:#EAF0FB;
  --card:#FFFFFF;
  --line:#E1E8EB;
  --text:#22303C;
  --text-muted:#5C7080;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
}

.recap-card{
  background: var(--bg);
  border-radius: 20px;
  padding: 20px;
}

/* Bandeau du haut : avatar + nom animal + suppression */
.recap-header{
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7F8FA;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.recap-avatar{
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #DCEBFA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.recap-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recap-header h3{
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.recap-subtitle{
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-supprimer-animal{
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Formule choisie */
.recap-line{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}
.recap-label{
  font-size: 13px;
  color: var(--text-muted);
}
.recap-value{
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-left: 8px;
}
.recap-price{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Carte option (toggle) */
.recap-option-card{
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(18,49,64,0.06);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.recap-option-title{
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.recap-option-title .option-name{ 
  color: var(--text);
  display: inline-flex ;
  font-size: 15px ;}
  
.recap-option-card .option-price{
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* Interrupteur */
.toggle{
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}
.toggle input{
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider{
  position: absolute;
  inset: 0;
  background: #C7CED6;
  border-radius: 34px;
  cursor: pointer;
  transition: background .15s ease;
}
.toggle-slider::before{
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s ease;
}
.toggle input:checked + .toggle-slider{ background: var(--navy); }
.toggle input:checked + .toggle-slider::before{ transform: translateX(18px); }

/* Montant total */
.recap-total{
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(18,49,64,0.06);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recap-total > span{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.recap-total-amount{
  text-align: right;
}
.montant-total{
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--success);
}
.recap-total-amount small{
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SCROLLBAR personnalisée
   ============================================================ */

.content-container::-webkit-scrollbar {
    width: 6px;
}
.content-container::-webkit-scrollbar-track {
    background: var(--gray-bg);
}
.content-container::-webkit-scrollbar-thumb {
    background: var(--blue-mid);
    border-radius: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- TABLETTE (≤ 900px) --- */
@media (max-width: 900px) {
    .sidebar {
        width: 200px;
    }

    .menu-item {
        padding: 11px 16px;
        font-size: 0.85rem;
    }

    .content-container {
        padding: 24px 24px;
    }

    .content-block {
        padding: 28px 28px;
    }

    .especes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- MOBILE PAYSAGE / PETITE TABLETTE (≤ 700px) --- */
@media (max-width: 700px) {
    body {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    /* Sidebar passe en barre horizontale en haut */
    .sidebar {
        width: 100%;
        flex-direction: column;
    }

    .sidebar-brand {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: auto;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        flex-shrink: 0;
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 0.82rem;
    }

    .menu-item:hover {
        padding-left: 16px;
        border-bottom-color: rgba(255,255,255,0.4);
    }

    .menu-item.active {
        border-left: none;
        border-bottom: 3px solid var(--red);
    }

    .menu-item::before {
        display: none;
    }

    .content-container {
        padding: 20px 16px;
        overflow-y: visible;
    }

    .content-block {
        padding: 22px 18px;
        border-radius: var(--radius-sm);
        max-width: 100%;
    }

    h1 {
        font-size: 1.35rem;
    }

    input[type="text"],
    input[type="date"],
    select {
        max-width: 100%;
    }

    /* Tableau : scroll horizontal */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Boutons pleine largeur */
    a,
    button {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    #btn-autre-animal {
        margin-right: 0;
    }

    /* Cartes espèces : 2 par ligne */
    .especes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .espece-icon {
        font-size: 2rem;
    }
}

/* --- MOBILE PORTRAIT (≤ 420px) --- */
@media (max-width: 420px) {
    .sidebar-brand {
        font-size: 0.85rem;
        padding: 12px;
    }

    .menu-item {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    h1 {
        font-size: 1.15rem;
    }

    .content-block {
        padding: 18px 14px;
    }

    .especes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .espece-icon {
        font-size: 1.8rem;
    }

    .espece-label {
        font-size: 0.8rem;
    }
}

